导航菜单

页面标题

页面副标题

Aplazo v2.4.68 - U0.java 源代码

正在查看: Aplazo v2.4.68 应用的 U0.java JAVA 源代码文件

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


package com.veriff.sdk.internal;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.media.AudioManager;
import android.net.ConnectivityManager;
import android.net.DhcpInfo;
import android.net.NetworkInfo;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.os.Process;
import android.os.SystemClock;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.util.DisplayMetrics;
import android.view.Display;
import hi.C1468r;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.TimeZone;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function1;
import mi.AbstractC1651c;
import org.json.JSONException;
import org.json.JSONObject;

public final class U0 implements InterfaceC0535e5 {
    private final Context a;
    private final Display b;
    private final G8 c;

    public static final class a extends kotlin.jvm.internal.m implements Function1 {
        public static final a a = new a();

        public a() {
            super(1);
        }

        public final CharSequence a(int i) {
            return String.valueOf(i);
        }

        @Override
        public Object invoke(Object obj) {
            return a(((Number) obj).intValue());
        }
    }

    public static final class b extends kotlin.jvm.internal.m implements Function1 {
        public static final b a = new b();

        public b() {
            super(1);
        }

        public final CharSequence a(int i) {
            return String.valueOf(i);
        }

        @Override
        public Object invoke(Object obj) {
            return a(((Number) obj).intValue());
        }
    }

    public static final class c extends kotlin.jvm.internal.m implements Function1 {
        public static final c a = new c();

        public c() {
            super(1);
        }

        public final CharSequence a(int i) {
            return String.valueOf(i);
        }

        @Override
        public Object invoke(Object obj) {
            return a(((Number) obj).intValue());
        }
    }

    public static final class d extends AbstractC1651c {
        Object a;
        Object b;
        int d;

        public d(Continuation continuation) {
            super(continuation);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            this.b = obj;
            this.d |= Integer.MIN_VALUE;
            return U0.this.a(null, null, this);
        }
    }

    public static final class e extends mi.i implements ui.c {
        int a;
        final String c;

        public e(String str, Continuation continuation) {
            super(2, continuation);
            this.c = str;
        }

        @Override
        public final Object invoke(Fi.F f, Continuation continuation) {
            return ((e) create(f, continuation)).invokeSuspend(gi.z.a);
        }

        @Override
        public final Continuation create(Object obj, Continuation continuation) {
            return U0.this.new e(this.c, continuation);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            li.a aVar = li.a.COROUTINE_SUSPENDED;
            if (this.a != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            na.b5.d(obj);
            return U0.this.a(this.c);
        }
    }

    public U0(Context context, Display display, G8 errorReporter) {
        kotlin.jvm.internal.l.e(context, "context");
        kotlin.jvm.internal.l.e(display, "display");
        kotlin.jvm.internal.l.e(errorReporter, "errorReporter");
        this.a = context;
        this.b = display;
        this.c = errorReporter;
    }

    @Override
    public Object a(String str, Continuation continuation) {
        return a(str, "https://handshake.probity.io/v2/grasp", continuation);
    }

