CCIPTV PRO v3.0.9.1版本的 MD5 值为:e78d4d980447be4a9f823314f45bbf03

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


package f.f.a.d.j.j;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.dynamite.DynamiteModule;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ExecutorService;
public final class e0 {
    public static volatile e0 f8333h;
    public static Boolean f8334i;
    public final String a;
    public final f.f.a.d.f.s.e b;
    public final ExecutorService c;
    public final f.f.a.d.k.a.a f8335d;
    public int f8336e;
    public boolean f8337f;
    public volatile jd f8338g;

    public e0(Context context, String str, String str2, String str3, Bundle bundle) {
        this.a = (str == null || !s(str2, str3)) ? "FA" : "FA";
        this.b = f.f.a.d.f.s.h.d();
        this.c = m8.a().a(new p(this), 1);
        this.f8335d = new f.f.a.d.k.a.a(this);
        new ArrayList();
        try {
            if (f.f.a.d.k.b.m7.b(context, "google_app_id", f.f.a.d.k.b.v4.a(context)) != null && !o()) {
                this.f8337f = true;
                Log.w(this.a, "Disabling data collection. Found google_app_id in strings.xml but Google Analytics for Firebase is missing. Remove this value or add Google Analytics for Firebase to resume data collection.");
                return;
            }
        } catch (IllegalStateException unused) {
        }
        if (!s(str2, str3)) {
            if (str2 == null || str3 == null) {
                if ((str2 == null) ^ (str3 == null)) {
                    Log.w(this.a, "Specified origin or custom app id is null. Both parameters will be ignored.");
                }
            } else {
                Log.v(this.a, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy");
            }
        }
        p(new f(this, str2, str3, context, bundle));
        Application application = (Application) context.getApplicationContext();
        if (application == null) {
            Log.w(this.a, "Unable to register lifecycle notifications. Application null.");
        } else {
            application.registerActivityLifecycleCallbacks(new d0(this));
        }
    }

    public static void j(Context context) {
        synchronized (e0.class) {
            try {
            } catch (Exception e2) {
                Log.e("FA", "Exception reading flag from SharedPreferences.", e2);
                f8334i = Boolean.TRUE;
            }
            if (f8334i != null) {
                return;
            }
            f.f.a.d.f.o.s.g("app_measurement_internal_disable_startup_flags");
            try {
                ApplicationInfo c = f.f.a.d.f.t.c.a(context).c(context.getPackageName(), 128);
                if (c != null && c.metaData != null) {
                    if (c.metaData.getBoolean("app_measurement_internal_disable_startup_flags")) {
                        f8334i = Boolean.TRUE;
                        return;
                    }
                }
            } catch (PackageManager.NameNotFoundException unused) {
            }
            SharedPreferences sharedPreferences = context.getSharedPreferences("com.google.android.gms.measurement.prefs", 0);
            f8334i = Boolean.valueOf(sharedPreferences.getBoolean("allow_remote_dynamite", true));
            SharedPreferences.Editor edit = sharedPreferences.edit();
            edit.remove("allow_remote_dynamite");
            edit.apply();
        }
    }

    public static final boolean o() {
        try {
            Class.forName("com.google.firebase.analytics.FirebaseAnalytics");
            return true;
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

    public static final boolean s(String str, String str2) {
        return (str2 == null || str == null || o()) ? false : true;
    }

    public static e0 t(Context context, String str, String str2, String str3, Bundle bundle) {
        f.f.a.d.f.o.s.k(context);
        if (f8333h == null) {
            synchronized (e0.class) {
                if (f8333h == null) {
                    f8333h = new e0(context, str, str2, str3, bundle);
                }
            }
        }
        return f8333h;
    }

    public final List<Bundle> A(String str, String str2) {
        oa oaVar = new oa();
        p(new d(this, str, str2, oaVar));
        List<Bundle> list = (List) oa.G2(oaVar.E2(5000L), List.class);
        return list == null ? Collections.emptyList() : list;
    }

    public final void B(Activity activity, String str, String str2) {
        p(new e(this, activity, str, str2));
    }

    public final void C(String str) {
        p(new g(this, str));
    }

    public final void D(String str) {
        p(new h(this, str));
    }

    public final String E() {
        oa oaVar = new oa();
        p(new i(this, oaVar));
        return oaVar.n1(500L);
    }

    public final String F() {
        oa oaVar = new oa();
        p(new j(this, oaVar));
        return oaVar.n1(50L);
    }

    public final long G() {
        oa oaVar = new oa();
        p(new k(this, oaVar));
        Long l2 = (Long) oa.G2(oaVar.E2(500L), Long.class);
        if (l2 == null) {
            long nextLong = new Random(System.nanoTime() ^ this.b.a()).nextLong();
            int i2 = this.f8336e + 1;
            this.f8336e = i2;
            return nextLong + i2;
        }
        return l2.longValue();
    }

    public final String H() {
        oa oaVar = new oa();
        p(new l(this, oaVar));
        return oaVar.n1(500L);
    }

    public final String a() {
        oa oaVar = new oa();
        p(new m(this, oaVar));
        return oaVar.n1(500L);
    }

    public final Map<String, Object> b(String str, String str2, boolean z) {
        oa oaVar = new oa();
        p(new n(this, str, str2, z, oaVar));
        Bundle E2 = oaVar.E2(5000L);
        if (E2 == null || E2.size() == 0) {
            return Collections.emptyMap();
        }
        HashMap hashMap = new HashMap(E2.size());
        for (String str3 : E2.keySet()) {
            Object obj = E2.get(str3);
            if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) {
                hashMap.put(str3, obj);
            }
        }
        return hashMap;
    }

    public final void c(int i2, String str, Object obj, Object obj2, Object obj3) {
        p(new o(this, false, 5, str, obj, null, null));
    }

    public final int d(String str) {
        oa oaVar = new oa();
        p(new q(this, str, oaVar));
        Integer num = (Integer) oa.G2(oaVar.E2(10000L), Integer.class);
        if (num == null) {
            return 25;
        }
        return num.intValue();
    }

    public final void e(boolean z) {
        p(new r(this, z));
    }

    public final void p(v vVar) {
        this.c.execute(vVar);
    }

    public final void q(Exception exc, boolean z, boolean z2) {
        this.f8337f |= z;
        if (z) {
            Log.w(this.a, "Data collection startup failed. No data will be collected.", exc);
            return;
        }
        if (z2) {
            c(5, "Error with data collection. Data lost.", exc, null, null);
        }
        Log.w(this.a, "Error with data collection. Data lost.", exc);
    }

    public final void r(String str, String str2, Bundle bundle, boolean z, boolean z2, Long l2) {
        p(new t(this, l2, str, str2, bundle, z, z2));
    }

    public final f.f.a.d.k.a.a u() {
        return this.f8335d;
    }

    public final jd v(Context context, boolean z) {
        try {
            return qc.asInterface(DynamiteModule.d(context, z ? DynamiteModule.f2805l : DynamiteModule.f2803j, ModuleDescriptor.MODULE_ID).c("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService"));
        } catch (DynamiteModule.a e2) {
            q(e2, true, false);
            return null;
        }
    }

    public final void w(String str, String str2, Bundle bundle) {
        r(str, str2, bundle, true, true, null);
    }

    public final void x(String str, String str2, Object obj, boolean z) {
        p(new u(this, str, str2, obj, z));
    }

    public final void y(Bundle bundle) {
        p(new b(this, bundle));
    }

    public final void z(String str, String str2, Bundle bundle) {
        p(new c(this, str, str2, bundle));
    }
}