导航菜单

页面标题

页面副标题

管控平台 v5.2.3.0. - c1.java 源代码

正在查看: 管控平台 v5.2.3.0. 应用的 c1.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.zx.a.I8b7;

import android.util.Base64;
import com.zx.a.I8b7.w0;
import javax.crypto.SecretKey;
import net.sqlcipher.BuildConfig;
import org.json.JSONObject;

public class c1 {

    public static SecretKey f1878a;

    public static String a(String str) throws Exception {
        w0.a aVar = new w0.a();
        byte[] bArr = new byte[16];
        f1878a = 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/uaid/get");
        a2.f2027b = "POST";
        m0 b2 = m0.b("application/json; charset=utf-8");
        JSONObject jSONObject = new JSONObject();
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.put("lid", j2.b(j2.h));
        jSONObject2.put("zid", j2.i);
        jSONObject.put("ctx", jSONObject2);
        JSONObject jSONObject3 = new JSONObject();
        jSONObject3.put("type", "unicom");
        jSONObject3.put("code", str);
        jSONObject3.put("timestamp", (System.currentTimeMillis() / 1000) + BuildConfig.FLAVOR);
        jSONObject.put("getUAIDData", jSONObject3);
        a2.d = y0.a(b2, Base64.encodeToString(i.a(jSONObject.toString(), f1878a, "UDID_ENC_AUTHTAG"), 2));
        a2.e = "uaid get api";
        n1 n1Var = a0.f1865a;
        w0 w0Var = new w0(aVar);
        n1Var.getClass();
        z0 a3 = new s0(n1Var, w0Var).a();
        if (a3.f2036b == 200) {
            return new JSONObject(i.a(Base64.decode(new JSONObject(a3.e.c()).getString("data"), 2), f1878a, "UDID_ENC_AUTHTAG")).getString("uaid");
        }
        throw new RuntimeException("response errCode: " + a3.a("Udid-Error-Code") + ", errMsg: " + a3.a("Udid-Error-Message"));
    }
}