MD5 校验值:8005b9444b02324a81f85f1ef7e26f28
q2.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package b6; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.res.Resources; import android.os.Bundle; import android.text.TextUtils; import com.adadapted.android.sdk.core.device.DeviceInfo; import com.yalantis.ucrop.BuildConfig; import java.math.BigInteger; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Locale; public final class q2 extends q3 { public List A; public String B; public int C; public String D; public String E; public String F; public long G; public String H; public String f2334u; public String v; public int f2335w; public String f2336x; public long f2337y; public final long f2338z; public q2(c4 c4Var, long j) { super(c4Var); this.G = 0L; this.H = null; this.f2338z = j; } @Override public final boolean h() { return true; } public final void n() { String str; String str2; boolean z10; int h10; List list; Bundle q10; Integer valueOf; String m10; String str3; String str4; String packageName = ((c4) this.f4620s).f2017s.getPackageName(); PackageManager packageManager = ((c4) this.f4620s).f2017s.getPackageManager(); String str5 = "unknown"; String str6 = DeviceInfo.UNKNOWN_VALUE; int i10 = Integer.MIN_VALUE; String str7 = BuildConfig.FLAVOR; if (packageManager == null) { ((c4) this.f4620s).c().f2523x.b(z2.s(packageName), "PackageManager is null, app identity information might be inaccurate. appId"); } else { try { str5 = packageManager.getInstallerPackageName(packageName); } catch (IllegalArgumentException unused) { ((c4) this.f4620s).c().f2523x.b(z2.s(packageName), "Error retrieving app installer package name. appId"); } if (str5 == null) { str5 = "manual_install"; } else if ("com.android.vending".equals(str5)) { str5 = BuildConfig.FLAVOR; } try { PackageInfo packageInfo = packageManager.getPackageInfo(((c4) this.f4620s).f2017s.getPackageName(), 0); if (packageInfo != null) { CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo); if (!TextUtils.isEmpty(applicationLabel)) { str2 = applicationLabel.toString(); } else { str2 = DeviceInfo.UNKNOWN_VALUE; } try { str6 = packageInfo.versionName; i10 = packageInfo.versionCode; } catch (PackageManager.NameNotFoundException unused2) { str = str6; str6 = str2; ((c4) this.f4620s).c().f2523x.c(z2.s(packageName), str6, "Error retrieving package info. appId, appName"); str6 = str; this.f2334u = packageName; this.f2336x = str5; this.v = str6; this.f2335w = i10; this.f2337y = 0L; if (TextUtils.isEmpty(((c4) this.f4620s).f2018t)) { } z10 = false; h10 = ((c4) this.f4620s).h(); switch (h10) { } this.D = BuildConfig.FLAVOR; this.E = BuildConfig.FLAVOR; ((c4) this.f4620s).getClass(); if (z10) { } list = null; Object obj = this.f4620s; m10 = a0.m(((c4) obj).f2017s, ((c4) obj).K); if (true != TextUtils.isEmpty(m10)) { } this.D = str7; if (!TextUtils.isEmpty(m10)) { } if (h10 == 0) { } this.A = null; ((c4) this.f4620s).getClass(); g gVar = ((c4) this.f4620s).f2022y; gVar.getClass(); d5.o.e("analytics.safelisted_events"); q10 = gVar.q(); if (q10 != null) { } valueOf = null; if (valueOf != null) { } if (list != null) { } this.A = list; if (packageManager == null) { } } } } catch (PackageManager.NameNotFoundException unused3) { str = DeviceInfo.UNKNOWN_VALUE; } } this.f2334u = packageName; this.f2336x = str5; this.v = str6; this.f2335w = i10; this.f2337y = 0L; if (TextUtils.isEmpty(((c4) this.f4620s).f2018t) && "am".equals(((c4) this.f4620s).f2019u)) { z10 = true; } else { z10 = false; } h10 = ((c4) this.f4620s).h(); switch (h10) { case 0: ((c4) this.f4620s).c().F.a("App measurement collection enabled"); break; case 1: ((c4) this.f4620s).c().D.a("App measurement deactivated via the manifest"); break; case 2: ((c4) this.f4620s).c().F.a("App measurement deactivated via the init parameters"); break; case 3: ((c4) this.f4620s).c().D.a("App measurement disabled by setAnalyticsCollectionEnabled(false)"); break; case 4: ((c4) this.f4620s).c().D.a("App measurement disabled via the manifest"); break; case 5: ((c4) this.f4620s).c().F.a("App measurement disabled via the init parameters"); break; case 6: ((c4) this.f4620s).c().C.a("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics"); break; case 7: ((c4) this.f4620s).c().D.a("App measurement disabled via the global data collection setting"); break; default: ((c4) this.f4620s).c().D.a("App measurement disabled due to denied storage consent"); break; } this.D = BuildConfig.FLAVOR; this.E = BuildConfig.FLAVOR; ((c4) this.f4620s).getClass(); if (z10) { this.E = ((c4) this.f4620s).f2018t; } list = null; try { Object obj2 = this.f4620s; m10 = a0.m(((c4) obj2).f2017s, ((c4) obj2).K); if (true != TextUtils.isEmpty(m10)) { str7 = m10; } this.D = str7; if (!TextUtils.isEmpty(m10)) { Object obj3 = this.f4620s; Context context = ((c4) obj3).f2017s; String str8 = ((c4) obj3).K; d5.o.h(context); Resources resources = context.getResources(); if (TextUtils.isEmpty(str8)) { str8 = x3.a(context); } int identifier = resources.getIdentifier("admob_app_id", "string", str8); if (identifier != 0) { try { str4 = resources.getString(identifier); } catch (Resources.NotFoundException unused4) { str4 = null; } this.E = str4; } str4 = null; this.E = str4; } if (h10 == 0) { x2 x2Var = ((c4) this.f4620s).c().F; String str9 = this.f2334u; if (TextUtils.isEmpty(this.D)) { str3 = this.E; } else { str3 = this.D; } x2Var.c(str9, str3, "App measurement enabled for app package, google app id"); } } catch (IllegalStateException e10) { ((c4) this.f4620s).c().f2523x.c(z2.s(packageName), e10, "Fetching Google App Id failed with exception. appId"); } this.A = null; ((c4) this.f4620s).getClass(); g gVar2 = ((c4) this.f4620s).f2022y; gVar2.getClass(); d5.o.e("analytics.safelisted_events"); q10 = gVar2.q(); if (q10 != null) { ((c4) gVar2.f4620s).c().f2523x.a("Failed to load metadata: Metadata bundle is null"); } else if (q10.containsKey("analytics.safelisted_events")) { valueOf = Integer.valueOf(q10.getInt("analytics.safelisted_events")); if (valueOf != null) { try { String[] stringArray = ((c4) gVar2.f4620s).f2017s.getResources().getStringArray(valueOf.intValue()); if (stringArray != null) { list = Arrays.asList(stringArray); } } catch (Resources.NotFoundException e11) { ((c4) gVar2.f4620s).c().f2523x.b(e11, "Failed to load string array from metadata: resource not found"); } } if (list != null) { if (list.isEmpty()) { ((c4) this.f4620s).c().C.a("Safelisted event list is empty. Ignoring"); } else { Iterator it = list.iterator(); while (it.hasNext()) { if (!((c4) this.f4620s).y().P("safelisted event", (String) it.next())) { } } } if (packageManager == null) { this.C = j5.a.f(((c4) this.f4620s).f2017s) ? 1 : 0; return; } else { this.C = 0; return; } } this.A = list; if (packageManager == null) { } } valueOf = null; if (valueOf != null) { } if (list != null) { } this.A = list; if (packageManager == null) { } } public final String o() { f(); d5.o.h(this.f2334u); return this.f2334u; } public final String p() { e(); f(); d5.o.h(this.D); return this.D; } public final void q() { String format; String str; e(); if (!((c4) this.f4620s).s().p().f(h.ANALYTICS_STORAGE)) { ((c4) this.f4620s).c().E.a("Analytics Storage consent is not granted"); format = null; } else { byte[] bArr = new byte[16]; ((c4) this.f4620s).y().s().nextBytes(bArr); format = String.format(Locale.US, "%032x", new BigInteger(1, bArr)); } x2 x2Var = ((c4) this.f4620s).c().E; Object[] objArr = new Object[1]; if (format == null) { str = "null"; } else { str = "not null"; } objArr[0] = str; x2Var.a(String.format("Resetting session stitching token to %s", objArr)); this.F = format; ((c4) this.f4620s).F.getClass(); this.G = System.currentTimeMillis(); } }