雅集 v2.0.9版本的 MD5 值为:18d74f3bbf135c7b79a9ab414cfae6f8

以下内容为反编译后的 r0.java 源代码,内容仅作参考


package com.zx.a.I8b7;

import android.text.TextUtils;
import android.util.Base64;
import com.zx.a.I8b7.a1;
import com.zx.a.I8b7.t1;
import com.zx.module.annotation.Java2C;
import io.dcloud.common.constant.AbsoluteConst;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import javax.crypto.SecretKey;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class r0 {
    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 {
        JSONArray jSONArray;
        String a2 = t1.a.a.a.a(25);
        if (!TextUtils.isEmpty(a2)) {
            try {
                JSONArray jSONArray2 = new JSONArray(a2);
                ArrayList arrayList = new ArrayList();
                for (int i = 0; i < jSONArray2.length(); i++) {
                    try {
                        arrayList.add(jSONArray2.getString(i));
                    } catch (JSONException unused) {
                    }
                }
                Collections.sort(arrayList, new l1());
                jSONArray = new JSONArray();
                for (int i2 = 0; i2 < arrayList.size(); i2++) {
                    try {
                        String str = (String) arrayList.get(i2);
                        if (d3.b(str) != null) {
                            jSONArray.put(str);
                        }
                    } catch (Exception unused2) {
                        y1.b("iaps data error");
                    }
                }
            } catch (JSONException unused3) {
            }
        }
        jSONArray = null;
        if (jSONArray == null) {
            y1.a("laps 和上次一样本次不上报");
            return;
        }
        a1.a aVar = new a1.a();
        HashMap<String, String> b2 = w.b(a());
        aVar.c.clear();
        aVar.c.putAll(b2);
        a1.a a3 = aVar.a("https://zxid-m.mobileservice.cn/sdk/app/depAnalysis");
        a3.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());
        jSONObject.put(AbsoluteConst.XML_APPS, new String(Base64.encode(j.a(jSONArray.toString(), a, "UDID_ENC_AUTHTAG"), 2), StandardCharsets.UTF_8));
        a3.d = c1.a(b3, new String(Base64.encode(j.a(jSONObject.toString(), a, "UDID_ENC_AUTHTAG"), 2), StandardCharsets.UTF_8));
        a3.e = "request postIAPS api";
        v1 v1Var = w.a;
        a1 a1Var = new a1(aVar);
        v1Var.getClass();
        d1 a4 = new t0(v1Var, a1Var).a();
        if (a4.b == 200) {
            t1 t1Var = t1.a.a;
            b3 b3Var = t1Var.a;
            String jSONArray3 = jSONArray.toString();
            b3Var.getClass();
            if (TextUtils.isEmpty(jSONArray3)) {
                return;
            }
            t1Var.a.a(26, jSONArray3, true);
            return;
        }
        throw new RuntimeException("response errCode: " + a4.a("Udid-Error-Code") + ", errMsg: " + a4.a("Udid-Error-Message"));
    }
}