CCIPTV PRO v3.0.9.1版本的 MD5 值为:e78d4d980447be4a9f823314f45bbf03
以下内容为反编译后的 q3.java 源代码,内容仅作参考
package f.f.a.d.k.b;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.text.TextUtils;
import f.f.a.d.j.j.lb;
import f.f.a.d.j.j.nc;
import f.f.a.d.j.j.xc;
import java.security.MessageDigest;
import java.util.List;
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
public final class q3 extends f4 {
public String c;
public String f8803d;
public int f8804e;
public String f8805f;
public long f8806g;
public final long f8807h;
public List<String> f8808i;
public int f8809j;
public String f8810k;
public String f8811l;
public String f8812m;
public q3(c5 c5Var, long j2) {
super(c5Var);
this.f8807h = j2;
}
@Override
public final boolean m() {
return true;
}
@Override
@EnsuresNonNull({"appId", "appStore", "appName", "gmpAppId", "gaAppId"})
public final void n() {
String str;
boolean z;
int l2;
w3 w;
String str2;
List<String> z2;
String b;
String a;
String packageName = this.a.b().getPackageName();
PackageManager packageManager = this.a.b().getPackageManager();
String str3 = "Unknown";
int i2 = Integer.MIN_VALUE;
String str4 = IjkMediaMeta.IJKM_VAL_TYPE__UNKNOWN;
if (packageManager == null) {
this.a.c().o().b("PackageManager is null, app identity information might be inaccurate. appId", y3.x(packageName));
} else {
try {
str4 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
this.a.c().o().b("Error retrieving app installer package name. appId", y3.x(packageName));
}
if (str4 == null) {
str4 = "manual_install";
} else if ("com.android.vending".equals(str4)) {
str4 = "";
}
try {
PackageInfo packageInfo = packageManager.getPackageInfo(this.a.b().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.c().o().c("Error retrieving package info. appId, appName", y3.x(packageName), str3);
str3 = str;
this.c = packageName;
this.f8805f = str4;
this.f8803d = str3;
this.f8804e = i2;
this.f8806g = 0L;
if (TextUtils.isEmpty(this.a.L())) {
}
l2 = this.a.l();
y3 c = this.a.c();
switch (l2) {
}
w.a(str2);
this.f8810k = "";
this.f8811l = "";
this.f8812m = "";
this.a.f();
if (z) {
}
nc.b();
if (!this.a.z().w(null, m3.M0)) {
}
this.f8810k = true == TextUtils.isEmpty(b) ? b : "";
lb.b();
if (this.a.z().w(null, m3.i0)) {
}
}
}
} catch (PackageManager.NameNotFoundException unused3) {
str = "Unknown";
}
}
this.c = packageName;
this.f8805f = str4;
this.f8803d = str3;
this.f8804e = i2;
this.f8806g = 0L;
z = TextUtils.isEmpty(this.a.L()) && "am".equals(this.a.M());
l2 = this.a.l();
y3 c2 = this.a.c();
switch (l2) {
case 0:
w = c2.w();
str2 = "App measurement collection enabled";
break;
case 1:
w = c2.u();
str2 = "App measurement deactivated via the manifest";
break;
case 2:
w = c2.w();
str2 = "App measurement deactivated via the init parameters";
break;
case 3:
w = c2.u();
str2 = "App measurement disabled by setAnalyticsCollectionEnabled(false)";
break;
case 4:
w = c2.u();
str2 = "App measurement disabled via the manifest";
break;
case 5:
w = c2.w();
str2 = "App measurement disabled via the init parameters";
break;
case 6:
w = c2.t();
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:
w = c2.u();
str2 = "App measurement disabled via the global data collection setting";
break;
default:
w = c2.u();
str2 = "App measurement disabled due to denied storage consent";
break;
}
w.a(str2);
this.f8810k = "";
this.f8811l = "";
this.f8812m = "";
this.a.f();
if (z) {
this.f8811l = this.a.L();
}
try {
nc.b();
b = !this.a.z().w(null, m3.M0) ? m7.b(this.a.b(), "google_app_id", this.a.P()) : m7.a(this.a.b(), "google_app_id");
this.f8810k = true == TextUtils.isEmpty(b) ? b : "";
lb.b();
} catch (IllegalStateException e2) {
this.a.c().o().c("Fetching Google App Id failed with exception. appId", y3.x(packageName), e2);
}
if (this.a.z().w(null, m3.i0)) {
if (!TextUtils.isEmpty(b)) {
nc.b();
if (this.a.z().w(null, m3.M0)) {
Context b2 = this.a.b();
String P = this.a.P();
f.f.a.d.f.o.s.k(b2);
Resources resources = b2.getResources();
if (TextUtils.isEmpty(P)) {
P = v4.a(b2);
}
a = v4.b("admob_app_id", resources, P);
} else {
a = new f.f.a.d.f.o.w(this.a.b()).a("admob_app_id");
}
this.f8811l = a;
}
if (l2 == 0) {
}
this.f8808i = null;
this.a.f();
z2 = this.a.z().z("analytics.safelisted_events");
if (z2 != null) {
}
this.f8808i = z2;
if (packageManager == null) {
}
} else {
nc.b();
if (this.a.z().w(null, m3.M0)) {
Context b3 = this.a.b();
String P2 = this.a.P();
f.f.a.d.f.o.s.k(b3);
Resources resources2 = b3.getResources();
if (TextUtils.isEmpty(P2)) {
P2 = v4.a(b3);
}
String b4 = v4.b("ga_app_id", resources2, P2);
this.f8812m = true != TextUtils.isEmpty(b4) ? b4 : "";
if (!TextUtils.isEmpty(b) || !TextUtils.isEmpty(b4)) {
a = v4.b("admob_app_id", resources2, P2);
this.f8811l = a;
}
if (l2 == 0) {
this.a.c().w().c("App measurement enabled for app package, google app id", this.c, TextUtils.isEmpty(this.f8810k) ? this.f8811l : this.f8810k);
}
this.f8808i = null;
this.a.f();
z2 = this.a.z().z("analytics.safelisted_events");
if (z2 != null) {
if (z2.size() == 0) {
this.a.c().t().a("Safelisted event list is empty. Ignoring");
} else {
for (String str5 : z2) {
if (!this.a.G().l0("safelisted event", str5)) {
}
}
}
if (packageManager == null) {
this.f8809j = f.f.a.d.f.t.a.a(this.a.b()) ? 1 : 0;
return;
} else {
this.f8809j = 0;
return;
}
}
this.f8808i = z2;
if (packageManager == null) {
}
} else {
f.f.a.d.f.o.w wVar = new f.f.a.d.f.o.w(this.a.b());
String a2 = wVar.a("ga_app_id");
this.f8812m = true != TextUtils.isEmpty(a2) ? a2 : "";
if (!TextUtils.isEmpty(b) || !TextUtils.isEmpty(a2)) {
a = wVar.a("admob_app_id");
this.f8811l = a;
}
if (l2 == 0) {
}
this.f8808i = null;
this.a.f();
z2 = this.a.z().z("analytics.safelisted_events");
if (z2 != null) {
}
this.f8808i = z2;
if (packageManager == null) {
}
}
}
}
public final la o(String str) {
String str2;
Class<?> loadClass;
w3 s;
String str3;
Object invoke;
Boolean y;
h();
String p2 = p();
String q2 = q();
j();
String str4 = this.f8803d;
j();
long j2 = this.f8804e;
j();
f.f.a.d.f.o.s.k(this.f8805f);
String str5 = this.f8805f;
this.a.z().p();
j();
h();
long j3 = this.f8806g;
if (j3 == 0) {
ea G = this.a.G();
Context b = this.a.b();
String packageName = this.a.b().getPackageName();
G.h();
f.f.a.d.f.o.s.k(b);
f.f.a.d.f.o.s.g(packageName);
PackageManager packageManager = b.getPackageManager();
MessageDigest B = ea.B();
long j4 = -1;
if (B == null) {
G.a.c().o().a("Could not get MD5 instance");
} else {
if (packageManager != null) {
try {
if (G.K(b, packageName)) {
j4 = 0;
G = G;
} else {
PackageInfo e2 = f.f.a.d.f.t.c.a(b).e(G.a.b().getPackageName(), 64);
if (e2.signatures == null || e2.signatures.length <= 0) {
G.a.c().r().a("Could not get signatures");
G = G;
} else {
long C = ea.C(B.digest(e2.signatures[0].toByteArray()));
j4 = C;
G = C;
}
}
} catch (PackageManager.NameNotFoundException e3) {
G.a.c().o().b("Package name not found", e3);
}
}
j3 = 0;
this.f8806g = j3;
}
j3 = j4;
this.f8806g = j3;
}
long j5 = j3;
boolean k2 = this.a.k();
boolean z = !this.a.A().u;
h();
if (this.a.k()) {
xc.b();
if (this.a.z().w(null, m3.k0)) {
this.a.c().w().a("Disabled IID for tests.");
} else {
try {
loadClass = this.a.b().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
} catch (ClassNotFoundException unused) {
}
if (loadClass != null) {
try {
invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, this.a.b());
} catch (Exception unused2) {
s = this.a.c().s();
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) {
s = this.a.c().t();
str3 = "Failed to retrieve Firebase Instance Id";
s.a(str3);
str2 = null;
c5 c5Var = this.a;
Long valueOf = Long.valueOf(c5Var.A().f8773j.a());
long min = valueOf.longValue() != 0 ? c5Var.H : Math.min(c5Var.H, valueOf.longValue());
j();
int i2 = this.f8809j;
boolean B2 = this.a.z().B();
o4 A = this.a.A();
A.h();
boolean z2 = A.p().getBoolean("deferred_analytics_collection", false);
j();
String str6 = this.f8811l;
if (this.a.z().y("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j6 = this.f8807h;
List<String> list = this.f8808i;
lb.b();
if (!this.a.z().w(null, m3.i0)) {
}
f.f.a.d.j.j.aa.b();
return new la(p2, q2, str4, j2, str5, 37000L, j5, str, k2, z, str2, 0L, min, i2, B2, z2, str6, r25, j6, list, r29, !this.a.z().w(null, m3.E0) ? this.a.A().t().d() : "");
}
c5 c5Var2 = this.a;
Long valueOf2 = Long.valueOf(c5Var2.A().f8773j.a());
long min2 = valueOf2.longValue() != 0 ? c5Var2.H : Math.min(c5Var2.H, valueOf2.longValue());
j();
int i22 = this.f8809j;
boolean B22 = this.a.z().B();
o4 A2 = this.a.A();
A2.h();
boolean z22 = A2.p().getBoolean("deferred_analytics_collection", false);
j();
String str62 = this.f8811l;
Boolean valueOf3 = this.a.z().y("google_analytics_default_allow_ad_personalization_signals") != null ? null : Boolean.valueOf(!y.booleanValue());
long j62 = this.f8807h;
List<String> list2 = this.f8808i;
lb.b();
String s2 = !this.a.z().w(null, m3.i0) ? s() : null;
f.f.a.d.j.j.aa.b();
return new la(p2, q2, str4, j2, str5, 37000L, j5, str, k2, z, str2, 0L, min2, i22, B22, z22, str62, valueOf3, j62, list2, s2, !this.a.z().w(null, m3.E0) ? this.a.A().t().d() : "");
}
str2 = null;
c5 c5Var22 = this.a;
Long valueOf22 = Long.valueOf(c5Var22.A().f8773j.a());
long min22 = valueOf22.longValue() != 0 ? c5Var22.H : Math.min(c5Var22.H, valueOf22.longValue());
j();
int i222 = this.f8809j;
boolean B222 = this.a.z().B();
o4 A22 = this.a.A();
A22.h();
boolean z222 = A22.p().getBoolean("deferred_analytics_collection", false);
j();
String str622 = this.f8811l;
if (this.a.z().y("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j622 = this.f8807h;
List<String> list22 = this.f8808i;
lb.b();
if (!this.a.z().w(null, m3.i0)) {
}
f.f.a.d.j.j.aa.b();
return new la(p2, q2, str4, j2, str5, 37000L, j5, str, k2, z, str2, 0L, min22, i222, B222, z222, str622, valueOf3, j622, list22, s2, !this.a.z().w(null, m3.E0) ? this.a.A().t().d() : "");
}
}
}
str2 = null;
c5 c5Var222 = this.a;
Long valueOf222 = Long.valueOf(c5Var222.A().f8773j.a());
long min222 = valueOf222.longValue() != 0 ? c5Var222.H : Math.min(c5Var222.H, valueOf222.longValue());
j();
int i2222 = this.f8809j;
boolean B2222 = this.a.z().B();
o4 A222 = this.a.A();
A222.h();
boolean z2222 = A222.p().getBoolean("deferred_analytics_collection", false);
j();
String str6222 = this.f8811l;
if (this.a.z().y("google_analytics_default_allow_ad_personalization_signals") != null) {
}
long j6222 = this.f8807h;
List<String> list222 = this.f8808i;
lb.b();
if (!this.a.z().w(null, m3.i0)) {
}
f.f.a.d.j.j.aa.b();
return new la(p2, q2, str4, j2, str5, 37000L, j5, str, k2, z, str2, 0L, min222, i2222, B2222, z2222, str6222, valueOf3, j6222, list222, s2, !this.a.z().w(null, m3.E0) ? this.a.A().t().d() : "");
}
public final String p() {
j();
f.f.a.d.f.o.s.k(this.c);
return this.c;
}
public final String q() {
j();
f.f.a.d.f.o.s.k(this.f8810k);
return this.f8810k;
}
public final String r() {
j();
return this.f8811l;
}
public final String s() {
j();
f.f.a.d.f.o.s.k(this.f8812m);
return this.f8812m;
}
public final int t() {
j();
return this.f8804e;
}
public final int u() {
j();
return this.f8809j;
}
public final List<String> v() {
return this.f8808i;
}
}