正在查看: 管控平台 v5.2.3.0. 应用的 o2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 管控平台 v5.2.3.0. 应用的 o2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.zx.a.I8b7;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Base64;
import com.zx.a.I8b7.l1;
import com.zx.a.I8b7.p;
import com.zx.a.I8b7.q2;
import com.zx.a.I8b7.w0;
import com.zx.module.base.Listener;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import javax.crypto.SecretKey;
import net.sqlcipher.BuildConfig;
import org.json.JSONArray;
import org.json.JSONObject;
public class o2 implements k2 {
public final AtomicBoolean f1956a = new AtomicBoolean(false);
public final AtomicBoolean f1957b = new AtomicBoolean(false);
public Listener f1958c;
public o2() {
new Handler(Looper.getMainLooper());
}
public static void a(o2 o2Var) throws Exception {
o2Var.getClass();
String str = j2.i;
if (!j2.m) {
g.a();
}
SecretKey secretKey = v0.f2017a;
if (!r.a()) {
w0.a aVar = new w0.a();
byte[] bArr = new byte[16];
v0.f2017a = i.b(bArr, j2.b(j2.h));
a0.a(aVar, Base64.encodeToString(bArr, 2));
w0.a a2 = aVar.a("https://zxid-m.mobileservice.cn/sdk/channel/report");
a2.f2027b = "POST";
m0 b2 = m0.b("application/json; charset=utf-8");
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("syncId", j2.k);
jSONObject2.put("lid", j2.b(j2.h));
jSONObject2.put("zid", j2.i);
jSONObject.put("ctx", jSONObject2);
jSONObject.put("sdkInfo", a0.d());
jSONObject.put("deviceInfo", a0.b());
p pVar = p.b.f1963a;
pVar.getClass();
JSONObject jSONObject3 = new JSONObject();
try {
jSONObject3.put("list", pVar.f1959a);
} catch (Exception e) {
q1.a(e);
}
jSONObject.put("events", jSONObject3);
JSONObject jSONObject4 = new JSONObject();
try {
jSONObject4.put("data", v0.c());
jSONObject4.put("unauthorizedFields", new JSONArray());
} catch (Exception e2) {
StringBuilder a3 = b2.a("ZXID getReportData error:");
a3.append(e2.getMessage());
q1.b(a3.toString());
}
jSONObject.put("reportData", jSONObject4);
a2.d = y0.a(b2, Base64.encodeToString(i.a(jSONObject.toString(), v0.f2017a, "UDID_ENC_AUTHTAG"), 2));
a2.e = "request zxid api";
n1 n1Var = a0.f1865a;
w0 w0Var = new w0(aVar);
n1Var.getClass();
z0 a4 = new s0(n1Var, w0Var).a();
l1 l1Var = l1.a.f1930a;
p2 p2Var = l1Var.f1929a;
long currentTimeMillis = System.currentTimeMillis();
p2Var.getClass();
if (currentTimeMillis != j2.r) {
j2.r = currentTimeMillis;
l1Var.f1929a.a(8, j2.r + BuildConfig.FLAVOR, false);
q1.a("lastRequestTime had changed refresh:" + j2.r);
}
if (a4.f2036b != 200) {
throw new RuntimeException("response errCode: " + a4.a("Udid-Error-Code") + ", errMsg: " + a4.a("Udid-Error-Message"));
}
p pVar2 = p.b.f1963a;
pVar2.getClass();
q qVar = new q(pVar2);
try {
AtomicInteger atomicInteger = q2.f1986c;
q2.c.f1989a.f1988b.execute(qVar);
} catch (Throwable th) {
q1.a(th);
}
JSONObject jSONObject5 = new JSONObject(a4.e.c());
int i = jSONObject5.getInt("syncId");
l1 l1Var2 = l1.a.f1930a;
l1Var2.f1929a.d(i);
JSONObject jSONObject6 = new JSONObject(i.a(Base64.decode(jSONObject5.getString("data"), 2), v0.f2017a, "UDID_ENC_AUTHTAG"));
String string = jSONObject6.getString("zid");
l1Var2.f1929a.getClass();
if (!TextUtils.equals(string, j2.i)) {
j2.i = string;
l1Var2.f1929a.a(1, string, true);
q1.a("zid had changed refresh:" + string);
}
JSONObject optJSONObject = jSONObject6.optJSONObject("aids");
l1Var2.f1929a.getClass();
if (optJSONObject != null) {
String jSONObject7 = optJSONObject.toString();
if (!TextUtils.isEmpty(jSONObject7)) {
j2.j = jSONObject7;
l1Var2.f1929a.a(16, jSONObject7, true);
q1.a("aids had changed refresh:" + optJSONObject);
}
}
JSONArray optJSONArray = jSONObject5.optJSONArray("cmds");
p2 p2Var2 = l1Var2.f1929a;
String str2 = j2.B;
p2Var2.getClass();
if (!TextUtils.isEmpty(str2) && !TextUtils.equals(str2, j2.A)) {
j2.A = str2;
l1Var2.f1929a.a(13, str2, true);
}
if (optJSONArray != null) {
try {
if (optJSONArray.length() != 0) {
for (int i2 = 0; i2 < optJSONArray.length(); i2++) {
int i3 = optJSONArray.getInt(i2);
if (i3 == 1) {
q1.a("cmd 1 REQUEST_CONFIG ");
AtomicInteger atomicInteger2 = q2.f1986c;
q2.c.f1989a.f1987a.execute(new u0());
} else if (i3 == 2) {
l1.a.f1930a.f1929a.d(0);
} else if (i3 == 3) {
x.a();
}
}
}
} catch (Throwable th2) {
q1.a(th2);
}
}
}
JSONObject jSONObject8 = new JSONObject();
jSONObject8.put("code", 0);
jSONObject8.put("data", j2.a());
String jSONObject9 = jSONObject8.toString();
o2Var.f1958c.onMessage("MESSAGE_ON_ZXID_RECEIVED", jSONObject9);
if (TextUtils.equals(str, j2.i)) {
return;
}
o2Var.f1958c.onMessage("MESSAGE_ON_ZXID_CHANGED", jSONObject9);
}
}