GOUTY SSH V2 🌐 v4.2.5版本的 MD5 值为:635449b1ebcf1b9e08b24bdcbf1c404a
以下内容为反编译后的 c3.java 源代码,内容仅作参考
package l5;
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 c3 extends n3 {
public int A;
public String B;
public long C;
public final long D;
public List E;
public String F;
public int G;
public String H;
public String I;
public String J;
public long K;
public String L;
public String f6939y;
public String f6940z;
public c3(c4 c4Var, long j10) {
super(c4Var);
this.K = 0L;
this.L = null;
this.D = j10;
}
@Override
public final boolean q() {
return true;
}
public final void r() {
String str;
boolean z10;
int l10;
i3 i3Var;
String str2;
i3 i3Var2;
g3 g3Var;
List<String> list;
Bundle t10;
Integer valueOf;
String W;
String str3;
Object obj = this.f9316w;
c4 c4Var = (c4) obj;
String packageName = c4Var.f6945w.getPackageName();
PackageManager packageManager = c4Var.f6945w.getPackageManager();
String str4 = "Unknown";
int i10 = Integer.MIN_VALUE;
String str5 = "";
String str6 = "unknown";
if (packageManager == null) {
i3 i3Var3 = c4Var.E;
c4.k(i3Var3);
i3Var3.B.b("PackageManager is null, app identity information might be inaccurate. appId", i3.w(packageName));
} else {
try {
str6 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
i3 i3Var4 = c4Var.E;
c4.k(i3Var4);
i3Var4.B.b("Error retrieving app installer package name. appId", i3.w(packageName));
}
if (str6 == null) {
str6 = "manual_install";
} else if ("com.android.vending".equals(str6)) {
str6 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(((c4) obj).f6945w.getPackageName(), 0);
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
String obj2 = !TextUtils.isEmpty(applicationLabel) ? applicationLabel.toString() : "Unknown";
try {
str4 = packageInfo.versionName;
i10 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused2) {
str = str4;
str4 = obj2;
i3 i3Var5 = c4Var.E;
c4.k(i3Var5);
i3Var5.B.c(i3.w(packageName), str4, "Error retrieving package info. appId, appName");
str4 = str;
this.f6939y = packageName;
this.B = str6;
this.f6940z = str4;
this.A = i10;
this.C = 0L;
if (TextUtils.isEmpty(c4Var.f6946x)) {
}
l10 = c4Var.l();
switch (l10) {
}
g3Var.a(str2);
this.H = "";
this.I = "";
c4Var.getClass();
if (z10) {
}
list = null;
W = com.bumptech.glide.f.W(((c4) obj).f6945w, ((c4) obj).O);
if (TextUtils.isEmpty(W)) {
}
this.H = str5;
if (!TextUtils.isEmpty(W)) {
}
if (l10 == 0) {
}
this.E = null;
c4Var.getClass();
f fVar = c4Var.C;
fVar.getClass();
com.bumptech.glide.c.j("analytics.safelisted_events");
t10 = fVar.t();
Object obj3 = fVar.f9316w;
if (t10 != null) {
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.E = list;
if (packageManager == null) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.f6939y = packageName;
this.B = str6;
this.f6940z = str4;
this.A = i10;
this.C = 0L;
z10 = TextUtils.isEmpty(c4Var.f6946x) && "am".equals(c4Var.f6947y);
l10 = c4Var.l();
switch (l10) {
case 0:
i3Var2 = c4Var.E;
c4.k(i3Var2);
str2 = "App measurement collection enabled";
g3Var = i3Var2.J;
break;
case 1:
i3Var = c4Var.E;
c4.k(i3Var);
str2 = "App measurement deactivated via the manifest";
g3Var = i3Var.H;
break;
case 2:
i3Var2 = c4Var.E;
c4.k(i3Var2);
str2 = "App measurement deactivated via the init parameters";
g3Var = i3Var2.J;
break;
case 3:
i3Var = c4Var.E;
c4.k(i3Var);
str2 = "App measurement disabled by setAnalyticsCollectionEnabled(false)";
g3Var = i3Var.H;
break;
case 4:
i3Var = c4Var.E;
c4.k(i3Var);
str2 = "App measurement disabled via the manifest";
g3Var = i3Var.H;
break;
case 5:
i3Var2 = c4Var.E;
c4.k(i3Var2);
str2 = "App measurement disabled via the init parameters";
g3Var = i3Var2.J;
break;
case j0.k.STRING_SET_FIELD_NUMBER:
i3 i3Var6 = c4Var.E;
c4.k(i3Var6);
str2 = "App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics";
g3Var = i3Var6.G;
break;
case j0.k.DOUBLE_FIELD_NUMBER:
i3Var = c4Var.E;
c4.k(i3Var);
str2 = "App measurement disabled via the global data collection setting";
g3Var = i3Var.H;
break;
default:
i3Var = c4Var.E;
c4.k(i3Var);
str2 = "App measurement disabled due to denied storage consent";
g3Var = i3Var.H;
break;
}
g3Var.a(str2);
this.H = "";
this.I = "";
c4Var.getClass();
if (z10) {
this.I = c4Var.f6946x;
}
list = null;
try {
W = com.bumptech.glide.f.W(((c4) obj).f6945w, ((c4) obj).O);
if (TextUtils.isEmpty(W)) {
str5 = W;
}
this.H = str5;
if (!TextUtils.isEmpty(W)) {
Context context = ((c4) obj).f6945w;
String str7 = ((c4) obj).O;
com.bumptech.glide.c.m(context);
Resources resources = context.getResources();
if (TextUtils.isEmpty(str7)) {
str7 = com.bumptech.glide.c.N(context);
}
int identifier = resources.getIdentifier("admob_app_id", "string", str7);
if (identifier != 0) {
try {
str3 = resources.getString(identifier);
} catch (Resources.NotFoundException unused4) {
str3 = null;
}
this.I = str3;
}
str3 = null;
this.I = str3;
}
if (l10 == 0) {
i3 i3Var7 = ((c4) obj).E;
c4.k(i3Var7);
i3Var7.J.c(this.f6939y, TextUtils.isEmpty(this.H) ? this.I : this.H, "App measurement enabled for app package, google app id");
}
} catch (IllegalStateException e10) {
i3 i3Var8 = c4Var.E;
c4.k(i3Var8);
i3Var8.B.c(i3.w(packageName), e10, "Fetching Google App Id failed with exception. appId");
}
this.E = null;
c4Var.getClass();
f fVar2 = c4Var.C;
fVar2.getClass();
com.bumptech.glide.c.j("analytics.safelisted_events");
t10 = fVar2.t();
Object obj32 = fVar2.f9316w;
if (t10 != null) {
i3 i3Var9 = ((c4) obj32).E;
c4.k(i3Var9);
i3Var9.B.a("Failed to load metadata: Metadata bundle is null");
} else if (t10.containsKey("analytics.safelisted_events")) {
valueOf = Integer.valueOf(t10.getInt("analytics.safelisted_events"));
if (valueOf != null) {
try {
String[] stringArray = ((c4) obj32).f6945w.getResources().getStringArray(valueOf.intValue());
if (stringArray != null) {
list = Arrays.asList(stringArray);
}
} catch (Resources.NotFoundException e11) {
i3 i3Var10 = ((c4) obj32).E;
c4.k(i3Var10);
i3Var10.B.b("Failed to load string array from metadata: resource not found", e11);
}
}
if (list != null) {
if (list.isEmpty()) {
i3 i3Var11 = c4Var.E;
c4.k(i3Var11);
i3Var11.G.a("Safelisted event list is empty. Ignoring");
} else {
for (String str8 : list) {
i6 i6Var = c4Var.H;
c4.i(i6Var);
if (!i6Var.U("safelisted event", str8)) {
}
}
}
if (packageManager == null) {
this.G = c5.a.j(c4Var.f6945w) ? 1 : 0;
return;
} else {
this.G = 0;
return;
}
}
this.E = list;
if (packageManager == null) {
}
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.E = list;
if (packageManager == null) {
}
}
public final String s() {
o();
com.bumptech.glide.c.m(this.f6939y);
return this.f6939y;
}
public final String t() {
n();
o();
com.bumptech.glide.c.m(this.H);
return this.H;
}
public final void u() {
String format;
n();
c4 c4Var = (c4) this.f9316w;
r3 r3Var = c4Var.D;
c4.i(r3Var);
if (r3Var.t().f(m4.ANALYTICS_STORAGE)) {
byte[] bArr = new byte[16];
i6 i6Var = c4Var.H;
c4.i(i6Var);
i6Var.w().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
} else {
i3 i3Var = c4Var.E;
c4.k(i3Var);
i3Var.I.a("Analytics Storage consent is not granted");
format = null;
}
i3 i3Var2 = c4Var.E;
c4.k(i3Var2);
Object[] objArr = new Object[1];
objArr[0] = format == null ? "null" : "not null";
i3Var2.I.a(String.format("Resetting session stitching token to %s", objArr));
this.J = format;
c4Var.J.getClass();
this.K = System.currentTimeMillis();
}
}