- 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
644 lines
28 KiB
Java
644 lines
28 KiB
Java
package com.mbridge.msdk.click;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Handler;
|
|
import android.os.Looper;
|
|
import android.text.TextUtils;
|
|
import com.google.android.gms.drive.DriveFile;
|
|
import com.ironsource.nb;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.click.entity.JumpLoaderResult;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.tools.ab;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.foundation.tools.aj;
|
|
import com.mbridge.msdk.foundation.tools.aq;
|
|
import com.mbridge.msdk.out.Campaign;
|
|
import com.mbridge.msdk.out.LoadingActivity;
|
|
import com.mbridge.msdk.out.NativeListener;
|
|
import com.mbridge.msdk.scheme.applet.AppletSchemeCallBack;
|
|
import com.mbridge.msdk.scheme.applet.AppletsModel;
|
|
import java.net.URLEncoder;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class a {
|
|
public static boolean a;
|
|
public static Map<String, Long> b = new HashMap();
|
|
public static Set<String> c = new HashSet();
|
|
private String d;
|
|
private long e;
|
|
private com.mbridge.msdk.foundation.db.g f;
|
|
private Context g;
|
|
private d h;
|
|
private com.mbridge.msdk.foundation.same.report.h j;
|
|
private com.mbridge.msdk.c.g k;
|
|
private boolean l;
|
|
private boolean o;
|
|
private i p;
|
|
private NativeListener.NativeTrackingListener i = null;
|
|
private boolean m = false;
|
|
private boolean n = true;
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static String b(int i) {
|
|
return i != 1 ? i != 2 ? i != 3 ? i != 4 ? "" : "2000138" : "2000139" : "2000137" : "2000136";
|
|
}
|
|
|
|
public final void a(i iVar) {
|
|
this.p = iVar;
|
|
}
|
|
|
|
public final void a(NativeListener.NativeTrackingListener nativeTrackingListener) {
|
|
this.i = nativeTrackingListener;
|
|
}
|
|
|
|
public final void a(String str) {
|
|
this.d = str;
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.n = z;
|
|
}
|
|
|
|
public a(Context context, String str) {
|
|
this.f = null;
|
|
this.g = null;
|
|
com.mbridge.msdk.c.g b2 = com.mbridge.msdk.c.h.a().b(str);
|
|
this.k = b2;
|
|
if (b2 == null) {
|
|
com.mbridge.msdk.c.h.a();
|
|
this.k = com.mbridge.msdk.c.i.a();
|
|
}
|
|
this.l = this.k.aK();
|
|
Context applicationContext = context.getApplicationContext();
|
|
this.g = applicationContext;
|
|
this.d = str;
|
|
if (this.f == null) {
|
|
this.f = com.mbridge.msdk.foundation.db.g.a(applicationContext);
|
|
}
|
|
this.j = new com.mbridge.msdk.foundation.same.report.h(this.g);
|
|
}
|
|
|
|
public static void a(Context context, CampaignEx campaignEx, String str, String str2, boolean z, boolean z2) {
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
new d(context.getApplicationContext()).a(str, campaignEx, null, str2, z, z2, com.mbridge.msdk.click.a.a.f);
|
|
}
|
|
|
|
public static void a(Context context, CampaignEx campaignEx, String str, String[] strArr, boolean z, boolean z2) {
|
|
if (context == null || campaignEx == null || TextUtils.isEmpty(str) || strArr == null) {
|
|
return;
|
|
}
|
|
d dVar = new d(context.getApplicationContext());
|
|
for (String str2 : strArr) {
|
|
dVar.a(str, campaignEx, new f() { // from class: com.mbridge.msdk.click.a.2
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void a(Object obj) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void a(Object obj, String str3) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void b(Object obj) {
|
|
}
|
|
}, str2, z, z2, com.mbridge.msdk.click.a.a.f);
|
|
}
|
|
}
|
|
|
|
public final void a() {
|
|
try {
|
|
this.i = null;
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
public final void a(CampaignEx campaignEx, NativeListener.NativeAdListener nativeAdListener) {
|
|
if (nativeAdListener != null && campaignEx != null) {
|
|
nativeAdListener.onAdClick(campaignEx);
|
|
}
|
|
a(campaignEx);
|
|
}
|
|
|
|
private boolean b(CampaignEx campaignEx) {
|
|
Long l;
|
|
if (campaignEx == null) {
|
|
return true;
|
|
}
|
|
try {
|
|
if (2 != campaignEx.getLinkType() && 3 != campaignEx.getLinkType()) {
|
|
return true;
|
|
}
|
|
String id = campaignEx.getId();
|
|
Map<String, Long> map = b;
|
|
if (map == null) {
|
|
return true;
|
|
}
|
|
if (map.containsKey(id) && (l = b.get(id)) != null) {
|
|
if (l.longValue() > System.currentTimeMillis() || c.contains(campaignEx.getId())) {
|
|
return false;
|
|
}
|
|
}
|
|
b.put(campaignEx.getId(), Long.valueOf(System.currentTimeMillis() + (campaignEx.getClickTimeOutInterval() * 1000)));
|
|
return true;
|
|
} catch (Exception e) {
|
|
if (!MBridgeConstans.DEBUG) {
|
|
return true;
|
|
}
|
|
e.printStackTrace();
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:139:0x02a4 A[Catch: all -> 0x003d, TryCatch #1 {all -> 0x003d, blocks: (B:6:0x0009, B:9:0x0010, B:11:0x0033, B:13:0x0039, B:14:0x0040, B:15:0x0048, B:18:0x0062, B:20:0x007a, B:22:0x007e, B:23:0x0085, B:25:0x009f, B:26:0x00a6, B:28:0x00aa, B:29:0x00c0, B:31:0x00c9, B:33:0x00cd, B:34:0x00d4, B:36:0x00e4, B:40:0x00ee, B:42:0x00f4, B:44:0x00fa, B:46:0x0106, B:48:0x010a, B:49:0x0111, B:51:0x0115, B:53:0x011f, B:56:0x0126, B:58:0x012a, B:59:0x0131, B:61:0x014b, B:64:0x0153, B:65:0x0163, B:67:0x0169, B:69:0x016d, B:70:0x0174, B:72:0x017e, B:74:0x0184, B:76:0x018a, B:78:0x0194, B:79:0x019c, B:81:0x01a0, B:82:0x01a7, B:84:0x01b1, B:86:0x01b7, B:87:0x01be, B:89:0x01c4, B:91:0x01d0, B:93:0x01df, B:94:0x01e8, B:96:0x01ec, B:97:0x01f3, B:99:0x01f9, B:100:0x0202, B:102:0x0206, B:105:0x01ff, B:106:0x0213, B:109:0x0223, B:116:0x023a, B:118:0x0244, B:120:0x024c, B:122:0x0254, B:124:0x025d, B:125:0x0264, B:127:0x0272, B:129:0x0279, B:130:0x0280, B:132:0x0284, B:134:0x0299, B:139:0x02a4, B:141:0x02ac, B:142:0x02af, B:144:0x02b5, B:146:0x02b9, B:147:0x02bc, B:150:0x02c2, B:152:0x02c8, B:154:0x02d2, B:156:0x02d6, B:158:0x02da, B:159:0x02dd, B:160:0x02f6, B:162:0x02e8, B:164:0x02f3, B:166:0x02fc, B:168:0x030a, B:173:0x0312, B:174:0x031a, B:175:0x0321, B:177:0x0325, B:178:0x0328, B:181:0x032f, B:183:0x0335, B:185:0x033b, B:189:0x0342, B:191:0x034d, B:193:0x0356, B:195:0x035a, B:197:0x0362, B:198:0x0365, B:200:0x036b, B:202:0x036f, B:203:0x0372, B:205:0x0376, B:207:0x037a, B:208:0x037d, B:210:0x038a, B:212:0x038e), top: B:5:0x0009, inners: #0 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:180:0x032d */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(com.mbridge.msdk.foundation.entity.CampaignEx r18) {
|
|
/*
|
|
Method dump skipped, instructions count: 926
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.entity.CampaignEx):void");
|
|
}
|
|
|
|
private AppletSchemeCallBack a(NativeListener.NativeTrackingListener nativeTrackingListener, CampaignEx campaignEx, AppletsModel appletsModel, a aVar) {
|
|
return new g(nativeTrackingListener, campaignEx, appletsModel, aVar);
|
|
}
|
|
|
|
private void a(Context context, CampaignEx campaignEx, List<String> list) {
|
|
if (context == null) {
|
|
com.mbridge.msdk.foundation.same.report.i.a(com.mbridge.msdk.foundation.controller.c.m().c(), campaignEx, 2, "context is null", this.d);
|
|
return;
|
|
}
|
|
boolean z = ab.z() == 1;
|
|
boolean z2 = ab.v(context) == 1;
|
|
if (!z || !z2) {
|
|
com.mbridge.msdk.foundation.same.report.i.a(context, campaignEx, 2, "integrated:" + z + "-hasWx:" + z2, this.d);
|
|
a(campaignEx, list);
|
|
return;
|
|
}
|
|
String ghId = campaignEx.getGhId();
|
|
String ghPath = campaignEx.getGhPath();
|
|
String bindId = campaignEx.getBindId();
|
|
String h = com.mbridge.msdk.foundation.controller.c.m().h();
|
|
if (!TextUtils.isEmpty(ghId)) {
|
|
try {
|
|
if (!TextUtils.isEmpty(h)) {
|
|
bindId = h;
|
|
}
|
|
Object b2 = ab.b(bindId);
|
|
Class<?> cls = Class.forName("com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram$Req");
|
|
Object newInstance = cls.newInstance();
|
|
cls.getField("userName").set(newInstance, ghId);
|
|
cls.getField("path").set(newInstance, ghPath);
|
|
cls.getField("miniprogramType").set(newInstance, cls.getField("MINIPTOGRAM_TYPE_RELEASE").get(null));
|
|
Class.forName("com.tencent.mm.opensdk.openapi.IWXAPI").getMethod("sendReq", Class.forName("com.tencent.mm.opensdk.modelbase.BaseReq")).invoke(b2, newInstance);
|
|
com.mbridge.msdk.foundation.same.report.i.a(context, campaignEx, 1, "", this.d);
|
|
return;
|
|
} catch (Throwable th) {
|
|
com.mbridge.msdk.foundation.same.report.i.a(context, campaignEx, 2, th.getMessage(), this.d);
|
|
a(campaignEx, list);
|
|
return;
|
|
}
|
|
}
|
|
a(campaignEx, list);
|
|
com.mbridge.msdk.foundation.same.report.i.a(context, campaignEx, 2, "ghid is empty", this.d);
|
|
}
|
|
|
|
private void a(CampaignEx campaignEx, List<String> list) {
|
|
if (b() == 2) {
|
|
aj.a(this.g, campaignEx.getClickURL(), campaignEx, this.i, list);
|
|
} else {
|
|
aj.a(this.g, campaignEx.getClickURL(), this.i, campaignEx, list);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:27:0x0102 A[Catch: Exception -> 0x0023, TryCatch #0 {Exception -> 0x0023, blocks: (B:3:0x0006, B:6:0x0013, B:7:0x0027, B:10:0x0033, B:11:0x0042, B:12:0x0047, B:14:0x0059, B:18:0x005f, B:21:0x0076, B:23:0x007b, B:25:0x00ed, B:27:0x0102, B:28:0x0105, B:30:0x0109, B:32:0x0113, B:34:0x0117, B:37:0x0124, B:39:0x0128, B:40:0x012f, B:42:0x008c, B:44:0x0098, B:46:0x00a2, B:49:0x00ab, B:51:0x00ca, B:53:0x00d1, B:54:0x00d4, B:57:0x00da, B:58:0x00e3, B:60:0x00e8), top: B:2:0x0006 }] */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x0128 A[Catch: Exception -> 0x0023, TryCatch #0 {Exception -> 0x0023, blocks: (B:3:0x0006, B:6:0x0013, B:7:0x0027, B:10:0x0033, B:11:0x0042, B:12:0x0047, B:14:0x0059, B:18:0x005f, B:21:0x0076, B:23:0x007b, B:25:0x00ed, B:27:0x0102, B:28:0x0105, B:30:0x0109, B:32:0x0113, B:34:0x0117, B:37:0x0124, B:39:0x0128, B:40:0x012f, B:42:0x008c, B:44:0x0098, B:46:0x00a2, B:49:0x00ab, B:51:0x00ca, B:53:0x00d1, B:54:0x00d4, B:57:0x00da, B:58:0x00e3, B:60:0x00e8), top: B:2:0x0006 }] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private void a(final com.mbridge.msdk.foundation.entity.CampaignEx r15, final boolean r16, final java.lang.Boolean r17, final java.util.List<java.lang.String> r18) {
|
|
/*
|
|
Method dump skipped, instructions count: 335
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.entity.CampaignEx, boolean, java.lang.Boolean, java.util.List):void");
|
|
}
|
|
|
|
public final void a(JumpLoaderResult jumpLoaderResult, CampaignEx campaignEx, int i, boolean z) {
|
|
if (campaignEx == null || jumpLoaderResult == null) {
|
|
return;
|
|
}
|
|
try {
|
|
long currentTimeMillis = System.currentTimeMillis() - this.e;
|
|
com.mbridge.msdk.foundation.entity.e eVar = new com.mbridge.msdk.foundation.entity.e();
|
|
int m = ab.m(this.g);
|
|
eVar.a(m);
|
|
eVar.c(ab.a(this.g, m));
|
|
eVar.b(campaignEx.getRequestId());
|
|
eVar.k(campaignEx.getRequestIdNotice());
|
|
eVar.b(i);
|
|
eVar.i(currentTimeMillis + "");
|
|
eVar.j(campaignEx.getId());
|
|
eVar.c(jumpLoaderResult.getType());
|
|
if (!TextUtils.isEmpty(jumpLoaderResult.getUrl())) {
|
|
eVar.h(URLEncoder.encode(jumpLoaderResult.getUrl(), nb.N));
|
|
}
|
|
eVar.e((this.e / 1000) + "");
|
|
eVar.d(Integer.parseInt(campaignEx.getLandingType()));
|
|
eVar.e(campaignEx.getLinkType());
|
|
eVar.a(this.d);
|
|
eVar.c(jumpLoaderResult.getType());
|
|
if (!TextUtils.isEmpty(jumpLoaderResult.getUrl())) {
|
|
eVar.h(URLEncoder.encode(jumpLoaderResult.getUrl(), nb.N));
|
|
}
|
|
if (this.l) {
|
|
eVar.f(jumpLoaderResult.getStatusCode());
|
|
if (!TextUtils.isEmpty(jumpLoaderResult.getHeader())) {
|
|
eVar.f(URLEncoder.encode(jumpLoaderResult.getHeader(), nb.N));
|
|
}
|
|
if (!TextUtils.isEmpty(jumpLoaderResult.getContent())) {
|
|
eVar.g(URLEncoder.encode(jumpLoaderResult.getContent(), "UTF-8"));
|
|
}
|
|
if (!TextUtils.isEmpty(jumpLoaderResult.getExceptionMsg())) {
|
|
eVar.d(URLEncoder.encode(jumpLoaderResult.getExceptionMsg(), nb.N));
|
|
}
|
|
}
|
|
if (!z) {
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(eVar);
|
|
ArrayList<JSONObject> a2 = com.mbridge.msdk.foundation.entity.e.a(arrayList);
|
|
if (a2 == null || a2.isEmpty()) {
|
|
return;
|
|
}
|
|
Iterator<JSONObject> it = a2.iterator();
|
|
while (it.hasNext()) {
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a(it.next());
|
|
}
|
|
return;
|
|
}
|
|
JSONObject a3 = com.mbridge.msdk.foundation.entity.e.a(eVar);
|
|
if (a3 != null) {
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a(a3);
|
|
}
|
|
} catch (Throwable th) {
|
|
af.b("CommonClickControl", th.getMessage());
|
|
}
|
|
}
|
|
|
|
public final void a(Campaign campaign, String str) {
|
|
try {
|
|
if (!TextUtils.isEmpty(str) && campaign != null) {
|
|
CampaignEx campaignEx = campaign instanceof CampaignEx ? (CampaignEx) campaign : null;
|
|
if ((!str.startsWith("market://") && !str.startsWith("https://play.google.com/")) || aj.a.a(this.g, str, this.i) || campaignEx == null) {
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(campaignEx.getPackageName())) {
|
|
aj.a.a(this.g, "market://details?id=" + campaignEx.getPackageName(), this.i);
|
|
return;
|
|
}
|
|
if (b() == 2) {
|
|
aj.a(this.g, campaignEx.getClickURL(), campaignEx, this.i, new ArrayList());
|
|
} else {
|
|
aj.a(this.g, campaignEx.getClickURL(), this.i, campaignEx, new ArrayList());
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(JumpLoaderResult jumpLoaderResult, CampaignEx campaignEx, boolean z) {
|
|
a(jumpLoaderResult, campaignEx, 1, z);
|
|
}
|
|
|
|
private void a(int i, String str, CampaignEx campaignEx, NativeListener.NativeTrackingListener nativeTrackingListener, List<String> list) {
|
|
try {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
if (i == 2) {
|
|
aj.a(this.g, str, campaignEx, nativeTrackingListener, list);
|
|
} else {
|
|
aj.a(this.g, str, nativeTrackingListener, campaignEx, list);
|
|
}
|
|
}
|
|
} catch (Throwable th) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", th.getMessage(), th);
|
|
}
|
|
}
|
|
}
|
|
|
|
private boolean a(CampaignEx campaignEx, JumpLoaderResult jumpLoaderResult, boolean z, int i, List<String> list) {
|
|
boolean z2 = true;
|
|
boolean z3 = false;
|
|
if (z) {
|
|
try {
|
|
int parseInt = Integer.parseInt(campaignEx.getLandingType());
|
|
if (parseInt == 1) {
|
|
aj.a(this.g, jumpLoaderResult.getUrl(), this.i, campaignEx, list);
|
|
} else if (parseInt == 2) {
|
|
aj.a(this.g, jumpLoaderResult.getUrl(), campaignEx, this.i, list);
|
|
} else if (campaignEx.getPackageName() != null) {
|
|
if (aj.a.a(this.g, "market://details?id=" + campaignEx.getPackageName(), this.i)) {
|
|
if (list != null) {
|
|
try {
|
|
list.add("google_play");
|
|
} catch (Throwable th) {
|
|
th = th;
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", th.getMessage(), th);
|
|
}
|
|
return z2;
|
|
}
|
|
}
|
|
a(campaignEx, 1, 1, list);
|
|
} else {
|
|
a(i, jumpLoaderResult.getUrl(), campaignEx, this.i, list);
|
|
}
|
|
} else {
|
|
a(i, jumpLoaderResult.getUrl(), campaignEx, this.i, list);
|
|
}
|
|
z3 = true;
|
|
} catch (Throwable th2) {
|
|
th = th2;
|
|
z2 = false;
|
|
}
|
|
}
|
|
if (z3) {
|
|
a(jumpLoaderResult, campaignEx, true);
|
|
NativeListener.NativeTrackingListener nativeTrackingListener = this.i;
|
|
if (nativeTrackingListener == null) {
|
|
return z3;
|
|
}
|
|
nativeTrackingListener.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
|
|
return z3;
|
|
}
|
|
a(jumpLoaderResult, campaignEx, true);
|
|
NativeListener.NativeTrackingListener nativeTrackingListener2 = this.i;
|
|
if (nativeTrackingListener2 == null || !z) {
|
|
return z3;
|
|
}
|
|
nativeTrackingListener2.onRedirectionFailed(campaignEx, jumpLoaderResult.getUrl());
|
|
return z3;
|
|
}
|
|
|
|
private boolean a(CampaignEx campaignEx, JumpLoaderResult jumpLoaderResult, boolean z, List<String> list) {
|
|
boolean z2 = false;
|
|
if (z) {
|
|
try {
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
b.a(this.g, this.d, campaignEx, campaignEx.getNoticeUrl(), com.mbridge.msdk.foundation.same.a.M);
|
|
}
|
|
aj.a(this.g, campaignEx.getClickURL(), this.i, campaignEx, list);
|
|
z2 = true;
|
|
} catch (Throwable th) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", th.getMessage(), th);
|
|
}
|
|
}
|
|
}
|
|
a(jumpLoaderResult, campaignEx, true);
|
|
if (z2) {
|
|
NativeListener.NativeTrackingListener nativeTrackingListener = this.i;
|
|
if (nativeTrackingListener != null) {
|
|
nativeTrackingListener.onFinishRedirection(campaignEx, jumpLoaderResult.getUrl());
|
|
}
|
|
} else {
|
|
if (com.mbridge.msdk.e.b.a()) {
|
|
a(jumpLoaderResult, campaignEx, true);
|
|
}
|
|
NativeListener.NativeTrackingListener nativeTrackingListener2 = this.i;
|
|
if (nativeTrackingListener2 != null) {
|
|
nativeTrackingListener2.onRedirectionFailed(campaignEx, jumpLoaderResult.getUrl());
|
|
}
|
|
}
|
|
return z2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* JADX WARN: Code restructure failed: missing block: B:64:0x00cf, code lost:
|
|
|
|
if (com.mbridge.msdk.foundation.tools.aj.a.a(r16.g, "market://details?id=" + r17.getPackageName(), r16.i) == false) goto L47;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public void a(com.mbridge.msdk.foundation.entity.CampaignEx r17, com.mbridge.msdk.click.entity.JumpLoaderResult r18, boolean r19, boolean r20, java.lang.Boolean r21, java.util.List<java.lang.String> r22) {
|
|
/*
|
|
Method dump skipped, instructions count: 397
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.entity.CampaignEx, com.mbridge.msdk.click.entity.JumpLoaderResult, boolean, boolean, java.lang.Boolean, java.util.List):void");
|
|
}
|
|
|
|
private int b() {
|
|
try {
|
|
com.mbridge.msdk.c.g gVar = this.k;
|
|
if (gVar != null) {
|
|
return gVar.Y();
|
|
}
|
|
return 1;
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0012, code lost:
|
|
|
|
if (android.text.TextUtils.isEmpty(r5) == false) goto L13;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private boolean a(int r4, java.lang.String r5) {
|
|
/*
|
|
r3 = this;
|
|
r0 = 2
|
|
r1 = 1
|
|
r2 = 0
|
|
if (r4 != r0) goto Le
|
|
boolean r4 = com.mbridge.msdk.foundation.tools.aj.a.b(r5) // Catch: java.lang.Exception -> Lc
|
|
if (r4 == 0) goto L15
|
|
goto L16
|
|
Lc:
|
|
r4 = move-exception
|
|
goto L18
|
|
Le:
|
|
boolean r4 = android.text.TextUtils.isEmpty(r5) // Catch: java.lang.Exception -> Lc
|
|
if (r4 != 0) goto L15
|
|
goto L16
|
|
L15:
|
|
r1 = r2
|
|
L16:
|
|
r2 = r1
|
|
goto L1b
|
|
L18:
|
|
r4.printStackTrace()
|
|
L1b:
|
|
return r2
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.click.a.a(int, java.lang.String):boolean");
|
|
}
|
|
|
|
private void a(CampaignEx campaignEx, int i, int i2, List<String> list) {
|
|
try {
|
|
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
|
|
eVar.a("type", Integer.valueOf(i));
|
|
eVar.a("result", Integer.valueOf(i2));
|
|
if (list != null) {
|
|
eVar.a("click_path", list.toString());
|
|
}
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000150", campaignEx, eVar);
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void a(Context context, final CampaignEx campaignEx, String str, final String str2, boolean z, boolean z2, final int i) {
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
if (campaignEx != null) {
|
|
try {
|
|
String b2 = b(i);
|
|
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
|
|
eVar.a("result", 3);
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a(b2, campaignEx, eVar);
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
final int i2 = TextUtils.isEmpty(str2) ? -1 : str2.startsWith("tcp") ? 1 : 0;
|
|
new d(context.getApplicationContext()).a(str, campaignEx, new f() { // from class: com.mbridge.msdk.click.a.1
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void a(Object obj) {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void b(Object obj) {
|
|
try {
|
|
com.mbridge.msdk.foundation.same.report.d.e eVar2 = new com.mbridge.msdk.foundation.same.report.d.e();
|
|
eVar2.a("result", 2);
|
|
eVar2.a("net_ty", String.valueOf(i2));
|
|
if (obj != null && (obj instanceof JumpLoaderResult)) {
|
|
JumpLoaderResult jumpLoaderResult = (JumpLoaderResult) obj;
|
|
String str3 = jumpLoaderResult.getStatusCode() + "";
|
|
eVar2.a("status_code", str3);
|
|
if (str3.startsWith("2")) {
|
|
eVar2.a("result", 1);
|
|
} else {
|
|
String exceptionMsg = jumpLoaderResult.getExceptionMsg();
|
|
if (TextUtils.isEmpty(exceptionMsg)) {
|
|
exceptionMsg = "UNKNOWN EXCEPTION and Status Code is : " + str3;
|
|
}
|
|
eVar2.a("failingURL", aq.d(str2));
|
|
eVar2.a("reason", exceptionMsg);
|
|
}
|
|
}
|
|
String b3 = a.b(i);
|
|
if (campaignEx != null) {
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a(b3, campaignEx, eVar2);
|
|
}
|
|
} catch (Exception e2) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", e2.getMessage());
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.click.f
|
|
public final void a(Object obj, String str3) {
|
|
try {
|
|
String b3 = a.b(i);
|
|
com.mbridge.msdk.foundation.same.report.d.e eVar2 = new com.mbridge.msdk.foundation.same.report.d.e();
|
|
eVar2.a("result", 2);
|
|
if (obj instanceof JumpLoaderResult) {
|
|
JumpLoaderResult jumpLoaderResult = (JumpLoaderResult) obj;
|
|
String exceptionMsg = jumpLoaderResult.getExceptionMsg();
|
|
if (!TextUtils.isEmpty(exceptionMsg)) {
|
|
str3 = exceptionMsg;
|
|
}
|
|
eVar2.a("reason", str3);
|
|
eVar2.a("status_code", Integer.valueOf(jumpLoaderResult.getStatusCode()));
|
|
}
|
|
eVar2.a("code", "");
|
|
eVar2.a("failingURL", aq.d(str2));
|
|
eVar2.a("net_ty", String.valueOf(i2));
|
|
if (campaignEx != null) {
|
|
com.mbridge.msdk.foundation.same.report.d.d.a().a(b3, campaignEx, eVar2);
|
|
}
|
|
} catch (Exception e2) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", e2.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}, str2, z, z2, i);
|
|
}
|
|
|
|
public static /* synthetic */ void a(a aVar, CampaignEx campaignEx) {
|
|
try {
|
|
Intent intent = new Intent(aVar.g, (Class<?>) LoadingActivity.class);
|
|
intent.setFlags(DriveFile.MODE_READ_ONLY);
|
|
intent.putExtra(CampaignEx.JSON_KEY_ICON_URL, campaignEx.getIconUrl());
|
|
aVar.g.startActivity(intent);
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", "Exception", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void a(a aVar, final boolean z, final Campaign campaign) {
|
|
new Handler(Looper.getMainLooper()).post(new Runnable() { // from class: com.mbridge.msdk.click.a.5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (z && !a.a && MBridgeConstans.NATIVE_SHOW_LOADINGPAGER) {
|
|
a.f(a.this);
|
|
}
|
|
if (a.this.i == null || a.a || !MBridgeConstans.NATIVE_SHOW_LOADINGPAGER) {
|
|
return;
|
|
}
|
|
a.this.i.onDismissLoading(campaign);
|
|
}
|
|
});
|
|
}
|
|
|
|
public static /* synthetic */ void f(a aVar) {
|
|
try {
|
|
Intent intent = new Intent();
|
|
intent.setAction("ExitApp");
|
|
aVar.g.sendBroadcast(intent);
|
|
} catch (Exception e) {
|
|
if (MBridgeConstans.DEBUG) {
|
|
af.b("CommonClickControl", "Exception", e);
|
|
}
|
|
}
|
|
}
|
|
}
|