Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
package com.mbridge.msdk.foundation.same.net.e;
/* loaded from: classes4.dex */
public final class a {
public static String a(com.mbridge.msdk.foundation.same.net.a.a aVar) {
if (aVar == null) {
return "Network error,Load failed";
}
try {
int i = aVar.a;
com.mbridge.msdk.foundation.same.net.d.a aVar2 = aVar.c;
int i2 = aVar2 != null ? aVar2.d : 0;
if (i == -2) {
return "Network is canceled";
}
if (i == 15) {
return "Network error,I/O exception contents null";
}
if (i == 880023) {
return "timeout";
}
if (i == 880041) {
return "Network error,UnknownHostException";
}
switch (i) {
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
if (i2 == 0) {
break;
} else {
break;
}
case 7:
if (i2 == 0) {
break;
} else {
break;
}
case 8:
break;
default:
switch (i) {
case 13:
if (aVar2 == null) {
break;
} else {
byte[] bArr = aVar2.a;
if (bArr == null) {
break;
} else {
break;
}
}
}
}
return "Network error,Load failed";
} catch (Exception e) {
e.printStackTrace();
return "Network error,Load failed";
}
}
}

View File

@@ -0,0 +1,38 @@
package com.mbridge.msdk.foundation.same.net.e;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.same.net.f.e;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ap;
import com.mbridge.msdk.foundation.tools.aq;
/* loaded from: classes4.dex */
public class b {
private static final String a = "b";
public static void a(e eVar, String str, String str2) {
if (eVar != null) {
try {
if (!ap.a(str) && !ap.a(str2)) {
eVar.a(str, str2);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
public static void a(String str) {
try {
if (TextUtils.isEmpty(str)) {
return;
}
if (str.startsWith("http")) {
str = aq.a(str);
}
TextUtils.isEmpty(str);
} catch (Throwable th) {
af.b(a, th.getMessage());
}
}
}

View File

@@ -0,0 +1,152 @@
package com.mbridge.msdk.foundation.same.net.e;
import android.text.TextUtils;
import com.ironsource.v8;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.c.g;
import com.mbridge.msdk.c.h;
import com.mbridge.msdk.c.i;
import com.mbridge.msdk.foundation.same.net.f.e;
import com.mbridge.msdk.foundation.tools.af;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class c {
private final String a;
private int b;
private ConcurrentHashMap<String, a> c;
private ArrayList<Integer> d;
public static class b {
private static final c a = new c();
}
private c() {
this.a = "IDErrorUtil";
this.c = new ConcurrentHashMap<>();
this.d = new ArrayList<>();
g b2 = h.a().b(com.mbridge.msdk.foundation.controller.c.m().k());
if (b2 == null) {
h.a();
b2 = i.a();
}
this.b = b2.A() * 1000;
if (b2.E() != null && b2.E().size() > 0) {
af.b("IDErrorUtil", "Setting ercd not EMPTY will use setting.");
this.d.addAll(b2.E());
} else {
af.b("IDErrorUtil", "Setting ercd is EMPTY and use default code list.");
this.d.addAll(Arrays.asList(-1, -10, -1201, -1202, -1203, -1205, -1206, -1208, -1301, -1302, -1305, -1306, -1307, -1915, 10602, 10603, 10604, 10609, 10610, 10616));
}
}
public static c a() {
return b.a;
}
public final synchronized void a(String str, int i, String str2, long j) {
if (this.c.containsKey(str)) {
return;
}
if (TextUtils.isEmpty(str2)) {
return;
}
if (this.d.contains(Integer.valueOf(i))) {
af.b("IDErrorUtil", "addErrorInfo : " + str + " " + str2);
this.c.put(str, new a(j, i, str2));
}
}
public final com.mbridge.msdk.foundation.same.net.d a(String str, String str2, String str3, String str4, String str5) {
return b(str, str2, str3, str4, str5);
}
public final com.mbridge.msdk.foundation.same.net.d a(e eVar) {
String str = eVar.a().get("app_id");
String str2 = eVar.a().get("placement_id");
String str3 = TextUtils.isEmpty(str2) ? "" : str2;
String str4 = eVar.a().get(MBridgeConstans.PROPERTIES_UNIT_ID);
if (TextUtils.isEmpty(str4)) {
str4 = eVar.a().get("unit_ids");
if (!TextUtils.isEmpty(str4)) {
str4 = str4.replace(v8.i.d, "").replace(v8.i.e, "");
}
}
String str5 = str4;
String str6 = eVar.a().get("ad_type");
if (TextUtils.isEmpty(str6)) {
str6 = "0";
}
return b(str, str5, str3, eVar.a().get("token"), str6);
}
private com.mbridge.msdk.foundation.same.net.d b(String str, String str2, String str3, String str4, String str5) {
int parseInt;
String str6 = str + "_" + str3 + "_" + str2 + "_" + str5;
a a2 = a(str6);
ArrayList arrayList = new ArrayList();
arrayList.add(new com.mbridge.msdk.tracker.network.h("data_res_type", "1"));
if (a2 != null && !TextUtils.isEmpty(a2.b)) {
try {
if (a2.a != -1) {
return com.mbridge.msdk.foundation.same.net.d.a(new JSONObject(a2.b), new com.mbridge.msdk.foundation.same.net.d.a(200, a2.b.getBytes(), arrayList));
}
if (!TextUtils.isEmpty(str4)) {
return null;
}
if (str5 != null && !TextUtils.isEmpty(str5) && (parseInt = Integer.parseInt(str5)) != 287 && parseInt != 94) {
if (System.currentTimeMillis() < (h.a().a(str, str2).n() * 1000) + a2.c) {
return com.mbridge.msdk.foundation.same.net.d.a(new JSONObject(a2.b), new com.mbridge.msdk.foundation.same.net.d.a(200, a2.b.getBytes(), arrayList));
}
this.c.remove(str6);
return null;
}
} catch (Exception e) {
af.b("IDErrorUtil", e.getMessage());
}
}
af.b("IDErrorUtil", "getErrorInfo RETURN NULL");
return null;
}
private synchronized a a(String str) {
a aVar;
af.b("IDErrorUtil", "getErrorInfo : " + str);
if (!this.c.containsKey(str) || (aVar = this.c.get(str)) == null) {
return null;
}
if (aVar.a == -1) {
return aVar;
}
if (System.currentTimeMillis() > aVar.c + this.b) {
this.c.remove(str);
if (this.c.size() > 0) {
for (Map.Entry<String, a> entry : this.c.entrySet()) {
af.b("IDErrorUtil", "getErrorInfo : delete timeout entry");
if (System.currentTimeMillis() - entry.getValue().c > this.b) {
this.c.remove(entry.getKey());
}
}
}
return null;
}
af.b("IDErrorUtil", "getErrorInfo : " + aVar.b);
return aVar;
}
public static class a {
public int a;
public String b;
public long c;
public a(long j, int i, String str) {
this.c = j;
this.a = i;
this.b = str;
}
}
}

View File

@@ -0,0 +1,338 @@
package com.mbridge.msdk.foundation.same.net.e;
import android.net.Uri;
import android.text.TextUtils;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.mbridge.msdk.c.g;
import com.mbridge.msdk.c.h;
import com.mbridge.msdk.foundation.same.DomainNameUtils;
import com.mbridge.msdk.foundation.same.report.l;
import com.mbridge.msdk.foundation.same.report.m;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ah;
import com.mbridge.msdk.playercommon.exoplayer2.DefaultLoadControl;
import com.mbridge.msdk.tracker.o;
import com.mbridge.msdk.tracker.t;
import com.mbridge.msdk.tracker.w;
import csdk.gluads.Consts;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.regex.Pattern;
/* loaded from: classes4.dex */
public final class d {
public String A;
public String B;
public String C;
public String D;
public String E;
public String F;
public String G;
public String H;
public String I;
public String J;
public String K;
public String L;
public String M;
public String N;
public String O;
private final String P;
private String Q;
private String R;
private String S;
private String T;
private String U;
private String V;
private String W;
private String X;
private String Y;
private String Z;
public String a;
private String aa;
private String ab;
private String ac;
private String ad;
private boolean ae;
private int af;
public String b;
public String c;
public String d;
public String e;
public String f;
public String g;
public String h;
public String i;
public String j;
public String k;
public String l;
public int m;
public int n;
public int o;
public int p;
public boolean q;
public boolean r;
public int s;
public ArrayList<String> t;
public int u;
public int v;
public ArrayList<String> w;
public String x;
public String y;
public String z;
public static class a {
private static final d a = new d();
}
public final void a(int i) {
this.af = i;
}
public final int d() {
return this.af;
}
private d() {
this.P = "RequestUrlUtil";
this.a = DomainNameUtils.getInstance().DEFAULT_HOST_APPLETS;
this.b = DomainNameUtils.getInstance().DEFAULT_CDN_SPARE_SETTING_URL;
this.c = DomainNameUtils.getInstance().DEFAULT_HOST_ANALYTICS;
this.d = DomainNameUtils.getInstance().DEFAULT_HOST_API;
this.e = DomainNameUtils.getInstance().DEFAULT_HOST_MONITOR_DEFAULT;
this.f = DomainNameUtils.getInstance().DEFAULT_HOST_PRIVACY;
this.g = DomainNameUtils.getInstance().DEFAULT_HOST_REVENUE_DEFAULT;
this.h = DomainNameUtils.getInstance().DEFAULT_HOST_SETTING;
this.i = DomainNameUtils.getInstance().DEFAULT_HOST_TCP_ANALYTICS;
this.j = DomainNameUtils.getInstance().DEFAULT_HOST_TCP_MONITOR;
this.k = DomainNameUtils.getInstance().DEFAULT_HOST_TCP_REVENUE;
this.l = DomainNameUtils.getInstance().DEFAULT_HOST_TCP_SETTING;
this.m = 9377;
this.n = 9377;
this.o = 9988;
this.p = 9377;
this.q = false;
this.r = false;
this.s = 1;
this.t = DomainNameUtils.getInstance().SPARE_SETTING_HOST;
this.u = 0;
this.v = 0;
this.w = DomainNameUtils.getInstance().SPARE_TCP_SETTING_HOST;
this.Q = DomainNameUtils.getInstance().DEFAULT_HB_HOST;
this.R = "/bid";
this.x = this.Q + this.R;
this.S = "/sdk/customid";
this.y = this.h + this.S;
this.z = this.l + this.S;
this.T = "/image";
this.A = this.d + this.T;
this.U = "/load";
this.B = this.Q + this.U;
this.V = "/mapping";
this.C = this.h + this.V;
this.D = this.l + this.V;
this.W = "";
this.E = this.g + this.W;
this.X = "/batchPaidEvent";
this.F = this.g + this.X;
this.Y = "/setting";
this.G = this.h + this.Y;
this.H = this.l + this.Y;
this.Z = "/rewardsetting";
this.I = this.h + this.Z;
this.J = this.l + this.Z;
this.aa = "/appwall/setting";
this.K = this.h + this.aa;
this.L = this.l + this.aa;
this.ab = "/openapi/ad/v3";
this.M = this.d + this.ab;
this.ac = "/openapi/ad/v4";
this.N = this.d + this.ac;
this.ad = "/openapi/ad/v5";
this.O = this.d + this.ad;
this.ae = true;
this.af = 0;
}
public final boolean a() {
try {
if (!this.r) {
ArrayList<String> arrayList = this.t;
if (arrayList != null && this.u <= arrayList.size() - 1) {
this.h = this.t.get(this.u);
b();
return true;
}
} else {
ArrayList<String> arrayList2 = this.w;
if (arrayList2 != null && this.v <= arrayList2.size() - 1) {
if (!b(this.w.get(this.v))) {
this.l = this.w.get(this.v);
c();
}
return true;
}
}
if (this.q) {
this.u = 0;
this.v = 0;
}
return false;
} catch (Throwable th) {
af.a("RequestUrlUtil", th.getMessage());
return false;
}
}
public final void b() {
this.G = this.h + this.Y;
this.y = this.h + this.S;
this.I = this.h + this.Z;
this.C = this.h + this.V;
this.K = this.h + this.aa;
}
private boolean b(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return Pattern.compile("(https|http)://[-A-Za-z0-9{}+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]").matcher(str.trim()).matches();
}
public final void c() {
this.H = this.l + this.Y;
this.z = this.l + this.S;
this.J = this.l + this.Z;
this.D = this.l + this.V;
this.L = this.l + this.aa;
}
public final String a(String str, int i) {
try {
if (!TextUtils.isEmpty(str)) {
String[] split = str.split("_");
if (split.length > 1) {
return a(true, split[1]);
}
return a(true, "");
}
} catch (Exception e) {
af.b("RequestUrlUtil", e.getMessage());
}
return i % 2 == 0 ? this.O : this.M;
}
public final String a(boolean z, String str) {
if (z) {
if (this.B.contains(JsonUtils.EMPTY_JSON) && !TextUtils.isEmpty(str)) {
return this.B.replace(JsonUtils.EMPTY_JSON, str + "-");
}
return this.B.replace(JsonUtils.EMPTY_JSON, "");
}
return this.x.replace(JsonUtils.EMPTY_JSON, "");
}
public final void e() {
HashMap<String, String> J;
o oVar;
g b = h.a().b(com.mbridge.msdk.foundation.controller.c.m().k());
if (b != null) {
com.mbridge.msdk.c.a q = b.q();
if (q != null) {
this.k = q.f();
this.o = q.g();
this.g = q.e();
this.F = this.g + this.X;
}
com.mbridge.msdk.c.d F = b.F();
if (F != null) {
this.j = F.d();
this.n = F.e();
this.e = F.c();
this.E = this.e + this.W;
com.mbridge.msdk.c.d F2 = b.F();
if (F2 != null && F2.a() != 1) {
int a2 = ah.a().a("monitor", "type", ah.a().a("t_r_t", 1));
if (a2 != 0 && a2 != 1) {
a2 = 0;
}
w.a a3 = new w.a().a(new com.mbridge.msdk.foundation.same.report.d()).a(new m());
if (a2 == 1) {
oVar = new o(new l((byte) 2), a.a.j, a.a.n);
} else {
oVar = new o(new com.mbridge.msdk.tracker.network.toolbox.h(), a.a.E, 0);
}
t.a().a(com.mbridge.msdk.foundation.controller.c.m().c(), a3.a(a2, oVar).e(ah.a().a("t_m_e_t", 604800000)).a(ah.a().a("t_m_e_s", 50)).d(ah.a().a("t_m_r_c", 50)).b(ah.a().a("t_m_t", DefaultLoadControl.DEFAULT_MIN_BUFFER_MS)).c(ah.a().a("t_m_r_t_s", 1)).a(), F2.b() * 1000, com.mbridge.msdk.foundation.same.report.c.a());
}
}
this.r = b.aq() == 2;
this.s = b.aq();
this.ae = !b.z(2);
if (b.J() != null && b.J().size() > 0 && (J = b.J()) != null && J.size() > 0) {
if (J.containsKey(Consts.KEY_TAPJOY_USER_ID_VERSION) && !TextUtils.isEmpty(J.get(Consts.KEY_TAPJOY_USER_ID_VERSION)) && b(J.get(Consts.KEY_TAPJOY_USER_ID_VERSION))) {
this.d = J.get(Consts.KEY_TAPJOY_USER_ID_VERSION);
this.M = this.d + this.ab;
this.N = this.d + this.ac;
this.O = this.d + this.ad;
this.A = this.d + this.T;
}
if (J.containsKey("hb") && !TextUtils.isEmpty(J.get("hb")) && b(J.get("hb"))) {
this.Q = J.get("hb");
this.x = this.Q + this.R;
this.B = this.Q + this.U;
}
if (J.containsKey("lg") && !TextUtils.isEmpty(J.get("lg"))) {
String str = J.get("lg");
if (b(str)) {
this.c = str;
} else {
this.i = str;
}
}
if (J.containsKey("lgt") && !TextUtils.isEmpty(J.get("lgt"))) {
String str2 = J.get("lgt");
if (b(str2)) {
String c = c(str2);
if (!TextUtils.isEmpty(c)) {
this.i = c;
}
} else {
this.i = str2;
}
}
}
String B = b.B();
if (!TextUtils.isEmpty(B)) {
this.h = B;
b();
this.t.add(0, B);
}
String C = b.C();
if (TextUtils.isEmpty(C)) {
return;
}
this.l = C;
c();
this.w.add(0, C);
}
}
private String c(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
try {
return Uri.parse(str).getHost();
} catch (Throwable th) {
af.b("RequestUrlUtil", th.getMessage());
return "";
}
}
public static d f() {
return a.a;
}
public final String a(String str) {
return a.a.a(str, 1);
}
}