导航菜单

页面标题

页面副标题

财通国际 v2.0 - f0.java 源代码

正在查看: 财通国际 v2.0 应用的 f0.java JAVA 源代码文件

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


package com.zx.a.I8b7;

import android.content.ContentValues;
import android.text.TextUtils;
import android.util.Base64;
import com.umeng.analytics.pro.bg;
import com.zx.a.I8b7.l2;
import com.zx.a.I8b7.q1;
import com.zx.module.annotation.Java2C;
import io.dcloud.common.DHInterface.IApp;
import io.dcloud.common.adapter.ui.webview.WebLoadEvent;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.HashMap;
import javax.crypto.SecretKey;
import org.json.JSONObject;

public class f0 {
    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 {
        String str;
        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/module/getCoreModule");
        a2.b = "POST";
        x0 b3 = x0.b("application/json; charset=utf-8");
        JSONObject jSONObject = new JSONObject();
        JSONObject jSONObject2 = new JSONObject();
        jSONObject2.put("lid", m3.a(m3.f1096h));
        jSONObject2.put(bg.al, m3.f1097i);
        jSONObject.put("ctx", jSONObject2);
        jSONObject.put("sdkInfo", i0.d());
        jSONObject.put("deviceInfo", i0.b());
        a2.f1132d = s1.a(b3, new String(Base64.encode(p.a(jSONObject.toString(), a, "UDID_ENC_AUTHTAG"), 2), StandardCharsets.UTF_8));
        a2.f1133e = "request getCoreModule 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 jSONObject3 = new JSONObject(p.a(Base64.decode(new JSONObject(a3.f1136e.b()).getString("data"), 2), a, "UDID_ENC_AUTHTAG"));
        if (!jSONObject3.getBoolean(WebLoadEvent.ENABLE)) {
            u3 u3Var = l2.a.a.a;
            if (u3Var.b == null) {
                u3Var.b = u3Var.d();
            }
            try {
                u3Var.b.delete("zx_table", "key in(17,18)", null);
                m3.F = null;
                r2.a("clearCoreModule success");
            } catch (Exception e2) {
                r2.b(f3.a("clearCoreModule error:").append(e2.getMessage()).toString());
            }
            r2.a("coreModule enable is false");
            return;
        }
        JSONObject jSONObject4 = jSONObject3.getJSONObject("module");
        jSONObject4.getString("version");
        String string = jSONObject4.getString("checksum");
        byte[] decode = Base64.decode(jSONObject4.getString("data"), 0);
        if (!TextUtils.equals(string, p.a("SHA256", decode))) {
            throw new IOException("zx checksum1 exception");
        }
        r2.a("verify checksum finished");
        JSONObject jSONObject5 = new JSONObject();
        jSONObject5.put("mainVersion", m3.b);
        jSONObject5.put("coreVersion", m3.f1092d);
        jSONObject5.put("checksum", string);
        l2.a.a.a.getClass();
        String string2 = jSONObject5.getString("coreVersion");
        try {
            str = m3.F.getString("coreVersion");
        } catch (Exception unused) {
            str = "";
        }
        if (!TextUtils.isEmpty(string2) && !TextUtils.equals(string2, str)) {
            u3 u3Var2 = l2.a.a.a;
            if (u3Var2.b == null) {
                u3Var2.b = u3Var2.d();
            }
            try {
                String str2 = new String(Base64.encode(p.b("AES/CBC/PKCS5Padding", m3.f1110v, m3.f1111w, decode), 0), StandardCharsets.UTF_8);
                ContentValues contentValues = new ContentValues();
                contentValues.put(IApp.ConfigProperty.CONFIG_KEY, (Integer) 17);
                contentValues.put("value", str2);
                r2.a("replace resultId = " + u3Var2.b.replace("zx_table", null, contentValues));
            } catch (Exception e3) {
                r2.b("ZXID updateDBValue valueID:17,value:" + decode + ",error:" + e3.toString());
            }
            l2.a.a.a.a(18, jSONObject5.toString(), true);
            m3.F = jSONObject5;
        }
        r2.a("decrypt and checksum finished");
    }
}