看个比赛 v1.5.8版本的 MD5 值为:bae84dbc8ef3ad62286d0d7fe5c3e37f
以下内容为反编译后的 z0.java 源代码,内容仅作参考
package com.zx.a.I8b7;
import android.text.TextUtils;
import android.util.Base64;
import com.tencent.connect.common.Constants;
import com.zx.a.I8b7.a1;
import com.zx.a.I8b7.c3;
import com.zx.a.I8b7.s;
import com.zx.a.I8b7.t1;
import com.zx.module.annotation.Java2C;
import java.security.SecureRandom;
import java.util.HashMap;
import java.util.LinkedList;
import javax.crypto.SecretKey;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class z0 {
public static String a = "";
public static SecretKey c;
public static byte[] d;
public static LinkedList<String> b = new LinkedList<>();
public static final SecureRandom e = new SecureRandom();
@Java2C.Method2C
private static native String a(String str, String str2, JSONObject jSONObject);
@Java2C.Method2C
private static native String a(String str, JSONObject jSONObject);
@Java2C.Method2C
private static native HashMap<String, String> a() throws JSONException;
@Java2C.Method2C
private static native HashMap<String, String> a(String str);
@Java2C.Method2C
private static native HashMap<String, String> a(JSONArray jSONArray) throws JSONException;
@Java2C.Method2C
private static native HashMap<String, String> a(JSONArray jSONArray, JSONObject jSONObject) throws JSONException;
@Java2C.Method2C
private static native JSONObject a(JSONArray jSONArray, HashMap<String, String> hashMap, JSONObject jSONObject);
@Java2C.Method2C
private static native void a(HashMap<String, String> hashMap, String str, JSONObject jSONObject, HashMap<String, String> hashMap2, boolean z) throws JSONException;
@Java2C.Method2C
private static native void a(JSONObject jSONObject) throws Throwable;
@Java2C.Method2C
private static native void a(JSONObject jSONObject, HashMap<String, String> hashMap, String str, String str2) throws JSONException;
@Java2C.Method2C
private static native JSONObject b();
@Java2C.Method2C
private static native JSONObject b(JSONArray jSONArray, HashMap<String, String> hashMap, JSONObject jSONObject);
@Java2C.Method2C
public static native synchronized String c();
@Java2C.Method2C
private static native JSONObject c(JSONArray jSONArray, HashMap<String, String> hashMap, JSONObject jSONObject);
@Java2C.Method2C
private static native String d() throws Throwable;
@Java2C.Method2C
private static native JSONObject e();
@Java2C.Method2C
private static native String f();
@Java2C.Method2C
private static native JSONObject g();
public static void h() throws Throwable {
if (u.a()) {
return;
}
a1.a aVar = new a1.a();
HashMap<String, String> b2 = w.b(c());
aVar.c.clear();
aVar.c.putAll(b2);
a1.a a2 = aVar.a("https://zxid-m.mobileservice.cn/sdk/channel/report");
a2.b = Constants.HTTP_POST;
a2.d = c1.a(m0.b("application/json; charset=utf-8"), d());
a2.e = "request zxid api";
v1 v1Var = w.a;
a1 a1Var = new a1(aVar);
v1Var.getClass();
d1 a3 = new t0(v1Var, a1Var).a();
if (a3.b == 200) {
t1 t1Var = t1.a.a;
b3 b3Var = t1Var.a;
long currentTimeMillis = System.currentTimeMillis();
b3Var.getClass();
if (currentTimeMillis != t2.t) {
t2.t = currentTimeMillis;
t1Var.a.a(8, t2.t + "", false);
y1.a("lastRequestTime had changed refresh:" + t2.t);
}
if (!TextUtils.isEmpty(a)) {
b3 b3Var2 = t1Var.a;
String str = a;
b3Var2.getClass();
if (!TextUtils.equals(str, t2.l)) {
t2.l = str;
t1Var.a.a(28, str, true);
y1.a("lastReportExtListMD5 had changed refresh:" + t2.l);
}
a = "";
}
s sVar = s.b.a;
sVar.getClass();
try {
c3.e.a.b.execute(new t(sVar));
} catch (Throwable th) {
y1.a(th);
}
JSONObject jSONObject = new JSONObject(a3.e.b());
int i = jSONObject.getInt("syncId");
t1 t1Var2 = t1.a.a;
t1Var2.a.d(i);
JSONObject jSONObject2 = new JSONObject(j.a(Base64.decode(jSONObject.getString("data"), 2), c, "UDID_ENC_AUTHTAG"));
String string = jSONObject2.getString("zid");
t1Var2.a.getClass();
if (!TextUtils.equals(string, t2.i)) {
t2.i = string;
t1Var2.a.a(1, string, true);
y1.a("zid had changed refresh:" + string);
}
JSONObject optJSONObject = jSONObject2.optJSONObject("aids");
JSONObject optJSONObject2 = jSONObject2.optJSONObject("aidsExt");
if (optJSONObject2 == null) {
optJSONObject2 = new JSONObject();
}
if (!TextUtils.isEmpty(t2.f) && optJSONObject != null) {
optJSONObject2.put(t2.f, optJSONObject);
}
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put("tags", jSONObject2.optJSONArray("tags"));
jSONObject3.put("aids", optJSONObject2);
if (jSONObject2.has("openid")) {
jSONObject3.put("openid", d3.c.get("ed6e6f5009a2"));
} else {
jSONObject3.put("openid", "OPENID_CLOSED");
}
JSONObject jSONObject4 = new JSONObject();
if (jSONObject2.has("zxc1")) {
jSONObject4.put("zxc1", jSONObject2.getString("zxc1"));
}
t1Var2.a.getClass();
String jSONObject5 = jSONObject4.toString();
t2.k = jSONObject5;
t1Var2.a.a(30, jSONObject5, true);
y1.a("zxc had changed refresh:" + t2.k);
t1Var2.a.getClass();
String jSONObject6 = jSONObject3.toString();
if (!TextUtils.isEmpty(jSONObject6)) {
t2.j = jSONObject6;
t1Var2.a.a(16, jSONObject6, true);
y1.a("ext had changed refresh:" + jSONObject3);
}
JSONArray optJSONArray = jSONObject.optJSONArray("cmds");
b3 b3Var3 = t1Var2.a;
String str2 = t2.D;
b3Var3.getClass();
if (!TextUtils.isEmpty(str2) && !TextUtils.equals(str2, t2.C)) {
t2.C = str2;
t1Var2.a.a(13, str2, true);
}
JSONArray optJSONArray2 = jSONObject2.optJSONArray("iaps");
try {
JSONArray jSONArray = new JSONArray();
if (optJSONArray2 != null && optJSONArray2.length() > 0) {
for (int i2 = 0; i2 < optJSONArray2.length(); i2++) {
jSONArray.put(j.a(Base64.decode(optJSONArray2.getString(i2), 2), c, "UDID_ENC_AUTHTAG"));
}
}
t1 t1Var3 = t1.a.a;
t1Var3.a.getClass();
t1Var3.a.a(25, jSONArray.toString(), true);
} catch (Throwable unused) {
}
if (optJSONArray != null) {
try {
if (optJSONArray.length() == 0) {
return;
}
for (int i3 = 0; i3 < optJSONArray.length(); i3++) {
int i4 = optJSONArray.getInt(i3);
if (i4 == 1) {
y1.a("cmd 1 REQUEST_CONFIG ");
c3.e.a.d.execute(new v0());
} else if (i4 == 2) {
t1.a.a.a.d(0);
} else if (i4 == 3) {
c3.e.a.d.execute(new w0());
} else if (i4 == 4) {
c3.e.a.d.execute(new x0());
} else if (i4 == 5) {
c3.e.a.d.execute(new y0());
}
}
return;
} catch (Throwable th2) {
y1.a(th2);
return;
}
}
return;
}
throw new RuntimeException("response errCode: " + a3.a("Udid-Error-Code") + ", errMsg: " + a3.a("Udid-Error-Message"));
}
}