正在查看: 财通国际 v2.0 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 财通国际 v2.0 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.zx.a.I8b7;
import android.text.TextUtils;
import android.util.Base64;
import com.taobao.weex.ui.component.WXBasicComponentType;
import com.zx.a.I8b7.l2;
import com.zx.a.I8b7.q1;
import com.zx.module.annotation.Java2C;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.HashMap;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import org.json.JSONArray;
import org.json.JSONObject;
public class l {
public static SecretKey a;
public static byte[] b;
public static final SecureRandom c = new SecureRandom();
@Java2C.Method2C
public static native synchronized String a();
@Java2C.Method2C
private static native String b() throws Exception;
public static void c() throws Exception {
q1.a aVar = new q1.a();
HashMap<String, String> b2 = i0.b(a());
aVar.c.clear();
aVar.c.putAll(b2);
q1.a a2 = aVar.a("https://zxid-m.mobileservice.cn/sdk/config/init");
a2.b = "POST";
a2.f1132d = s1.a(x0.b("application/json; charset=utf-8"), b());
a2.f1133e = "request config api";
o2 o2Var = i0.a;
q1 q1Var = new q1(aVar);
o2Var.getClass();
t1 a3 = new i1(o2Var, q1Var).a();
if (a3.b != 200) {
throw new RuntimeException("response errCode: " + a3.a("Udid-Error-Code") + ", errMsg: " + a3.a("Udid-Error-Message"));
}
JSONObject jSONObject = new JSONObject(p.a(Base64.decode(new JSONObject(a3.f1136e.b()).getString("data"), 2), a, "UDID_ENC_AUTHTAG"));
String string = jSONObject.getString("configVersion");
l2 l2Var = l2.a.a;
l2Var.a.getClass();
if (!TextUtils.equals(string, m3.f1103o)) {
m3.f1103o = string;
l2Var.a.a(4, string, false);
}
JSONObject jSONObject2 = jSONObject.getJSONObject("fieldConfig");
u3 u3Var = l2Var.a;
String jSONObject3 = jSONObject2.toString();
u3Var.getClass();
if (!TextUtils.equals(jSONObject3, m3.f1112x)) {
m3.f1112x = jSONObject3;
l2Var.a.a(11, jSONObject3, true);
}
JSONObject jSONObject4 = jSONObject.getJSONObject("reportConfig");
u3 u3Var2 = l2Var.a;
String jSONObject5 = jSONObject4.toString();
u3Var2.getClass();
if (!TextUtils.equals(jSONObject5, m3.f1113y)) {
m3.f1113y = jSONObject5;
l2Var.a.a(12, jSONObject5, true);
}
JSONObject jSONObject6 = jSONObject.getJSONObject("cryptoConfig");
u3 u3Var3 = l2Var.a;
String jSONObject7 = jSONObject6.toString();
u3Var3.getClass();
if (!TextUtils.equals(jSONObject7, m3.f1114z)) {
m3.f1114z = jSONObject7;
l2Var.a.a(15, jSONObject7, true);
}
JSONObject optJSONObject = jSONObject.optJSONObject("appConfig");
if (optJSONObject != null) {
r2.a("处理 appConfig ");
try {
JSONArray jSONArray = optJSONObject.getJSONArray(WXBasicComponentType.LIST);
if (jSONArray == null || jSONArray.length() <= 0) {
r2.b("appConfig list is empty");
} else {
int length = jSONArray.length();
int i2 = optJSONObject.getInt("type");
if (i2 == 1) {
for (int i3 = 0; i3 < length; i3++) {
jSONArray.put(i3, p.a(Base64.decode(jSONArray.getString(i3), 2), a, "UDID_ENC_AUTHTAG"));
}
} else if (i2 == 3) {
SecretKey a4 = p.a(b, m3.a(m3.f1096h));
for (int i4 = 0; i4 < length; i4++) {
jSONArray.put(i4, new String(p.a("AES/CBC/PKCS7Padding", a4, new IvParameterSpec("UDID_ENC_AUTHTAG".getBytes(StandardCharsets.UTF_8)), Base64.decode(jSONArray.getString(i4), 2)), StandardCharsets.UTF_8));
}
}
l2 l2Var2 = l2.a.a;
u3 u3Var4 = l2Var2.a;
String jSONObject8 = optJSONObject.toString();
u3Var4.getClass();
if (!TextUtils.equals(jSONObject8, m3.A)) {
m3.A = jSONObject8;
l2Var2.a.a(21, jSONObject8, true);
}
}
} catch (Exception e2) {
r2.a(e2);
}
}
JSONObject optJSONObject2 = jSONObject.optJSONObject("commonConfig");
if (optJSONObject2 != null) {
l2 l2Var3 = l2.a.a;
u3 u3Var5 = l2Var3.a;
String jSONObject9 = optJSONObject2.toString();
u3Var5.getClass();
if (!TextUtils.equals(jSONObject9, m3.B)) {
m3.B = jSONObject9;
l2Var3.a.a(22, jSONObject9, true);
}
}
JSONObject optJSONObject3 = jSONObject.optJSONObject("invokeConfig");
if (optJSONObject3 != null) {
l2 l2Var4 = l2.a.a;
u3 u3Var6 = l2Var4.a;
String jSONObject10 = optJSONObject3.toString();
synchronized (u3Var6) {
if (!TextUtils.equals(jSONObject10, m3.C)) {
m3.C = jSONObject10;
m3.c();
l2Var4.a.a(19, m3.C, true);
}
}
}
if (m3.f1104p) {
return;
}
l2 l2Var5 = l2.a.a;
l2Var5.a.getClass();
if (true != m3.f1104p) {
m3.f1104p = true;
l2Var5.a.a(6, m3.f1104p + "", false);
}
}
}