Add Discord community version (64-bit only)

- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
package com.mbridge.msdk.c;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class a {
private String e;
private String f;
private int g;
private int a = 1;
private int b = 0;
private int c = 0;
private int d = 0;
private int h = 0;
public final int a() {
return this.a;
}
public final int b() {
return this.b;
}
public final int c() {
return this.c;
}
public final int d() {
return this.d;
}
public final String e() {
return this.e;
}
public final String f() {
return this.f;
}
public final int g() {
return this.g;
}
public final int h() {
return this.h;
}
public static a a(String str) {
Exception e;
a aVar;
JSONObject jSONObject;
try {
jSONObject = new JSONObject(str);
aVar = new a();
} catch (Exception e2) {
e = e2;
aVar = null;
}
try {
aVar.e = jSONObject.optString("http_domain", com.mbridge.msdk.foundation.same.net.e.d.f().g);
aVar.f = jSONObject.optString("tcp_domain", com.mbridge.msdk.foundation.same.net.e.d.f().k);
aVar.g = jSONObject.optInt("tcp_port", com.mbridge.msdk.foundation.same.net.e.d.f().o);
aVar.h = jSONObject.optInt("type", 0);
int i = 1;
int optInt = jSONObject.optInt("batch_size", 1);
if (optInt >= 1) {
i = optInt;
}
aVar.a = i;
aVar.c = jSONObject.optInt(IronSourceConstants.EVENTS_DURATION, 0);
aVar.b = jSONObject.optInt("disable", 0);
aVar.d = jSONObject.optInt("e_t_l", 0);
} catch (Exception e3) {
e = e3;
e.printStackTrace();
return aVar;
}
return aVar;
}
}

View File

@@ -0,0 +1,10 @@
package com.mbridge.msdk.c.a;
import android.content.Context;
/* loaded from: classes4.dex */
public final class a extends com.mbridge.msdk.foundation.same.net.f.c {
public a(Context context) {
super(context);
}
}

View File

@@ -0,0 +1,11 @@
package com.mbridge.msdk.c.a;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.same.DomainNameUtils;
/* loaded from: classes4.dex */
public final class b {
public static final String a = DomainNameUtils.getInstance().OM_JS_H5_URL_DEFAULT;
public static final String b = DomainNameUtils.getInstance().OM_JS_SERVICE_URL_DEFAULT;
public static final String c = MBridgeConstans.AUTHORITY_DEFAULT_INFO_URL;
}

View File

@@ -0,0 +1,39 @@
package com.mbridge.msdk.c.a;
import android.content.Context;
import android.os.Build;
import com.mbridge.msdk.foundation.same.net.f.e;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.f;
import com.mbridge.msdk.out.MBConfiguration;
/* loaded from: classes4.dex */
public final class c extends com.mbridge.msdk.foundation.same.net.f.c {
public c(Context context) {
super(context);
}
@Override // com.mbridge.msdk.foundation.same.net.f.c
public final void addExtraParams(String str, e eVar) {
super.addExtraParams(str, eVar);
eVar.a("platform", "1");
eVar.a("os_version", Build.VERSION.RELEASE);
eVar.a("package_name", ab.f(this.mContext));
eVar.a("app_version_name", ab.q(this.mContext));
eVar.a("app_version_code", ab.r(this.mContext) + "");
eVar.a("orientation", ab.s(this.mContext) + "");
eVar.a("model", ab.h());
eVar.a("brand", ab.x());
eVar.a("gaid2", f.b());
int m = ab.m(this.mContext);
eVar.a("network_type", m + "");
eVar.a("network_str", ab.a(this.mContext, m));
eVar.a("language", ab.t(this.mContext));
eVar.a("timezone", ab.y());
eVar.a("useragent", ab.g());
eVar.a("sdk_version", MBConfiguration.SDK_VERSION);
eVar.a("screen_size", ab.j(this.mContext) + "x" + ab.h(this.mContext));
d.a(this.mContext, eVar);
com.mbridge.msdk.foundation.same.net.f.f.d(eVar);
}
}

View File

@@ -0,0 +1,23 @@
package com.mbridge.msdk.c.a;
import android.content.Context;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.same.net.f.e;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.f;
/* loaded from: classes4.dex */
public final class d {
public static void a(Context context, e eVar) {
if (eVar == null) {
return;
}
try {
eVar.a("gaid", f.c());
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("SettingRequestDiff", e.getMessage());
}
}
}
}

View File

