导航菜单

页面标题

页面副标题

CashVia v1.6.02 - C0346C.java 源代码

正在查看: CashVia v1.6.02 应用的 C0346C.java JAVA 源代码文件

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


package d1;

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 androidx.constraintlayout.core.motion.utils.TypedValues;
import androidx.core.os.EnvironmentCompat;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;

public final class C0346C extends AbstractC0389t {

    public long f5648A;

    public String f5649B;

    public String f5650d;

    public String f5651e;

    public int f5652f;

    public String f5653g;

    public long f5654i;

    public long f5655t;
    public List u;
    public String v;

    public int f5656w;

    public String f5657x;

    public String f5658y;

    public String f5659z;

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

    public final String u() {
        r();
        J0.t.i(this.f5650d);
        return this.f5650d;
    }

    public final String v() {
        n();
        r();
        J0.t.i(this.f5657x);
        return this.f5657x;
    }

    public final void w() {
        String format;
        n();
        if (l().z().i(EnumC0386r0.ANALYTICS_STORAGE)) {
            byte[] bArr = new byte[16];
            m().C0().nextBytes(bArr);
            format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
        } else {
            c().f5695y.d("Analytics Storage consent is not granted");
            format = null;
        }
        c().f5695y.d("Resetting session stitching token to ".concat(format == null ? "null" : "not null"));
        this.f5659z = format;
        ((C0369i0) this.f1299b).f6024y.getClass();
        this.f5648A = System.currentTimeMillis();
    }

