Souza NET DTunnel v4.2.6版本的 MD5 值为:9c33be9da88136132d2ea8a79815d093
以下内容为反编译后的 a4.java 源代码,内容仅作参考
package q5;
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 a4 extends p2 {
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 f8822u;
public String f8823v;
public int f8824w;
public String f8825x;
public long f8826y;
public final long f8827z;
public a4(y4 y4Var, long j10) {
super(y4Var);
this.G = 0L;
this.H = null;
this.f8827z = j10;
}
@Override
public final boolean A() {
return true;
}
public final String B() {
y();
com.bumptech.glide.f.j(this.f8822u);
return this.f8822u;
}
public final String C() {
q();
y();
com.bumptech.glide.f.j(this.D);
return this.D;
}
public final void D() {
String format;
String str;
q();
if (!o().C().d(k5.f9036u)) {
c().E.b("Analytics Storage consent is not granted");
format = null;
} else {
byte[] bArr = new byte[16];
p().F0().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
}
d4 c10 = c();
Object[] objArr = new Object[1];
if (format == null) {
str = "null";
} else {
str = "not null";
}
objArr[0] = str;
c10.E.b(String.format("Resetting session stitching token to %s", objArr));
this.F = format;
((c5.l) e()).getClass();
this.G = System.currentTimeMillis();
}
public final void E() {
String str;
String str2;
Object obj;
y4 y4Var;
boolean z10;
boolean z11;
int m10;
String str3;
f4 f4Var;
String str4;
boolean z12;
List<String> list;
Bundle G;
Integer valueOf;
String str5;
Resources resources;
int identifier;
String str6;
String str7;
String str8;
String packageName = a().getPackageName();
PackageManager packageManager = a().getPackageManager();
String str9 = "";
String str10 = "unknown";
String str11 = "Unknown";
int i10 = Integer.MIN_VALUE;
if (packageManager == null) {
c().f8894x.c("PackageManager is null, app identity information might be inaccurate. appId", d4.w(packageName));
} else {
try {
str10 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
c().f8894x.c("Error retrieving app installer package name. appId", d4.w(packageName));
}
if (str10 == null) {
str10 = "manual_install";
} else if ("com.android.vending".equals(str10)) {
str10 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(a().getPackageName(), 0);
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
if (TextUtils.isEmpty(applicationLabel)) {
str2 = "Unknown";
} else {
str2 = applicationLabel.toString();
}
try {
str11 = packageInfo.versionName;
i10 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused2) {
str = str11;
str11 = str2;
c().f8894x.a(d4.w(packageName), str11, "Error retrieving package info. appId, appName");
str11 = str;
this.f8822u = packageName;
this.f8825x = str10;
this.f8823v = str11;
this.f8824w = i10;
this.f8826y = 0L;
obj = this.f10942s;
y4Var = (y4) obj;
z10 = true;
if (TextUtils.isEmpty(y4Var.f9398t)) {
}
z11 = false;
m10 = y4Var.m();
d4 c10 = c();
f4 f4Var2 = c10.D;
switch (m10) {
}
f4Var2.b(str4);
if (m10 != 0) {
}
this.D = "";
this.E = "";
if (z11) {
}
list = null;
Context a6 = a();
str5 = ((y4) obj).K;
com.bumptech.glide.f.j(a6);
resources = a6.getResources();
if (!TextUtils.isEmpty(str5)) {
}
identifier = resources.getIdentifier("google_app_id", "string", str5);
if (identifier != 0) {
}
str6 = null;
if (!TextUtils.isEmpty(str6)) {
}
this.D = str9;
if (!TextUtils.isEmpty(str6)) {
}
if (z12) {
}
this.A = null;
f m11 = m();
m11.getClass();
com.bumptech.glide.f.g("analytics.safelisted_events");
G = m11.G();
if (G == null) {
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
if (z10) {
}
if (packageManager == null) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.f8822u = packageName;
this.f8825x = str10;
this.f8823v = str11;
this.f8824w = i10;
this.f8826y = 0L;
obj = this.f10942s;
y4Var = (y4) obj;
z10 = true;
if (TextUtils.isEmpty(y4Var.f9398t) && "am".equals(y4Var.f9399u)) {
z11 = true;
} else {
z11 = false;
}
m10 = y4Var.m();
d4 c102 = c();
f4 f4Var22 = c102.D;
switch (m10) {
case 0:
str3 = "App measurement collection enabled";
f4Var = c102.F;
String str12 = str3;
f4Var22 = f4Var;
str4 = str12;
break;
case 1:
str4 = "App measurement deactivated via the manifest";
break;
case 2:
str3 = "App measurement deactivated via the init parameters";
f4Var = c102.F;
String str122 = str3;
f4Var22 = f4Var;
str4 = str122;
break;
case 3:
str4 = "App measurement disabled by setAnalyticsCollectionEnabled(false)";
break;
case 4:
str4 = "App measurement disabled via the manifest";
break;
case 5:
str3 = "App measurement disabled via the init parameters";
f4Var = c102.F;
String str1222 = str3;
f4Var22 = f4Var;
str4 = str1222;
break;
case j0.k.STRING_SET_FIELD_NUMBER:
str3 = "App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics";
f4Var = c102.C;
String str12222 = str3;
f4Var22 = f4Var;
str4 = str12222;
break;
case j0.k.DOUBLE_FIELD_NUMBER:
str4 = "App measurement disabled via the global data collection setting";
break;
case 8:
str4 = "App measurement disabled due to denied storage consent";
break;
default:
f4Var22.b("App measurement disabled");
str3 = "Invalid scion state in identity";
f4Var = c().f8895y;
String str122222 = str3;
f4Var22 = f4Var;
str4 = str122222;
break;
}
f4Var22.b(str4);
if (m10 != 0) {
z12 = true;
} else {
z12 = false;
}
this.D = "";
this.E = "";
if (z11) {
this.E = y4Var.f9398t;
}
list = null;
try {
Context a62 = a();
str5 = ((y4) obj).K;
com.bumptech.glide.f.j(a62);
resources = a62.getResources();
if (!TextUtils.isEmpty(str5)) {
str5 = c5.n.b(a62);
}
identifier = resources.getIdentifier("google_app_id", "string", str5);
} catch (IllegalStateException e10) {
c().f8894x.a(d4.w(packageName), e10, "Fetching Google App Id failed with exception. appId");
}
if (identifier != 0) {
try {
str6 = resources.getString(identifier);
} catch (Resources.NotFoundException unused4) {
str6 = null;
}
if (!TextUtils.isEmpty(str6)) {
str9 = str6;
}
this.D = str9;
if (!TextUtils.isEmpty(str6)) {
Context a10 = a();
String str13 = ((y4) obj).K;
com.bumptech.glide.f.j(a10);
Resources resources2 = a10.getResources();
if (TextUtils.isEmpty(str13)) {
str13 = c5.n.b(a10);
}
int identifier2 = resources2.getIdentifier("admob_app_id", "string", str13);
if (identifier2 != 0) {
try {
str8 = resources2.getString(identifier2);
} catch (Resources.NotFoundException unused5) {
str8 = null;
}
this.E = str8;
}
str8 = null;
this.E = str8;
}
if (z12) {
f4 f4Var3 = c().F;
String str14 = this.f8822u;
if (TextUtils.isEmpty(this.D)) {
str7 = this.E;
} else {
str7 = this.D;
}
f4Var3.a(str14, str7, "App measurement enabled for app package, google app id");
}
this.A = null;
f m112 = m();
m112.getClass();
com.bumptech.glide.f.g("analytics.safelisted_events");
G = m112.G();
if (G == null) {
m112.c().f8894x.b("Failed to load metadata: Metadata bundle is null");
} else if (G.containsKey("analytics.safelisted_events")) {
valueOf = Integer.valueOf(G.getInt("analytics.safelisted_events"));
if (valueOf != null) {
try {
String[] stringArray = m112.a().getResources().getStringArray(valueOf.intValue());
if (stringArray != null) {
list = Arrays.asList(stringArray);
}
} catch (Resources.NotFoundException e11) {
m112.c().f8894x.c("Failed to load string array from metadata: resource not found", e11);
}
}
if (list != null) {
if (list.isEmpty()) {
c().C.b("Safelisted event list is empty. Ignoring");
} else {
for (String str15 : list) {
if (!p().n0("safelisted event", str15)) {
}
}
}
z10 = false;
}
if (z10) {
this.A = list;
}
if (packageManager == null) {
this.C = h5.a.j(a()) ? 1 : 0;
return;
} else {
this.C = 0;
return;
}
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
if (z10) {
}
if (packageManager == null) {
}
}
str6 = null;
if (!TextUtils.isEmpty(str6)) {
}
this.D = str9;
if (!TextUtils.isEmpty(str6)) {
}
if (z12) {
}
this.A = null;
f m1122 = m();
m1122.getClass();
com.bumptech.glide.f.g("analytics.safelisted_events");
G = m1122.G();
if (G == null) {
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
if (z10) {
}
if (packageManager == null) {
}
}
}