导航菜单

页面标题

页面副标题

CityMall v1.42.1 - AbstractC1218a.java 源代码

正在查看: CityMall v1.42.1 应用的 AbstractC1218a.java JAVA 源代码文件

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


package r3;

import Z2.e;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import com.facebook.react.AbstractC0922o;
import java.util.Locale;
import java.util.Map;

public abstract class AbstractC1218a {

    private static final String f21634a = "a";

    private static String f21635b;

    public static String a(Context context) {
        return b(c(context));
    }

    public static String b(Integer num) {
        return "adb reverse tcp:" + num + " tcp:" + num;
    }

    private static Integer c(Context context) {
        return Integer.valueOf(context.getResources().getInteger(AbstractC0922o.f17477a));
    }

    public static String d() {
        if (j()) {
            return Build.MODEL;
        }
        return Build.MODEL + " - " + Build.VERSION.RELEASE + " - API " + Build.VERSION.SDK_INT;
    }

    public static Map e(Context context) {
        String str;
        String str2;
        if (context != null) {
            ApplicationInfo applicationInfo = context.getApplicationInfo();
            int i5 = applicationInfo.labelRes;
            String packageName = context.getPackageName();
            str = i5 == 0 ? applicationInfo.nonLocalizedLabel.toString() : context.getString(i5);
            str2 = packageName;
        } else {
            str = null;
            str2 = null;
        }
        return e.h("appDisplayName", str, "appIdentifier", str2, "platform", "android", "deviceName", Build.MODEL, "reactNativeVersion", g());
    }

    private static synchronized java.lang.String f() {
        throw new UnsupportedOperationException("Method not decompiled: r3.AbstractC1218a.f():java.lang.String");
    }

    private static String g() {
        String str;
        Map map = b.f21636a;
        StringBuilder sb = new StringBuilder();
        sb.append(map.get("major"));
        sb.append(".");
        sb.append(map.get("minor"));
        sb.append(".");
        sb.append(map.get("patch"));
        if (map.get("prerelease") != null) {
            str = "-" + map.get("prerelease");
        } else {
            str = "";
        }
        sb.append(str);
        return sb.toString();
    }

    public static String h(Context context) {
        return i(c(context).intValue());
    }

    private static String i(int i5) {
        String f5 = f();
        if (f5.equals("")) {
            f5 = j() ? "10.0.3.2" : k() ? "10.0.2.2" : "localhost";
        }
        return String.format(Locale.US, "%s:%d", f5, Integer.valueOf(i5));
    }

    private static boolean j() {
        return Build.FINGERPRINT.contains("vbox");
    }

    private static boolean k() {
        String str = Build.FINGERPRINT;
        return str.contains("generic") || str.startsWith("google/sdk_gphone");
    }
}