Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9

以下内容为反编译后的 a.java 源代码,内容仅作参考


package myobfuscated.o7;

import android.content.Context;
import android.util.Log;
import com.amazon.aps.shared.analytics.APSEvent;
import com.amazon.aps.shared.analytics.APSEventSeverity;
import com.amazon.aps.shared.analytics.APSEventType;
import java.util.HashMap;
import java.util.Random;
import myobfuscated.i7.f;
import myobfuscated.r7.c;
public class a {
    public static String a = "1.0";
    public static Context b;
    public static boolean c;
    public static String d;
    public static String e;
    public static String f;

    public static void a(Context context) {
        b = context;
        d = "e9026ffd475a1a3691e6b2ce637a9b92aab1073ebf53a67c5f2583be8a804ecb";
        c(1);
        e = "https://prod.cm.publishers.advertising.a2z.com/logrecord/putlog";
        f = "";
        new HashMap();
    }

    public static void b(APSEventSeverity aPSEventSeverity, APSEventType aPSEventType, String str, Exception exc) {
        try {
            f.b("APSAnalytics", str + exc);
            Context context = b;
            if (context == null || !c) {
                Log.d("APSAnalytics", "Analytics not initialized, and ignoring the event");
                return;
            }
            APSEvent build = new APSEvent(context, aPSEventSeverity, aPSEventType.name()).setExceptionDetails(exc).setErrorDetails(str).build();
            APSEventSeverity eventSeverity = build.getEventSeverity();
            APSEventSeverity aPSEventSeverity2 = APSEventSeverity.FATAL;
            if (eventSeverity == aPSEventSeverity2) {
                if (c.c == null) {
                    c.c = new c();
                }
                c cVar = c.c;
                cVar.getClass();
                if (build.getEventSeverity() == aPSEventSeverity2) {
                    cVar.b(e, d, build.toJsonPayload());
                }
            }
        } catch (RuntimeException e2) {
            Log.e("APSAnalytics", "Error in processing the event: ", e2);
        }
    }

    public static void c(int i) {
        boolean z = true;
        if (i < 0 || i > 100) {
            Log.e("APSAnalytics", "Invalid sampling rate - setting the default one");
            i = 1;
        }
        try {
            if (new Random().nextInt(100) + 1 > i) {
                z = false;
            }
            c = z;
        } catch (RuntimeException e2) {
            Log.e("APSAnalytics", "Unable to set the sampling rate", e2);
        }
    }
}