导航菜单

页面标题

页面副标题

Online Loans v421.2.42 - C2501q2.java 源代码

正在查看: Online Loans v421.2.42 应用的 C2501q2.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package m2;

import S1.AbstractC0856o;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.text.TextUtils;
import com.google.android.gms.internal.measurement.B7;
import com.google.android.gms.internal.measurement.C1308f7;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;

public final class C2501q2 extends AbstractC2437i2 {

    public String f21953c;

    public String f21954d;

    public int f21955e;

    public String f21956f;

    public String f21957g;

    public long f21958h;

    public final long f21959i;

    public final long f21960j;

    public List f21961k;

    public String f21962l;

    public int f21963m;

    public String f21964n;

    public String f21965o;

    public long f21966p;

    public String f21967q;

    public C2501q2(C2502q3 c2502q3, long j8, long j9) {
        super(c2502q3);
        this.f21966p = 0L;
        this.f21967q = null;
        this.f21959i = j8;
        this.f21960j = j9;
    }

    @Override
    public final boolean m() {
        return true;
    }

    @Override
    public final void n() {
        String str;
        String str2;
        PackageInfo packageInfo;
        int h8;
        List K7;
        String a8;
        C2502q3 c2502q3 = this.f21398a;
        c2502q3.a().w().c("sdkVersion bundled with app, dynamiteVersion", Long.valueOf(this.f21960j), Long.valueOf(this.f21959i));
        String packageName = c2502q3.e().getPackageName();
        PackageManager packageManager = c2502q3.e().getPackageManager();
        String str3 = "";
        int i8 = Integer.MIN_VALUE;
        String str4 = "Unknown";
        String str5 = "unknown";
        if (packageManager == null) {
            c2502q3.a().o().b("PackageManager is null, app identity information might be inaccurate. appId", C2.x(packageName));
        } else {
            try {
                str5 = packageManager.getInstallerPackageName(packageName);
            } catch (IllegalArgumentException unused) {
                this.f21398a.a().o().b("Error retrieving app installer package name. appId", C2.x(packageName));
            }
            if (str5 == null) {
                str5 = "manual_install";
            } else if ("com.android.vending".equals(str5)) {
                str5 = "";
            }
            try {
                packageInfo = packageManager.getPackageInfo(this.f21398a.e().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;
                    i8 = packageInfo.versionCode;
                } catch (PackageManager.NameNotFoundException unused3) {
                    str = str4;
                    str4 = str2;
                    this.f21398a.a().o().c("Error retrieving package info. appId, appName", C2.x(packageName), str4);
                    str2 = str4;
                    str4 = str;
                    this.f21953c = packageName;
                    this.f21956f = str5;
                    this.f21954d = str4;
                    this.f21955e = i8;
                    this.f21957g = str2;
                    this.f21958h = 0L;
                    C2502q3 c2502q32 = this.f21398a;
                    h8 = c2502q32.h();
                    if (h8 == 0) {
                    }
                    this.f21964n = "";
                    C2502q3 c2502q33 = this.f21398a;
                    c2502q33.c();
                    a8 = AbstractC2488o5.a(c2502q33.e(), "google_app_id", c2502q32.H());
                    if (!TextUtils.isEmpty(a8)) {
                    }
                    this.f21964n = str3;
                    if (h8 == 0) {
                    }
                    this.f21961k = null;
                    C2502q3 c2502q34 = this.f21398a;
                    c2502q34.c();
                    K7 = c2502q34.w().K("analytics.safelisted_events");
                    if (K7 != null) {
                    }
                    this.f21961k = K7;
                    if (packageManager == null) {
                    }
                }
                this.f21953c = packageName;
                this.f21956f = str5;
                this.f21954d = str4;
                this.f21955e = i8;
                this.f21957g = str2;
                this.f21958h = 0L;
                C2502q3 c2502q322 = this.f21398a;
                h8 = c2502q322.h();
                if (h8 == 0) {
                    this.f21398a.a().w().a("App measurement collection enabled");
                } else if (h8 == 1) {
                    this.f21398a.a().u().a("App measurement deactivated via the manifest");
                } else if (h8 == 3) {
                    this.f21398a.a().u().a("App measurement disabled by setAnalyticsCollectionEnabled(false)");
                } else if (h8 == 4) {
                    this.f21398a.a().u().a("App measurement disabled via the manifest");
                } else if (h8 == 6) {
                    this.f21398a.a().t().a("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics");
                } else if (h8 == 7) {
                    this.f21398a.a().u().a("App measurement disabled via the global data collection setting");
                } else if (h8 != 8) {
                    C2502q3 c2502q35 = this.f21398a;
                    c2502q35.a().u().a("App measurement disabled");
                    c2502q35.a().p().a("Invalid scion state in identity");
                } else {
                    this.f21398a.a().u().a("App measurement disabled due to denied storage consent");
                }
                this.f21964n = "";
                C2502q3 c2502q332 = this.f21398a;
                c2502q332.c();
                a8 = AbstractC2488o5.a(c2502q332.e(), "google_app_id", c2502q322.H());
                if (!TextUtils.isEmpty(a8)) {
                    str3 = a8;
                }
                this.f21964n = str3;
                if (h8 == 0) {
                    c2502q332.a().w().c("App measurement enabled for app package, google app id", this.f21953c, this.f21964n);
                }
                this.f21961k = null;
                C2502q3 c2502q342 = this.f21398a;
                c2502q342.c();
                K7 = c2502q342.w().K("analytics.safelisted_events");
                if (K7 != null) {
                    if (K7.isEmpty()) {
                        c2502q342.a().t().a("Safelisted event list is empty. Ignoring");
                    } else {
                        Iterator it = K7.iterator();
                        while (it.hasNext()) {
                            if (!c2502q342.C().u0("safelisted event", (String) it.next())) {
                                break;
                            }
                        }
                    }
                    if (packageManager == null) {
                        this.f21963m = Y1.a.a(c2502q342.e()) ? 1 : 0;
                        return;
                    } else {
                        this.f21963m = 0;
                        return;
                    }
                }
                this.f21961k = K7;
                if (packageManager == null) {
                }
            }
        }
        str2 = "Unknown";
        this.f21953c = packageName;
        this.f21956f = str5;
        this.f21954d = str4;
        this.f21955e = i8;
        this.f21957g = str2;
        this.f21958h = 0L;
        C2502q3 c2502q3222 = this.f21398a;
        h8 = c2502q3222.h();
        if (h8 == 0) {
        }
        this.f21964n = "";
        C2502q3 c2502q3322 = this.f21398a;
        c2502q3322.c();
        a8 = AbstractC2488o5.a(c2502q3322.e(), "google_app_id", c2502q3222.H());
        if (!TextUtils.isEmpty(a8)) {
        }
        this.f21964n = str3;
        if (h8 == 0) {
        }
        this.f21961k = null;
        C2502q3 c2502q3422 = this.f21398a;
        c2502q3422.c();
        K7 = c2502q3422.w().K("analytics.safelisted_events");
        if (K7 != null) {
        }
        this.f21961k = K7;
        if (packageManager == null) {
        }
    }