    public final void x() {
        String str;
        boolean z3;
        int l;
        boolean z4;
        List list;
        Bundle D3;
        Integer valueOf;
        Resources resources;
        int identifier;
        String string;
        String string2;
        C0369i0 c0369i0 = (C0369i0) this.f1299b;
        Context context = c0369i0.f6013a;
        String str2 = c0369i0.f5998D;
        String packageName = context.getPackageName();
        Context context2 = c0369i0.f6013a;
        PackageManager packageManager = context2.getPackageManager();
        String str3 = "";
        String str4 = EnvironmentCompat.MEDIA_UNKNOWN;
        String str5 = "Unknown";
        int i4 = Integer.MIN_VALUE;
        if (packageManager == null) {
            c().f5690g.b(G.r(packageName), "PackageManager is null, app identity information might be inaccurate. appId");
        } else {
            try {
                str4 = packageManager.getInstallerPackageName(packageName);
            } catch (IllegalArgumentException unused) {
                c().f5690g.b(G.r(packageName), "Error retrieving app installer package name. appId");
            }
            if (str4 == null) {
                str4 = "manual_install";
            } else if ("com.android.vending".equals(str4)) {
                str4 = "";
            }
            try {
                PackageInfo packageInfo = packageManager.getPackageInfo(context2.getPackageName(), 0);
                if (packageInfo != null) {
                    CharSequence applicationLabel = packageManager.getApplicationLabel(packageInfo.applicationInfo);
                    String obj = !TextUtils.isEmpty(applicationLabel) ? applicationLabel.toString() : "Unknown";
                    try {
                        str5 = packageInfo.versionName;
                        i4 = packageInfo.versionCode;
                    } catch (PackageManager.NameNotFoundException unused2) {
                        str = str5;
                        str5 = obj;
                        c().f5690g.c(G.r(packageName), "Error retrieving package info. appId, appName", str5);
                        str5 = str;
                        this.f5650d = packageName;
                        this.f5653g = str4;
                        this.f5651e = str5;
                        this.f5652f = i4;
                        this.f5654i = 0L;
                        String str6 = c0369i0.f6014b;
                        if (TextUtils.isEmpty(str6)) {
                        }
                        l = c0369i0.l();
                        switch (l) {
                        }
                        if (l == 0) {
                        }
                        this.f5657x = "";
                        this.f5658y = "";
                        if (z3) {
                        }
                        list = null;
                        J0.t.i(context2);
                        resources = context2.getResources();
                        identifier = resources.getIdentifier("google_app_id", TypedValues.Custom.S_STRING, TextUtils.isEmpty(str2) ? str2 : AbstractC0392u0.b(context2));
                        if (identifier != 0) {
                        }
                        string = null;
                        if (!TextUtils.isEmpty(string)) {
                        }
                        this.f5657x = str3;
                        if (!TextUtils.isEmpty(string)) {
                        }
                        if (z4) {
                        }
                        this.u = null;
                        C0358d c0358d = c0369i0.f6019g;
                        c0358d.getClass();
                        J0.t.e("analytics.safelisted_events");
                        D3 = c0358d.D();
                        if (D3 == null) {
                        }
                        valueOf = null;
                        if (valueOf != null) {
                        }
                        if (list != null) {
                        }
                        this.u = list;
                        if (packageManager != null) {
                        }
                    }
                }
            } catch (PackageManager.NameNotFoundException unused3) {
                str = "Unknown";
            }
        }
        this.f5650d = packageName;
        this.f5653g = str4;
        this.f5651e = str5;
        this.f5652f = i4;
        this.f5654i = 0L;
        String str62 = c0369i0.f6014b;
        z3 = TextUtils.isEmpty(str62) && "am".equals(c0369i0.f6015c);
        l = c0369i0.l();
        switch (l) {
            case 0:
                c().f5696z.d("App measurement collection enabled");
                break;
            case 1:
                c().f5694x.d("App measurement deactivated via the manifest");
                break;
            case 2:
                c().f5696z.d("App measurement deactivated via the init parameters");
                break;
            case 3:
                c().f5694x.d("App measurement disabled by setAnalyticsCollectionEnabled(false)");
                break;
            case 4:
                c().f5694x.d("App measurement disabled via the manifest");
                break;
            case 5:
                c().f5696z.d("App measurement disabled via the init parameters");
                break;
            case 6:
                c().f5693w.d("App measurement deactivated via resources. This method is being deprecated. Please refer to https://firebase.google.com/support/guides/disable-analytics");
                break;
            case 7:
                c().f5694x.d("App measurement disabled via the global data collection setting");
                break;
            case 8:
                c().f5694x.d("App measurement disabled due to denied storage consent");
                break;
            default:
                c().f5694x.d("App measurement disabled");
                c().f5691i.d("Invalid scion state in identity");
                break;
        }
        z4 = l == 0;
        this.f5657x = "";
        this.f5658y = "";
        if (z3) {
            this.f5658y = str62;
        }
        list = null;
        try {
            J0.t.i(context2);
            resources = context2.getResources();
            identifier = resources.getIdentifier("google_app_id", TypedValues.Custom.S_STRING, TextUtils.isEmpty(str2) ? str2 : AbstractC0392u0.b(context2));
        } catch (IllegalStateException e4) {
            c().f5690g.c(G.r(packageName), "Fetching Google App Id failed with exception. appId", e4);
        }
        if (identifier != 0) {
            try {
                string = resources.getString(identifier);
            } catch (Resources.NotFoundException unused4) {
            }
            if (!TextUtils.isEmpty(string)) {
                str3 = string;
            }
            this.f5657x = str3;
            if (!TextUtils.isEmpty(string)) {
                J0.t.i(context2);
                Resources resources2 = context2.getResources();
                if (TextUtils.isEmpty(str2)) {
                    str2 = AbstractC0392u0.b(context2);
                }
                int identifier2 = resources2.getIdentifier("admob_app_id", TypedValues.Custom.S_STRING, str2);
                if (identifier2 != 0) {
                    try {
                        string2 = resources2.getString(identifier2);
                    } catch (Resources.NotFoundException unused5) {
                    }
                    this.f5658y = string2;
                }
                string2 = null;
                this.f5658y = string2;
            }
            if (z4) {
                c().f5696z.c(this.f5650d, "App measurement enabled for app package, google app id", TextUtils.isEmpty(this.f5657x) ? this.f5658y : this.f5657x);
            }
            this.u = null;
            C0358d c0358d2 = c0369i0.f6019g;
            c0358d2.getClass();
            J0.t.e("analytics.safelisted_events");
            D3 = c0358d2.D();
            if (D3 == null) {
                c0358d2.c().f5690g.d("Failed to load metadata: Metadata bundle is null");
            } else if (D3.containsKey("analytics.safelisted_events")) {
                valueOf = Integer.valueOf(D3.getInt("analytics.safelisted_events"));
                if (valueOf != null) {
                    try {
                        String[] stringArray = ((C0369i0) c0358d2.f1299b).f6013a.getResources().getStringArray(valueOf.intValue());
                        if (stringArray != null) {
                            list = Arrays.asList(stringArray);
                        }
                    } catch (Resources.NotFoundException e5) {
                        c0358d2.c().f5690g.b(e5, "Failed to load string array from metadata: resource not found");
                    }
                }
                if (list != null) {
                    if (list.isEmpty()) {
                        c().f5693w.d("Safelisted event list is empty. Ignoring");
                    } else {
                        Iterator it = list.iterator();
                        while (it.hasNext()) {
                            if (!m().m0("safelisted event", (String) it.next())) {
                            }
                        }
                    }
                    if (packageManager != null) {
                        this.f5656w = S0.a.k(context2) ? 1 : 0;
                        return;
                    } else {
                        this.f5656w = 0;
                        return;
                    }
                }
                this.u = list;
                if (packageManager != null) {
                }
            }
            valueOf = null;
            if (valueOf != null) {
            }
            if (list != null) {
            }
            this.u = list;
            if (packageManager != null) {
            }
        }
        string = null;
        if (!TextUtils.isEmpty(string)) {
        }
        this.f5657x = str3;
        if (!TextUtils.isEmpty(string)) {
        }
        if (z4) {
        }
        this.u = null;
        C0358d c0358d22 = c0369i0.f6019g;
        c0358d22.getClass();
        J0.t.e("analytics.safelisted_events");
        D3 = c0358d22.D();
        if (D3 == null) {
        }
        valueOf = null;
        if (valueOf != null) {
        }
        if (list != null) {
        }
        this.u = list;
        if (packageManager != null) {
        }
    }
}