我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 ld.java 源代码,内容仅作参考
package verifysdk;
import android.app.Activity;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
public final class ld implements Runnable {
public final int f7000b;
public final com.xmbz.up7723.sdk.verify.b c;
public final Activity d;
public ld(com.xmbz.up7723.sdk.verify.b bVar, Activity activity, int i) {
this.f7000b = i;
this.c = bVar;
this.d = activity;
}
@Override
public final void run() {
String str;
boolean z;
String str2;
Process process;
BufferedReader bufferedReader;
BufferedReader bufferedReader2;
DataOutputStream dataOutputStream;
int i;
boolean z2;
BufferedReader bufferedReader3;
int i2;
boolean z3;
int i3;
WifiManager wifiManager;
DataOutputStream dataOutputStream2 = null;
String str3 = null;
BufferedReader bufferedReader4 = null;
BufferedReader bufferedReader5 = null;
boolean z4 = false;
switch (this.f7000b) {
case 0:
com.xmbz.up7723.sdk.verify.b bVar = this.c;
bVar.getClass();
if (TextUtils.isEmpty(null)) {
str = "www.baidu.com";
} else {
str = null;
}
try {
} catch (UnknownHostException e) {
e.printStackTrace();
}
if (InetAddress.getByName(str) != null) {
z = true;
if (!z) {
if (TextUtils.isEmpty(null)) {
str2 = "223.5.5.5";
} else {
str2 = null;
}
String format = String.format("ping -c 1 %s", str2);
String str4 = hb.f6942a;
String[] strArr = {format};
try {
process = Runtime.getRuntime().exec(com.anythink.expressad.foundation.d.d.t, (String[]) null, (File) null);
try {
dataOutputStream = new DataOutputStream(process.getOutputStream());
i2 = 0;
} catch (Exception e2) {
e = e2;
dataOutputStream = null;
i = -1;
bufferedReader2 = null;
bufferedReader3 = null;
dataOutputStream2 = dataOutputStream;
try {
e.printStackTrace();
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader3 != null) {
}
} catch (Throwable th) {
th = th;
bufferedReader = bufferedReader3;
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader != null) {
}
if (process != null) {
}
throw th;
}
} catch (Throwable th2) {
th = th2;
bufferedReader = null;
bufferedReader2 = null;
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader != null) {
}
if (process != null) {
}
throw th;
}
} catch (Exception e3) {
e = e3;
process = null;
} catch (Throwable th3) {
th = th3;
process = null;
}
while (true) {
String str5 = hb.f6942a;
if (i2 < 1) {
try {
try {
String str6 = strArr[i2];
if (str6 != null) {
dataOutputStream.write(str6.getBytes());
dataOutputStream.writeBytes(str5);
dataOutputStream.flush();
}
i2++;
} catch (Throwable th4) {
th = th4;
bufferedReader = null;
bufferedReader2 = bufferedReader4;
dataOutputStream2 = dataOutputStream;
if (dataOutputStream2 != null) {
try {
dataOutputStream2.close();
} catch (IOException e4) {
e4.printStackTrace();
}
}
if (bufferedReader2 != null) {
try {
bufferedReader2.close();
} catch (IOException e5) {
e5.printStackTrace();
}
}
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (IOException e6) {
e6.printStackTrace();
}
}
if (process != null) {
process.destroy();
}
throw th;
}
} catch (Exception e7) {
e = e7;
i = -1;
bufferedReader2 = null;
bufferedReader3 = null;
dataOutputStream2 = dataOutputStream;
e.printStackTrace();
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader3 != null) {
}
}
} else {
dataOutputStream.writeBytes("exit" + str5);
dataOutputStream.flush();
i = process.waitFor();
try {
bufferedReader2 = new BufferedReader(new InputStreamReader(process.getInputStream(), "UTF-8"));
} catch (Exception e8) {
e = e8;
bufferedReader2 = null;
bufferedReader3 = null;
dataOutputStream2 = dataOutputStream;
e.printStackTrace();
if (dataOutputStream2 != null) {
try {
dataOutputStream2.close();
} catch (IOException e9) {
e9.printStackTrace();
}
}
if (bufferedReader2 != null) {
try {
bufferedReader2.close();
} catch (IOException e10) {
e10.printStackTrace();
}
}
if (bufferedReader3 != null) {
try {
bufferedReader3.close();
break;
} catch (IOException e11) {
e11.printStackTrace();
break;
}
}
}
try {
bufferedReader3 = new BufferedReader(new InputStreamReader(process.getErrorStream(), "UTF-8"));
} catch (Exception e12) {
e = e12;
bufferedReader3 = null;
dataOutputStream2 = dataOutputStream;
e.printStackTrace();
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader3 != null) {
}
} catch (Throwable th5) {
th = th5;
}
try {
if (bufferedReader2.readLine() != null) {
while (bufferedReader2.readLine() != null) {
}
}
} catch (Exception e13) {
e = e13;
dataOutputStream2 = dataOutputStream;
e.printStackTrace();
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader3 != null) {
}
} catch (Throwable th6) {
th = th6;
bufferedReader5 = bufferedReader3;
bufferedReader = bufferedReader5;
bufferedReader4 = bufferedReader2;
bufferedReader2 = bufferedReader4;
dataOutputStream2 = dataOutputStream;
if (dataOutputStream2 != null) {
}
if (bufferedReader2 != null) {
}
if (bufferedReader != null) {
}
if (process != null) {
}
throw th;
}
if (bufferedReader3.readLine() != null) {
do {
} while (bufferedReader3.readLine() != null);
try {
dataOutputStream.close();
} catch (IOException e14) {
e14.printStackTrace();
}
try {
bufferedReader2.close();
} catch (IOException e15) {
e15.printStackTrace();
}
try {
bufferedReader3.close();
} catch (IOException e16) {
e16.printStackTrace();
}
process.destroy();
if (i != 0) {
z2 = true;
break;
} else {
z2 = false;
break;
}
} else {
dataOutputStream.close();
bufferedReader2.close();
bufferedReader3.close();
process.destroy();
if (i != 0) {
}
}
}
}
}
z4 = true;
if (!z4) {
e2.a("网络可用");
jc.f6975a.post(new ld(bVar, this.d, 1));
return;
}
e2.a("网络不可用");
bVar.d();
return;
}
z = false;
if (!z) {
}
z4 = true;
if (!z4) {
}
break;
case 1:
com.xmbz.up7723.sdk.verify.b bVar2 = this.c;
Activity activity = this.d;
bVar2.getClass();
String absolutePath = activity.getApplicationContext().getFilesDir().getAbsolutePath();
e2.c("checkOperatingEnvironment " + absolutePath);
if (!absolutePath.contains("com.upgadata.up7723") && !absolutePath.contains("com.upgadata.bzvirtual") && !absolutePath.contains("com.upgadata.zhushou") && !absolutePath.contains("com.upgadata.zhushou32") && !absolutePath.contains("com.shanwan.virtual") && !absolutePath.contains("com.sosomod.freegame")) {
z3 = false;
} else {
z3 = true;
}
if (z3) {
e2.a("框架内启动,无需实名");
} else {
if (y.f7185a == null) {
y.f7185a = activity.getApplication().getSharedPreferences("VerifySDK", 4);
}
if (y.f7185a.getInt("adult", 0) == 1) {
if (y.f7185a == null) {
y.f7185a = activity.getApplication().getSharedPreferences("VerifySDK", 4);
}
if (!TextUtils.isEmpty(y.f7185a.getString("birthday", ""))) {
e2.c("show 成年人");
}
}
if (y.f7185a == null) {
y.f7185a = activity.getApplication().getSharedPreferences("VerifySDK", 4);
}
String string = y.f7185a.getString("birthday", "");
if (!TextUtils.isEmpty(string)) {
e2.c("show 防沉迷判断 birthday:" + string);
bVar2.i(activity, string);
return;
}
bVar2.l = true;
boolean booleanValue = e0.f6900a.booleanValue();
md mdVar = new md(bVar2, activity, 0);
int i4 = o8.f7037a;
n8 n8Var = new n8(activity, booleanValue, mdVar);
try {
String str7 = Build.BRAND;
String str8 = Build.MODEL;
String str9 = Build.VERSION.RELEASE;
String str10 = Build.MANUFACTURER;
i3 = Build.VERSION.SDK_INT;
} catch (Exception e17) {
Log.e("Jpor", e17.getMessage(), e17);
e17.printStackTrace();
}
if (i3 >= 23) {
if (i3 != 23) {
break;
} else {
if (TextUtils.isEmpty(g2.b())) {
}
if (TextUtils.isEmpty(g2.f6929b)) {
if (!g2.c) {
try {
g2.f6929b = Settings.Secure.getString(activity.getContentResolver(), "android_id");
} catch (Throwable unused) {
e2.a("can't read android id");
}
g2.c = true;
}
h9.f6940a = str3;
e2.a("getAndroidId PHONE_IMEI:" + h9.f6940a);
h2.a(activity, new g9(n8Var));
bVar2.k.postDelayed(new ld(bVar2, activity, 2), 5000L);
return;
}
str3 = g2.f6929b;
h9.f6940a = str3;
e2.a("getAndroidId PHONE_IMEI:" + h9.f6940a);
h2.a(activity, new g9(n8Var));
bVar2.k.postDelayed(new ld(bVar2, activity, 2), 5000L);
return;
}
}
if (TextUtils.isEmpty(g2.f6928a) && !g2.d) {
try {
wifiManager = (WifiManager) activity.getApplicationContext().getSystemService("wifi");
} finally {
try {
g2.d = true;
} catch (Throwable th7) {
}
}
if (g2.a(activity)) {
if (wifiManager != null) {
g2.f6928a = wifiManager.getConnectionInfo().getMacAddress();
g2.d = true;
}
} else {
e2.c("Could not get mac address.[no permission android.permission.ACCESS_WIFI_STATE");
}
g2.f6928a = "";
g2.d = true;
}
if (TextUtils.isEmpty(g2.f6929b)) {
}
str3 = g2.f6929b;
h9.f6940a = str3;
e2.a("getAndroidId PHONE_IMEI:" + h9.f6940a);
h2.a(activity, new g9(n8Var));
bVar2.k.postDelayed(new ld(bVar2, activity, 2), 5000L);
return;
}
bVar2.f7149b = true;
bVar2.d();
return;
default:
this.c.g(this.d);
return;
}
}
}