    public final q7 o(String str) {
        Class<?> loadClass;
        Object invoke;
        String str2;
        C2502q3 c2502q3;
        String str3;
        boolean z7;
        long j8;
        int i8;
        List list;
        String str4;
        C2502q3 c2502q32;
        int i9;
        int i10;
        long j9;
        ApplicationInfo c8;
        long j10;
        h();
        String q8 = q();
        String r8 = r();
        j();
        String str5 = this.f21954d;
        j();
        long j11 = this.f21955e;
        j();
        AbstractC0856o.k(this.f21956f);
        String str6 = this.f21956f;
        C2502q3 c2502q33 = this.f21398a;
        c2502q33.w().A();
        j();
        h();
        long j12 = this.f21958h;
        if (j12 == 0) {
            o7 C7 = this.f21398a.C();
            Context e8 = c2502q33.e();
            String packageName = c2502q33.e().getPackageName();
            C7.h();
            AbstractC0856o.k(e8);
            AbstractC0856o.e(packageName);
            PackageManager packageManager = e8.getPackageManager();
            MessageDigest C8 = o7.C();
            if (C8 == null) {
                C7.f21398a.a().o().a("Could not get MD5 instance");
                j12 = -1;
            } else {
                if (packageManager != null) {
                    try {
                        if (C7.S(e8, packageName)) {
                            j10 = 0;
                        } else {
                            Y1.c a8 = Y1.d.a(e8);
                            C2502q3 c2502q34 = C7.f21398a;
                            Signature[] signatureArr = a8.e(c2502q34.e().getPackageName(), 64).signatures;
                            if (signatureArr == null || signatureArr.length <= 0) {
                                c2502q34.a().r().a("Could not get signatures");
                                j10 = -1;
                            } else {
                                j10 = o7.D(C8.digest(signatureArr[0].toByteArray()));
                            }
                        }
                        j12 = j10;
                    } catch (PackageManager.NameNotFoundException e9) {
                        C7.f21398a.a().o().b("Package name not found", e9);
                    }
                }
                j12 = 0;
            }
            this.f21958h = j12;
        }
        long j13 = j12;
        C2502q3 c2502q35 = this.f21398a;
        boolean g8 = c2502q35.g();
        boolean z8 = !c2502q35.x().f21341s;
        h();
        if (c2502q35.g()) {
            B7.a();
            if (c2502q35.w().H(null, AbstractC2413f2.f21649I0)) {
                this.f21398a.a().w().a("Disabled IID for tests.");
            } else {
                try {
                    loadClass = c2502q35.e().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
                } catch (ClassNotFoundException unused) {
                }
                if (loadClass != null) {
                    try {
                        invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, this.f21398a.e());
                    } catch (Exception unused2) {
                        this.f21398a.a().s().a("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) {
                            this.f21398a.a().t().a("Failed to retrieve Firebase Instance Id");
                        }
                        C2502q3 c2502q36 = this.f21398a;
                        long a9 = c2502q36.x().f21328f.a();
                        long min = a9 != 0 ? c2502q36.f21972D : Math.min(c2502q36.f21972D, a9);
                        j();
                        int i11 = this.f21963m;
                        c2502q3 = this.f21398a;
                        boolean M7 = c2502q3.w().M();
                        Q2 x7 = c2502q3.x();
                        x7.h();
                        boolean z9 = x7.p().getBoolean("deferred_analytics_collection", false);
                        if (c2502q3.w().O("google_analytics_default_allow_ad_personalization_signals", true) == X3.GRANTED) {
                            str3 = "google_analytics_default_allow_ad_personalization_signals";
                            z7 = true;
                        } else {
                            str3 = "google_analytics_default_allow_ad_personalization_signals";
                            z7 = false;
                        }
                        long j14 = this.f21959i;
                        Boolean valueOf = Boolean.valueOf(z7);
                        List list2 = this.f21961k;
                        String l8 = c2502q3.x().w().l();
                        if (this.f21962l == null) {
                            this.f21962l = c2502q3.C().l0();
                        }
                        String str7 = this.f21962l;
                        if (c2502q3.x().w().o(Z3.ANALYTICS_STORAGE)) {
                            i8 = i11;
                            list = list2;
                            j8 = 0;
                            str4 = null;
                        } else {
                            h();
                            j8 = 0;
                            if (this.f21966p == 0) {
                                i8 = i11;
                                list = list2;
                            } else {
                                i8 = i11;
                                list = list2;
                                long a10 = c2502q3.f().a() - this.f21966p;
                                if (this.f21965o != null && a10 > 86400000 && this.f21967q == null) {
                                    p();
                                }
                            }
                            if (this.f21965o == null) {
                                p();
                            }
                            str4 = this.f21965o;
                        }
                        boolean P7 = c2502q3.w().P();
                        o7 C9 = c2502q3.C();
                        String q9 = q();
                        c2502q32 = C9.f21398a;
                        if (c2502q32.e().getPackageManager() != null) {
                            j9 = j8;
                            i9 = 0;
                        } else {
                            try {
                                i9 = 0;
                                try {
                                    c8 = Y1.d.a(c2502q32.e()).c(q9, 0);
                                } catch (PackageManager.NameNotFoundException unused4) {
                                    C2502q3 c2502q37 = C9.f21398a;
                                    c2502q37.c();
                                    c2502q37.a().u().b("PackageManager failed to find running app: app_id", q9);
                                    i10 = i9;
                                    j9 = i10;
                                    C2502q3 c2502q38 = this.f21398a;
                                    int b8 = c2502q38.x().w().b();
                                    String e10 = c2502q38.x().u().e();
                                    C1308f7.a();
                                    C2466m w7 = c2502q38.w();
                                    C2405e2 c2405e2 = AbstractC2413f2.f21667R0;
                                    if (w7.H(null, c2405e2)) {
                                    }
                                    C1308f7.a();
                                    if (c2502q38.w().H(null, c2405e2)) {
                                    }
                                    String R7 = c2502q38.w().R();
                                    String b9 = new C2420g1(c2502q38.w().O(str3, true)).b();
                                    C2502q3 c2502q39 = this.f21398a;
                                    return new q7(q8, r8, str5, j11, str6, 130000L, j13, str, g8, z8, str2, min, i8, M7, z9, valueOf, j14, list, l8, str7, str4, P7, j9, b8, e10, r46, r47, R7, b9, c2502q39.f21972D, c2502q39.N().q().b());
                                }
                            } catch (PackageManager.NameNotFoundException unused5) {
                                i9 = 0;
                            }
                            if (c8 != null) {
                                i10 = c8.targetSdkVersion;
                                j9 = i10;
                            }
                            i10 = i9;
                            j9 = i10;
                        }
                        C2502q3 c2502q382 = this.f21398a;
                        int b82 = c2502q382.x().w().b();
                        String e102 = c2502q382.x().u().e();
                        C1308f7.a();
                        C2466m w72 = c2502q382.w();
                        C2405e2 c2405e22 = AbstractC2413f2.f21667R0;
                        int I7 = w72.H(null, c2405e22) ? c2502q382.C().I() : i9;
                        C1308f7.a();
                        long J7 = c2502q382.w().H(null, c2405e22) ? c2502q382.C().J() : j8;
                        String R72 = c2502q382.w().R();
                        String b92 = new C2420g1(c2502q382.w().O(str3, true)).b();
                        C2502q3 c2502q392 = this.f21398a;
                        return new q7(q8, r8, str5, j11, str6, 130000L, j13, str, g8, z8, str2, min, i8, M7, z9, valueOf, j14, list, l8, str7, str4, P7, j9, b82, e102, I7, J7, R72, b92, c2502q392.f21972D, c2502q392.N().q().b());
                    }
                }
            }
        }
        str2 = null;
        C2502q3 c2502q362 = this.f21398a;
        long a92 = c2502q362.x().f21328f.a();
        if (a92 != 0) {
        }
        j();
        int i112 = this.f21963m;
        c2502q3 = this.f21398a;
        boolean M72 = c2502q3.w().M();
        Q2 x72 = c2502q3.x();
        x72.h();
        boolean z92 = x72.p().getBoolean("deferred_analytics_collection", false);
        if (c2502q3.w().O("google_analytics_default_allow_ad_personalization_signals", true) == X3.GRANTED) {
        }
        long j142 = this.f21959i;
        Boolean valueOf2 = Boolean.valueOf(z7);
        List list22 = this.f21961k;
        String l82 = c2502q3.x().w().l();
        if (this.f21962l == null) {
        }
        String str72 = this.f21962l;
        if (c2502q3.x().w().o(Z3.ANALYTICS_STORAGE)) {
        }
        boolean P72 = c2502q3.w().P();
        o7 C92 = c2502q3.C();
        String q92 = q();
        c2502q32 = C92.f21398a;
        if (c2502q32.e().getPackageManager() != null) {
        }
        C2502q3 c2502q3822 = this.f21398a;
        int b822 = c2502q3822.x().w().b();
        String e1022 = c2502q3822.x().u().e();
        C1308f7.a();
        C2466m w722 = c2502q3822.w();
        C2405e2 c2405e222 = AbstractC2413f2.f21667R0;
        if (w722.H(null, c2405e222)) {
        }
        C1308f7.a();
        if (c2502q3822.w().H(null, c2405e222)) {
        }
        String R722 = c2502q3822.w().R();
        String b922 = new C2420g1(c2502q3822.w().O(str3, true)).b();
        C2502q3 c2502q3922 = this.f21398a;
        return new q7(q8, r8, str5, j11, str6, 130000L, j13, str, g8, z8, str2, min, i8, M72, z92, valueOf2, j142, list, l82, str72, str4, P72, j9, b822, e1022, I7, J7, R722, b922, c2502q3922.f21972D, c2502q3922.N().q().b());
    }

    public final void p() {
        String format;
        h();
        C2502q3 c2502q3 = this.f21398a;
        if (c2502q3.x().w().o(Z3.ANALYTICS_STORAGE)) {
            byte[] bArr = new byte[16];
            c2502q3.C().q0().nextBytes(bArr);
            format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
        } else {
            c2502q3.a().v().a("Analytics Storage consent is not granted");
            format = null;
        }
        A2 v7 = c2502q3.a().v();
        Object[] objArr = new Object[1];
        objArr[0] = format == null ? "null" : "not null";
        v7.a(String.format("Resetting session stitching token to %s", objArr));
        this.f21965o = format;
        this.f21966p = c2502q3.f().a();
    }

    public final String q() {
        j();
        AbstractC0856o.k(this.f21953c);
        return this.f21953c;
    }

    public final String r() {
        h();
        j();
        AbstractC0856o.k(this.f21964n);
        return this.f21964n;
    }

    public final String s() {
        j();
        AbstractC0856o.k(this.f21957g);
        return this.f21957g;
    }

    public final int t() {
        j();
        return this.f21955e;
    }

    public final long u() {
        return this.f21960j;
    }

    public final int v() {
        j();
        return this.f21963m;
    }

    public final List w() {
        return this.f21961k;
    }

    public final boolean x(String str) {
        String str2 = this.f21967q;
        boolean z7 = false;
        if (str2 != null && !str2.equals(str)) {
            z7 = true;
        }
        this.f21967q = str;
        return z7;
    }
}