Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d
以下内容为反编译后的 y3.java 源代码,内容仅作参考
package c5;
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.applovin.sdk.AppLovinMediationProvider;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public final class y3 extends o2 {
public String f2523c;
public String f2524d;
public int f2525e;
public String f2526f;
public long f2527g;
public final long f2528h;
public List f2529i;
public String f2530j;
public int f2531k;
public String f2532l;
public String f2533m;
public String f2534n;
public long f2535o;
public String f2536p;
public y3(y4 y4Var, long j10) {
super(y4Var);
this.f2535o = 0L;
this.f2536p = null;
this.f2528h = j10;
}
public final void A() {
String format;
n();
if (l().x().f(i5.ANALYTICS_STORAGE)) {
byte[] bArr = new byte[16];
m().A0().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
} else {
i().f1959m.d("Analytics Storage consent is not granted");
format = null;
}
c4 i10 = i();
Object[] objArr = new Object[1];
objArr[0] = format == null ? "null" : "not null";
i10.f1959m.d(String.format("Resetting session stitching token to %s", objArr));
this.f2534n = format;
((l4.b) f()).getClass();
this.f2535o = System.currentTimeMillis();
}
public final void B() {
String str;
Object obj;
boolean z10;
boolean z11;
int l10;
List<String> list;
Bundle E;
Integer valueOf;
String str2;
Resources resources;
int identifier;
String string;
String string2;
String packageName = a().getPackageName();
PackageManager packageManager = a().getPackageManager();
String str3 = "";
String str4 = AppLovinMediationProvider.UNKNOWN;
String str5 = "Unknown";
int i10 = Integer.MIN_VALUE;
if (packageManager == null) {
i().f1952f.a(c4.s(packageName), "PackageManager is null, app identity information might be inaccurate. appId");
} else {
try {
packageManager.getInstallerPackageName(packageName);
str4 = "com.android.vending";
} catch (IllegalArgumentException unused) {
i().f1952f.a(c4.s(packageName), "Error retrieving app installer package name. appId");
}
if (str4 == null) {
str4 = "manual_install";
} else if ("com.android.vending".equals(str4)) {
str4 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(a().getPackageName(), 0);
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
String obj2 = !TextUtils.isEmpty(applicationLabel) ? applicationLabel.toString() : "Unknown";
try {
str5 = packageInfo.versionName;
i10 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused2) {
str = str5;
str5 = obj2;
i().f1952f.b(c4.s(packageName), "Error retrieving package info. appId, appName", str5);
str5 = str;
this.f2523c = packageName;
this.f2526f = str4;
this.f2524d = str5;
this.f2525e = i10;
this.f2527g = 0L;
obj = this.f17669a;
y4 y4Var = (y4) obj;
z10 = true;
if (TextUtils.isEmpty(y4Var.f2538b)) {
}
l10 = y4Var.l();
switch (l10) {
}
if (l10 == 0) {
}
this.f2532l = "";
this.f2533m = "";
if (z11) {
}
list = null;
Context a10 = a();
str2 = ((y4) obj).f2555s;
e6.h.l(a10);
resources = a10.getResources();
if (!TextUtils.isEmpty(str2)) {
}
identifier = resources.getIdentifier("google_app_id", "string", str2);
if (identifier != 0) {
}
string = null;
if (!TextUtils.isEmpty(string)) {
}
this.f2532l = str3;
if (!TextUtils.isEmpty(string)) {
}
if (z10) {
}
this.f2529i = null;
f j10 = j();
j10.getClass();
e6.h.i("analytics.safelisted_events");
E = j10.E();
if (E == null) {
}
valueOf = null;
if (valueOf == null) {
}
if (list != null) {
}
this.f2529i = list;
if (packageManager != null) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.f2523c = packageName;
this.f2526f = str4;
this.f2524d = str5;
this.f2525e = i10;
this.f2527g = 0L;
obj = this.f17669a;
y4 y4Var2 = (y4) obj;
z10 = true;
z11 = TextUtils.isEmpty(y4Var2.f2538b) && "am".equals(y4Var2.f2539c);
l10 = y4Var2.l();
switch (l10) {
case 0:
i().f1960n.d("App measurement collection enabled");
break;
case 1:
i().f1958l.d("App measurement deactivated via the manifest");
break;
case 2:
i().f1960n.d("App measurement deactivated via the init parameters");
break;
case 3:
i().f1958l.d("App measurement disabled by setAnalyticsCollectionEnabled(false)");
break;
case 4:
i().f1958l.d("App measurement disabled via the manifest");
break;
case 5:
i().f1960n.d("App measurement disabled via the init parameters");
break;
case 6:
i().f1957k.d("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics");
break;
case 7:
i().f1958l.d("App measurement disabled via the global data collection setting");
break;
case 8:
i().f1958l.d("App measurement disabled due to denied storage consent");
break;
default:
i().f1958l.d("App measurement disabled");
i().f1953g.d("Invalid scion state in identity");
break;
}
if (l10 == 0) {
z10 = false;
}
this.f2532l = "";
this.f2533m = "";
if (z11) {
this.f2533m = y4Var2.f2538b;
}
list = null;
try {
Context a102 = a();
str2 = ((y4) obj).f2555s;
e6.h.l(a102);
resources = a102.getResources();
if (!TextUtils.isEmpty(str2)) {
str2 = h4.n.b(a102);
}
identifier = resources.getIdentifier("google_app_id", "string", str2);
} catch (IllegalStateException e10) {
i().f1952f.b(c4.s(packageName), "Fetching Google App Id failed with exception. appId", e10);
}
if (identifier != 0) {
try {
string = resources.getString(identifier);
} catch (Resources.NotFoundException unused4) {
}
if (!TextUtils.isEmpty(string)) {
str3 = string;
}
this.f2532l = str3;
if (!TextUtils.isEmpty(string)) {
Context a11 = a();
String str6 = ((y4) obj).f2555s;
e6.h.l(a11);
Resources resources2 = a11.getResources();
if (TextUtils.isEmpty(str6)) {
str6 = h4.n.b(a11);
}
int identifier2 = resources2.getIdentifier("admob_app_id", "string", str6);
if (identifier2 != 0) {
try {
string2 = resources2.getString(identifier2);
} catch (Resources.NotFoundException unused5) {
}
this.f2533m = string2;
}
string2 = null;
this.f2533m = string2;
}
if (z10) {
i().f1960n.b(this.f2523c, "App measurement enabled for app package, google app id", TextUtils.isEmpty(this.f2532l) ? this.f2533m : this.f2532l);
}
this.f2529i = null;
f j102 = j();
j102.getClass();
e6.h.i("analytics.safelisted_events");
E = j102.E();
if (E == null) {
j102.i().f1952f.d("Failed to load metadata: Metadata bundle is null");
} else if (E.containsKey("analytics.safelisted_events")) {
valueOf = Integer.valueOf(E.getInt("analytics.safelisted_events"));
if (valueOf == null) {
try {
String[] stringArray = j102.a().getResources().getStringArray(valueOf.intValue());
if (stringArray != null) {
list = Arrays.asList(stringArray);
}
} catch (Resources.NotFoundException e11) {
j102.i().f1952f.a(e11, "Failed to load string array from metadata: resource not found");
}
}
if (list != null) {
if (list.isEmpty()) {
i().f1957k.d("Safelisted event list is empty. Ignoring");
} else {
for (String str7 : list) {
if (!m().l0("safelisted event", str7)) {
}
}
}
if (packageManager != null) {
this.f2531k = m4.a.v(a()) ? 1 : 0;
return;
} else {
this.f2531k = 0;
return;
}
}
this.f2529i = list;
if (packageManager != null) {
}
}
valueOf = null;
if (valueOf == null) {
}
if (list != null) {
}
this.f2529i = list;
if (packageManager != null) {
}
}
string = null;
if (!TextUtils.isEmpty(string)) {
}
this.f2532l = str3;
if (!TextUtils.isEmpty(string)) {
}
if (z10) {
}
this.f2529i = null;
f j1022 = j();
j1022.getClass();
e6.h.i("analytics.safelisted_events");
E = j1022.E();
if (E == null) {
}
valueOf = null;
if (valueOf == null) {
}
if (list != null) {
}
this.f2529i = list;
if (packageManager != null) {
}
}
@Override
public final boolean x() {
return true;
}
public final String y() {
v();
e6.h.l(this.f2523c);
return this.f2523c;
}
public final String z() {
n();
v();
e6.h.l(this.f2532l);
return this.f2532l;
}
}