正在查看: 品质商城 v1.0 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 品质商城 v1.0 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package A0;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.os.Build;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.widget.TextView;
import g.C0179a;
import java.io.File;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import k0.AbstractC0309b;
import k1.e;
import m0.AbstractC0318b;
import u0.AbstractC0366a;
import w0.AbstractC0417b;
public final class d {
public static volatile d f38d;
public String f39a;
public final String f40b;
public String f41c;
public d() {
this.f40b = "sdk-and-lite";
String str = AbstractC0366a.f5052a;
if (TextUtils.isEmpty(str) || TextUtils.equals("cn", AbstractC0366a.f5052a)) {
return;
}
this.f40b = "sdk-and-lite_" + str;
}
public static synchronized void b(String str) {
synchronized (d.class) {
if (TextUtils.isEmpty(str)) {
return;
}
PreferenceManager.getDefaultSharedPreferences(C0179a.c().f3332a).edit().putString("trideskey", str).apply();
w0.d.f5359b = str;
}
}
public static synchronized d c() {
d dVar;
synchronized (d.class) {
try {
if (f38d == null) {
f38d = new d();
}
dVar = f38d;
} catch (Throwable th) {
throw th;
}
}
return dVar;
}
public static String d(Context context) {
if (context == null) {
return "";
}
try {
StringBuilder sb = new StringBuilder("(");
String packageName = context.getPackageName();
PackageInfo packageInfo = context.getPackageManager().getPackageInfo(packageName, 0);
sb.append(packageName);
sb.append(";");
sb.append(packageInfo.versionCode);
sb.append(")");
return sb.toString();
} catch (Exception unused) {
return "";
}
}
public static String e() {
return Long.toHexString(System.currentTimeMillis()) + (new Random().nextInt(9000) + 1000);
}
public final String a(K0.b bVar, L0.a aVar) {
L0.a aVar2;
String str;
Context context = C0179a.c().f3332a;
if (M0.b.f375a == null) {
M0.b.f375a = new M0.b();
}
M0.b bVar2 = M0.b.f375a;
boolean z2 = false;
if (TextUtils.isEmpty(this.f39a)) {
String str2 = "Android " + Build.VERSION.RELEASE;
String q2 = AbstractC0318b.q();
String locale = context.getResources().getConfiguration().locale.toString();
int i2 = AbstractC0309b.f4058c;
if (i2 == 2) {
str = "https://mobilegw.alipaydev.com/mgw.htm";
} else if (i2 == 3) {
str = "https://mobilegw.dl.alipaydev.com/mgw.htm";
} else {
str = "https://mobilegw.alipay.com/mgw.htm";
TextUtils.isEmpty("https://mobilegw.alipay.com/mgw.htm");
}
this.f39a = "Msp/15.8.14 (" + str2 + ";" + q2 + ";" + locale + ";" + str.substring(0, str.indexOf("://")) + ";" + AbstractC0318b.s(context) + ";" + Float.toString(new TextView(context).getTextSize());
}
int d2 = M0.b.d(context);
bVar2.getClass();
Context context2 = C0179a.c().f3332a;
SharedPreferences sharedPreferences = context2.getSharedPreferences("virtualImeiAndImsi", 0);
String string = sharedPreferences.getString("virtual_imsi", null);
String str3 = "000000000000000";
if (TextUtils.isEmpty(string)) {
if (TextUtils.isEmpty(L0.a.a(context2).f366a)) {
String b2 = C0179a.c().b();
string = (TextUtils.isEmpty(b2) || b2.length() < 18) ? e() : b2.substring(3, 18);
} else {
if (M0.b.f375a == null) {
M0.b.f375a = new M0.b();
}
M0.b.f375a.getClass();
string = "000000000000000";
}
sharedPreferences.edit().putString("virtual_imsi", string).apply();
}
Context context3 = C0179a.c().f3332a;
SharedPreferences sharedPreferences2 = context3.getSharedPreferences("virtualImeiAndImsi", 0);
String string2 = sharedPreferences2.getString("virtual_imei", null);
if (TextUtils.isEmpty(string2)) {
if (TextUtils.isEmpty(L0.a.a(context3).f366a)) {
str3 = e();
} else {
if (M0.b.f375a == null) {
M0.b.f375a = new M0.b();
}
M0.b.f375a.getClass();
}
sharedPreferences2.edit().putString("virtual_imei", str3).apply();
aVar2 = aVar;
string2 = str3;
} else {
aVar2 = aVar;
}
this.f41c = aVar2.f367b;
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 i3 = 0;
while (true) {
if (i3 >= 10) {
break;
}
if (new File(strArr[i3]).exists()) {
z2 = true;
break;
}
i3++;
}
StringBuilder sb = new StringBuilder();
sb.append(this.f39a);
sb.append(";");
sb.append(I0.a.h(d2));
sb.append(";-1;-1;1;000000000000000;000000000000000;");
sb.append(this.f41c);
sb.append(";");
sb.append(replace);
sb.append(";");
sb.append(replace2);
sb.append(";");
sb.append(z2);
sb.append(";00:00:00:00:00:00;-1;-1;");
sb.append(this.f40b);
sb.append(";");
sb.append(string);
sb.append(";");
sb.append(string2);
sb.append(";-1;00");
String h2 = AbstractC0417b.h(context, bVar);
String str4 = L0.a.a(context).f366a;
Context applicationContext = context != null ? context.getApplicationContext() : null;
TimeUnit timeUnit = TimeUnit.SECONDS;
String str5 = (String) N0.a.b(4, 10L, timeUnit, new e(11), new N0.e(applicationContext, bVar, str4, h2), true, 3L, timeUnit, bVar, true);
if (!TextUtils.isEmpty(str5)) {
sb.append(";;;");
sb.append(str5);
}
sb.append(")");
return sb.toString();
}
}