小爽音 v1.3版本的 MD5 值为:448355de843c720d712f30c7cdfbd99b
以下内容为反编译后的 d.java 源代码,内容仅作参考
package h.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.xsy.bean.response.MessageDetailBean;
import h.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 f2378d;
public String a;
public String b = "sdk-and-lite";
public String c;
public d() {
String str = h.a.b.a.d.a;
if (TextUtils.isEmpty(str) || TextUtils.equals("cn", h.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(h.a.b.h.b.a().a).edit().putString("trideskey", str).apply();
h.a.b.b.a.a = str;
}
}
public static synchronized d d() {
d dVar;
synchronized (d.class) {
if (f2378d == null) {
f2378d = new d();
}
dVar = f2378d;
}
return dVar;
}
public static String e() {
String hexString = Long.toHexString(System.currentTimeMillis());
Random random = new Random();
StringBuilder P = h.b.a.a.a.P(hexString);
P.append(random.nextInt(9000) + 1000);
return P.toString();
}
public String b(h.a.b.h.a aVar, h.a.b.i.a aVar2) {
String str;
String e2;
Context context = h.a.b.h.b.a().a;
h.a.b.j.b a = h.a.b.j.b.a(context);
if (TextUtils.isEmpty(this.a)) {
StringBuilder P = h.b.a.a.a.P("Android ");
P.append(Build.VERSION.RELEASE);
String sb = P.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);
h.b.a.a.a.j0(sb2, ";", locale, ";", "https");
sb2.append(";");
sb2.append(n2);
sb2.append(";");
sb2.append(f2);
this.a = sb2.toString();
}
String str2 = h.a.b.j.b.b(context).f2410d;
Objects.requireNonNull(a);
Context context2 = h.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(h.a.b.i.a.a(context2).a)) {
String c = h.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(h.a.b.j.b.a(context2));
string = "000000000000000";
}
sharedPreferences.edit().putString("virtual_imsi", string).apply();
}
Context context3 = h.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(h.a.b.i.a.a(context3).a)) {
string2 = e();
} else {
Objects.requireNonNull(h.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() : MessageDetailBean.SERVICE_ID;
WifiInfo connectionInfo2 = ((WifiManager) context.getApplicationContext().getSystemService("wifi")).getConnectionInfo();
String bssid = connectionInfo2 != null ? connectionInfo2.getBSSID() : "00";
StringBuilder sb3 = new StringBuilder();
h.b.a.a.a.j0(sb3, this.a, ";", str2, ";");
h.b.a.a.a.j0(sb3, "-1;-1", ";", "1", ";");
h.b.a.a.a.j0(sb3, "000000000000000", ";", "000000000000000", ";");
h.b.a.a.a.j0(sb3, this.c, ";", replace, ";");
sb3.append(replace2);
sb3.append(";");
sb3.append(z);
sb3.append(";");
h.b.a.a.a.j0(sb3, str3, ";", "-1;-1", ";");
h.b.a.a.a.j0(sb3, this.b, ";", string, ";");
h.b.a.a.a.j0(sb3, string2, ";", ssid, ";");
sb3.append(bssid);
HashMap hashMap = new HashMap();
hashMap.put("tid", h.a.b.i.a.a(context).a);
hashMap.put("utdid", h.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) {
h.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();
}
}