正在查看: Top浏览器 v4.6.16 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Top浏览器 v4.6.16 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package c.b.a.c.w;
import android.content.Context;
import android.text.TextUtils;
import androidx.camera.camera2.internal.Camera2CameraImpl;
import c.b.a.c.j0.e;
import c.b.a.c.j0.i;
import c.b.a.c.j0.m;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class a {
public static a a;
public JSONObject B;
public int f335b = Camera2CameraImpl.StateCallback.CameraReopenMonitor.REOPEN_LIMIT_MS;
public boolean f336c = false;
public String d = "https://h5.m.taobao.com/mlapp/olist.html";
public int e = 10;
public boolean f = true;
public boolean g = true;
public boolean h = false;
public boolean i = false;
public boolean j = false;
public boolean k = true;
public boolean l = true;
public String f337m = "";
public boolean n = false;
public boolean o = false;
public boolean p = false;
public boolean q = false;
public boolean r = true;
public String s = "";
public String t = "";
public boolean u = false;
public boolean v = false;
public boolean w = false;
public boolean x = false;
public boolean y = false;
public int z = 1000;
public boolean A = false;
public boolean C = true;
public List<b> D = null;
public int E = -1;
public class RunnableC0033a implements Runnable {
public final c.b.a.c.h0.a a;
public final Context f338b;
public final boolean f339c;
public final int d;
public RunnableC0033a(c.b.a.c.h0.a aVar, Context context, boolean z, int i) {
this.a = aVar;
this.f338b = context;
this.f339c = z;
this.d = i;
}
@Override
public void run() {
try {
c.b.a.c.b0.b a = new c.b.a.c.d0.b().a(this.a, this.f338b);
if (a != null) {
a.this.k(this.a, a.a());
a.this.i(c.b.a.c.h0.a.w());
c.b.a.c.s.a.b(this.a, "biz", "offcfg|" + this.f339c + "|" + this.d);
}
} catch (Throwable th) {
e.d(th);
}
}
}
public static final class b {
public final String a;
public final int f340b;
public final String f341c;
public b(String str, int i, String str2) {
this.a = str;
this.f340b = i;
this.f341c = str2;
}
public static b a(JSONObject jSONObject) {
if (jSONObject == null) {
return null;
}
return new b(jSONObject.optString("pn"), jSONObject.optInt("v", 0), jSONObject.optString("pk"));
}
public static List<b> b(JSONArray jSONArray) {
if (jSONArray == null) {
return null;
}
ArrayList arrayList = new ArrayList();
int length = jSONArray.length();
for (int i = 0; i < length; i++) {
b a = a(jSONArray.optJSONObject(i));
if (a != null) {
arrayList.add(a);
}
}
return arrayList;
}
public static JSONArray c(List<b> list) {
if (list == null) {
return null;
}
JSONArray jSONArray = new JSONArray();
Iterator<b> it = list.iterator();
while (it.hasNext()) {
jSONArray.put(d(it.next()));
}
return jSONArray;
}
public static JSONObject d(b bVar) {
if (bVar == null) {
return null;
}
try {
return new JSONObject().put("pn", bVar.a).put("v", bVar.f340b).put("pk", bVar.f341c);
} catch (JSONException e) {
e.d(e);
return null;
}
}
public String toString() {
return String.valueOf(d(this));
}
}
public static a d() {
if (a == null) {
a aVar = new a();
a = aVar;
aVar.G();
}
return a;
}
public boolean A() {
return this.o;
}
public boolean B() {
return this.x;
}
public boolean C() {
return this.p;
}
public boolean D() {
return this.u;
}
public String E() {
return this.d;
}
public boolean F() {
return this.r;
}
public void G() {
Context c2 = c.b.a.c.h0.b.e().c();
String b2 = i.b(c.b.a.c.h0.a.w(), c2, "alipay_cashier_dynamic_config", null);
try {
this.E = Integer.parseInt(i.b(c.b.a.c.h0.a.w(), c2, "utdid_factor", "-1"));
} catch (Exception unused) {
}
l(b2);
}
public boolean H() {
return this.w;
}
public boolean I() {
return this.A;
}
public boolean J() {
return this.v;
}
public boolean K() {
return this.C;
}
public boolean L() {
return this.f336c;
}
public boolean M() {
return this.h;
}
public boolean a() {
return this.y;
}
public boolean b() {
return this.q;
}
public final int c() {
return this.z;
}
public final JSONObject e() {
JSONObject jSONObject = new JSONObject();
jSONObject.put("timeout", x());
jSONObject.put("h5_port_degrade", L());
jSONObject.put("tbreturl", E());
jSONObject.put("configQueryInterval", q());
jSONObject.put("launchAppSwitch", b.c(y()));
jSONObject.put("scheme_pay_2", v());
jSONObject.put("intercept_batch", u());
jSONObject.put("deg_log_mcgw", r());
jSONObject.put("deg_start_srv_first", s());
jSONObject.put("prev_jump_dual", z());
jSONObject.put("use_sc_only", t());
jSONObject.put("bind_use_imp", o());
jSONObject.put("retry_bnd_once", A());
jSONObject.put("skip_trans", C());
jSONObject.put("start_trans", b());
jSONObject.put("up_before_pay", F());
jSONObject.put("use_sc_lck_a", B());
jSONObject.put("lck_k", w());
jSONObject.put("bind_with_startActivity", p());
jSONObject.put("startActivity_InsteadOf_Scheme", D());
jSONObject.put("retry_aidl_activity_not_start", a());
jSONObject.put("cfg_max_time", c());
jSONObject.put("get_oa_id", K());
jSONObject.put("notifyFailApp", I());
jSONObject.put("enableStartActivityFallback", J());
jSONObject.put("enableBindExFallback", H());
jSONObject.put("startactivity_in_ui_thread", M());
jSONObject.put("ap_args", f());
return jSONObject;
}
public JSONObject f() {
return this.B;
}
public final void i(c.b.a.c.h0.a aVar) {
try {
JSONObject e = e();
i.c(aVar, c.b.a.c.h0.b.e().c(), "alipay_cashier_dynamic_config", e.toString());
} catch (Exception e2) {
e.d(e2);
}
}
public void j(c.b.a.c.h0.a aVar, Context context, boolean z, int i) {
c.b.a.c.s.a.b(aVar, "biz", "oncfg|" + z + "|" + i);
RunnableC0033a runnableC0033a = new RunnableC0033a(aVar, context, z, i);
if (!z || m.Z()) {
Thread thread = new Thread(runnableC0033a);
thread.setName("AlipayDCP");
thread.start();
return;
}
int c2 = c();
if (m.u(c2, runnableC0033a, "AlipayDCPBlok")) {
return;
}
c.b.a.c.s.a.h(aVar, "biz", "LogAppFetchConfigTimeout", "" + c2);
}
public final void k(c.b.a.c.h0.a aVar, String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str);
JSONObject optJSONObject = jSONObject.optJSONObject("st_sdk_config");
c.b.a.c.j0.a.e(aVar, optJSONObject, c.b.a.c.j0.a.c(aVar, jSONObject));
if (optJSONObject != null) {
m(optJSONObject);
} else {
e.i("DynCon", "empty config");
}
} catch (Throwable th) {
e.d(th);
}
}
public final void l(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
m(new JSONObject(str));
} catch (Throwable th) {
e.d(th);
}
}
public final void m(JSONObject jSONObject) {
this.f335b = jSONObject.optInt("timeout", Camera2CameraImpl.StateCallback.CameraReopenMonitor.REOPEN_LIMIT_MS);
this.f336c = jSONObject.optBoolean("h5_port_degrade", false);
this.d = jSONObject.optString("tbreturl", "https://h5.m.taobao.com/mlapp/olist.html").trim();
this.e = jSONObject.optInt("configQueryInterval", 10);
this.D = b.b(jSONObject.optJSONArray("launchAppSwitch"));
this.f = jSONObject.optBoolean("scheme_pay_2", true);
this.g = jSONObject.optBoolean("intercept_batch", true);
this.j = jSONObject.optBoolean("deg_log_mcgw", false);
this.k = jSONObject.optBoolean("deg_start_srv_first", true);
this.l = jSONObject.optBoolean("prev_jump_dual", true);
this.f337m = jSONObject.optString("use_sc_only", "");
this.n = jSONObject.optBoolean("bind_use_imp", false);
this.o = jSONObject.optBoolean("retry_bnd_once", false);
this.p = jSONObject.optBoolean("skip_trans", false);
this.q = jSONObject.optBoolean("start_trans", false);
this.r = jSONObject.optBoolean("up_before_pay", true);
this.s = jSONObject.optString("lck_k", "");
this.x = jSONObject.optBoolean("use_sc_lck_a", false);
this.y = jSONObject.optBoolean("retry_aidl_activity_not_start", false);
this.A = jSONObject.optBoolean("notifyFailApp", false);
this.t = jSONObject.optString("bind_with_startActivity", "");
this.u = jSONObject.optBoolean("startActivity_InsteadOf_Scheme", false);
this.z = jSONObject.optInt("cfg_max_time", 1000);
this.C = jSONObject.optBoolean("get_oa_id", true);
this.v = jSONObject.optBoolean("enableStartActivityFallback", false);
this.w = jSONObject.optBoolean("enableBindExFallback", false);
this.h = jSONObject.optBoolean("startactivity_in_ui_thread", false);
this.B = jSONObject.optJSONObject("ap_args");
}
public boolean n(Context context, int i) {
if (this.E == -1) {
this.E = m.a();
i.c(c.b.a.c.h0.a.w(), context, "utdid_factor", String.valueOf(this.E));
}
return this.E < i;
}
public boolean o() {
return this.n;
}
public String p() {
return this.t;
}
public int q() {
return this.e;
}
public boolean r() {
return this.j;
}
public boolean s() {
return this.k;
}
public String t() {
return this.f337m;
}
public boolean u() {
return this.g;
}
public boolean v() {
return this.f;
}
public String w() {
return this.s;
}
public int x() {
int i = this.f335b;
if (i < 1000 || i > 20000) {
e.f("DynCon", "time(def) = 10000");
return Camera2CameraImpl.StateCallback.CameraReopenMonitor.REOPEN_LIMIT_MS;
}
e.f("DynCon", "time = " + this.f335b);
return this.f335b;
}
public List<b> y() {
return this.D;
}
public boolean z() {
return this.l;
}
}