雅集 v2.0.9版本的 MD5 值为:18d74f3bbf135c7b79a9ab414cfae6f8
以下内容为反编译后的 v.java 源代码,内容仅作参考
package com.zx.a.I8b7;
import android.content.ContentValues;
import android.text.TextUtils;
import android.util.Base64;
import com.taobao.weex.el.parse.Operators;
import com.zx.a.I8b7.a1;
import com.zx.a.I8b7.t1;
import com.zx.module.annotation.Java2C;
import io.dcloud.common.DHInterface.IApp;
import io.dcloud.common.adapter.ui.webview.WebLoadEvent;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.HashMap;
import javax.crypto.SecretKey;
import org.json.JSONObject;
public class v {
public static SecretKey a;
public static byte[] b;
public static final SecureRandom c = new SecureRandom();
@Java2C.Method2C
public static native synchronized String a();
public static void b() throws Exception {
String str;
a1.a aVar = new a1.a();
HashMap<String, String> b2 = w.b(a());
aVar.c.clear();
aVar.c.putAll(b2);
a1.a a2 = aVar.a("https://zxid-m.mobileservice.cn/sdk/module/getCoreModule");
a2.b = "POST";
m0 b3 = m0.b("application/json; charset=utf-8");
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("lid", t2.a(t2.h));
jSONObject2.put("zid", t2.i);
jSONObject.put("ctx", jSONObject2);
jSONObject.put(com.alipay.sdk.m.x.d.D, w.d());
jSONObject.put("deviceInfo", w.b());
a2.d = c1.a(b3, new String(Base64.encode(j.a(jSONObject.toString(), a, "UDID_ENC_AUTHTAG"), 2), StandardCharsets.UTF_8));
a2.e = "request getCoreModule api";
v1 v1Var = w.a;
a1 a1Var = new a1(aVar);
v1Var.getClass();
d1 a3 = new t0(v1Var, a1Var).a();
if (a3.b == 200) {
JSONObject jSONObject3 = new JSONObject(j.a(Base64.decode(new JSONObject(a3.e.b()).getString("data"), 2), a, "UDID_ENC_AUTHTAG"));
if (!jSONObject3.getBoolean(WebLoadEvent.ENABLE)) {
b3 b3Var = t1.a.a.a;
if (b3Var.b == null) {
b3Var.b = b3Var.d();
}
try {
b3Var.b.delete("zx_table", "key in(17,18" + Operators.BRACKET_END_STR, null);
t2.E = null;
y1.a("clearCoreModule success");
} catch (Exception e) {
StringBuilder a4 = m2.a("clearCoreModule error:");
a4.append(e.getMessage());
y1.b(a4.toString());
}
y1.a("coreModule enable is false");
return;
}
JSONObject jSONObject4 = jSONObject3.getJSONObject("module");
jSONObject4.getString("version");
String string = jSONObject4.getString("checksum");
byte[] decode = Base64.decode(jSONObject4.getString("data"), 0);
if (TextUtils.equals(string, j.a("SHA256", decode))) {
y1.a("verify checksum finished");
JSONObject jSONObject5 = new JSONObject();
jSONObject5.put("mainVersion", t2.b);
jSONObject5.put("coreVersion", t2.d);
jSONObject5.put("checksum", string);
t1.a.a.a.getClass();
String string2 = jSONObject5.getString("coreVersion");
try {
str = t2.E.getString("coreVersion");
} catch (Exception unused) {
str = "";
}
if (!TextUtils.isEmpty(string2) && !TextUtils.equals(string2, str)) {
b3 b3Var2 = t1.a.a.a;
if (b3Var2.b == null) {
b3Var2.b = b3Var2.d();
}
try {
String str2 = new String(Base64.encode(j.b("AES/CBC/PKCS5Padding", t2.u, t2.v, decode), 0), StandardCharsets.UTF_8);
ContentValues contentValues = new ContentValues();
contentValues.put(IApp.ConfigProperty.CONFIG_KEY, (Integer) 17);
contentValues.put("value", str2);
y1.a("replace resultId = " + b3Var2.b.replace("zx_table", null, contentValues));
} catch (Exception e2) {
y1.b("ZXID updateDBValue valueID:17,value:" + decode + ",error:" + e2.toString());
}
t1.a.a.a.a(18, jSONObject5.toString(), true);
t2.E = jSONObject5;
}
y1.a("decrypt and checksum finished");
return;
}
throw new IOException("zx checksum1 exception");
}
throw new RuntimeException("response errCode: " + a3.a("Udid-Error-Code") + ", errMsg: " + a3.a("Udid-Error-Message"));
}
}