MD5 校验值:968838cd794cef01a8eb9d3146a32cc7
s0.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package e.a.a.a.d.e; import android.app.Activity; import android.app.Application; import android.content.Context; import android.os.Bundle; import android.util.Log; import com.google.android.gms.dynamite.DynamiteModule; 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; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public final class s0 { private static volatile s0 f10204a; private final String f10205b; protected final com.google.android.gms.common.util.d f10206c; protected final ExecutorService f10207d; private final e.a.a.a.e.a.a f10208e; private final List f10209f; private int f10210g; private boolean h; private final String i; private volatile k j; protected s0(Context context, String str, String str2, String str3, Bundle bundle) { if (str != null && l(str2, str3)) { this.f10205b = str; } else { this.f10205b = "FA"; } this.f10206c = com.google.android.gms.common.util.g.d(); g.a(); ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue(), new f0(this)); threadPoolExecutor.allowCoreThreadTimeOut(true); this.f10207d = Executors.unconfigurableExecutorService(threadPoolExecutor); this.f10208e = new e.a.a.a.e.a.a(this); this.f10209f = new ArrayList(); try { if (e.a.a.a.e.b.b.a(context, "google_app_id", e.a.a.a.e.b.a.a(context)) != null && !h()) { this.i = null; this.h = true; Log.w(this.f10205b, "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 (l(str2, str3)) { this.i = str2; } else { this.i = "fa"; if (str2 == null || str3 == null) { if ((str2 == null) ^ (str3 == null)) { Log.w(this.f10205b, "Specified origin or custom app id is null. Both parameters will be ignored."); } } else { Log.v(this.f10205b, "Deferring to Google Analytics for Firebase for event data collection. https://goo.gl/J1sWQy"); } } k(new u(this, str2, str3, context, bundle)); Application application = (Application) context.getApplicationContext(); if (application == null) { Log.w(this.f10205b, "Unable to register lifecycle notifications. Application null."); } else { application.registerActivityLifecycleCallbacks(new r0(this)); } } protected static final boolean h() { try { Class.forName("com.google.firebase.analytics.FirebaseAnalytics"); return true; } catch (ClassNotFoundException unused) { return false; } } public final void i(Exception exc, boolean z, boolean z2) { this.h |= z; if (z) { Log.w(this.f10205b, "Data collection startup failed. No data will be collected.", exc); return; } if (z2) { a(5, "Error with data collection. Data lost.", exc, null, null); } Log.w(this.f10205b, "Error with data collection. Data lost.", exc); } private final void j(String str, String str2, Bundle bundle, boolean z, boolean z2, Long l) { k(new h0(this, l, str, str2, bundle, z, z2)); } public final void k(j0 j0Var) { this.f10207d.execute(j0Var); } public static final boolean l(String str, String str2) { return (str2 == null || str == null || h()) ? false : true; } public static s0 s(Context context, String str, String str2, String str3, Bundle bundle) { com.google.android.gms.common.internal.o.h(context); if (f10204a == null) { synchronized (s0.class) { if (f10204a == null) { f10204a = new s0(context, str, str2, str3, bundle); } } } return f10204a; } public final Map A(String str, String str2, boolean z) { h hVar = new h(); k(new c0(this, str, str2, z, hVar)); Bundle o0 = hVar.o0(5000L); if (o0 != null && o0.size() != 0) { HashMap hashMap = new HashMap(o0.size()); for (String str3 : o0.keySet()) { Object obj = o0.get(str3); if ((obj instanceof Double) || (obj instanceof Long) || (obj instanceof String)) { hashMap.put(str3, obj); } } return hashMap; } return Collections.emptyMap(); } public final void E(String str) { k(new v(this, str)); } public final void F(String str, String str2, Bundle bundle) { k(new q(this, str, str2, bundle)); } public final void G(String str) { k(new w(this, str)); } public final void H(String str, String str2, Bundle bundle) { j(str, str2, bundle, true, true, null); } public final void a(int i, String str, Object obj, Object obj2, Object obj3) { k(new d0(this, false, 5, str, obj, null, null)); } public final void b(Bundle bundle) { k(new p(this, bundle)); } public final void c(Bundle bundle) { k(new t(this, bundle)); } public final void d(Activity activity, String str, String str2) { k(new s(this, activity, str, str2)); } public final void e(String str, String str2, Object obj, boolean z) { k(new i0(this, str, str2, obj, z)); } public final int m(String str) { h hVar = new h(); k(new g0(this, str, hVar)); Integer num = (Integer) h.K2(hVar.o0(10000L), Integer.class); if (num == null) { return 25; } return num.intValue(); } public final long n() { h hVar = new h(); k(new z(this, hVar)); Long l = (Long) h.K2(hVar.o0(500L), Long.class); if (l == null) { long nextLong = new Random(System.nanoTime() ^ this.f10206c.a()).nextLong(); int i = this.f10210g + 1; this.f10210g = i; return nextLong + i; } return l.longValue(); } public final Bundle o(Bundle bundle, boolean z) { h hVar = new h(); k(new e0(this, bundle, hVar)); if (z) { return hVar.o0(5000L); } return null; } public final e.a.a.a.e.a.a p() { return this.f10208e; } public final k r(Context context, boolean z) { try { return j.o0(DynamiteModule.e(context, DynamiteModule.f2633d, "com.google.android.gms.measurement.dynamite").d("com.google.android.gms.measurement.internal.AppMeasurementDynamiteService")); } catch (DynamiteModule.a e2) { i(e2, true, false); return null; } } public final String u() { return this.i; } public final String v() { h hVar = new h(); k(new y(this, hVar)); return hVar.F0(50L); } public final String w() { h hVar = new h(); k(new b0(this, hVar)); return hVar.F0(500L); } public final String x() { h hVar = new h(); k(new a0(this, hVar)); return hVar.F0(500L); } public final String y() { h hVar = new h(); k(new x(this, hVar)); return hVar.F0(500L); } public final List z(String str, String str2) { h hVar = new h(); k(new r(this, str, str2, hVar)); List list = (List) h.K2(hVar.o0(5000L), List.class); return list == null ? Collections.emptyList() : list; } }