漫漫擼2 v1.3.9版本的 MD5 值为:e07b15db49ff38b958ff7c8268ff1c9b
以下内容为反编译后的 b3.java 源代码,内容仅作参考
package g.i.a.d.h.b;
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.openmediation.sdk.utils.constant.CommonConstants;
import g.i.a.d.g.d.kb;
import g.i.a.d.g.d.zb;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
public final class b3 extends w3 {
public String f10363c;
public String f10364d;
public int f10365e;
public String f10366f;
public long f10367g;
public final long f10368h;
public List<String> f10369i;
public int f10370j;
public String f10371k;
public String f10372l;
public String f10373m;
public b3(r4 r4Var, long j2) {
super(r4Var);
this.f10368h = j2;
}
@Override
public final boolean k() {
return true;
}
@EnsuresNonNull({"appId", "appStore", "appName", "gmpAppId", "gaAppId"})
public final void l() {
String str;
Object[] objArr;
int m2;
r4 r4Var;
List<String> list;
Bundle s;
Integer valueOf;
String packageName = this.f10663a.f10830b.getPackageName();
PackageManager packageManager = this.f10663a.f10830b.getPackageManager();
String str2 = IjkMediaMeta.IJKM_VAL_TYPE__UNKNOWN;
String str3 = "Unknown";
int i2 = Integer.MIN_VALUE;
if (packageManager == null) {
this.f10663a.b().f10578f.b("PackageManager is null, app identity information might be inaccurate. appId", j3.t(packageName));
} else {
try {
str2 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
this.f10663a.b().f10578f.b("Error retrieving app installer package name. appId", j3.t(packageName));
}
if (str2 == null) {
str2 = "manual_install";
} else if (CommonConstants.PKG_GP.equals(str2)) {
str2 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(this.f10663a.f10830b.getPackageName(), 0);
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
String charSequence = !TextUtils.isEmpty(applicationLabel) ? applicationLabel.toString() : "Unknown";
try {
str3 = packageInfo.versionName;
i2 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused2) {
str = str3;
str3 = charSequence;
this.f10663a.b().f10578f.c("Error retrieving package info. appId, appName", j3.t(packageName), str3);
str3 = str;
this.f10363c = packageName;
this.f10366f = str2;
this.f10364d = str3;
this.f10365e = i2;
this.f10367g = 0L;
if (TextUtils.isEmpty(this.f10663a.f10831c)) {
}
m2 = this.f10663a.m();
switch (m2) {
}
this.f10371k = "";
this.f10372l = "";
this.f10373m = "";
r4Var = this.f10663a;
b bVar = r4Var.f10835g;
if (objArr != null) {
}
list = null;
String b2 = b7.b(r4Var.f10830b, "google_app_id", r4Var.t);
this.f10371k = true == TextUtils.isEmpty(b2) ? b2 : "";
zb.b();
if (!this.f10663a.f10836h.v(null, w2.d0)) {
}
if (m2 == 0) {
}
this.f10369i = null;
r4 r4Var2 = this.f10663a;
b bVar2 = r4Var2.f10835g;
f fVar = r4Var2.f10836h;
Objects.requireNonNull(fVar);
d.u.u.q("analytics.safelisted_events");
s = fVar.s();
if (s != null) {
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.f10369i = list;
if (packageManager == null) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.f10363c = packageName;
this.f10366f = str2;
this.f10364d = str3;
this.f10365e = i2;
this.f10367g = 0L;
objArr = (TextUtils.isEmpty(this.f10663a.f10831c) && "am".equals(this.f10663a.f10832d)) ? 1 : null;
m2 = this.f10663a.m();
switch (m2) {
case 0:
this.f10663a.b().f10586n.a("App measurement collection enabled");
break;
case 1:
this.f10663a.b().f10584l.a("App measurement deactivated via the manifest");
break;
case 2:
this.f10663a.b().f10586n.a("App measurement deactivated via the init parameters");
break;
case 3:
this.f10663a.b().f10584l.a("App measurement disabled by setAnalyticsCollectionEnabled(false)");
break;
case 4:
this.f10663a.b().f10584l.a("App measurement disabled via the manifest");
break;
case 5:
this.f10663a.b().f10586n.a("App measurement disabled via the init parameters");
break;
case 6:
this.f10663a.b().f10583k.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.f10663a.b().f10584l.a("App measurement disabled via the global data collection setting");
break;
default:
this.f10663a.b().f10584l.a("App measurement disabled due to denied storage consent");
break;
}
this.f10371k = "";
this.f10372l = "";
this.f10373m = "";
r4Var = this.f10663a;
b bVar3 = r4Var.f10835g;
if (objArr != null) {
this.f10372l = r4Var.f10831c;
}
list = null;
try {
String b22 = b7.b(r4Var.f10830b, "google_app_id", r4Var.t);
this.f10371k = true == TextUtils.isEmpty(b22) ? b22 : "";
zb.b();
if (!this.f10663a.f10836h.v(null, w2.d0)) {
r4 r4Var3 = this.f10663a;
Context context = r4Var3.f10830b;
String str4 = r4Var3.t;
Objects.requireNonNull(context, "null reference");
Resources resources = context.getResources();
if (TextUtils.isEmpty(str4)) {
str4 = g.i.a.d.d.o.f.M4(context);
}
String W4 = g.i.a.d.d.o.f.W4("ga_app_id", resources, str4);
this.f10373m = true != TextUtils.isEmpty(W4) ? W4 : "";
if (!TextUtils.isEmpty(b22) || !TextUtils.isEmpty(W4)) {
this.f10372l = g.i.a.d.d.o.f.W4("admob_app_id", resources, str4);
}
} else if (!TextUtils.isEmpty(b22)) {
r4 r4Var4 = this.f10663a;
Context context2 = r4Var4.f10830b;
String str5 = r4Var4.t;
Objects.requireNonNull(context2, "null reference");
Resources resources2 = context2.getResources();
if (TextUtils.isEmpty(str5)) {
str5 = g.i.a.d.d.o.f.M4(context2);
}
this.f10372l = g.i.a.d.d.o.f.W4("admob_app_id", resources2, str5);
}
if (m2 == 0) {
this.f10663a.b().f10586n.c("App measurement enabled for app package, google app id", this.f10363c, TextUtils.isEmpty(this.f10371k) ? this.f10372l : this.f10371k);
}
} catch (IllegalStateException e2) {
this.f10663a.b().f10578f.c("Fetching Google App Id failed with exception. appId", j3.t(packageName), e2);
}
this.f10369i = null;
r4 r4Var22 = this.f10663a;
b bVar22 = r4Var22.f10835g;
f fVar2 = r4Var22.f10836h;
Objects.requireNonNull(fVar2);
d.u.u.q("analytics.safelisted_events");
s = fVar2.s();
if (s != null) {
fVar2.f10663a.b().f10578f.a("Failed to load metadata: Metadata bundle is null");
} else if (s.containsKey("analytics.safelisted_events")) {
valueOf = Integer.valueOf(s.getInt("analytics.safelisted_events"));
if (valueOf != null) {
try {
String[] stringArray = fVar2.f10663a.f10830b.getResources().getStringArray(valueOf.intValue());
if (stringArray != null) {
list = Arrays.asList(stringArray);
}
} catch (Resources.NotFoundException e3) {
fVar2.f10663a.b().f10578f.b("Failed to load string array from metadata: resource not found", e3);
}
}
if (list != null) {
if (list.size() == 0) {
this.f10663a.b().f10583k.a("Safelisted event list is empty. Ignoring");
} else {
for (String str6 : list) {
if (!this.f10663a.A().O("safelisted event", str6)) {
}
}
}
if (packageManager == null) {
this.f10370j = g.i.a.d.d.o.f.D2(this.f10663a.f10830b) ? 1 : 0;
return;
} else {
this.f10370j = 0;
return;
}
}
this.f10369i = list;
if (packageManager == null) {
}
}
valueOf = null;
if (valueOf != null) {
}
if (list != null) {
}
this.f10369i = list;
if (packageManager == null) {
}
}
public final String m() {
i();
Objects.requireNonNull(this.f10363c, "null reference");
return this.f10363c;
}
public final String n() {
kb.b();
if (this.f10663a.f10836h.v(null, w2.q0)) {
h();
}
i();
Objects.requireNonNull(this.f10371k, "null reference");
return this.f10371k;
}
}