51黑料 v2.0版本的 MD5 值为:cc00ad70c70d95f274d15d4654c16262

以下内容为反编译后的 d.java 源代码,内容仅作参考


package g.a.b.c;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.widget.TextView;
import com.jbzd.media.fiveonehl.bean.response.ChatMsgBean;
import g.a.b.j.h;
import java.io.File;
import java.util.HashMap;
import java.util.Objects;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import net.sourceforge.pinyin4j.ChineseToPinyinResource;
public class d {
    public static volatile d f2049d;
    public String a;
    public String b = "sdk-and-lite";
    public String c;

    public d() {
        String str = g.a.b.a.d.a;
        if (TextUtils.isEmpty(str) || TextUtils.equals("cn", g.a.b.a.d.a)) {
            return;
        }
        this.b += '_' + str;
    }

    public static String a(Context context) {
        if (context != null) {
            try {
                StringBuilder sb = new StringBuilder();
                String packageName = context.getPackageName();
                PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName, 0);
                sb.append(ChineseToPinyinResource.Field.LEFT_BRACKET);
                sb.append(packageName);
                sb.append(";");
                sb.append(packageInfo.versionCode);
                sb.append(ChineseToPinyinResource.Field.RIGHT_BRACKET);
                return sb.toString();
            } catch (Exception unused) {
                return "";
            }
        }
        return "";
    }

    public static synchronized void c(String str) {
        synchronized (d.class) {
            if (TextUtils.isEmpty(str)) {
                return;
            }
            PreferenceManager.getDefaultSharedPreferences(g.a.b.h.b.a().a).edit().putString("trideskey", str).apply();
            g.a.b.b.a.a = str;
        }
    }

    public static synchronized d d() {
        d dVar;
        synchronized (d.class) {
            if (f2049d == null) {
                f2049d = new d();
            }
            dVar = f2049d;
        }
        return dVar;
    }

    public static String e() {
        String hexString = Long.toHexString(System.currentTimeMillis());
        Random random = new Random();
        StringBuilder O = g.b.a.a.a.O(hexString);
        O.append(random.nextInt(9000) + 1000);
        return O.toString();
    }

    public String b(g.a.b.h.a aVar, g.a.b.i.a aVar2) {
        String str;
        String e2;
        Context context = g.a.b.h.b.a().a;
        g.a.b.j.b a = g.a.b.j.b.a(context);
        if (TextUtils.isEmpty(this.a)) {
            StringBuilder O = g.b.a.a.a.O("Android ");
            O.append(Build.VERSION.RELEASE);
            String sb = O.toString();
            String l2 = h.l();
            String locale = context.getResources().getConfiguration().locale.toString();
            TextUtils.isEmpty("https://mobilegw.alipay.com/mgw.htm");
            String n2 = h.n(context);
            String f2 = Float.toString(new TextView(context).getTextSize());
            StringBuilder sb2 = new StringBuilder();
            sb2.append("Msp/15.7.7");
            sb2.append(" (");
            sb2.append(sb);
            sb2.append(";");
            sb2.append(l2);
            g.b.a.a.a.i0(sb2, ";", locale, ";", "https");
            sb2.append(";");
            sb2.append(n2);
            sb2.append(";");
            sb2.append(f2);
            this.a = sb2.toString();
        }
        String str2 = g.a.b.j.b.b(context).f2079d;
        Objects.requireNonNull(a);
        Context context2 = g.a.b.h.b.a().a;
        boolean z = false;
        SharedPreferences sharedPreferences = context2.getSharedPreferences("virtualImeiAndImsi", 0);
        String string = sharedPreferences.getString("virtual_imsi", null);
        if (TextUtils.isEmpty(string)) {
            if (TextUtils.isEmpty(g.a.b.i.a.a(context2).a)) {
                String c = g.a.b.h.b.a().c();
                if (!TextUtils.isEmpty(c) && c.length() >= 18) {
                    e2 = c.substring(3, 18);
                } else {
                    e2 = e();
                }
                string = e2;
            } else {
                Objects.requireNonNull(g.a.b.j.b.a(context2));
                string = "000000000000000";
            }
            sharedPreferences.edit().putString("virtual_imsi", string).apply();
        }
        Context context3 = g.a.b.h.b.a().a;
        SharedPreferences sharedPreferences2 = context3.getSharedPreferences("virtualImeiAndImsi", 0);
        String string2 = sharedPreferences2.getString("virtual_imei", null);
        if (TextUtils.isEmpty(string2)) {
            if (TextUtils.isEmpty(g.a.b.i.a.a(context3).a)) {
                string2 = e();
            } else {
                Objects.requireNonNull(g.a.b.j.b.a(context3));
                string2 = "000000000000000";
            }
            sharedPreferences2.edit().putString("virtual_imei", string2).apply();
        }
        this.c = aVar2.b;
        String replace = Build.MANUFACTURER.replace(";", " ");
        String replace2 = Build.MODEL.replace(";", " ");
        String[] strArr = {"/system/app/Superuser.apk", "/sbin/su", "/system/bin/su", "/system/xbin/su", "/data/local/xbin/su", "/data/local/bin/su", "/system/sd/xbin/su", "/system/bin/failsafe/su", "/data/local/su", "/su/bin/su"};
        int i2 = 0;
        while (true) {
            if (i2 >= 10) {
                break;
            } else if (new File(strArr[i2]).exists()) {
                z = true;
                break;
            } else {
                i2++;
            }
        }
        String str3 = a.a;
        WifiInfo connectionInfo = ((WifiManager) context.getApplicationContext().getSystemService("wifi")).getConnectionInfo();
        String ssid = connectionInfo != null ? connectionInfo.getSSID() : ChatMsgBean.SERVICE_ID;
        WifiInfo connectionInfo2 = ((WifiManager) context.getApplicationContext().getSystemService("wifi")).getConnectionInfo();
        String bssid = connectionInfo2 != null ? connectionInfo2.getBSSID() : "00";
        StringBuilder sb3 = new StringBuilder();
        g.b.a.a.a.i0(sb3, this.a, ";", str2, ";");
        g.b.a.a.a.i0(sb3, "-1;-1", ";", "1", ";");
        g.b.a.a.a.i0(sb3, "000000000000000", ";", "000000000000000", ";");
        g.b.a.a.a.i0(sb3, this.c, ";", replace, ";");
        sb3.append(replace2);
        sb3.append(";");
        sb3.append(z);
        sb3.append(";");
        g.b.a.a.a.i0(sb3, str3, ";", "-1;-1", ";");
        g.b.a.a.a.i0(sb3, this.b, ";", string, ";");
        g.b.a.a.a.i0(sb3, string2, ";", ssid, ";");
        sb3.append(bssid);
        HashMap hashMap = new HashMap();
        hashMap.put("tid", g.a.b.i.a.a(context).a);
        hashMap.put("utdid", g.a.b.h.b.a().c());
        try {
            str = (String) Executors.newFixedThreadPool(2).submit(new c(aVar, context, hashMap)).get(3000L, TimeUnit.MILLISECONDS);
        } catch (Throwable th) {
            g.a.b.a.g.c.d(aVar, "third", "GetApdidTimeout", th);
            str = "";
        }
        if (!TextUtils.isEmpty(str)) {
            sb3.append(";;;");
            sb3.append(str);
        }
        sb3.append(ChineseToPinyinResource.Field.RIGHT_BRACKET);
        return sb3.toString();
    }
}