FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581
以下内容为反编译后的 h3.java 源代码,内容仅作参考
package i.d.a.d.k.b;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.content.res.Resources;
import android.os.Environmenu;
import android.text.TextUtils;
import i.d.a.d.j.j.ed;
import i.d.a.d.j.j.me;
import i.d.a.d.j.j.oc;
import java.security.MessageDigest;
import java.util.List;
public final class h3 extends f4 {
public String c;
public String d;
public int e;
public String f6705f;
public long f6706g;
public final long f6707h;
public List<String> f6708i;
public int f6709j;
public String f6710k;
public String f6711l;
public String f6712m;
public h3(b5 b5Var, long j2) {
super(b5Var);
this.f6707h = j2;
}
@Override
public final void l() {
String str;
boolean z;
int x;
o3 v;
String str2;
List<String> y;
String c;
String b;
String packageName = this.a.f().getPackageName();
PackageManager packageManager = this.a.f().getPackageManager();
String str3 = "Unknown";
int i2 = Integer.MIN_VALUE;
String str4 = Environmenu.MEDIA_UNKNOWN;
if (packageManager == null) {
this.a.b().r().b("PackageManager is null, app identity information might be inaccurate. appId", q3.z(packageName));
} else {
try {
str4 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
this.a.b().r().b("Error retrieving app installer package name. appId", q3.z(packageName));
}
if (str4 == null) {
str4 = "manual_install";
} else if ("com.android.vending".equals(str4)) {
str4 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(this.a.f().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.a.b().r().c("Error retrieving package info. appId, appName", q3.z(packageName), str3);
str3 = str;
this.c = packageName;
this.f6705f = str4;
this.d = str3;
this.e = i2;
this.f6706g = 0L;
if (TextUtils.isEmpty(this.a.O())) {
}
x = this.a.x();
q3 b2 = this.a.b();
switch (x) {
}
v.a(str2);
this.f6710k = "";
this.f6711l = "";
this.f6712m = "";
this.a.d();
if (z) {
}
c = o7.c(this.a.f(), "google_app_id", this.a.R());
this.f6710k = true == TextUtils.isEmpty(c) ? c : "";
ed.b();
if (this.a.z().B(null, c3.d0)) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.c = packageName;
this.f6705f = str4;
this.d = str3;
this.e = i2;
this.f6706g = 0L;
z = TextUtils.isEmpty(this.a.O()) && "am".equals(this.a.P());
x = this.a.x();
q3 b22 = this.a.b();
switch (x) {
case 0:
v = b22.v();
str2 = "App measurement collection enabled";
break;
case 1:
v = b22.u();
str2 = "App measurement deactivated via the manifest";
break;
case 2:
v = b22.v();
str2 = "App measurement deactivated via the init parameters";
break;
case 3:
v = b22.u();
str2 = "App measurement disabled by setAnalyticsCollectionEnabled(false)";
break;
case 4:
v = b22.u();
str2 = "App measurement disabled via the manifest";
break;
case 5:
v = b22.v();
str2 = "App measurement disabled via the init parameters";
break;
case 6:
v = b22.x();
str2 = "App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics";
break;
case 7:
v = b22.u();
str2 = "App measurement disabled via the global data collection setting";
break;
default:
v = b22.u();
str2 = "App measurement disabled due to denied storage consent";
break;
}
v.a(str2);
this.f6710k = "";
this.f6711l = "";
this.f6712m = "";
this.a.d();
if (z) {
this.f6711l = this.a.O();
}
try {
c = o7.c(this.a.f(), "google_app_id", this.a.R());
this.f6710k = true == TextUtils.isEmpty(c) ? c : "";
ed.b();
} catch (IllegalStateException e) {
this.a.b().r().c("Fetching Google App Id failed with exception. appId", q3.z(packageName), e);
}
if (this.a.z().B(null, c3.d0)) {
if (!TextUtils.isEmpty(c)) {
Context f2 = this.a.f();
String R = this.a.R();
i.d.a.d.f.q.q.k(f2);
Resources resources = f2.getResources();
if (TextUtils.isEmpty(R)) {
R = u4.a(f2);
}
b = u4.b("admob_app_id", resources, R);
this.f6711l = b;
}
if (x == 0) {
}
this.f6708i = null;
this.a.d();
y = this.a.z().y("analytics.safelisted_events");
if (y != null) {
}
this.f6708i = y;
if (packageManager != null) {
}
} else {
Context f3 = this.a.f();
String R2 = this.a.R();
i.d.a.d.f.q.q.k(f3);
Resources resources2 = f3.getResources();
if (TextUtils.isEmpty(R2)) {
R2 = u4.a(f3);
}
String b3 = u4.b("ga_app_id", resources2, R2);
this.f6712m = true != TextUtils.isEmpty(b3) ? b3 : "";
if (!TextUtils.isEmpty(c) || !TextUtils.isEmpty(b3)) {
b = u4.b("admob_app_id", resources2, R2);
this.f6711l = b;
}
if (x == 0) {
this.a.b().v().c("App measurement enabled for app package, google app id", this.c, TextUtils.isEmpty(this.f6710k) ? this.f6711l : this.f6710k);
}
this.f6708i = null;
this.a.d();
y = this.a.z().y("analytics.safelisted_events");
if (y != null) {
if (y.size() == 0) {
this.a.b().x().a("Safelisted event list is empty. Ignoring");
} else {
for (String str5 : y) {
if (!this.a.N().P("safelisted event", str5)) {
}
}
}
if (packageManager != null) {
this.f6709j = i.d.a.d.f.u.a.a(this.a.f()) ? 1 : 0;
return;
} else {
this.f6709j = 0;
return;
}
}
this.f6708i = y;
if (packageManager != null) {
}
}
}
@Override
public final boolean n() {
return true;
}
public final int o() {
i();
return this.f6709j;
}
public final int p() {
i();
return this.e;
}
public final na q(String str) {
String str2;
Class<?> loadClass;
o3 y;
String str3;
Object invoke;
long a;
String str4;
long min;
Boolean t;
h();
String s = s();
String u = u();
i();
String str5 = this.d;
i();
long j2 = this.e;
i();
i.d.a.d.f.q.q.k(this.f6705f);
String str6 = this.f6705f;
this.a.z().q();
i();
h();
long j3 = this.f6706g;
if (j3 == 0) {
ia N = this.a.N();
Context f2 = this.a.f();
String packageName = this.a.f().getPackageName();
N.h();
i.d.a.d.f.q.q.k(f2);
i.d.a.d.f.q.q.g(packageName);
PackageManager packageManager = f2.getPackageManager();
MessageDigest s2 = ia.s();
long j4 = -1;
if (s2 == null) {
N.a.b().r().a("Could not get MD5 instance");
} else {
if (packageManager != null) {
try {
if (N.U(f2, packageName)) {
j4 = 0;
N = N;
} else {
Signature[] signatureArr = i.d.a.d.f.u.c.a(f2).e(N.a.f().getPackageName(), 64).signatures;
if (signatureArr == null || signatureArr.length <= 0) {
N.a.b().w().a("Could not get signatures");
N = N;
} else {
long q0 = ia.q0(s2.digest(signatureArr[0].toByteArray()));
j4 = q0;
N = q0;
}
}
} catch (PackageManager.NameNotFoundException e) {
N.a.b().r().b("Package name not found", e);
}
}
j3 = 0;
this.f6706g = j3;
}
j3 = j4;
this.f6706g = j3;
}
long j5 = j3;
boolean o2 = this.a.o();
boolean z = !this.a.F().f6682p;
h();
if (this.a.o()) {
me.b();
if (this.a.z().B(null, c3.f0)) {
this.a.b().v().a("Disabled IID for tests.");
} else {
try {
loadClass = this.a.f().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
} catch (ClassNotFoundException unused) {
}
if (loadClass != null) {
try {
invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, this.a.f());
} catch (Exception unused2) {
y = this.a.b().y();
str3 = "Failed to obtain Firebase Analytics instance";
}
if (invoke != null) {
try {
str2 = (String) loadClass.getDeclaredMethod("getFirebaseInstanceId", new Class[0]).invoke(invoke, new Object[0]);
} catch (Exception unused3) {
y = this.a.b().x();
str3 = "Failed to retrieve Firebase Instance Id";
y.a(str3);
str2 = null;
b5 b5Var = this.a;
a = b5Var.F().e.a();
if (a != 0) {
}
i();
int i2 = this.f6709j;
boolean A = this.a.z().A();
g4 F = this.a.F();
F.h();
boolean z2 = F.o().getBoolean("deferred_analytics_collection", false);
i();
String str7 = this.f6711l;
if (this.a.z().t("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j6 = this.f6707h;
List<String> list = this.f6708i;
ed.b();
return new na(str4, u, str5, j2, str6, 46000L, j5, str, o2, z, str2, 0L, min, i2, A, z2, str7, r25, j6, list, !this.a.z().B(null, c3.d0) ? t() : null, this.a.F().q().i());
}
b5 b5Var2 = this.a;
a = b5Var2.F().e.a();
if (a != 0) {
str4 = s;
min = b5Var2.G;
} else {
str4 = s;
min = Math.min(b5Var2.G, a);
}
i();
int i22 = this.f6709j;
boolean A2 = this.a.z().A();
g4 F2 = this.a.F();
F2.h();
boolean z22 = F2.o().getBoolean("deferred_analytics_collection", false);
i();
String str72 = this.f6711l;
Boolean valueOf = this.a.z().t("google_analytics_default_allow_ad_personalization_signals") != null ? null : Boolean.valueOf(!t.booleanValue());
long j62 = this.f6707h;
List<String> list2 = this.f6708i;
ed.b();
return new na(str4, u, str5, j2, str6, 46000L, j5, str, o2, z, str2, 0L, min, i22, A2, z22, str72, valueOf, j62, list2, !this.a.z().B(null, c3.d0) ? t() : null, this.a.F().q().i());
}
str2 = null;
b5 b5Var22 = this.a;
a = b5Var22.F().e.a();
if (a != 0) {
}
i();
int i222 = this.f6709j;
boolean A22 = this.a.z().A();
g4 F22 = this.a.F();
F22.h();
boolean z222 = F22.o().getBoolean("deferred_analytics_collection", false);
i();
String str722 = this.f6711l;
if (this.a.z().t("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j622 = this.f6707h;
List<String> list22 = this.f6708i;
ed.b();
return new na(str4, u, str5, j2, str6, 46000L, j5, str, o2, z, str2, 0L, min, i222, A22, z222, str722, valueOf, j622, list22, !this.a.z().B(null, c3.d0) ? t() : null, this.a.F().q().i());
}
}
}
str2 = null;
b5 b5Var222 = this.a;
a = b5Var222.F().e.a();
if (a != 0) {
}
i();
int i2222 = this.f6709j;
boolean A222 = this.a.z().A();
g4 F222 = this.a.F();
F222.h();
boolean z2222 = F222.o().getBoolean("deferred_analytics_collection", false);
i();
String str7222 = this.f6711l;
if (this.a.z().t("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j6222 = this.f6707h;
List<String> list222 = this.f6708i;
ed.b();
return new na(str4, u, str5, j2, str6, 46000L, j5, str, o2, z, str2, 0L, min, i2222, A222, z2222, str7222, valueOf, j6222, list222, !this.a.z().B(null, c3.d0) ? t() : null, this.a.F().q().i());
}
public final String r() {
i();
return this.f6711l;
}
public final String s() {
i();
i.d.a.d.f.q.q.k(this.c);
return this.c;
}
public final String t() {
i();
i.d.a.d.f.q.q.k(this.f6712m);
return this.f6712m;
}
public final String u() {
oc.b();
if (this.a.z().B(null, c3.q0)) {
h();
}
i();
i.d.a.d.f.q.q.k(this.f6710k);
return this.f6710k;
}
public final List<String> v() {
return this.f6708i;
}
}