MD5 校验值:52ffe34fa08a87a6cc4bc36d7eb3dad1
m0.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package pg; 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.huawei.hms.android.SystemUtils; import java.math.BigInteger; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Locale; import org.checkerframework.checker.nullness.qual.EnsuresNonNull; public final class m0 extends m1 { public String f28875j; public String f28876k; public int f28877l; public String f28878m; public long f28879n; public final long f28880o; public List f28881p; public String q; public int f28882r; public String f28883s; public String f28884t; public String f28885u; public long f28886v; public String f28887w; public m0(c2 c2Var, long j10) { super(c2Var); this.f28886v = 0L; this.f28887w = null; this.f28880o = j10; } @Override public final boolean j() { return true; } @EnsuresNonNull({"appId", "appStore", "appName", "gmpAppId", "gaAppId"}) public final void k() { String str; String str2; boolean z10; int k7; List list; Bundle n7; Integer valueOf; String A; String str3; String str4; String packageName = this.f29102h.f28542h.getPackageName(); PackageManager packageManager = this.f29102h.f28542h.getPackageManager(); String str5 = SystemUtils.UNKNOWN; String str6 = "Unknown"; int i10 = Integer.MIN_VALUE; String str7 = ""; if (packageManager == null) { this.f29102h.b().f29084m.b(v0.p(packageName), "PackageManager is null, app identity information might be inaccurate. appId"); } else { try { str5 = packageManager.getInstallerPackageName(packageName); } catch (IllegalArgumentException unused) { this.f29102h.b().f29084m.b(v0.p(packageName), "Error retrieving app installer package name. appId"); } if (str5 == null) { str5 = "manual_install"; } else if ("com.android.vending".equals(str5)) { str5 = ""; } try { PackageInfo packageInfo = packageManager.getPackageInfo(this.f29102h.f28542h.getPackageName(), 0); if (packageInfo != null) { CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo); if (TextUtils.isEmpty(applicationLabel)) { str2 = "Unknown"; } else { str2 = applicationLabel.toString(); } try { str6 = packageInfo.versionName; i10 = packageInfo.versionCode; } catch (PackageManager.NameNotFoundException unused2) { str = str6; str6 = str2; this.f29102h.b().f29084m.c(v0.p(packageName), str6, "Error retrieving package info. appId, appName"); str6 = str; this.f28875j = packageName; this.f28878m = str5; this.f28876k = str6; this.f28877l = i10; this.f28879n = 0L; if (TextUtils.isEmpty(this.f29102h.f28543i)) { } z10 = false; k7 = this.f29102h.k(); switch (k7) { } this.f28883s = ""; this.f28884t = ""; this.f29102h.getClass(); if (z10) { } list = null; c2 c2Var = this.f29102h; A = cl.c.A(c2Var.f28542h, c2Var.f28559z); if (true != TextUtils.isEmpty(A)) { } this.f28883s = str7; if (!TextUtils.isEmpty(A)) { } if (k7 == 0) { } this.f28881p = null; this.f29102h.getClass(); e eVar = this.f29102h.f28548n; eVar.getClass(); kf.j.f("analytics.safelisted_events"); n7 = eVar.n(); if (n7 != null) { } valueOf = null; if (valueOf != null) { } if (list != null) { } this.f28881p = list; if (packageManager == null) { } } } } catch (PackageManager.NameNotFoundException unused3) { str = "Unknown"; } } this.f28875j = packageName; this.f28878m = str5; this.f28876k = str6; this.f28877l = i10; this.f28879n = 0L; if (TextUtils.isEmpty(this.f29102h.f28543i) && "am".equals(this.f29102h.f28544j)) { z10 = true; } else { z10 = false; } k7 = this.f29102h.k(); switch (k7) { case 0: this.f29102h.b().f29091u.a("App measurement collection enabled"); break; case 1: this.f29102h.b().f29089s.a("App measurement deactivated via the manifest"); break; case 2: this.f29102h.b().f29091u.a("App measurement deactivated via the init parameters"); break; case 3: this.f29102h.b().f29089s.a("App measurement disabled by setAnalyticsCollectionEnabled(false)"); break; case 4: this.f29102h.b().f29089s.a("App measurement disabled via the manifest"); break; case 5: this.f29102h.b().f29091u.a("App measurement disabled via the init parameters"); break; case 6: this.f29102h.b().f29088r.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: this.f29102h.b().f29089s.a("App measurement disabled via the global data collection setting"); break; default: this.f29102h.b().f29089s.a("App measurement disabled due to denied storage consent"); break; } this.f28883s = ""; this.f28884t = ""; this.f29102h.getClass(); if (z10) { this.f28884t = this.f29102h.f28543i; } list = null; try { c2 c2Var2 = this.f29102h; A = cl.c.A(c2Var2.f28542h, c2Var2.f28559z); if (true != TextUtils.isEmpty(A)) { str7 = A; } this.f28883s = str7; if (!TextUtils.isEmpty(A)) { c2 c2Var3 = this.f29102h; Context context = c2Var3.f28542h; String str8 = c2Var3.f28559z; kf.j.i(context); Resources resources = context.getResources(); if (TextUtils.isEmpty(str8)) { str8 = w1.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.f28884t = str4; } str4 = null; this.f28884t = str4; } if (k7 == 0) { t0 t0Var = this.f29102h.b().f29091u; String str9 = this.f28875j; if (TextUtils.isEmpty(this.f28883s)) { str3 = this.f28884t; } else { str3 = this.f28883s; } t0Var.c(str9, str3, "App measurement enabled for app package, google app id"); } } catch (IllegalStateException e10) { this.f29102h.b().f29084m.c(v0.p(packageName), e10, "Fetching Google App Id failed with exception. appId"); } this.f28881p = null; this.f29102h.getClass(); e eVar2 = this.f29102h.f28548n; eVar2.getClass(); kf.j.f("analytics.safelisted_events"); n7 = eVar2.n(); if (n7 != null) { eVar2.f29102h.b().f29084m.a("Failed to load metadata: Metadata bundle is null"); } else if (n7.containsKey("analytics.safelisted_events")) { valueOf = Integer.valueOf(n7.getInt("analytics.safelisted_events")); if (valueOf != null) { try { String[] stringArray = eVar2.f29102h.f28542h.getResources().getStringArray(valueOf.intValue()); if (stringArray != null) { list = Arrays.asList(stringArray); } } catch (Resources.NotFoundException e11) { eVar2.f29102h.b().f29084m.b(e11, "Failed to load string array from metadata: resource not found"); } } if (list != null) { if (list.isEmpty()) { this.f29102h.b().f29088r.a("Safelisted event list is empty. Ignoring"); } else { Iterator it = list.iterator(); while (it.hasNext()) { if (!this.f29102h.x().M("safelisted event", (String) it.next())) { } } } if (packageManager == null) { this.f28882r = qf.b.n(this.f29102h.f28542h) ? 1 : 0; return; } else { this.f28882r = 0; return; } } this.f28881p = list; if (packageManager == null) { } } valueOf = null; if (valueOf != null) { } if (list != null) { } this.f28881p = list; if (packageManager == null) { } } public final String l() { h(); kf.j.i(this.f28875j); return this.f28875j; } public final String m() { g(); h(); kf.j.i(this.f28883s); return this.f28883s; } public final void n() { String format; String str; g(); if (!this.f29102h.r().m().f(f.ANALYTICS_STORAGE)) { this.f29102h.b().f29090t.a("Analytics Storage consent is not granted"); format = null; } else { byte[] bArr = new byte[16]; this.f29102h.x().p().nextBytes(bArr); format = String.format(Locale.US, "%032x", new BigInteger(1, bArr)); } t0 t0Var = this.f29102h.b().f29090t; Object[] objArr = new Object[1]; if (format == null) { str = "null"; } else { str = "not null"; } objArr[0] = str; t0Var.a(String.format("Resetting session stitching token to %s", objArr)); this.f28885u = format; this.f29102h.f28554u.getClass(); this.f28886v = System.currentTimeMillis(); } }