正在查看: Minits v4.9.3.32 应用的 C2990q1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 C2990q1.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package h4;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.text.TextUtils;
import java.math.BigInteger;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import org.mozilla.javascript.Context;
import u3.AbstractC4419t;
public final class C2990q1 extends G1 {
public String f30480c;
public String f30481d;
public int f30482e;
public String f30483f;
public String f30484g;
public long f30485h;
public final long f30486i;
public List f30487j;
public String f30488k;
public int f30489l;
public String f30490m;
public String f30491n;
public String f30492o;
public long f30493p;
public String f30494q;
public C2990q1(C2961l2 c2961l2, long j10) {
super(c2961l2);
this.f30493p = 0L;
this.f30494q = null;
this.f30486i = j10;
}
@Override
public final void l() {
String str;
String str2;
PackageInfo packageInfo;
boolean z10;
int x10;
List y10;
String b10;
String packageName = this.f29717a.c().getPackageName();
PackageManager packageManager = this.f29717a.c().getPackageManager();
int i10 = Integer.MIN_VALUE;
String str3 = "";
String str4 = "Unknown";
String str5 = "unknown";
if (packageManager == null) {
this.f29717a.d().r().b("PackageManager is null, app identity information might be inaccurate. appId", C3044z1.z(packageName));
} else {
try {
str5 = packageManager.getInstallerPackageName(packageName);
} catch (IllegalArgumentException unused) {
this.f29717a.d().r().b("Error retrieving app installer package name. appId", C3044z1.z(packageName));
}
if (str5 == null) {
str5 = "manual_install";
} else if ("com.android.vending".equals(str5)) {
str5 = "";
}
try {
packageInfo = packageManager.getPackageInfo(this.f29717a.c().getPackageName(), 0);
} catch (PackageManager.NameNotFoundException unused2) {
str = "Unknown";
}
if (packageInfo != null) {
CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
str2 = !TextUtils.isEmpty(applicationLabel) ? applicationLabel.toString() : "Unknown";
try {
str4 = packageInfo.versionName;
i10 = packageInfo.versionCode;
} catch (PackageManager.NameNotFoundException unused3) {
str = str4;
str4 = str2;
this.f29717a.d().r().c("Error retrieving package info. appId, appName", C3044z1.z(packageName), str4);
str2 = str4;
str4 = str;
this.f30480c = packageName;
this.f30483f = str5;
this.f30481d = str4;
this.f30482e = i10;
this.f30484g = str2;
this.f30485h = 0L;
if (TextUtils.isEmpty(this.f29717a.O())) {
}
x10 = this.f29717a.x();
switch (x10) {
}
this.f30490m = "";
this.f30491n = "";
this.f29717a.b();
if (z10) {
}
b10 = AbstractC3046z3.b(this.f29717a.c(), "google_app_id", this.f29717a.R());
if (!TextUtils.isEmpty(b10)) {
}
this.f30490m = str3;
if (!TextUtils.isEmpty(b10)) {
}
if (x10 == 0) {
}
this.f30487j = null;
this.f29717a.b();
y10 = this.f29717a.z().y("analytics.safelisted_events");
if (y10 != null) {
}
this.f30487j = y10;
if (packageManager == null) {
}
}
this.f30480c = packageName;
this.f30483f = str5;
this.f30481d = str4;
this.f30482e = i10;
this.f30484g = str2;
this.f30485h = 0L;
z10 = TextUtils.isEmpty(this.f29717a.O()) && "am".equals(this.f29717a.P());
x10 = this.f29717a.x();
switch (x10) {
case 0:
this.f29717a.d().v().a("App measurement collection enabled");
break;
case 1:
this.f29717a.d().u().a("App measurement deactivated via the manifest");
break;
case 2:
this.f29717a.d().v().a("App measurement deactivated via the init parameters");
break;
case 3:
this.f29717a.d().u().a("App measurement disabled by setAnalyticsCollectionEnabled(false)");
break;
case 4:
this.f29717a.d().u().a("App measurement disabled via the manifest");
break;
case 5:
this.f29717a.d().v().a("App measurement disabled via the init parameters");
break;
case 6:
this.f29717a.d().x().a("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics");
break;
case Context.FEATURE_DYNAMIC_SCOPE:
this.f29717a.d().u().a("App measurement disabled via the global data collection setting");
break;
default:
this.f29717a.d().u().a("App measurement disabled due to denied storage consent");
break;
}
this.f30490m = "";
this.f30491n = "";
this.f29717a.b();
if (z10) {
this.f30491n = this.f29717a.O();
}
b10 = AbstractC3046z3.b(this.f29717a.c(), "google_app_id", this.f29717a.R());
if (!TextUtils.isEmpty(b10)) {
str3 = b10;
}
this.f30490m = str3;
if (!TextUtils.isEmpty(b10)) {
android.content.Context c10 = this.f29717a.c();
String R10 = this.f29717a.R();
AbstractC4419t.l(c10);
Resources resources = c10.getResources();
if (TextUtils.isEmpty(R10)) {
R10 = AbstractC2913d2.a(c10);
}
this.f30491n = AbstractC2913d2.b("admob_app_id", resources, R10);
}
if (x10 == 0) {
this.f29717a.d().v().c("App measurement enabled for app package, google app id", this.f30480c, TextUtils.isEmpty(this.f30490m) ? this.f30491n : this.f30490m);
}
this.f30487j = null;
this.f29717a.b();
y10 = this.f29717a.z().y("analytics.safelisted_events");
if (y10 != null) {
if (y10.isEmpty()) {
this.f29717a.d().x().a("Safelisted event list is empty. Ignoring");
} else {
Iterator it = y10.iterator();
while (it.hasNext()) {
if (!this.f29717a.N().R("safelisted event", (String) it.next())) {
}
}
}
if (packageManager == null) {
this.f30489l = D3.c.a(this.f29717a.c()) ? 1 : 0;
return;
} else {
this.f30489l = 0;
return;
}
}
this.f30487j = y10;
if (packageManager == null) {
}
}
}
str2 = "Unknown";
this.f30480c = packageName;
this.f30483f = str5;
this.f30481d = str4;
this.f30482e = i10;
this.f30484g = str2;
this.f30485h = 0L;
if (TextUtils.isEmpty(this.f29717a.O())) {
}
x10 = this.f29717a.x();
switch (x10) {
}
this.f30490m = "";
this.f30491n = "";
this.f29717a.b();
if (z10) {
}
b10 = AbstractC3046z3.b(this.f29717a.c(), "google_app_id", this.f29717a.R());
if (!TextUtils.isEmpty(b10)) {
}
this.f30490m = str3;
if (!TextUtils.isEmpty(b10)) {
}
if (x10 == 0) {
}
this.f30487j = null;
this.f29717a.b();
y10 = this.f29717a.z().y("analytics.safelisted_events");
if (y10 != null) {
}
this.f30487j = y10;
if (packageManager == null) {
}
}
@Override
public final boolean n() {
return true;
}
public final int o() {
i();
return this.f30489l;
}
public final int p() {
i();
return this.f30482e;
}
public final h4.f5 q(
public final String r() {
i();
return this.f30491n;
}
public final String s() {
i();
AbstractC4419t.l(this.f30480c);
return this.f30480c;
}
public final String t() {
h();
i();
AbstractC4419t.l(this.f30490m);
return this.f30490m;
}
public final List u() {
return this.f30487j;
}
public final void v() {
String format;
h();
if (this.f29717a.F().q().j(J2.ANALYTICS_STORAGE)) {
byte[] bArr = new byte[16];
this.f29717a.N().u().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
} else {
this.f29717a.d().q().a("Analytics Storage consent is not granted");
format = null;
}
this.f29717a.d().q().a(String.format("Resetting session stitching token to %s", format == null ? "null" : "not null"));
this.f30492o = format;
this.f30493p = this.f29717a.a().a();
}
public final boolean w(String str) {
String str2 = this.f30494q;
boolean z10 = false;
if (str2 != null && !str2.equals(str)) {
z10 = true;
}
this.f30494q = str;
return z10;
}
}