APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Shopping List
版本号:2.74
包名称:com.icedblueberry.shoppinglisteasy

MD5 校验值:8005b9444b02324a81f85f1ef7e26f28

反编译源代码说明

s40.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package m5;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.media.AudioManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.telephony.TelephonyManager;
import android.util.DisplayMetrics;
import java.util.Locale;

public final class s40 {

    public int f16201a;

    public int f16202b;

    public final boolean f16203c;

    public final boolean f16204d;

    public final String f16205e;

    public final boolean f16206f;

    public final boolean f16207g;

    public final boolean f16208h;

    public final String f16209i;
    public final String j;

    public float f16210k;

    public int f16211l;

    public int f16212m;

    public final String f16213n;

    public s40(Context context) {
        ActivityInfo activityInfo;
        PackageInfo b10;
        String str;
        Resources resources;
        DisplayMetrics displayMetrics;
        PackageInfo b11;
        PackageManager packageManager = context.getPackageManager();
        dq.b(context);
        c(context);
        e(context);
        d(context);
        Locale locale = Locale.getDefault();
        this.f16203c = b(packageManager, "geo:0,0?q=donuts") != null;
        this.f16204d = b(packageManager, "http://www.google.com") != null;
        this.f16205e = locale.getCountry();
        i4.j1 j1Var = f4.r.A.f4914c;
        k80 k80Var = g4.p.f5423f.f5424a;
        this.f16206f = k80.j();
        this.f16207g = i5.e.b(context);
        this.f16208h = i5.e.d(context);
        this.f16209i = locale.getLanguage();
        ResolveInfo b12 = b(packageManager, "market://details?id=com.google.android.gms.ads");
        String str2 = null;
        if (b12 != null && (activityInfo = b12.activityInfo) != null) {
            try {
                b10 = j5.d.a(context).b(0, activityInfo.packageName);
            } catch (PackageManager.NameNotFoundException unused) {
            }
            if (b10 != null) {
                str = b10.versionCode + "." + activityInfo.packageName;
                this.j = str;
                b11 = j5.d.a(context).b(128, "com.android.vending");
                if (b11 != null) {
                    str2 = b11.versionCode + "." + b11.packageName;
                }
                this.f16213n = str2;
                resources = context.getResources();
                if (resources == null && (displayMetrics = resources.getDisplayMetrics()) != null) {
                    this.f16210k = displayMetrics.density;
                    this.f16211l = displayMetrics.widthPixels;
                    this.f16212m = displayMetrics.heightPixels;
                }
                return;
            }
        }
        str = null;
        this.j = str;
        b11 = j5.d.a(context).b(128, "com.android.vending");
        if (b11 != null) {
        }
        this.f16213n = str2;
        resources = context.getResources();
        if (resources == null) {
            return;
        }
        this.f16210k = displayMetrics.density;
        this.f16211l = displayMetrics.widthPixels;
        this.f16212m = displayMetrics.heightPixels;
    }

    public static ResolveInfo b(PackageManager packageManager, String str) {
        try {
            return packageManager.resolveActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)), 65536);
        } catch (Throwable th) {
            f4.r.A.f4918g.f("DeviceInfo.getResolveInfo", th);
            return null;
        }
    }

    public final t40 a() {
        return new t40(this.f16203c, this.f16204d, this.f16205e, this.f16206f, this.f16207g, this.f16208h, this.f16209i, this.j, this.f16213n, this.f16201a, this.f16202b, this.f16210k, this.f16211l, this.f16212m);
    }

    public final void c(Context context) {
        AudioManager audioManager = (AudioManager) context.getSystemService("audio");
        if (audioManager != null) {
            try {
                audioManager.getMode();
                audioManager.isMusicActive();
                audioManager.isSpeakerphoneOn();
                audioManager.getStreamVolume(3);
                audioManager.getRingerMode();
                audioManager.getStreamVolume(2);
            } catch (Throwable th) {
                f4.r.A.f4918g.f("DeviceInfo.gatherAudioInfo", th);
            }
        }
    }

    public final void d(Context context) {
        Intent registerReceiver;
        IntentFilter intentFilter = new IntentFilter("android.intent.action.BATTERY_CHANGED");
        if (((Boolean) g4.r.f5440d.f5443c.a(dq.f10719s8)).booleanValue() && Build.VERSION.SDK_INT >= 33) {
            registerReceiver = context.registerReceiver(null, intentFilter, 4);
        } else {
            registerReceiver = context.registerReceiver(null, intentFilter);
        }
        if (registerReceiver != null) {
            registerReceiver.getIntExtra("status", -1);
            registerReceiver.getIntExtra("level", -1);
            registerReceiver.getIntExtra("scale", -1);
        }
    }

    public final void e(Context context) {
        int networkType;
        TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
        ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
        telephonyManager.getNetworkOperator();
        if (i5.h.b()) {
            if (((Boolean) g4.r.f5440d.f5443c.a(dq.V6)).booleanValue()) {
                networkType = 0;
                this.f16202b = networkType;
                telephonyManager.getPhoneType();
                this.f16201a = -2;
                i4.j1 j1Var = f4.r.A.f4914c;
                if (!i4.j1.G(context, "android.permission.ACCESS_NETWORK_STATE")) {
                    NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
                    if (activeNetworkInfo != null) {
                        this.f16201a = activeNetworkInfo.getType();
                        activeNetworkInfo.getDetailedState().ordinal();
                    } else {
                        this.f16201a = -1;
                    }
                    connectivityManager.isActiveNetworkMetered();
                    return;
                }
                return;
            }
        }
        networkType = telephonyManager.getNetworkType();
        this.f16202b = networkType;
        telephonyManager.getPhoneType();
        this.f16201a = -2;
        i4.j1 j1Var2 = f4.r.A.f4914c;
        if (!i4.j1.G(context, "android.permission.ACCESS_NETWORK_STATE")) {
        }
    }

    public s40(Context context, t40 t40Var) {
        dq.b(context);
        c(context);
        e(context);
        d(context);
        String str = Build.FINGERPRINT;
        String str2 = Build.DEVICE;
        yq.a(context);
        this.f16203c = t40Var.f16529a;
        this.f16204d = t40Var.f16530b;
        this.f16205e = t40Var.f16531c;
        this.f16206f = t40Var.f16532d;
        this.f16207g = t40Var.f16533e;
        this.f16208h = t40Var.f16534f;
        this.f16209i = t40Var.f16535g;
        this.j = t40Var.f16536h;
        this.f16213n = t40Var.f16537i;
        this.f16210k = t40Var.f16539l;
        this.f16211l = t40Var.f16540m;
        this.f16212m = t40Var.f16541n;
    }
}