导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - a.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 a.java JAVA 源代码文件

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


package w9;

import android.content.Context;
import android.text.TextUtils;
import cn.fly.verify.BuildConfig;
import com.baidu.location.LocationClientOption;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import la.f;
import la.j;
import la.n;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public final class a {
    public static a H;
    public JSONObject D;

    public int f19733a = LocationClientOption.MIN_AUTO_NOTIFY_INTERVAL;

    public boolean f19734b = false;

    public String f19735c = "https://h5.m.taobao.com/mlapp/olist.html";

    public int f19736d = 10;

    public boolean f19737e = true;

    public boolean f19738f = false;

    public boolean f19739g = false;

    public boolean f19740h = false;

    public boolean f19741i = true;

    public boolean f19742j = true;

    public boolean f19743k = false;

    public boolean f19744l = true;

    public boolean f19745m = false;

    public boolean f19746n = false;

    public boolean f19747o = false;

    public boolean f19748p = true;

    public String f19749q = BuildConfig.FLAVOR;

    public String f19750r = BuildConfig.FLAVOR;

    public boolean f19751s = false;

    public boolean f19752t = false;

    public boolean f19753u = false;

    public int f19754v = LocationClientOption.MIN_SCAN_SPAN;

    public boolean f19755w = false;

    public Boolean f19756x = null;
    public Boolean y = null;
    public Boolean z = null;
    public Boolean A = null;
    public Boolean B = null;
    public Boolean C = null;
    public boolean E = true;
    public List<b> F = null;
    public int G = -1;

    public class RunnableC0312a implements Runnable {

        public final ja.a f19757a;

        public final Context f19758b;

        public final boolean f19759c;

        public final int f19760d;

        public RunnableC0312a(ja.a aVar, Context context, boolean z, int i10) {
            this.f19757a = aVar;
            this.f19758b = context;
            this.f19759c = z;
            this.f19760d = i10;
        }

        @Override
        public void run() {
            try {
                da.b a10 = new fa.b().a(this.f19757a, this.f19758b);
                if (a10 != null) {
                    a.this.f(this.f19757a, a10.a());
                    a.this.w(ja.a.u());
                    s9.a.b(this.f19757a, "biz", "offcfg|" + this.f19759c + "|" + this.f19760d);
                }
            } catch (Throwable th) {
                f.d(th);
            }
        }
    }

    public static final class b {

        public final String f19762a;

        public final int f19763b;

        public final String f19764c;

        public b(String str, int i10, String str2) {
            this.f19762a = str;
            this.f19763b = i10;
            this.f19764c = str2;
        }

        public static List<b> a(JSONArray jSONArray) {
            if (jSONArray == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            int length = jSONArray.length();
            for (int i10 = 0; i10 < length; i10++) {
                b d10 = d(jSONArray.optJSONObject(i10));
                if (d10 != null) {
                    arrayList.add(d10);
                }
            }
            return arrayList;
        }

        public static JSONArray b(List<b> list) {
            if (list == null) {
                return null;
            }
            JSONArray jSONArray = new JSONArray();
            Iterator<b> it = list.iterator();
            while (it.hasNext()) {
                jSONArray.put(c(it.next()));
            }
            return jSONArray;
        }

        public static JSONObject c(b bVar) {
            if (bVar == null) {
                return null;
            }
            try {
                return new JSONObject().put("pn", bVar.f19762a).put("v", bVar.f19763b).put("pk", bVar.f19764c);
            } catch (JSONException e10) {
                f.d(e10);
                return null;
            }
        }

        public static b d(JSONObject jSONObject) {
            if (jSONObject == null) {
                return null;
            }
            return new b(jSONObject.optString("pn"), jSONObject.optInt("v", 0), jSONObject.optString("pk"));
        }

        public String toString() {
            return String.valueOf(c(this));
        }
    }

    public static a z() {
        if (H == null) {
            a aVar = new a();
            H = aVar;
            aVar.K();
        }
        return H;
    }

    public boolean A() {
        return this.f19737e;
    }

    public String B() {
        return this.f19749q;
    }

    public int C() {
        int i10 = this.f19733a;
        if (i10 < 1000 || i10 > 20000) {
            f.f("DynCon", "time(def) = 10000");
            return LocationClientOption.MIN_AUTO_NOTIFY_INTERVAL;
        }
        f.f("DynCon", "time = " + this.f19733a);
        return this.f19733a;
    }

    public List<b> D() {
        return this.F;
    }

    public boolean E() {
        return this.f19742j;
    }

    public boolean F() {
        return this.f19745m;
    }

    public boolean G() {
        return this.f19753u;
    }

    public boolean H() {
        return this.f19746n;
    }

    public String I() {
        return this.f19735c;
    }

    public boolean J() {
        return this.f19748p;
    }

    public void K() {
        Context c10 = ja.b.d().c();
        String b10 = j.b(ja.a.u(), c10, "alipay_cashier_dynamic_config", null);
        try {
            this.G = Integer.parseInt(j.b(ja.a.u(), c10, "utdid_factor", "-1"));
        } catch (Exception unused) {
        }
        h(b10);
    }

    public boolean L() {
        Boolean bool = this.z;
        return bool != null && bool.booleanValue();
    }

    public boolean M() {
        return this.f19752t;
    }

    public boolean N() {
        return this.f19755w;
    }

    public boolean O() {
        return this.f19751s;
    }

    public boolean P() {
        return this.E;
    }

    public boolean Q() {
        return this.f19734b;
    }

    public boolean a() {
        return this.f19738f;
    }

    public boolean b() {
        return this.f19747o;
    }

    public final JSONObject c() throws JSONException {
        JSONObject jSONObject = new JSONObject();
        jSONObject.put("timeout", C());
        jSONObject.put("h5_port_degrade", Q());
        jSONObject.put("tbreturl", I());
        jSONObject.put("configQueryInterval", t());
        jSONObject.put("launchAppSwitch", b.b(D()));
        jSONObject.put("intercept_batch", A());
        jSONObject.put("deg_log_mcgw", x());
        jSONObject.put("deg_start_srv_first", y());
        jSONObject.put("prev_jump_dual", E());
        jSONObject.put("bind_use_imp", p());
        jSONObject.put("bind_use_allow_activity_starts", n());
        jSONObject.put("retry_bnd_once", F());
        jSONObject.put("skip_trans", H());
        jSONObject.put("start_trans", b());
        jSONObject.put("up_before_pay", J());
        jSONObject.put("use_sc_lck_a", G());
        jSONObject.put("lck_k", B());
        jSONObject.put("bind_with_startActivity", r());
        jSONObject.put("cfg_max_time", v());
        jSONObject.put("get_oa_id", P());
        jSONObject.put("notifyFailApp", N());
        jSONObject.put("enableStartActivityFallback", O());
        jSONObject.put("enableBindExFallback", M());
        jSONObject.put("startactivity_in_ui_thread", a());
        jSONObject.put("ap_args", d());
        Boolean bool = this.f19756x;
        if (bool != null) {
            jSONObject.put("optimize_trans_activity_degrade", bool);
        }
        Boolean bool2 = this.y;
        if (bool2 != null) {
            jSONObject.put("register_app_degrade", bool2);
        }
        Boolean bool3 = this.A;
        if (bool3 != null) {
            jSONObject.put("sdk_pre_heat", bool3);
        }
        Boolean bool4 = this.B;
        if (bool4 != null) {
            jSONObject.put("external_sdk_data_degrade", bool4);
        }
        Boolean bool5 = this.C;
        if (bool5 != null) {
            jSONObject.put("local_web_pay", bool5);
        }
        Boolean bool6 = this.z;
        if (bool6 != null) {
            jSONObject.put("degrade_web_ua_version", bool6);
        }
        return jSONObject;
    }

    public JSONObject d() {
        return this.D;
    }

    public void e(ja.a aVar, Context context, boolean z, int i10) {
        s9.a.b(aVar, "biz", "oncfg|" + z + "|" + i10);
        RunnableC0312a runnableC0312a = new RunnableC0312a(aVar, context, z, i10);
        if (!z || n.Z()) {
            Thread thread = new Thread(runnableC0312a);
            thread.setName("AlipayDCP");
            thread.start();
            return;
        }
        int v10 = v();
        if (n.v(v10, runnableC0312a, "AlipayDCPBlok")) {
            return;
        }
        s9.a.h(aVar, "biz", "LogAppFetchConfigTimeout", BuildConfig.FLAVOR + v10);
    }

    public final void f(ja.a aVar, String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            JSONObject jSONObject = new JSONObject(str);
            JSONObject optJSONObject = jSONObject.optJSONObject("st_sdk_config");
            la.a.e(aVar, optJSONObject, la.a.c(aVar, jSONObject));
            if (optJSONObject != null) {
                i(optJSONObject);
            } else {
                f.i("DynCon", "empty config");
            }
        } catch (Throwable th) {
            f.d(th);
        }
    }

    public final void g(ja.a aVar, String str, String str2) {
        if (aVar == null) {
            return;
        }
        s9.a.c(aVar, "biz", "getConfig", str + "|" + str2);
    }

    public final void h(String str) {
        if (TextUtils.isEmpty(str)) {
            return;
        }
        try {
            i(new JSONObject(str));
        } catch (Throwable th) {
            f.d(th);
        }
    }

    public final void i(JSONObject jSONObject) {
        this.f19733a = jSONObject.optInt("timeout", LocationClientOption.MIN_AUTO_NOTIFY_INTERVAL);
        this.f19734b = jSONObject.optBoolean("h5_port_degrade", false);
        this.f19735c = jSONObject.optString("tbreturl", "https://h5.m.taobao.com/mlapp/olist.html").trim();
        this.f19736d = jSONObject.optInt("configQueryInterval", 10);
        this.F = b.a(jSONObject.optJSONArray("launchAppSwitch"));
        this.f19737e = jSONObject.optBoolean("intercept_batch", true);
        this.f19740h = jSONObject.optBoolean("deg_log_mcgw", false);
        this.f19741i = jSONObject.optBoolean("deg_start_srv_first", true);
        this.f19742j = jSONObject.optBoolean("prev_jump_dual", true);
        this.f19743k = jSONObject.optBoolean("bind_use_imp", false);
        this.f19744l = jSONObject.optBoolean("bind_use_allow_activity_starts", true);
        this.f19745m = jSONObject.optBoolean("retry_bnd_once", false);
        this.f19746n = jSONObject.optBoolean("skip_trans", false);
        this.f19747o = jSONObject.optBoolean("start_trans", false);
        this.f19748p = jSONObject.optBoolean("up_before_pay", true);
        this.f19749q = jSONObject.optString("lck_k", BuildConfig.FLAVOR);
        this.f19753u = jSONObject.optBoolean("use_sc_lck_a", false);
        this.f19755w = jSONObject.optBoolean("notifyFailApp", false);
        this.f19750r = jSONObject.optString("bind_with_startActivity", BuildConfig.FLAVOR);
        this.f19754v = jSONObject.optInt("cfg_max_time", LocationClientOption.MIN_SCAN_SPAN);
        this.E = jSONObject.optBoolean("get_oa_id", true);
        this.f19751s = jSONObject.optBoolean("enableStartActivityFallback", false);
        this.f19752t = jSONObject.optBoolean("enableBindExFallback", false);
        this.f19738f = jSONObject.optBoolean("startactivity_in_ui_thread", false);
        this.D = jSONObject.optJSONObject("ap_args");
        if (jSONObject.has("optimize_trans_activity_degrade")) {
            this.f19756x = Boolean.valueOf(jSONObject.optBoolean("optimize_trans_activity_degrade", false));
        } else {
            this.f19756x = null;
        }
        if (jSONObject.has("register_app_degrade")) {
            this.y = Boolean.valueOf(jSONObject.optBoolean("register_app_degrade", false));
        } else {
            this.y = null;
        }
        if (jSONObject.has("sdk_pre_heat")) {
            this.A = Boolean.valueOf(jSONObject.optBoolean("sdk_pre_heat", false));
        } else {
            this.A = null;
        }
        if (jSONObject.has("external_sdk_data_degrade")) {
            this.B = Boolean.valueOf(jSONObject.optBoolean("external_sdk_data_degrade", false));
        } else {
            this.B = null;
        }
        if (jSONObject.has("local_web_pay")) {
            this.C = Boolean.valueOf(jSONObject.optBoolean("local_web_pay", false));
        } else {
            this.C = null;
        }
        if (jSONObject.has("degrade_web_ua_version")) {
            this.z = Boolean.valueOf(jSONObject.optBoolean("degrade_web_ua_version", false));
        } else {
            this.z = null;
        }
    }

    public boolean l(Context context, int i10) {
        if (this.G == -1) {
            this.G = n.a();
            j.c(ja.a.u(), context, "utdid_factor", String.valueOf(this.G));
        }
        return this.G < i10;
    }

    public boolean m(ja.a aVar) {
        g(aVar, "external_sdk_data_degrade", String.valueOf(this.B));
        Boolean bool = this.B;
        return bool != null && bool.booleanValue();
    }

    public boolean n() {
        return this.f19744l;
    }

    public boolean o(ja.a aVar) {
        g(aVar, "optimize_trans_activity_degrade", String.valueOf(this.f19756x));
        Boolean bool = this.f19756x;
        return bool != null && bool.booleanValue();
    }

    public boolean p() {
        return this.f19743k;
    }

    public boolean q(ja.a aVar) {
        g(aVar, "register_app_degrade", String.valueOf(this.y));
        Boolean bool = this.y;
        return bool != null && bool.booleanValue();
    }

    public String r() {
        return this.f19750r;
    }

    public boolean s(ja.a aVar) {
        g(aVar, "local_web_pay", String.valueOf(this.C));
        Boolean bool = this.C;
        return bool != null && bool.booleanValue();
    }

    public int t() {
        return this.f19736d;
    }

    public boolean u(ja.a aVar) {
        g(aVar, "sdk_pre_heat", String.valueOf(this.A));
        Boolean bool = this.A;
        return bool != null && bool.booleanValue();
    }

    public final int v() {
        return this.f19754v;
    }

    public final void w(ja.a aVar) {
        try {
            j.c(aVar, ja.b.d().c(), "alipay_cashier_dynamic_config", c().toString());
        } catch (Exception e10) {
            f.d(e10);
        }
    }

    public boolean x() {
        return this.f19740h;
    }

    public boolean y() {
        return this.f19741i;
    }
}