正在查看: 品质商城 v1.0 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 品质商城 v1.0 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package A0;
import M0.j;
import android.app.Activity;
import android.content.Context;
import android.os.ConditionVariable;
import android.os.Looper;
import android.text.TextUtils;
import g.C0179a;
import java.util.ArrayList;
import java.util.Iterator;
import m0.AbstractC0318b;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import w0.e;
import w0.f;
public final class c {
public static c f8D;
public boolean f9A;
public ArrayList f10B;
public int f11C;
public int f12a;
public boolean f13b;
public String f14c;
public int f15d;
public boolean f16e;
public boolean f17f;
public boolean f18g;
public boolean f19h;
public boolean f20i;
public boolean f21j;
public String f22k;
public boolean f23l;
public boolean f24m;
public boolean f25n;
public boolean f26o;
public boolean f27p;
public String f28q;
public String f29r;
public boolean f30s;
public boolean f31t;
public boolean f32u;
public boolean f33v;
public boolean f34w;
public int f35x;
public boolean f36y;
public JSONObject f37z;
public static c a() {
if (f8D == null) {
c cVar = new c();
cVar.f12a = 10000;
cVar.f13b = false;
cVar.f14c = "https://h5.m.taobao.com/mlapp/olist.html";
cVar.f15d = 10;
cVar.f16e = false;
cVar.f17f = true;
cVar.f18g = false;
cVar.f19h = false;
cVar.f20i = true;
cVar.f21j = true;
cVar.f22k = "";
cVar.f23l = false;
cVar.f24m = false;
cVar.f25n = false;
cVar.f26o = false;
cVar.f27p = true;
cVar.f28q = "";
cVar.f29r = "";
cVar.f30s = false;
cVar.f31t = false;
cVar.f32u = false;
cVar.f33v = false;
cVar.f34w = false;
cVar.f35x = 1000;
cVar.f36y = false;
cVar.f9A = true;
cVar.f10B = null;
cVar.f11C = -1;
f8D = cVar;
Context context = C0179a.c().f3332a;
String h2 = j.h(context, null, "alipay_cashier_dynamic_config", null);
try {
cVar.f11C = Integer.parseInt(j.h(context, null, "utdid_factor", "-1"));
} catch (Exception unused) {
}
if (!TextUtils.isEmpty(h2)) {
try {
cVar.e(new JSONObject(h2));
} catch (Throwable th) {
e.d(th);
}
}
}
return f8D;
}
public static void c(c cVar, K0.b bVar, String str) {
cVar.getClass();
if (TextUtils.isEmpty(str)) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str);
JSONObject optJSONObject = jSONObject.optJSONObject("st_sdk_config");
String optString = jSONObject.optString("ap_resp");
JSONObject jSONObject2 = null;
try {
if (!TextUtils.isEmpty(optString)) {
jSONObject2 = new JSONObject(optString);
}
} catch (JSONException e2) {
f.f(bVar, "biz", "APMEx2", e2);
}
if (optJSONObject != null && jSONObject2 != null) {
try {
optJSONObject.putOpt("ap_args", jSONObject2);
} catch (JSONException e3) {
f.f(bVar, "biz", "APMEx2", e3);
}
}
if (optJSONObject != null) {
cVar.e(optJSONObject);
}
} catch (Throwable th) {
e.d(th);
}
}
public final JSONObject b() {
JSONArray jSONArray;
JSONObject jSONObject = new JSONObject();
jSONObject.put("timeout", g());
jSONObject.put("h5_port_degrade", this.f13b);
jSONObject.put("tbreturl", this.f14c);
jSONObject.put("configQueryInterval", this.f15d);
ArrayList arrayList = this.f10B;
if (arrayList == null) {
jSONArray = null;
} else {
JSONArray jSONArray2 = new JSONArray();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
jSONArray2.put(b.a((b) it.next()));
}
jSONArray = jSONArray2;
}
jSONObject.put("launchAppSwitch", jSONArray);
jSONObject.put("scheme_pay_2", this.f16e);
jSONObject.put("intercept_batch", this.f17f);
jSONObject.put("deg_log_mcgw", this.f19h);
jSONObject.put("deg_start_srv_first", this.f20i);
jSONObject.put("prev_jump_dual", this.f21j);
jSONObject.put("use_sc_only", this.f22k);
jSONObject.put("bind_use_imp", this.f23l);
jSONObject.put("retry_bnd_once", this.f24m);
jSONObject.put("skip_trans", this.f25n);
jSONObject.put("start_trans", this.f26o);
jSONObject.put("up_before_pay", this.f27p);
jSONObject.put("use_sc_lck_a", this.f33v);
jSONObject.put("lck_k", this.f28q);
jSONObject.put("bind_with_startActivity", this.f29r);
jSONObject.put("startActivity_InsteadOf_Scheme", this.f30s);
jSONObject.put("retry_aidl_activity_not_start", this.f34w);
jSONObject.put("cfg_max_time", this.f35x);
jSONObject.put("get_oa_id", this.f9A);
jSONObject.put("notifyFailApp", this.f36y);
jSONObject.put("enableStartActivityFallback", this.f31t);
jSONObject.put("enableBindExFallback", this.f32u);
jSONObject.put("startactivity_in_ui_thread", this.f18g);
jSONObject.put("ap_args", this.f37z);
return jSONObject;
}
public final void d(K0.b bVar, Context context, boolean z2, int i2) {
f.d(bVar, "oncfg|" + z2 + "|" + i2);
a aVar = new a(this, bVar, context, z2, i2);
if (!z2 || Thread.currentThread() == Looper.getMainLooper().getThread()) {
Thread thread = new Thread(aVar);
thread.setName("AlipayDCP");
thread.start();
return;
}
int i3 = this.f35x;
long j2 = i3;
ConditionVariable conditionVariable = new ConditionVariable();
Thread thread2 = new Thread(new M0.e(aVar, conditionVariable));
if (!TextUtils.isEmpty("AlipayDCPBlok")) {
thread2.setName("AlipayDCPBlok");
}
thread2.start();
try {
if (j2 <= 0) {
conditionVariable.block();
} else if (!conditionVariable.block(j2)) {
f.o(bVar, "biz", "LogAppFetchConfigTimeout", "" + i3);
}
} catch (Throwable unused) {
}
}
public final void e(JSONObject jSONObject) {
this.f12a = jSONObject.optInt("timeout", 10000);
this.f13b = jSONObject.optBoolean("h5_port_degrade", false);
this.f14c = jSONObject.optString("tbreturl", "https://h5.m.taobao.com/mlapp/olist.html").trim();
this.f15d = jSONObject.optInt("configQueryInterval", 10);
JSONArray optJSONArray = jSONObject.optJSONArray("launchAppSwitch");
ArrayList arrayList = null;
if (optJSONArray != null) {
ArrayList arrayList2 = new ArrayList();
int length = optJSONArray.length();
for (int i2 = 0; i2 < length; i2++) {
JSONObject optJSONObject = optJSONArray.optJSONObject(i2);
b bVar = optJSONObject == null ? null : new b(optJSONObject.optInt("v", 0), optJSONObject.optString("pn"), optJSONObject.optString("pk"));
if (bVar != null) {
arrayList2.add(bVar);
}
}
arrayList = arrayList2;
}
this.f10B = arrayList;
this.f16e = jSONObject.optBoolean("scheme_pay_2", false);
this.f17f = jSONObject.optBoolean("intercept_batch", true);
this.f19h = jSONObject.optBoolean("deg_log_mcgw", false);
this.f20i = jSONObject.optBoolean("deg_start_srv_first", true);
this.f21j = jSONObject.optBoolean("prev_jump_dual", true);
this.f22k = jSONObject.optString("use_sc_only", "");
this.f23l = jSONObject.optBoolean("bind_use_imp", false);
this.f24m = jSONObject.optBoolean("retry_bnd_once", false);
this.f25n = jSONObject.optBoolean("skip_trans", false);
this.f26o = jSONObject.optBoolean("start_trans", false);
this.f27p = jSONObject.optBoolean("up_before_pay", true);
this.f28q = jSONObject.optString("lck_k", "");
this.f33v = jSONObject.optBoolean("use_sc_lck_a", false);
this.f34w = jSONObject.optBoolean("retry_aidl_activity_not_start", false);
this.f36y = jSONObject.optBoolean("notifyFailApp", false);
this.f29r = jSONObject.optString("bind_with_startActivity", "");
this.f30s = jSONObject.optBoolean("startActivity_InsteadOf_Scheme", false);
this.f35x = jSONObject.optInt("cfg_max_time", 1000);
this.f9A = jSONObject.optBoolean("get_oa_id", true);
this.f31t = jSONObject.optBoolean("enableStartActivityFallback", false);
this.f32u = jSONObject.optBoolean("enableBindExFallback", false);
this.f18g = jSONObject.optBoolean("startactivity_in_ui_thread", false);
this.f37z = jSONObject.optJSONObject("ap_args");
}
public final boolean f(Activity activity, int i2) {
int i3 = 0;
int i4 = -1;
if (this.f11C == -1) {
String b2 = C0179a.c().b();
if (!TextUtils.isEmpty(b2)) {
String replaceAll = b2.replaceAll("=", "");
if (replaceAll.length() >= 5) {
replaceAll = replaceAll.substring(0, 5);
}
int pow = (int) Math.pow(2.0d, 6);
int length = replaceAll.length();
long j2 = 0;
int i5 = 0;
int i6 = length;
while (i5 < length) {
int i7 = i5 + 1;
String substring = replaceAll.substring(i5, i7);
int i8 = i3;
while (true) {
if (i8 >= 64) {
i8 = i3;
break;
}
if (substring.equals(String.valueOf(AbstractC0318b.f4268e[i8]))) {
break;
}
i8++;
}
j2 += Integer.parseInt(String.valueOf(i8)) * ((long) Math.pow(pow, i6 - 1));
i6--;
i5 = i7;
i3 = 0;
}
i4 = (int) (j2 % 10000);
if (i4 < 0) {
i4 *= -1;
}
}
this.f11C = i4;
j.l(activity, null, "utdid_factor", String.valueOf(i4));
}
return this.f11C < i2;
}
public final int g() {
int i2 = this.f12a;
if (i2 < 1000 || i2 > 20000) {
return 10000;
}
return i2;
}
}