涩里番 v4.2版本的 MD5 值为:b7af51031b798a68c7a3a9ba5a0dff66
以下内容为反编译后的 d.java 源代码,内容仅作参考
package n2;
import af.j;
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 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 k2.e;
import v2.g;
public final class d {
public static volatile d f11854d;
public String f11855a;
public String f11856b = "sdk-and-lite";
public String f11857c;
public d() {
String str = e.f10189a;
if (TextUtils.isEmpty(str) || TextUtils.equals("cn", e.f10189a)) {
return;
}
this.f11856b += '_' + str;
}
public static String a(Context context) {
if (context != null) {
try {
StringBuilder sb2 = new StringBuilder();
String packageName = context.getPackageName();
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName, 0);
sb2.append("(");
sb2.append(packageName);
sb2.append(";");
sb2.append(packageInfo.versionCode);
sb2.append(")");
return sb2.toString();
} catch (Exception unused) {
return "";
}
}
return "";
}
public static synchronized void c(String str) {
synchronized (d.class) {
if (TextUtils.isEmpty(str)) {
return;
}
PreferenceManager.getDefaultSharedPreferences((Context) d2.d.a().f6607j).edit().putString("trideskey", str).apply();
z2.b.f18305j = str;
}
}
public static synchronized d d() {
d dVar;
synchronized (d.class) {
if (f11854d == null) {
f11854d = new d();
}
dVar = f11854d;
}
return dVar;
}
public static String e() {
String hexString = Long.toHexString(System.currentTimeMillis());
Random random = new Random();
StringBuilder r = j.r(hexString);
r.append(random.nextInt(9000) + 1000);
return r.toString();
}
public final String b(t2.a aVar, u2.a aVar2) {
String str;
String e10;
Context context = (Context) d2.d.a().f6607j;
v2.b a10 = v2.b.a(context);
if (TextUtils.isEmpty(this.f11855a)) {
StringBuilder r = j.r("Android ");
r.append(Build.VERSION.RELEASE);
String sb2 = r.toString();
String l10 = g.l();
String locale = context.getResources().getConfiguration().locale.toString();
TextUtils.isEmpty("https://mobilegw.alipay.com/mgw.htm");
String n10 = g.n(context);
String f10 = Float.toString(new TextView(context).getTextSize());
StringBuilder sb3 = new StringBuilder();
sb3.append("Msp/15.7.7");
sb3.append(" (");
sb3.append(sb2);
sb3.append(";");
sb3.append(l10);
v0.b.j(sb3, ";", locale, ";", "https");
sb3.append(";");
sb3.append(n10);
sb3.append(";");
sb3.append(f10);
this.f11855a = sb3.toString();
}
String f11 = v0.b.f(v2.b.b(context));
Objects.requireNonNull(a10);
Context context2 = (Context) d2.d.a().f6607j;
boolean z10 = false;
SharedPreferences sharedPreferences = context2.getSharedPreferences("virtualImeiAndImsi", 0);
String string = sharedPreferences.getString("virtual_imsi", null);
if (TextUtils.isEmpty(string)) {
if (TextUtils.isEmpty(u2.a.a(context2).f15452a)) {
String f12 = d2.d.a().f();
if (!TextUtils.isEmpty(f12) && f12.length() >= 18) {
e10 = f12.substring(3, 18);
} else {
e10 = e();
}
string = e10;
} else {
Objects.requireNonNull(v2.b.a(context2));
string = "000000000000000";
}
sharedPreferences.edit().putString("virtual_imsi", string).apply();
}
Context context3 = (Context) d2.d.a().f6607j;
SharedPreferences sharedPreferences2 = context3.getSharedPreferences("virtualImeiAndImsi", 0);
String string2 = sharedPreferences2.getString("virtual_imei", null);
if (TextUtils.isEmpty(string2)) {
if (TextUtils.isEmpty(u2.a.a(context3).f15452a)) {
string2 = e();
} else {
Objects.requireNonNull(v2.b.a(context3));
string2 = "000000000000000";
}
sharedPreferences2.edit().putString("virtual_imei", string2).apply();
}
this.f11857c = aVar2.f15453b;
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()) {
z10 = true;
break;
} else {
i2++;
}
}
String str2 = a10.f15833a;
WifiInfo connectionInfo = ((WifiManager) context.getApplicationContext().getSystemService("wifi")).getConnectionInfo();
String ssid = connectionInfo != null ? connectionInfo.getSSID() : "-1";
WifiInfo connectionInfo2 = ((WifiManager) context.getApplicationContext().getSystemService("wifi")).getConnectionInfo();
String bssid = connectionInfo2 != null ? connectionInfo2.getBSSID() : "00";
StringBuilder sb4 = new StringBuilder();
v0.b.j(sb4, this.f11855a, ";", f11, ";");
v0.b.j(sb4, "-1;-1", ";", "1", ";");
v0.b.j(sb4, "000000000000000", ";", "000000000000000", ";");
v0.b.j(sb4, this.f11857c, ";", replace, ";");
sb4.append(replace2);
sb4.append(";");
sb4.append(z10);
sb4.append(";");
v0.b.j(sb4, str2, ";", "-1;-1", ";");
v0.b.j(sb4, this.f11856b, ";", string, ";");
v0.b.j(sb4, string2, ";", ssid, ";");
sb4.append(bssid);
HashMap hashMap = new HashMap();
hashMap.put("tid", u2.a.a(context).f15452a);
hashMap.put("utdid", d2.d.a().f());
try {
str = (String) Executors.newFixedThreadPool(2).submit(new c(aVar, context, hashMap)).get(3000L, TimeUnit.MILLISECONDS);
} catch (Throwable th) {
l2.a.d(aVar, "third", "GetApdidTimeout", th);
str = "";
}
if (!TextUtils.isEmpty(str)) {
sb4.append(";;;");
sb4.append(str);
}
sb4.append(")");
return sb4.toString();
}
}