Banesco VE v1.23.11版本的 MD5 值为:a4aa3f1f54e4fbb4921e2e1235e636aa
以下内容为反编译后的 n2.java 源代码,内容仅作参考
package t4;
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 java.math.BigInteger;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public final class n2 extends g3 {
public String f10782m;
public String f10783n;
public int f10784o;
public String f10785p;
public long f10786q;
public final long f10787r;
public List f10788s;
public String f10789t;
public int f10790u;
public String f10791v;
public String f10792w;
public String f10793x;
public long f10794y;
public String f10795z;
public n2(q3 q3Var, long j10) {
super(q3Var);
this.f10794y = 0L;
this.f10795z = null;
this.f10787r = j10;
}
@Override
public final boolean s() {
return true;
}
public final void t() {
String str;
String str2;
Object[] objArr;
int l10;
List<String> list;
Bundle w10;
Integer valueOf;
String P;
String str3;
String str4;
Object obj = this.f6242k;
q3 q3Var = (q3) obj;
String packageName = q3Var.f10871k.getPackageName();
PackageManager packageManager = q3Var.f10871k.getPackageManager();
String str5 = "Unknown";
int i10 = Integer.MIN_VALUE;
String str6 = "";
String str7 = "unknown";
if (packageManager == null) {
u2 u2Var = q3Var.f10879s;
q3.k(u2Var);
u2Var.f10947p.b(u2.y(packageName), "PackageManager is null, app identity information might be inaccurate. appId");
} else {
try {
str7 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
u2 u2Var2 = q3Var.f10879s;
q3.k(u2Var2);
u2Var2.f10947p.b(u2.y(packageName), "Error retrieving app installer package name. appId");
}
if (str7 == null) {
str7 = "manual_install";
} else if ("com.android.vending".equals(str7)) {
str7 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(((q3) obj).f10871k.getPackageName(), 0);
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
if (TextUtils.isEmpty(applicationLabel)) {
str2 = "Unknown";
} else {
str2 = applicationLabel.toString();
}
try {
str5 = packageInfo.versionName;
i10 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused2) {
str = str5;
str5 = str2;
u2 u2Var3 = q3Var.f10879s;
q3.k(u2Var3);
u2Var3.f10947p.c(u2.y(packageName), str5, "Error retrieving package info. appId, appName");
str5 = str;
this.f10782m = packageName;
this.f10785p = str7;
this.f10783n = str5;
this.f10784o = i10;
this.f10786q = 0L;
if (TextUtils.isEmpty(q3Var.f10872l)) {
}
objArr = null;
l10 = q3Var.l();
switch (l10) {
}
this.f10791v = "";
this.f10792w = "";
q3Var.getClass();
if (objArr != null) {
}
list = null;
P = com.google.gson.internal.p.P(((q3) obj).f10871k, ((q3) obj).C);
if (true != TextUtils.isEmpty(P)) {
}
this.f10791v = str6;
if (!TextUtils.isEmpty(P)) {
}
if (l10 == 0) {
}
this.f10788s = null;
q3Var.getClass();
e eVar = q3Var.f10877q;
eVar.getClass();
com.bumptech.glide.e.k("analytics.safelisted_events");
w10 = eVar.w();
Object obj2 = eVar.f6242k;
if (w10 != null) {
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.f10788s = list;
if (packageManager == null) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.f10782m = packageName;
this.f10785p = str7;
this.f10783n = str5;
this.f10784o = i10;
this.f10786q = 0L;
if (TextUtils.isEmpty(q3Var.f10872l) && "am".equals(q3Var.f10873m)) {
objArr = 1;
} else {
objArr = null;
}
l10 = q3Var.l();
switch (l10) {
case 0:
u2 u2Var4 = q3Var.f10879s;
q3.k(u2Var4);
u2Var4.f10955x.a("App measurement collection enabled");
break;
case 1:
u2 u2Var5 = q3Var.f10879s;
q3.k(u2Var5);
u2Var5.f10953v.a("App measurement deactivated via the manifest");
break;
case 2:
u2 u2Var6 = q3Var.f10879s;
q3.k(u2Var6);
u2Var6.f10955x.a("App measurement deactivated via the init parameters");
break;
case 3:
u2 u2Var7 = q3Var.f10879s;
q3.k(u2Var7);
u2Var7.f10953v.a("App measurement disabled by setAnalyticsCollectionEnabled(false)");
break;
case 4:
u2 u2Var8 = q3Var.f10879s;
q3.k(u2Var8);
u2Var8.f10953v.a("App measurement disabled via the manifest");
break;
case 5:
u2 u2Var9 = q3Var.f10879s;
q3.k(u2Var9);
u2Var9.f10955x.a("App measurement disabled via the init parameters");
break;
case 6:
u2 u2Var10 = q3Var.f10879s;
q3.k(u2Var10);
u2Var10.f10952u.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:
u2 u2Var11 = q3Var.f10879s;
q3.k(u2Var11);
u2Var11.f10953v.a("App measurement disabled via the global data collection setting");
break;
default:
u2 u2Var12 = q3Var.f10879s;
q3.k(u2Var12);
u2Var12.f10953v.a("App measurement disabled due to denied storage consent");
break;
}
this.f10791v = "";
this.f10792w = "";
q3Var.getClass();
if (objArr != null) {
this.f10792w = q3Var.f10872l;
}
list = null;
try {
P = com.google.gson.internal.p.P(((q3) obj).f10871k, ((q3) obj).C);
if (true != TextUtils.isEmpty(P)) {
str6 = P;
}
this.f10791v = str6;
if (!TextUtils.isEmpty(P)) {
Context context = ((q3) obj).f10871k;
String str8 = ((q3) obj).C;
com.bumptech.glide.e.n(context);
Resources resources = context.getResources();
if (TextUtils.isEmpty(str8)) {
str8 = com.bumptech.glide.e.c2(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.f10792w = str4;
}
str4 = null;
this.f10792w = str4;
}
if (l10 == 0) {
u2 u2Var13 = ((q3) obj).f10879s;
q3.k(u2Var13);
s2 s2Var = u2Var13.f10955x;
String str9 = this.f10782m;
if (TextUtils.isEmpty(this.f10791v)) {
str3 = this.f10792w;
} else {
str3 = this.f10791v;
}
s2Var.c(str9, str3, "App measurement enabled for app package, google app id");
}
} catch (IllegalStateException e10) {
u2 u2Var14 = q3Var.f10879s;
q3.k(u2Var14);
u2Var14.f10947p.c(u2.y(packageName), e10, "Fetching Google App Id failed with exception. appId");
}
this.f10788s = null;
q3Var.getClass();
e eVar2 = q3Var.f10877q;
eVar2.getClass();
com.bumptech.glide.e.k("analytics.safelisted_events");
w10 = eVar2.w();
Object obj22 = eVar2.f6242k;
if (w10 != null) {
u2 u2Var15 = ((q3) obj22).f10879s;
q3.k(u2Var15);
u2Var15.f10947p.a("Failed to load metadata: Metadata bundle is null");
} else if (w10.containsKey("analytics.safelisted_events")) {
valueOf = Integer.valueOf(w10.getInt("analytics.safelisted_events"));
if (valueOf != null) {
try {
String[] stringArray = ((q3) obj22).f10871k.getResources().getStringArray(valueOf.intValue());
if (stringArray != null) {
list = Arrays.asList(stringArray);
}
} catch (Resources.NotFoundException e11) {
u2 u2Var16 = ((q3) obj22).f10879s;
q3.k(u2Var16);
u2Var16.f10947p.b(e11, "Failed to load string array from metadata: resource not found");
}
}
if (list != null) {
if (list.isEmpty()) {
u2 u2Var17 = q3Var.f10879s;
q3.k(u2Var17);
u2Var17.f10952u.a("Safelisted event list is empty. Ignoring");
} else {
for (String str10 : list) {
s5 s5Var = q3Var.f10882v;
q3.i(s5Var);
if (!s5Var.V("safelisted event", str10)) {
}
}
}
if (packageManager == null) {
this.f10790u = h4.a.k(q3Var.f10871k) ? 1 : 0;
return;
} else {
this.f10790u = 0;
return;
}
}
this.f10788s = list;
if (packageManager == null) {
}
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.f10788s = list;
if (packageManager == null) {
}
}
public final String u() {
p();
com.bumptech.glide.e.n(this.f10782m);
return this.f10782m;
}
public final String v() {
o();
p();
com.bumptech.glide.e.n(this.f10791v);
return this.f10791v;
}
public final void w() {
String format;
String str;
o();
q3 q3Var = (q3) this.f6242k;
d3 d3Var = q3Var.f10878r;
q3.i(d3Var);
if (!d3Var.v().f(f.ANALYTICS_STORAGE)) {
u2 u2Var = q3Var.f10879s;
q3.k(u2Var);
u2Var.f10954w.a("Analytics Storage consent is not granted");
format = null;
} else {
byte[] bArr = new byte[16];
s5 s5Var = q3Var.f10882v;
q3.i(s5Var);
s5Var.y().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
}
u2 u2Var2 = q3Var.f10879s;
q3.k(u2Var2);
Object[] objArr = new Object[1];
if (format == null) {
str = "null";
} else {
str = "not null";
}
objArr[0] = str;
u2Var2.f10954w.a(String.format("Resetting session stitching token to %s", objArr));
this.f10793x = format;
q3Var.f10884x.getClass();
this.f10794y = System.currentTimeMillis();
}
}