    public final JSONObject a(String str) {
        String c2;
        String b2;
        String b3;
        String b4;
        String b5;
        String b6;
        String d2;
        String d3;
        boolean z;
        BufferedReader bufferedReader;
        String b7;
        String b8;
        String c3;
        String b9;
        String b10;
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        DisplayMetrics displayMetrics = this.a.getResources().getDisplayMetrics();
        Configuration configuration = this.a.getResources().getConfiguration();
        String string = Settings.Secure.getString(this.a.getContentResolver(), "android_id");
        Object systemService = this.a.getSystemService("phone");
        kotlin.jvm.internal.l.c(systemService, "null cannot be cast to non-null type android.telephony.TelephonyManager");
        TelephonyManager telephonyManager = (TelephonyManager) systemService;
        Object systemService2 = this.a.getApplicationContext().getSystemService("wifi");
        kotlin.jvm.internal.l.c(systemService2, "null cannot be cast to non-null type android.net.wifi.WifiManager");
        WifiManager wifiManager = (WifiManager) systemService2;
        linkedHashMap.put("token", str);
        linkedHashMap.put("sdk.platform", "2");
        linkedHashMap.put("sdk.version", "0.1");
        c2 = AbstractC0573f5.c(this.a);
        linkedHashMap.put("sdk.aguid", c2);
        linkedHashMap.put("1", Build.MANUFACTURER);
        linkedHashMap.put("2", Build.MODEL);
        linkedHashMap.put("3", Build.BOARD);
        linkedHashMap.put("4", Build.BOOTLOADER);
        linkedHashMap.put("5", Build.BRAND);
        linkedHashMap.put("6", Build.SUPPORTED_ABIS);
        linkedHashMap.put("7", Build.DEVICE);
        linkedHashMap.put("8", Build.FINGERPRINT);
        linkedHashMap.put("9", Build.HARDWARE);
        linkedHashMap.put("10", Build.ID);
        linkedHashMap.put("11", Build.getRadioVersion());
        linkedHashMap.put("12", Build.SERIAL);
        int i = Build.VERSION.SDK_INT;
        linkedHashMap.put("13", Integer.valueOf(i));
        linkedHashMap.put("14", "Android");
        linkedHashMap.put("15", Build.VERSION.RELEASE);
        linkedHashMap.put("16", Float.valueOf(configuration.fontScale));
        linkedHashMap.put("17", Long.valueOf(Environment.getDataDirectory().getUsableSpace()));
        linkedHashMap.put("18", Long.valueOf(Environment.getDataDirectory().getTotalSpace()));
        linkedHashMap.put("19", Long.valueOf(Environment.getExternalStorageDirectory().getUsableSpace()));
        linkedHashMap.put("20", Long.valueOf(Environment.getExternalStorageDirectory().getTotalSpace()));
        linkedHashMap.put("21", Float.valueOf(displayMetrics.density));
        linkedHashMap.put("22", Integer.valueOf(displayMetrics.densityDpi));
        linkedHashMap.put("23", Integer.valueOf(displayMetrics.heightPixels));
        linkedHashMap.put("24", Float.valueOf(displayMetrics.scaledDensity));
        linkedHashMap.put("25", Integer.valueOf(displayMetrics.widthPixels));
        linkedHashMap.put("26", Float.valueOf(displayMetrics.xdpi));
        linkedHashMap.put("27", Float.valueOf(displayMetrics.ydpi));
        linkedHashMap.put("28", Integer.valueOf(this.b.getRotation()));
        if (F1.b.a(this.a, "android.permission.READ_PHONE_STATE") == 0) {
            if (i < 29) {
                try {
                    linkedHashMap.put("30", telephonyManager.getDeviceId());
                } catch (Exception e2) {
                    this.c.a(e2, "tm.deviceId", Fs.BROWSER_ID);
                }
                try {
                    linkedHashMap.put("32", telephonyManager.getSimSerialNumber());
                } catch (Exception e3) {
                    this.c.a(e3, "tm.simSerialNumber", Fs.BROWSER_ID);
                }
            }
            try {
                linkedHashMap.put("31", telephonyManager.getDeviceSoftwareVersion());
            } catch (Exception e4) {
                this.c.a(e4, "tm.deviceSoftwareVersion", Fs.BROWSER_ID);
            }
        }
        linkedHashMap.put("33", telephonyManager.getSimOperator());
        linkedHashMap.put("34", telephonyManager.getNetworkOperatorName());
        if (F1.b.a(this.a, "android.permission.ACCESS_COARSE_LOCATION") == 0 && Build.VERSION.SDK_INT < 29) {
            try {
                linkedHashMap.put("35", telephonyManager.getAllCellInfo());
            } catch (Exception e5) {
                this.c.a(e5, "tm.allCellInfo", Fs.BROWSER_ID);
            }
        }
        linkedHashMap.put("36", string);
        linkedHashMap.put("37", Long.valueOf(SystemClock.elapsedRealtime()));
        linkedHashMap.put("38", Long.valueOf(SystemClock.uptimeMillis()));
        linkedHashMap.put("39", Integer.valueOf(Settings.System.getInt(this.a.getContentResolver(), "screen_brightness", -1)));
        Runtime runtime = Runtime.getRuntime();
        linkedHashMap.put("40", Long.valueOf(runtime.totalMemory()));
        linkedHashMap.put("41", Long.valueOf(runtime.freeMemory()));
        linkedHashMap.put("42", Integer.valueOf(runtime.availableProcessors()));
        linkedHashMap.put("43", this.a.getResources().getConfiguration().locale.getCountry());
        linkedHashMap.put("44", this.a.getResources().getConfiguration().locale.getLanguage());
        linkedHashMap.put("45", TimeZone.getDefault().getID());
        linkedHashMap.put("46", System.getProperty("os.name"));
        linkedHashMap.put("47", System.getProperty("os.arch"));
        linkedHashMap.put("48", System.getProperty("os.version"));
        if (F1.b.a(this.a, "android.permission.ACCESS_WIFI_STATE") == 0) {
            try {
                WifiInfo connectionInfo = wifiManager.getConnectionInfo();
                linkedHashMap.put("49", connectionInfo.getBSSID());
                linkedHashMap.put("50", connectionInfo.getSSID());
                linkedHashMap.put("51", connectionInfo.getMacAddress());
                linkedHashMap.put("52", Integer.valueOf(connectionInfo.getIpAddress()));
                linkedHashMap.put("53", Integer.valueOf(connectionInfo.getRssi()));
                linkedHashMap.put("54", Integer.valueOf(connectionInfo.getLinkSpeed()));
            } catch (Exception e6) {
                this.c.a(e6, "tm.connectionInfo", Fs.BROWSER_ID);
            }
            try {
                DhcpInfo dhcpInfo = wifiManager.getDhcpInfo();
                b2 = AbstractC0573f5.b(dhcpInfo.ipAddress);
                linkedHashMap.put("55", b2);
                b3 = AbstractC0573f5.b(dhcpInfo.gateway);
                linkedHashMap.put("56", b3);
                b4 = AbstractC0573f5.b(dhcpInfo.dns1);
                linkedHashMap.put("57", b4);
                b5 = AbstractC0573f5.b(dhcpInfo.dns2);
                linkedHashMap.put("58", b5);
                b6 = AbstractC0573f5.b(dhcpInfo.serverAddress);
                linkedHashMap.put("59", b6);
                linkedHashMap.put("60", Integer.valueOf(dhcpInfo.netmask));
                linkedHashMap.put("61", Integer.valueOf(dhcpInfo.leaseDuration));
            } catch (Exception e7) {
                this.c.a(e7, "tm.dhcInfo", Fs.BROWSER_ID);
            }
        }
        try {
            Object systemService3 = this.a.getSystemService("connectivity");
            kotlin.jvm.internal.l.c(systemService3, "null cannot be cast to non-null type android.net.ConnectivityManager");
            NetworkInfo activeNetworkInfo = ((ConnectivityManager) systemService3).getActiveNetworkInfo();
            if (activeNetworkInfo != null) {
                linkedHashMap.put("62", activeNetworkInfo.getTypeName());
                linkedHashMap.put("63", activeNetworkInfo.getSubtypeName());
            }
            b7 = AbstractC0573f5.b(true);
            b8 = AbstractC0573f5.b(b7);
            linkedHashMap.put("64", b8);
            c3 = AbstractC0573f5.c();
            linkedHashMap.put("65", c3);
            b9 = AbstractC0573f5.b(false);
            linkedHashMap.put("66", b9);
            b10 = AbstractC0573f5.b(true);
            linkedHashMap.put("67", b10);
        } catch (Exception e8) {
            e8.printStackTrace();
        }
        try {
            bufferedReader = new BufferedReader(new FileReader("/proc/version"), 256);
        } catch (Exception unused) {
        }
        try {
            String readLine = bufferedReader.readLine();
            oa.a4.a(bufferedReader, (Throwable) null);
            linkedHashMap.put("68", readLine);
            linkedHashMap.put("69", System.getenv());
            linkedHashMap.put("70", Integer.valueOf(Process.myPid()));
            d2 = AbstractC0573f5.d(this.a);
            linkedHashMap.put("71", d2);
            try {
                Object systemService4 = this.a.getSystemService("sensor");
                kotlin.jvm.internal.l.c(systemService4, "null cannot be cast to non-null type android.hardware.SensorManager");
                List<Sensor> sensorList = ((SensorManager) systemService4).getSensorList(-1);
                JSONObject jSONObject = new JSONObject();
                for (Sensor sensor : sensorList) {
                    try {
                        jSONObject.put(sensor.getName(), sensor.getVendor() + '/' + sensor.getVersion());
                    } catch (JSONException unused2) {
                    }
                }
                linkedHashMap.put("72", jSONObject);
            } catch (Exception unused3) {
            }
            try {
                Intent registerReceiver = this.a.registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
                if (registerReceiver != null) {
                    JSONObject jSONObject2 = new JSONObject();
                    int intExtra = registerReceiver.getIntExtra("status", -1);
                    jSONObject2.put("level", registerReceiver.getIntExtra("level", -1));
                    jSONObject2.put("scale", registerReceiver.getIntExtra("scale", -1));
                    jSONObject2.put("status", intExtra);
                    if (intExtra != 2 && intExtra != 5) {
                        z = false;
                        jSONObject2.put("charging", z);
                        jSONObject2.put("chargeplug", registerReceiver.getIntExtra("plugged", -1));
                        jSONObject2.put("temperature", registerReceiver.getIntExtra("temperature", -1));
                        jSONObject2.put("voltage", registerReceiver.getIntExtra("voltage", -1));
                        jSONObject2.put("health", registerReceiver.getIntExtra("health", -1));
                        linkedHashMap.put("73", jSONObject2);
                    }
                    z = true;
                    jSONObject2.put("charging", z);
                    jSONObject2.put("chargeplug", registerReceiver.getIntExtra("plugged", -1));
                    jSONObject2.put("temperature", registerReceiver.getIntExtra("temperature", -1));
                    jSONObject2.put("voltage", registerReceiver.getIntExtra("voltage", -1));
                    jSONObject2.put("health", registerReceiver.getIntExtra("health", -1));
                    linkedHashMap.put("73", jSONObject2);
                }
            } catch (Exception unused4) {
            }
            Object systemService5 = this.a.getSystemService("audio");
            kotlin.jvm.internal.l.c(systemService5, "null cannot be cast to non-null type android.media.AudioManager");
            AudioManager audioManager = (AudioManager) systemService5;
            linkedHashMap.put("75", hi.z.J(C1468r.h(Integer.valueOf(audioManager.getStreamVolume(1)), Integer.valueOf(audioManager.getStreamVolume(3)), Integer.valueOf(audioManager.getStreamVolume(4)), Integer.valueOf(audioManager.getStreamVolume(2)), Integer.valueOf(audioManager.getStreamVolume(0)), Integer.valueOf(audioManager.getStreamVolume(5)), Integer.valueOf(audioManager.getStreamVolume(8))), ",", null, null, c.a, 30));
            linkedHashMap.put("76", hi.z.J(C1468r.h(Integer.valueOf(audioManager.getStreamMaxVolume(1)), Integer.valueOf(audioManager.getStreamMaxVolume(3)), Integer.valueOf(audioManager.getStreamMaxVolume(4)), Integer.valueOf(audioManager.getStreamMaxVolume(2)), Integer.valueOf(audioManager.getStreamMaxVolume(0)), Integer.valueOf(audioManager.getStreamMaxVolume(5)), Integer.valueOf(audioManager.getStreamMaxVolume(8))), ",", null, null, a.a, 30));
            linkedHashMap.put("77", hi.z.J(C1468r.h(Integer.valueOf(audioManager.getMode()), Integer.valueOf(audioManager.isMicrophoneMute() ? 1 : 0), Integer.valueOf(audioManager.isMusicActive() ? 1 : 0), Integer.valueOf(audioManager.isSpeakerphoneOn() ? 1 : 0), Integer.valueOf(audioManager.isBluetoothA2dpOn() ? 1 : 0)), ",", null, null, b.a, 30));
            d3 = AbstractC0573f5.d();
            linkedHashMap.put("79", d3);
            return new JSONObject(linkedHashMap);
        } finally {
        }
    }

    public U0(Q2 activity, Iu sessionServices) {
        this(activity, sessionServices.d());
        kotlin.jvm.internal.l.e(activity, "activity");
        kotlin.jvm.internal.l.e(sessionServices, "sessionServices");
    }

    public U0(com.veriff.sdk.internal.Q2 r3, com.veriff.sdk.internal.G8 r4) {
        throw new UnsupportedOperationException("Method not decompiled: com.veriff.sdk.internal.U0.<init>(com.veriff.sdk.internal.Q2, com.veriff.sdk.internal.G8):void");
    }

    public final java.lang.Object a(java.lang.String r13, java.lang.String r14, kotlin.coroutines.Continuation r15) {
        throw new UnsupportedOperationException("Method not decompiled: com.veriff.sdk.internal.U0.a(java.lang.String, java.lang.String, kotlin.coroutines.Continuation):java.lang.Object");
    }
}