@@ -0,0 +1,868 @@
package com.mbridge.msdk.c;
import android.content.Context;
import android.net.Uri;
import android.text.TextUtils;
import com.facebook.share.internal.ShareConstants;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.tools.s;
import com.mbridge.msdk.foundation.tools.x;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class b {
public static int a = 1500;
private long G;
private ArrayList<Integer> I;
private d J;
private C0189b K;
private HashMap<String, String> P;
private String Q;
private int V;
private String Y;
private Map<String, String> Z;
private boolean aE;
private JSONArray aG;
private JSONObject aH;
private long aJ;
private long aO;
private boolean aP;
private String aV;
private int ai;
private String al;
private String am;
private int ap;
private int aq;
private int ar;
private int as;
private long av;
private long aw;
private int bb;
private String bc;
private int m;
private List<com.mbridge.msdk.foundation.entity.a> o;
private long q;
private com.mbridge.msdk.c.a r;
private String s;
private Map<String, a> t;
private boolean u;
private int v;
private boolean b = false;
private JSONArray c = new JSONArray();
private JSONArray d = new JSONArray();
private String e = "";
private int f = 0;
private int g = 0;
private int h = 2;
private int i = 0;
private String j = "";
private String k = "";
private String l = "";
private int n = 0;
private int p = 0;
private int w = 1;
private boolean x = false;
private String y = "";
private String z = "";
private String A = "";
private String B = "";
private String C = "";
private int D = 120;
private String E = com.mbridge.msdk.foundation.same.net.e.d.f().h;
private String F = com.mbridge.msdk.foundation.same.net.e.d.f().l;
private int H = a;
private int L = 0;
private long M = 86400;
private int N = 0;
private int O = 3;
private boolean R = true;
private int S = 0;
private boolean T = false;
private boolean U = false;
private int W = 0;
private int X = 0;
private String aa = "1.0";
private int ab = 30;
private int ac = 9377;
private int ad = 0;
private int ae = 5;
private int af = 1;
private int ag = 8000;
private String ah = "";
private int aj = 10;
private int ak = 120;
private String an = "";
private String ao = "";
private String at = "";
private String au = "";
private List<Integer> ax = new ArrayList();
private int ay = 3;
private int az = 0;
private int aA = 3;
private int aB = 0;
private int aC = 10;
private int aD = 600;
private int aF = 0;
private String aI = "";
private int aK = 8000;
private int aL = 1;
private long aM = 10;
private int aN = 3;
private int aQ = 1;
private int aR = 1;
private int aS = 1;
private int aT = 1;
private String aU = "";
private int aW = IronSourceConstants.RV_AUCTION_REQUEST;
private int aX = 0;
private int aY = 0;
private long aZ = 3600;
private String ba = "";
public final int A() {
return this.D;
}
public final String B() {
return this.E;
}
public final String C() {
return this.F;
}
public final long D() {
return this.G;
}
public final ArrayList<Integer> E() {
return this.I;
}
public final d F() {
return this.J;
}
public final C0189b G() {
return this.K;
}
public final long H() {
return this.M;
}
public final int I() {
return this.O;
}
public final HashMap<String, String> J() {
return this.P;
}
public final int K() {
return this.S;
}
public final int L() {
return this.V;
}
public final int M() {
return this.W;
}
public final JSONArray N() {
return this.c;
}
public final JSONArray O() {
return this.d;
}
public final String P() {
return this.aa;
}
public final int Q() {
return this.af;
}
public final int R() {
return this.ag;
}
public final int S() {
return this.ai;
}
public final int T() {
return this.ak;
}
public final String U() {
return this.al;
}
public final String V() {
return this.am;
}
public final String W() {
return this.an;
}
public final String X() {
return this.ao;
}
public final int Y() {
return this.ap;
}
public final int Z() {
return this.aq;
}
public final int a() {
return this.bb;
}
public final void a(int i) {
this.bb = i;
}
public final void a(long j) {
this.aZ = j;
}
public final void a(String str) {
this.Q = str;
}
public final void a(boolean z) {
this.u = z;
}
public final int aA() {
return this.aW;
}
public final int aB() {
return this.aX;
}
public final int aC() {
return this.aY;
}
public final boolean aD() {
return this.R;
}
public final boolean aE() {
return this.u;
}
public final boolean aF() {
return this.x;
}
public final boolean aG() {
return this.T;
}
public final boolean aH() {
return this.b;
}
public final boolean aI() {
return this.U;
}
public final boolean aJ() {
return this.aE;
}
public final boolean aK() {
return this.aP;
}
public final int aa() {
return this.ar;
}
public final int ab() {
return this.as;
}
public final long ac() {
return this.av;
}
public final long ad() {
if (this.aw <= 0) {
this.aw = 7200L;
}
return this.aw;
}
public final int ae() {
return this.ay;
}
public final int af() {
return this.az;
}
public final int ag() {
return this.aA;
}
public final int ah() {
return this.aB;
}
public final int ai() {
return this.aC;
}
public final int aj() {
return this.aD;
}
public final int ak() {
return this.aF;
}
public final JSONArray al() {
return this.aG;
}
public final JSONObject am() {
return this.aH;
}
public final String an() {
return this.aI;
}
public final long ao() {
return this.aJ;
}
public final int ap() {
return this.aK;
}
public final int aq() {
return this.aL;
}
public final long ar() {
return this.aM * 1000;
}
public final int as() {
return this.aN;
}
public final long at() {
return this.aO;
}
public final int au() {
return this.aQ;
}
public final int av() {
return this.aR;
}
public final int aw() {
return this.aS;
}
public final int ax() {
return this.aT;
}
public final String ay() {
return this.aU;
}
public final String az() {
return this.aV;
}
public final String b() {
return this.ba;
}
public final void b(int i) {
this.f = i;
}
public final void b(long j) {
this.q = j;
}
public final void b(String str) {
this.am = str;
}
public final void b(boolean z) {
this.x = z;
}
public final long c() {
return this.aZ;
}
public final void c(int i) {
this.g = i;
}
public final void c(long j) {
this.av = j;
}
public final void c(String str) {
this.an = str;
}
public final void c(boolean z) {
this.T = z;
}
public final String d() {
return this.e;
}
public final void d(int i) {
this.h = i;
}
public final void d(long j) {
this.aw = j;
}
public final void d(String str) {
this.ao = str;
}
public final void d(boolean z) {
this.b = z;
}
public final int e() {
return this.f;
}
public final void e(int i) {
this.i = i;
}
public final void e(long j) {
this.aJ = j;
}
public final void e(boolean z) {
this.aE = z;
}
public final int f() {
return this.g;
}
public final void f(int i) {
this.m = i;
}
public final void f(long j) {
this.aM = j;
}
public final void f(boolean z) {
this.aP = z;
}
public final int g() {
return this.h;
}
public final void g(int i) {
this.n = i;
}
public final int h() {
return this.i;
}
public final void h(int i) {
this.p = i;
}
public final String i() {
return this.j;
}
public final void i(int i) {
this.v = i;
}
public final String j() {
return this.k;
}
public final void j(int i) {
this.w = i;
}
public final String k() {
return this.l;
}
public final void k(int i) {
this.D = i;
}
public final int l() {
return this.m;
}
public final void l(int i) {
this.O = i;
}
public final int m() {
return this.n;
}
public final void m(int i) {
this.S = i;
}
public final List<com.mbridge.msdk.foundation.entity.a> n() {
return this.o;
}
public final void n(int i) {
this.V = i;
}
public final int o() {
return this.p;
}
public final void o(int i) {
this.W = i;
}
public final long p() {
return this.q;
}
public final void p(int i) {
if (i > 0) {
this.aj = i;
}
}
public final com.mbridge.msdk.c.a q() {
return this.r;
}
public final void q(int i) {
this.ai = i;
}
public final String r() {
return this.s;
}
public final void r(int i) {
this.ak = i;
}
public final Map<String, a> s() {
return this.t;
}
public final void s(int i) {
this.aF = i;
}
public final int t() {
return this.v;
}
public final void t(int i) {
this.aL = i;
}
public final int u() {
return this.w;
}
public final void u(int i) {
this.aN = i;
}
public final String v() {
return this.y;
}
public final void v(int i) {
this.aQ = i;
}
public final String w() {
return this.z;
}
public final void w(int i) {
this.aR = i;
}
public final String x() {
return this.A;
}
public final void x(int i) {
this.aS = i;
}
public final String y() {
return this.B;
}
public final void y(int i) {
this.aT = i;
}
public final String z() {
return this.C;
}
public static String a(Context context, String str) {
try {
g b = h.a().b(com.mbridge.msdk.foundation.controller.c.m().k());
if (b != null && ((b) b).Z != null) {
String host = Uri.parse(str).getHost();
Iterator<Map.Entry<String, String>> it = ((b) b).Z.entrySet().iterator();
while (it.hasNext()) {
String key = it.next().getKey();
if (!TextUtils.isEmpty(host) && host.contains(key)) {
String str2 = ((b) b).Z.get(key);
return TextUtils.isEmpty(str2) ? "" : str2.replace("{gaid}", com.mbridge.msdk.foundation.tools.f.c());
}
}
return "";
}
return "";
} catch (Throwable unused) {
return "";
}
}
/* JADX WARN: Removed duplicated region for block: B:177:0x06bc A[Catch: Exception -> 0x0241, TryCatch #16 {Exception -> 0x0241, blocks: (B:9:0x0017, B:12:0x0064, B:16:0x00af, B:35:0x0153, B:37:0x0235, B:38:0x0245, B:40:0x025b, B:41:0x0294, B:44:0x02b0, B:46:0x02ca, B:48:0x02d0, B:49:0x02d6, B:51:0x02dc, B:53:0x02e2, B:55:0x02e9, B:58:0x02ec, B:60:0x02f2, B:61:0x02fc, B:63:0x0360, B:65:0x0368, B:68:0x036f, B:70:0x0375, B:71:0x037d, B:73:0x0383, B:76:0x038f, B:79:0x0395, B:99:0x0454, B:108:0x049a, B:129:0x053b, B:135:0x055c, B:137:0x056a, B:139:0x057a, B:140:0x0583, B:175:0x06b0, B:177:0x06bc, B:178:0x06c6, B:180:0x06d2, B:214:0x06ad, B:217:0x05a6, B:219:0x0596, B:222:0x055a, B:230:0x0491, B:258:0x0357, B:260:0x0260, B:262:0x026a, B:264:0x0270, B:265:0x0276, B:267:0x027c, B:269:0x0292, B:273:0x0150, B:274:0x00aa, B:275:0x0060, B:101:0x046c, B:104:0x047e, B:107:0x0489, B:233:0x0308, B:234:0x031a, B:236:0x0320, B:239:0x032c, B:242:0x0336, B:245:0x0344, B:252:0x034e, B:254:0x0354, B:152:0x05a8, B:210:0x0625, B:186:0x06a9, B:158:0x062d, B:160:0x0637, B:162:0x0641, B:164:0x0649, B:166:0x065e, B:167:0x0671, B:169:0x067b, B:171:0x0683, B:173:0x0698, B:188:0x05ca, B:190:0x05d4, B:192:0x05de, B:194:0x05e6, B:199:0x05fd, B:201:0x0607, B:203:0x060f, B:131:0x054c, B:134:0x0557, B:147:0x0598, B:150:0x05a3, B:18:0x0105, B:20:0x010d, B:22:0x0113, B:23:0x0119, B:25:0x011f, B:27:0x0129, B:29:0x0145, B:33:0x014d), top: B:8:0x0017, inners: #1, #3, #4, #13, #14, #15 }] */
/* JADX WARN: Removed duplicated region for block: B:180:0x06d2 A[Catch: Exception -> 0x0241, TRY_LEAVE, TryCatch #16 {Exception -> 0x0241, blocks: (B:9:0x0017, B:12:0x0064, B:16:0x00af, B:35:0x0153, B:37:0x0235, B:38:0x0245, B:40:0x025b, B:41:0x0294, B:44:0x02b0, B:46:0x02ca, B:48:0x02d0, B:49:0x02d6, B:51:0x02dc, B:53:0x02e2, B:55:0x02e9, B:58:0x02ec, B:60:0x02f2, B:61:0x02fc, B:63:0x0360, B:65:0x0368, B:68:0x036f, B:70:0x0375, B:71:0x037d, B:73:0x0383, B:76:0x038f, B:79:0x0395, B:99:0x0454, B:108:0x049a, B:129:0x053b, B:135:0x055c, B:137:0x056a, B:139:0x057a, B:140:0x0583, B:175:0x06b0, B:177:0x06bc, B:178:0x06c6, B:180:0x06d2, B:214:0x06ad, B:217:0x05a6, B:219:0x0596, B:222:0x055a, B:230:0x0491, B:258:0x0357, B:260:0x0260, B:262:0x026a, B:264:0x0270, B:265:0x0276, B:267:0x027c, B:269:0x0292, B:273:0x0150, B:274:0x00aa, B:275:0x0060, B:101:0x046c, B:104:0x047e, B:107:0x0489, B:233:0x0308, B:234:0x031a, B:236:0x0320, B:239:0x032c, B:242:0x0336, B:245:0x0344, B:252:0x034e, B:254:0x0354, B:152:0x05a8, B:210:0x0625, B:186:0x06a9, B:158:0x062d, B:160:0x0637, B:162:0x0641, B:164:0x0649, B:166:0x065e, B:167:0x0671, B:169:0x067b, B:171:0x0683, B:173:0x0698, B:188:0x05ca, B:190:0x05d4, B:192:0x05de, B:194:0x05e6, B:199:0x05fd, B:201:0x0607, B:203:0x060f, B:131:0x054c, B:134:0x0557, B:147:0x0598, B:150:0x05a3, B:18:0x0105, B:20:0x010d, B:22:0x0113, B:23:0x0119, B:25:0x011f, B:27:0x0129, B:29:0x0145, B:33:0x014d), top: B:8:0x0017, inners: #1, #3, #4, #13, #14, #15 }] */
/* JADX WARN: Unreachable blocks removed: 1, instructions: 1 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.mbridge.msdk.c.g a(org.json.JSONObject r18) {
/*
Method dump skipped, instructions count: 1766
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.c.b.a(org.json.JSONObject):com.mbridge.msdk.c.g");
}
private static Map<String, a> e(String str) {
try {
if (TextUtils.isEmpty(str)) {
return null;
}
HashMap hashMap = new HashMap();
JSONObject jSONObject = new JSONObject(str);
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
a aVar = new a();
JSONObject optJSONObject = jSONObject.optJSONObject(next);
if (optJSONObject != null) {
aVar.a(optJSONObject);
}
hashMap.put(next, aVar);
}
return hashMap;
} catch (JSONException e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
return null;
} catch (Exception e2) {
if (MBridgeConstans.DEBUG) {
e2.printStackTrace();
}
return null;
}
}
public final boolean z(int i) {
return this.ax.contains(Integer.valueOf(i));
}
public String toString() {
return " cfc=" + this.v + " getpf=" + this.M + " rurl=" + this.aE;
}
public final void aL() {
String language = Locale.getDefault().getLanguage();
if (TextUtils.isEmpty(this.C) || TextUtils.isEmpty(this.A) || TextUtils.isEmpty(this.B) || TextUtils.isEmpty(this.z)) {
if (TextUtils.isEmpty(language) || !language.equals("zh")) {
this.C = "Confirm to close? ";
this.A = "You will not be rewarded after closing the window";
this.B = "Close it";
this.z = "Continue";
} else {
this.C = "确认关闭?";
this.A = "关闭后您将不会获得任何奖励噢~ ";
this.B = "确认关闭";
this.z = "继续观看";
}
}
if (TextUtils.isEmpty(this.C) || TextUtils.isEmpty(this.A) || TextUtils.isEmpty(this.B) || TextUtils.isEmpty(this.y)) {
if (TextUtils.isEmpty(language) || !language.equals("zh")) {
this.C = "Confirm to close? ";
this.A = "You will not be rewarded after closing the window";
this.B = "Close it";
this.y = "Continue";
return;
}
this.C = "确认关闭?";
this.A = "关闭后您将不会获得任何奖励噢~ ";
this.B = "确认关闭";
this.y = "继续试玩";
}
}
public static class a {
private List<String> a;
private List<String> b;
private List<String> c;
private List<String> d;
public final List<String> a() {
return this.a;
}
public final List<String> b() {
return this.b;
}
public final List<String> c() {
return this.c;
}
public final List<String> d() {
return this.d;
}
public final void a(JSONObject jSONObject) {
try {
JSONArray optJSONArray = jSONObject.optJSONArray("x");
if (optJSONArray != null) {
this.c = s.a(optJSONArray);
}
JSONArray optJSONArray2 = jSONObject.optJSONArray("y");
if (optJSONArray2 != null) {
this.d = s.a(optJSONArray2);
}
JSONArray optJSONArray3 = jSONObject.optJSONArray("width");
if (optJSONArray3 != null) {
this.b = s.a(optJSONArray3);
}
JSONArray optJSONArray4 = jSONObject.optJSONArray("height");
if (optJSONArray4 != null) {
this.a = s.a(optJSONArray4);
}
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
}
}
}
/* renamed from: com.mbridge.msdk.c.b$b, reason: collision with other inner class name */
public static class C0189b {
private String a;
private JSONArray b;
private String c;
private String d;
private String e;
private String f;
public final String a() {
return this.a;
}
public final JSONArray b() {
return this.b;
}
public final String c() {
return this.c;
}
public final String d() {
return this.d;
}
public final String e() {
return this.e;
}
public final String f() {
return this.f;
}
public static C0189b a(JSONObject jSONObject) {
if (jSONObject == null) {
jSONObject = new JSONObject();
}
C0189b c0189b = new C0189b();
Context c = com.mbridge.msdk.foundation.controller.c.m().c();
c0189b.f = jSONObject.optString("title", c.getString(x.a(c, "mbridge_cm_feedback_dialog_title", "string")));
c0189b.a = jSONObject.optString("cancel", c.getString(x.a(c, "mbridge_cm_feedback_dialog_close_close", "string")));
c0189b.d = jSONObject.optString("submit", c.getString(x.a(c, "mbridge_cm_feedback_dialog_close_submit", "string")));
c0189b.e = jSONObject.optString("submit_notice", c.getString(x.a(c, "mbridge_cm_feedback_dialog_submit_notice", "string")));
c0189b.c = jSONObject.optString(ShareConstants.WEB_DIALOG_PARAM_PRIVACY, c.getString(x.a(c, "mbridge_cm_feedback_dialog_privacy_des", "string")));
JSONArray optJSONArray = jSONObject.optJSONArray("content");
c0189b.b = optJSONArray;
if (optJSONArray == null) {
JSONArray jSONArray = new JSONArray();
c0189b.b = jSONArray;
jSONArray.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_not_play", "string")));
c0189b.b.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_sound_problems", "string")));
c0189b.b.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_misleading", "string")));
c0189b.b.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_fraud", "string")));
c0189b.b.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_por_violence", "string")));
c0189b.b.put(c.getString(x.a(c, "mbridge_cm_feedback_dialog_content_other", "string")));
}
return c0189b;
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,377 @@
package com.mbridge.msdk.c;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class c {
private String A;
private int D;
private int E;
private int I;
private String K;
private int N;
private List<Integer> b;
private List<Integer> c;
private int d;
private int e;
private int f;
private int g;
private int h;
private int i;
private long k;
private long l;
private int m;
private int n;
private int o;
private long p;
private long q;
private int r;
private String s;
private int t;
private int u;
private String z;
private String a = "";
private int j = 0;
private int v = 30;
private int w = 1;
private int x = 10;
private int y = 60;
private int B = 1;
private String C = "";
private int F = 100;
private int G = 60;
private int H = 5000;
private int J = 1;
private String L = "";
private String M = "";
public final String a() {
return this.a;
}
public final void a(int i) {
this.g = i;
}
public final void a(long j) {
this.q = j;
}
public final void a(String str) {
this.C = str;
}
public final void a(List<Integer> list) {
this.b = list;
}
public final List<Integer> b() {
return this.b;
}
public final void b(int i) {
this.d = i;
}
public final void b(String str) {
this.K = str;
}
public final void b(List<Integer> list) {
this.c = list;
}
public final List<Integer> c() {
return this.c;
}
public final void c(int i) {
this.e = i;
}
public final int d() {
return this.e;
}
public final void d(int i) {
this.f = i;
}
public final int e() {
return this.f;
}
public final void e(int i) {
this.j = i;
}
public final int f() {
return this.h;
}
public final void f(int i) {
this.n = i;
}
public final int g() {
return this.j;
}
public final void g(int i) {
this.o = i;
}
public final int h() {
return this.n;
}
public final void h(int i) {
this.r = i;
}
public final long i() {
return this.p;
}
public final void i(int i) {
this.u = i;
}
public final long j() {
return this.q;
}
public final void j(int i) {
this.x = i;
}
public final int k() {
return this.r;
}
public final void k(int i) {
this.y = i;
}
public final int l() {
return this.u;
}
public final void l(int i) {
this.F = i;
}
public final int m() {
return this.w;
}
public final void m(int i) {
this.G = i;
}
public final int n() {
return this.x;
}
public final void n(int i) {
this.I = i;
}
public final int o() {
return this.y;
}
public final void o(int i) {
this.N = i;
}
public final int p() {
return this.F;
}
public final void p(int i) {
this.B = i;
}
public final int q() {
return this.G;
}
public final int r() {
return this.H;
}
public final String s() {
return this.L;
}
public final String t() {
return this.M;
}
public final int u() {
return this.N;
}
public final int v() {
return this.g;
}
public final int w() {
return this.B;
}
public static k a(JSONObject jSONObject) {
k kVar;
k kVar2 = null;
if (jSONObject == null) {
return null;
}
try {
kVar = new k();
} catch (Exception e) {
e = e;
}
try {
((c) kVar).K = jSONObject.optString("unitId");
String optString = jSONObject.optString("ab_id");
((c) kVar).a = optString;
com.mbridge.msdk.foundation.controller.a.b.put(((c) kVar).K, optString);
((c) kVar).L = jSONObject.optString("rid");
JSONArray optJSONArray = jSONObject.optJSONArray("adSourceList");
if (optJSONArray != null && optJSONArray.length() > 0) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < optJSONArray.length(); i++) {
arrayList.add(Integer.valueOf(optJSONArray.optInt(i)));
}
((c) kVar).b = arrayList;
}
JSONArray optJSONArray2 = jSONObject.optJSONArray("ad_source_timeout");
if (optJSONArray2 != null && optJSONArray2.length() > 0) {
ArrayList arrayList2 = new ArrayList();
for (int i2 = 0; i2 < optJSONArray2.length(); i2++) {
arrayList2.add(Integer.valueOf(optJSONArray2.optInt(i2)));
}
((c) kVar).c = arrayList2;
}
((c) kVar).I = jSONObject.optInt("tpqn");
((c) kVar).f = jSONObject.optInt("aqn");
((c) kVar).e = jSONObject.optInt("acn");
((c) kVar).N = jSONObject.optInt("wt");
int i3 = 1;
((c) kVar).w = jSONObject.optInt("iscasf", 1);
((c) kVar).H = jSONObject.optInt("spmxrt", 5000);
((c) kVar).p = jSONObject.optLong("current_time");
((c) kVar).B = jSONObject.optInt("offset");
((c) kVar).q = jSONObject.optLong("dlct", 3600L);
((c) kVar).g = jSONObject.optInt("autoplay", 0);
((c) kVar).r = jSONObject.optInt("dlnet", 2);
((c) kVar).A = jSONObject.optString("no_offer");
((c) kVar).i = jSONObject.optInt("cb_type");
((c) kVar).l = jSONObject.optLong("clct", 86400L);
((c) kVar).k = jSONObject.optLong("clcq", 300L);
((c) kVar).F = jSONObject.optInt(CampaignEx.JSON_KEY_READY_RATE, 100);
((c) kVar).j = jSONObject.optInt("cd_rate", 0);
((c) kVar).n = jSONObject.optInt("content", 1);
((c) kVar).u = jSONObject.optInt("impt", 0);
((c) kVar).t = jSONObject.optInt("icon_type", 1);
((c) kVar).z = jSONObject.optString("no_ads_url", "");
((c) kVar).E = jSONObject.optInt("playclosebtn_tm", -1);
((c) kVar).D = jSONObject.optInt("play_ctdown", 0);
((c) kVar).m = jSONObject.optInt("close_alert", 0);
((c) kVar).v = jSONObject.optInt("intershowlimit", 30);
((c) kVar).G = jSONObject.optInt("refreshFq", 60);
((c) kVar).h = jSONObject.optInt("closeBtn", 0);
int optInt = jSONObject.optInt("tmorl", 1);
if (optInt <= 2 && optInt > 0) {
i3 = optInt;
}
((c) kVar).J = i3;
((c) kVar).C = jSONObject.optString("placementid", "");
((c) kVar).x = jSONObject.optInt("ltafemty", 10);
((c) kVar).y = jSONObject.optInt("ltorwc", 60);
((c) kVar).M = jSONObject.optString("vtag", "");
return kVar;
} catch (Exception e2) {
e = e2;
kVar2 = kVar;
e.printStackTrace();
return kVar2;
}
}
public String toString() {
List<Integer> list = this.b;
String str = "";
if (list != null && list.size() > 0) {
Iterator<Integer> it = this.b.iterator();
while (it.hasNext()) {
str = str + it.next() + ",";
}
}
return "offset = " + this.B + " unitId = " + this.K + " fbPlacementId = " + this.s + str;
}
public final JSONObject x() {
JSONObject jSONObject = new JSONObject();
try {
List<Integer> list = this.b;
if (list != null && list.size() > 0) {
int size = list.size();
JSONArray jSONArray = new JSONArray();
for (int i = 0; i < size; i++) {
jSONArray.put(list.get(i));
}
jSONObject.put("adSourceList", jSONArray);
}
List<Integer> list2 = this.c;
if (list2 != null && list2.size() > 0) {
int size2 = list2.size();
JSONArray jSONArray2 = new JSONArray();
for (int i2 = 0; i2 < size2; i2++) {
jSONArray2.put(list2.get(i2));
}
jSONObject.put("ad_source_timeout", jSONArray2);
}
jSONObject.put("tpqn", this.I);
jSONObject.put("aqn", this.f);
jSONObject.put("acn", this.e);
jSONObject.put("wt", this.N);
jSONObject.put("current_time", this.p);
jSONObject.put("offset", this.B);
jSONObject.put("dlct", this.q);
jSONObject.put("autoplay", this.g);
jSONObject.put("dlnet", this.r);
jSONObject.put("no_offer", this.A);
jSONObject.put("cb_type", this.i);
jSONObject.put("clct", this.l);
jSONObject.put("clcq", this.k);
jSONObject.put(CampaignEx.JSON_KEY_READY_RATE, this.F);
jSONObject.put("content", this.n);
jSONObject.put("impt", this.u);
jSONObject.put("icon_type", this.t);
jSONObject.put("no_ads_url", this.z);
jSONObject.put("playclosebtn_tm", this.E);
jSONObject.put("play_ctdown", this.D);
jSONObject.put("close_alert", this.m);
jSONObject.put("closeBtn", this.h);
jSONObject.put("refreshFq", this.G);
jSONObject.put("countdown", this.o);
jSONObject.put("allowSkip", this.d);
jSONObject.put("tmorl", this.J);
jSONObject.put("unitId", this.K);
jSONObject.put("placementid", this.C);
jSONObject.put("ltafemty", this.x);
jSONObject.put("ltorwc", this.y);
jSONObject.put("vtag", this.M);
} catch (Exception e) {
e.printStackTrace();
}
return jSONObject;
}
}

View File

@@ -0,0 +1,62 @@
package com.mbridge.msdk.c;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class d {
private String f;
private String g;
private int h;
private int a = 1;
private int b = 1;
private int c = 0;
private int d = 30;
private int e = 0;
private int i = 0;
public final int a() {
return this.c;
}
public final int b() {
return this.d;
}
public final String c() {
return this.f;
}
public final String d() {
return this.g;
}
public final int e() {
return this.h;
}
public static d a(String str) {
Exception e;
d dVar;
JSONObject jSONObject;
try {
jSONObject = new JSONObject(str);
dVar = new d();
} catch (Exception e2) {
e = e2;
dVar = null;
}
try {
dVar.f = jSONObject.optString("h_d", com.mbridge.msdk.foundation.same.net.e.d.f().e);
dVar.g = jSONObject.optString("t_d", com.mbridge.msdk.foundation.same.net.e.d.f().j);
dVar.h = jSONObject.optInt("t_p", com.mbridge.msdk.foundation.same.net.e.d.f().n);
dVar.i = jSONObject.optInt("type", 1);
dVar.d = jSONObject.optInt("d_t", 30);
dVar.c = jSONObject.optInt("d_a", 0);
} catch (Exception e3) {
e = e3;
e.printStackTrace();
return dVar;
}
return dVar;
}
}

View File

@@ -0,0 +1,59 @@
package com.mbridge.msdk.c;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Iterator;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class e {
public int a;
private HashMap<String, f> b;
public static class a {
private static final e a = new e();
}
private e() {
this.a = 6;
this.b = new HashMap<>();
}
public static e a() {
return a.a;
}
public final int a(String str) {
HashMap<String, f> hashMap;
f fVar;
if (TextUtils.isEmpty(str) || (hashMap = this.b) == null || !hashMap.containsKey(str) || (fVar = this.b.get(str)) == null) {
return 0;
}
int i = fVar.b() ? 1 : fVar.a() >= this.a ? 2 : 0;
fVar.a(false);
return i;
}
public final void b(String str) {
if (TextUtils.isEmpty(str)) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str);
if (this.b == null) {
this.b = new HashMap<>();
}
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
String string = jSONObject.getString(next);
f fVar = new f();
fVar.a(next);
fVar.b(string);
this.b.put(next, fVar);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}

View File

@@ -0,0 +1,29 @@
package com.mbridge.msdk.c;
/* loaded from: classes4.dex */
public final class f {
private int a;
private String b;
private String c;
private boolean d;
public final int a() {
return this.a;
}
public final void a(String str) {
this.b = str;
}
public final void a(boolean z) {
this.d = z;
}
public final void b(String str) {
this.c = str;
}
public final boolean b() {
return this.d;
}
}

View File

@@ -0,0 +1,60 @@
package com.mbridge.msdk.c;
import android.text.TextUtils;
import com.facebook.appevents.UserDataStore;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class g extends b {
public static g e(String str) {
if (TextUtils.isEmpty(str)) {
return null;
}
try {
return b.a(new JSONObject(str));
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("Setting", "parseSetting", e);
}
return null;
}
}
public final String aM() {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("cc", r());
jSONObject.put("cfc", t());
jSONObject.put("cfb", aE());
jSONObject.put(CampaignEx.JSON_KEY_PLCT, ac());
jSONObject.put("awct", p());
jSONObject.put("rurl", aJ());
jSONObject.put("ujds", aK());
jSONObject.put(CampaignEx.JSON_KEY_PLCTB, ad());
jSONObject.put("tcto", ar());
jSONObject.put("mv_wildcard", V());
jSONObject.put("is_startup_crashsystem", L());
jSONObject.put("sfct", ao());
jSONObject.put("pcrn", Z());
jSONObject.put("adct", l());
jSONObject.put("atrqt", o());
jSONObject.put("omsdkjs_url", X());
jSONObject.put("mcs", T());
jSONObject.put("GDPR_area", aH());
jSONObject.put("alrbs", m());
jSONObject.put(UserDataStore.CITY, A());
jSONObject.put("isDefault", K());
jSONObject.put("st_net", aq());
jSONObject.put("vtag", ay());
return jSONObject.toString();
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
af.b("Setting", "toJSON", th);
}
return null;
}
}
}

View File

@@ -0,0 +1,311 @@
package com.mbridge.msdk.c;
import android.content.Context;
import android.text.TextUtils;
import com.ironsource.v8;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.download.core.DownloadCommon;
import com.mbridge.msdk.foundation.tools.FastKV;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.an;
import com.mbridge.msdk.foundation.tools.v;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class h {
public static final String a = "h";
private static volatile h b;
private static volatile g c;
private static HashMap<String, k> d = new HashMap<>();
private h() {
}
public static void a(Context context, String str) {
FastKV fastKV;
com.mbridge.msdk.foundation.controller.d.a();
Map<String, Object> map = null;
try {
fastKV = new FastKV.Builder(com.mbridge.msdk.foundation.same.b.e.a(com.mbridge.msdk.foundation.same.b.c.MBRIDGE_700_CONFIG), "mbridge").build();
} catch (Exception unused) {
fastKV = null;
}
if (fastKV != null) {
try {
map = fastKV.getAll();
} catch (Exception unused2) {
}
if (map != null) {
try {
for (String str2 : map.keySet()) {
if (str2.startsWith(str + "_")) {
d.put(str2, k.g((String) map.get(str2)));
}
}
return;
} catch (Exception e) {
e.printStackTrace();
return;
}
}
return;
}
try {
Map<String, ?> all = context.getSharedPreferences("mbridge", 0).getAll();
for (String str3 : all.keySet()) {
if (str3.startsWith(str + "_")) {
d.put(str3, k.g((String) all.get(str3)));
}
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static h a() {
if (b == null) {
synchronized (h.class) {
try {
if (b == null) {
b = new h();
}
} finally {
}
}
}
return b;
}
public final g a(String str) {
try {
if (!TextUtils.isEmpty(str)) {
g b2 = b(str);
return b2 == null ? i.a() : b2;
}
return i.a();
} catch (Exception unused) {
return i.a();
}
}
public final g b(String str) {
if (c == null) {
try {
String a2 = com.mbridge.msdk.foundation.a.a.a.a().a(str);
if (!TextUtils.isEmpty(a2)) {
JSONObject jSONObject = new JSONObject(a2);
if (jSONObject.has(DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B)) {
jSONObject.remove(DownloadCommon.DOWNLOAD_REPORT_FIND_FILE_RESULT_VALUE_B);
}
if (jSONObject.has("c")) {
jSONObject.remove("c");
}
c = g.e(jSONObject.toString());
if (c != null) {
c.aL();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
return c;
}
public final String c(String str) {
return com.mbridge.msdk.foundation.a.a.a.a().a("ivreward_" + str);
}
public final k b(String str, String str2) {
return i(str, str2);
}
private k i(String str, String str2) {
if (TextUtils.isEmpty(str)) {
str = com.mbridge.msdk.foundation.controller.c.m().k();
}
String str3 = str + "_" + str2;
if (d.containsKey(str3)) {
return d.get(str3);
}
k kVar = null;
try {
kVar = k.g(com.mbridge.msdk.foundation.a.a.a.a().a(str3));
d.put(str3, kVar);
} catch (Exception e) {
e.printStackTrace();
}
return kVar;
}
public final k c(String str, String str2) {
k d2 = d(str, str2);
return d2 == null ? k.y() : d2;
}
public final k d(String str, String str2) {
k i = i(str, str2);
if (i != null && i.v() == 0) {
i.a(1);
}
return i;
}
public final boolean e(String str, String str2) {
g b2 = b(str2);
if (d(str2) && a(str2, 1, str)) {
new j().b(com.mbridge.msdk.foundation.controller.c.m().c(), str2, com.mbridge.msdk.foundation.controller.c.m().b());
}
k d2 = d(str2, str);
if (b2 != null && d2 != null) {
long at = b2.at() * 1000;
long currentTimeMillis = System.currentTimeMillis();
long i = d2.i() + at;
if (i > currentTimeMillis) {
af.c(a, "unit setting nexttime is not ready [settingNextRequestTime= " + i + " currentTime = " + currentTimeMillis + v8.i.e);
return false;
}
}
af.c(a, "unit setting timeout or not exists");
return true;
}
public final boolean d(String str) {
g b2 = b(str);
if (b2 != null) {
long H = b2.H() * 1000;
long currentTimeMillis = System.currentTimeMillis();
long D = b2.D() + H;
if (D > currentTimeMillis) {
af.c(a, "app setting nexttime is not ready [settingNextRequestTime= " + D + " currentTime = " + currentTimeMillis + v8.i.e);
return false;
}
}
af.c(a, "app setting timeout or not exists");
return true;
}
public final boolean a(String str, int i, String str2) {
try {
Context c2 = com.mbridge.msdk.foundation.controller.c.m().c();
String str3 = str + "_" + i + "_" + str2;
long currentTimeMillis = System.currentTimeMillis();
long j = 0;
long longValue = ((Long) an.a(c2, str3, 0L)).longValue();
g b2 = b(str);
if (b2 == null) {
a();
b2 = i.a();
} else {
j = longValue;
}
if (j + (b2.ao() * 1000) > currentTimeMillis) {
return false;
}
an.b(c2, str3, Long.valueOf(currentTimeMillis));
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
public final JSONObject a(JSONObject jSONObject, JSONObject jSONObject2) {
if (jSONObject == null || jSONObject.length() == 0) {
return jSONObject2;
}
if (jSONObject2 != null && jSONObject2.length() != 0) {
Iterator<String> keys = jSONObject2.keys();
while (keys.hasNext()) {
String next = keys.next();
try {
if ("unitSetting".equals(next) && jSONObject.has("unitSetting")) {
JSONArray jSONArray = jSONObject.getJSONArray("unitSetting");
jSONArray.put(0, a((JSONObject) jSONArray.get(0), (JSONObject) jSONObject2.getJSONArray("unitSetting").get(0)));
jSONObject.put(next, jSONArray);
} else {
jSONObject.put(next, jSONObject2.opt(next));
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
return jSONObject;
}
public final void e(String str) {
com.mbridge.msdk.foundation.a.a.a.a().c("ivreward_" + str);
}
public final void f(String str, String str2) {
com.mbridge.msdk.foundation.a.a.a.a().a("ivreward_" + str, str2);
}
public final void f(String str) {
try {
String g = g(str);
if (TextUtils.isEmpty(g)) {
return;
}
JSONObject jSONObject = new JSONObject(g);
jSONObject.put("current_time", System.currentTimeMillis());
g(str, jSONObject.toString());
} catch (Throwable th) {
af.b(a, th.getMessage());
}
}
public final String g(String str) {
if (str == null) {
return "";
}
try {
String a2 = com.mbridge.msdk.foundation.a.a.a.a().a(str);
return a2 == null ? "" : a2;
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
return "";
}
}
public final void g(String str, String str2) {
com.mbridge.msdk.foundation.a.a.a.a().a(str, str2);
c = g.e(str2);
if (c != null) {
c.aL();
}
v.a().a(c.b());
}
public final void h(String str, String str2) {
try {
String a2 = com.mbridge.msdk.foundation.a.a.a.a().a(str + "_" + str2);
if (TextUtils.isEmpty(a2)) {
return;
}
JSONObject jSONObject = new JSONObject(a2);
jSONObject.put("current_time", System.currentTimeMillis());
a(str, str2, jSONObject.toString());
} catch (Throwable th) {
af.b(a, th.getMessage());
}
}
public final void a(String str, String str2, String str3) {
String str4 = str + "_" + str2;
com.mbridge.msdk.foundation.a.a.a.a().a(str4, str3);
d.put(str4, k.g(str3));
}
public final k a(String str, String str2) {
k i = i(str, str2);
return i == null ? k.y() : i;
}
}

View File

@@ -0,0 +1,50 @@
package com.mbridge.msdk.c;
/* loaded from: classes4.dex */
public final class i {
public static g a() {
g gVar = new g();
gVar.i(1);
gVar.a(true);
gVar.c(3600L);
gVar.b(0L);
gVar.e(false);
gVar.f(false);
gVar.d(7200L);
gVar.b("<mvpackage>mbridge</mvpackage>");
gVar.n(1);
gVar.e(1800L);
gVar.f(259200);
gVar.f(10L);
gVar.x(1);
gVar.y(1);
gVar.w(1);
gVar.s(0);
gVar.v(1);
gVar.o(-1);
gVar.h(0);
gVar.d(com.mbridge.msdk.c.a.b.b);
gVar.c(com.mbridge.msdk.c.a.b.a);
gVar.r(120);
gVar.d(false);
gVar.g(0);
gVar.k(120);
gVar.m(1);
gVar.b(com.mbridge.msdk.foundation.same.a.o);
gVar.e(com.mbridge.msdk.foundation.same.a.s);
gVar.c(com.mbridge.msdk.foundation.same.a.q);
gVar.q(10);
gVar.d(com.mbridge.msdk.foundation.same.a.r);
gVar.p(10);
gVar.u(3);
gVar.l(3);
gVar.a("");
gVar.t(1);
gVar.b(false);
gVar.j(1);
gVar.c(true);
gVar.a(3600L);
gVar.a(0);
return gVar;
}
}

View File

@@ -0,0 +1,335 @@
package com.mbridge.msdk.c;
import android.content.Context;
import android.text.TextUtils;
import com.ironsource.v8;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.tools.SameMD5;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.v;
import com.mbridge.msdk.playercommon.exoplayer2.source.chunk.ChunkedTrackBlacklistUtil;
import com.vungle.ads.internal.signals.SignalManager;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class j {
private static final String a = "j";
/* JADX INFO: Access modifiers changed from: private */
public void c(final Context context, final String str, final String str2) {
if (!(!com.mbridge.msdk.foundation.same.net.e.d.f().a())) {
b(context, str, str2);
return;
}
try {
if (com.mbridge.msdk.foundation.same.net.e.d.f().q) {
return;
}
com.mbridge.msdk.foundation.same.net.e.d.f().q = true;
if (System.currentTimeMillis() >= com.mbridge.msdk.foundation.a.a.a.a().b("mkey_spare_host_ts").longValue() + SignalManager.TWENTY_FOUR_HOURS_MILLIS) {
String a2 = com.mbridge.msdk.foundation.a.a.a.a().a("mkey_spare_host");
if (!TextUtils.isEmpty(a2)) {
for (String str3 : a2.split("\n")) {
if (!TextUtils.isEmpty(str3.trim()) && !com.mbridge.msdk.foundation.same.net.e.d.f().t.contains(str3.trim())) {
com.mbridge.msdk.foundation.same.net.e.d.f().t.add(str3.trim());
com.mbridge.msdk.foundation.same.net.e.d.f().w.add(str3.trim());
}
}
c(context, str, str2);
return;
}
}
new com.mbridge.msdk.foundation.same.net.f.c(context.getApplicationContext()).get(0, com.mbridge.msdk.foundation.same.net.e.d.f().b, new com.mbridge.msdk.foundation.same.net.f.e(), new com.mbridge.msdk.foundation.same.net.b.a() { // from class: com.mbridge.msdk.c.j.3
@Override // com.mbridge.msdk.foundation.same.net.b.a
public final void b(String str4) {
af.a(j.a, "fetch CNDSettingHost success, content = " + str4);
if (TextUtils.isEmpty(str4)) {
return;
}
com.mbridge.msdk.foundation.a.a.a.a().a("mkey_spare_host_ts", System.currentTimeMillis());
com.mbridge.msdk.foundation.a.a.a.a().a("mkey_spare_host", str4);
for (String str5 : str4.split("\n")) {
if (!TextUtils.isEmpty(str5.trim()) && !com.mbridge.msdk.foundation.same.net.e.d.f().t.contains(str5.trim())) {
com.mbridge.msdk.foundation.same.net.e.d.f().t.add(str5.trim());
com.mbridge.msdk.foundation.same.net.e.d.f().w.add(str5.trim());
}
}
j.this.c(context, str, str2);
}
@Override // com.mbridge.msdk.foundation.same.net.b.a
public final void a(String str4) {
com.mbridge.msdk.foundation.same.net.e.d.f().q = false;
af.a(j.a, "fetch CNDSettingHost failed, errorCode = " + str4);
}
}, "setting", ChunkedTrackBlacklistUtil.DEFAULT_TRACK_BLACKLIST_MS);
} catch (Throwable th) {
com.mbridge.msdk.foundation.same.net.e.d.f().q = false;
af.b(a, th.getMessage());
}
}
private String b() {
String str = com.mbridge.msdk.foundation.same.net.e.d.f().r ? com.mbridge.msdk.foundation.same.net.e.d.f().H : com.mbridge.msdk.foundation.same.net.e.d.f().G;
try {
if (!com.mbridge.msdk.foundation.same.net.e.d.f().r || !com.mbridge.msdk.foundation.same.net.e.d.f().q || com.mbridge.msdk.foundation.same.net.e.d.f().v >= com.mbridge.msdk.foundation.same.net.e.d.f().w.size()) {
return str;
}
String str2 = com.mbridge.msdk.foundation.same.net.e.d.f().w.get(com.mbridge.msdk.foundation.same.net.e.d.f().v);
if (TextUtils.isEmpty(str2)) {
return str;
}
if (!str2.startsWith("http") && !str2.startsWith("https")) {
return str;
}
return str2 + "/setting";
} catch (Throwable th) {
af.b(a, th.getMessage());
return str;
}
}
public final void a(Context context, String str, String str2) {
a(context, str, str2, "1", new com.mbridge.msdk.foundation.same.net.f.d() { // from class: com.mbridge.msdk.c.j.1
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(String str3) {
}
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(JSONObject jSONObject) {
if (jSONObject == null || !jSONObject.has(com.mbridge.msdk.foundation.entity.b.JSON_KEY_C_I)) {
return;
}
try {
v.a().a(jSONObject.getString(com.mbridge.msdk.foundation.entity.b.JSON_KEY_C_I));
} catch (Exception e) {
af.b(j.a, e.getMessage());
}
}
});
}
private void a(Context context, String str, String str2, String str3, com.mbridge.msdk.foundation.same.net.f.d dVar) {
if (context == null) {
return;
}
com.mbridge.msdk.foundation.same.net.f.e eVar = new com.mbridge.msdk.foundation.same.net.f.e();
eVar.a("app_id", str);
eVar.a("sign", SameMD5.getMD5(str + str2));
try {
String ay = h.a().a(str).ay();
if (TextUtils.isEmpty(ay)) {
ay = "";
}
eVar.a("vtag", ay);
} catch (Throwable th) {
af.b(a, th.getMessage());
}
if (com.mbridge.msdk.foundation.same.net.e.d.f().q) {
eVar.a("st_net", com.mbridge.msdk.foundation.same.net.e.d.f().s + "");
}
eVar.a("only_p_info", str3);
com.mbridge.msdk.c.a.c cVar = new com.mbridge.msdk.c.a.c(context);
String str4 = com.mbridge.msdk.foundation.same.net.e.d.f().G;
try {
if (com.mbridge.msdk.foundation.same.net.e.d.f().r && com.mbridge.msdk.foundation.same.net.e.d.f().q && com.mbridge.msdk.foundation.same.net.e.d.f().v < com.mbridge.msdk.foundation.same.net.e.d.f().w.size()) {
String str5 = com.mbridge.msdk.foundation.same.net.e.d.f().w.get(com.mbridge.msdk.foundation.same.net.e.d.f().v);
if (!TextUtils.isEmpty(str5)) {
if (!str5.startsWith("http")) {
if (str5.startsWith("https")) {
}
}
str4 = str5 + "/setting";
}
}
} catch (Throwable th2) {
af.b(a, th2.getMessage());
}
cVar.get(1, str4, eVar, dVar, "setting", ChunkedTrackBlacklistUtil.DEFAULT_TRACK_BLACKLIST_MS);
}
public final void b(final Context context, final String str, final String str2) {
if (context == null) {
return;
}
a(context, str, str2, "0", new com.mbridge.msdk.foundation.same.net.f.d() { // from class: com.mbridge.msdk.c.j.2
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(JSONObject jSONObject) {
try {
j.this.a(1, 0, "");
} catch (Throwable th) {
af.b(j.a, th.getMessage());
}
try {
if (ak.a(jSONObject)) {
if (jSONObject.optInt("vtag_status", 0) == 1) {
String g = h.a().g(str);
if (!TextUtils.isEmpty(g)) {
try {
jSONObject = h.a().a(new JSONObject(g), jSONObject);
} catch (Exception e) {
af.b(j.a, e.getMessage());
}
}
}
jSONObject.put("current_time", System.currentTimeMillis());
if (com.mbridge.msdk.foundation.same.net.e.d.f().r) {
if (TextUtils.isEmpty(jSONObject.optString("hst_st_t"))) {
jSONObject.put("hst_st_t", com.mbridge.msdk.foundation.same.net.e.d.f().l);
}
} else if (TextUtils.isEmpty(jSONObject.optString("hst_st"))) {
jSONObject.put("hst_st", com.mbridge.msdk.foundation.same.net.e.d.f().h);
}
h.a().g(str, jSONObject.toString());
com.mbridge.msdk.foundation.same.net.e.d.f().e();
try {
if (!TextUtils.isEmpty(jSONObject.optString("mraid_js"))) {
com.mbridge.msdk.c.b.a.a().a(context, jSONObject.optString("mraid_js"));
}
} catch (Exception e2) {
af.b(j.a, e2.getMessage());
}
if (!TextUtils.isEmpty(jSONObject.optString("web_env_url"))) {
com.mbridge.msdk.c.b.b.a().a(context, jSONObject.optString("web_env_url"));
}
j.a(j.this, context, str);
} else {
h.a().f(str);
}
j.a(j.this);
} catch (Exception e3) {
af.b(j.a, e3.getMessage());
}
}
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(String str3) {
try {
j.this.a(2, 0, str3);
} catch (Throwable th) {
af.b(j.a, th.getMessage());
}
if (!com.mbridge.msdk.foundation.same.net.e.d.f().r) {
com.mbridge.msdk.foundation.same.net.e.d.f().u++;
} else {
com.mbridge.msdk.foundation.same.net.e.d.f().v++;
}
j.this.c(context, str, str2);
j.a(j.this);
af.b(j.a, "get app setting error" + str3);
}
});
a(3, 0, "");
}
public final void a(Context context, final String str, String str2, final String str3) {
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
str = com.mbridge.msdk.foundation.controller.c.m().k();
str2 = com.mbridge.msdk.foundation.controller.c.m().b();
}
if (h.a().e(str3, str) && h.a().a(str, 2, str3)) {
com.mbridge.msdk.foundation.same.net.f.e eVar = new com.mbridge.msdk.foundation.same.net.f.e();
String str4 = v8.i.d + str3 + v8.i.e;
eVar.a("unit_ids", str4);
eVar.a("app_id", str);
eVar.a("sign", SameMD5.getMD5(str + str2));
try {
String t = h.a().c(str, str4).t();
if (TextUtils.isEmpty(t)) {
t = "";
}
eVar.a("vtag", t);
} catch (Throwable th) {
af.b(a, th.getMessage());
}
com.mbridge.msdk.foundation.same.net.f.d dVar = new com.mbridge.msdk.foundation.same.net.f.d() { // from class: com.mbridge.msdk.c.j.4
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(JSONObject jSONObject) {
try {
if (ak.a(jSONObject)) {
String optString = jSONObject.optString("vtag", "");
String optString2 = jSONObject.optString("rid", "");
JSONArray optJSONArray = jSONObject.optJSONArray("unitSetting");
if (optJSONArray != null && optJSONArray.length() > 0) {
JSONObject optJSONObject = optJSONArray.optJSONObject(0);
if (jSONObject.optInt("vtag_status", 0) == 1) {
h.a();
String a2 = com.mbridge.msdk.foundation.a.a.a.a().a(str + "_" + str3);
if (!TextUtils.isEmpty(a2)) {
try {
optJSONObject = h.a().a(new JSONObject(a2), optJSONObject);
} catch (Exception e) {
e.printStackTrace();
}
}
}
optJSONObject.put("current_time", System.currentTimeMillis());
optJSONObject.put("vtag", optString);
optJSONObject.put("rid", optString2);
h.a().a(str, str3, optJSONObject.toString());
}
} else {
h.a().h(str, str3);
}
j.this.a(1, 1, "");
} catch (Exception e2) {
af.b(j.a, e2.getMessage());
}
}
@Override // com.mbridge.msdk.foundation.same.net.f.d
public final void a(String str5) {
j.this.a(2, 1, "");
}
};
dVar.setUnitId(str3);
new com.mbridge.msdk.c.a.c(context).get(1, com.mbridge.msdk.foundation.same.net.e.d.f().G, eVar, dVar, "setting", ChunkedTrackBlacklistUtil.DEFAULT_TRACK_BLACKLIST_MS);
a(3, 1, "");
}
}
/* JADX INFO: Access modifiers changed from: private */
public void a(int i, int i2, String str) {
String str2;
try {
com.mbridge.msdk.foundation.same.report.d.c cVar = new com.mbridge.msdk.foundation.same.report.d.c();
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
eVar.a("key", "2000112");
eVar.a("st_net", Integer.valueOf(com.mbridge.msdk.foundation.same.net.e.d.f().s));
eVar.a("result", Integer.valueOf(i));
eVar.a("type", Integer.valueOf(i2));
if (i2 == 0) {
str2 = b();
} else {
str2 = com.mbridge.msdk.foundation.same.net.e.d.f().r ? com.mbridge.msdk.foundation.same.net.e.d.f().H : com.mbridge.msdk.foundation.same.net.e.d.f().G;
}
eVar.a("url", str2);
eVar.a("reason", str);
cVar.a("2000112", eVar);
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000112", cVar);
} catch (Throwable th) {
af.b(a, th.getMessage());
}
}
public static /* synthetic */ void a(j jVar, Context context, String str) {
g b;
h a2 = h.a();
if (a2 != null && (b = a2.b(str)) != null) {
MBridgeConstans.OMID_JS_SERVICE_URL = b.X();
MBridgeConstans.OMID_JS_H5_URL = b.W();
}
com.mbridge.msdk.a.b.a(context);
com.mbridge.msdk.a.b.b(context);
}
public static /* synthetic */ void a(j jVar) {
try {
new com.mbridge.msdk.foundation.same.report.h(com.mbridge.msdk.foundation.controller.c.m().c()).a();
} catch (Throwable th) {
af.b(a, th.getMessage());
}
}
}

View File

@@ -0,0 +1,105 @@
package com.mbridge.msdk.c;
import android.text.TextUtils;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.tools.af;
import java.util.ArrayList;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public final class k extends c {
public static k c(String str) {
k kVar = new k();
try {
kVar.b(str);
kVar.p(1);
kVar.n(1);
kVar.o(5);
kVar.c(1);
kVar.d(1);
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("UnitSetting", e.getMessage());
}
}
return kVar;
}
public static k d(String str) {
k kVar = new k();
ArrayList arrayList = new ArrayList();
arrayList.add(1);
ArrayList arrayList2 = new ArrayList();
arrayList2.add(8);
arrayList2.add(8);
kVar.p(1);
kVar.b(str);
kVar.a(arrayList);
kVar.b(arrayList2);
kVar.n(1);
kVar.c(-2);
kVar.d(-2);
kVar.o(5);
kVar.a(3600L);
kVar.h(2);
kVar.a(1);
kVar.l(100);
kVar.e(0);
kVar.f(1);
kVar.i(0);
kVar.m(60);
kVar.j(10);
kVar.k(60);
return kVar;
}
public static k e(String str) {
k kVar = new k();
try {
ArrayList arrayList = new ArrayList();
arrayList.add(1);
kVar.a(arrayList);
ArrayList arrayList2 = new ArrayList();
arrayList2.add(30);
kVar.b(arrayList2);
kVar.b(str);
kVar.p(1);
kVar.n(1);
kVar.c(-2);
kVar.d(-2);
kVar.o(5);
kVar.a(3600L);
kVar.h(2);
kVar.a(3);
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("UnitSetting", e.getMessage());
}
}
return kVar;
}
public static k f(String str) {
k y = y();
y.a(0);
return y;
}
public static k y() {
return new k();
}
public static k g(String str) {
if (TextUtils.isEmpty(str)) {
return null;
}
try {
return c.a(new JSONObject(str));
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("UnitSetting", "parseSetting", e);
}
return null;
}
}
}