Files
rr3-apk/decompiled-community/sources/com/mbridge/msdk/activity/DomainMBCommonActivity.java
Daniel Elliott c080f0d97f 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
2026-02-18 15:48:36 -08:00

243 lines
12 KiB
Java

package com.mbridge.msdk.activity;
import android.app.Activity;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.aj;
import com.mbridge.msdk.foundation.tools.at;
import com.mbridge.msdk.foundation.webview.BrowserView;
import com.mbridge.msdk.foundation.webview.b;
/* loaded from: classes4.dex */
public class DomainMBCommonActivity extends Activity {
String a = "";
private final BrowserView.a b = new BrowserView.a() { // from class: com.mbridge.msdk.activity.DomainMBCommonActivity.1
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final void a(WebView webView, int i, String str, String str2) {
}
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final void a(WebView webView, String str) {
}
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final void a() {
DomainMBCommonActivity.this.finish();
}
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final void a(WebView webView, String str, Bitmap bitmap) {
af.b("MBCommonActivity", "onPageStarted " + str);
}
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final boolean b(WebView webView, String str) {
af.b("MBCommonActivity", "shouldOverrideUrlLoading " + str);
if (aj.a.b(str) && aj.a.a(DomainMBCommonActivity.this, str, null)) {
DomainMBCommonActivity.this.finish();
}
return DomainMBCommonActivity.this.a(webView, str);
}
@Override // com.mbridge.msdk.foundation.webview.BrowserView.a
public final void c(WebView webView, String str) {
af.b("MBCommonActivity", "onPageFinished " + str);
}
};
protected BrowserView browserView;
private CampaignEx c;
@Override // android.app.Activity
public void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
try {
requestWindowFeature(1);
} catch (Throwable th) {
af.b("MBCommonActivity", th.getMessage());
}
if (c.m().c() == null) {
c.m().b(getApplicationContext());
}
c.m().a(this);
String stringExtra = getIntent().getStringExtra("url");
this.a = stringExtra;
if (!TextUtils.isEmpty(stringExtra)) {
this.c = (CampaignEx) getIntent().getSerializableExtra("mvcommon");
if (b.a.containsKey(this.a)) {
BrowserView browserView = b.a.get(this.a);
this.browserView = browserView;
if (browserView != null) {
browserView.setListener(this.b);
}
} else {
BrowserView browserView2 = new BrowserView(this, this.c);
this.browserView = browserView2;
browserView2.setListener(this.b);
this.browserView.loadUrl(this.a);
}
BrowserView browserView3 = this.browserView;
if (browserView3 != null) {
at.a(browserView3);
setContentView(this.browserView);
return;
}
return;
}
Toast.makeText(this, "Error: no data", 0).show();
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Can't wrap try/catch for region: R(14:12|13|(4:15|(1:17)|18|(2:20|21)(2:22|(4:24|(1:30)|28|29)))|31|(1:33)(2:61|(1:63)(1:64))|(1:35)|36|37|(2:41|42)|44|45|(4:47|(1:52)|53|54)|18|(0)(0)) */
/* JADX WARN: Code restructure failed: missing block: B:56:0x00bd, code lost:
r10 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x00c3, code lost:
com.mbridge.msdk.foundation.tools.af.b("MBCommonActivity", r10.getMessage());
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x008e, code lost:
r5 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x008f, code lost:
com.mbridge.msdk.foundation.tools.af.b("MBCommonActivity", r5.getMessage());
*/
/* JADX WARN: Removed duplicated region for block: B:20:0x00d0 A[Catch: all -> 0x0042, TryCatch #0 {all -> 0x0042, blocks: (B:3:0x0009, B:7:0x0010, B:9:0x001e, B:12:0x002a, B:15:0x0037, B:18:0x00ca, B:20:0x00d0, B:22:0x00d9, B:24:0x00df, B:26:0x00e5, B:31:0x0045, B:33:0x0050, B:35:0x0068, B:58:0x00c3, B:60:0x008f, B:61:0x0055, B:63:0x005f, B:45:0x0096, B:47:0x00a2, B:49:0x00b0, B:53:0x00bf, B:37:0x006e, B:39:0x0078, B:41:0x0082), top: B:2:0x0009, inners: #1, #2 }] */
/* JADX WARN: Removed duplicated region for block: B:22:0x00d9 A[Catch: all -> 0x0042, TryCatch #0 {all -> 0x0042, blocks: (B:3:0x0009, B:7:0x0010, B:9:0x001e, B:12:0x002a, B:15:0x0037, B:18:0x00ca, B:20:0x00d0, B:22:0x00d9, B:24:0x00df, B:26:0x00e5, B:31:0x0045, B:33:0x0050, B:35:0x0068, B:58:0x00c3, B:60:0x008f, B:61:0x0055, B:63:0x005f, B:45:0x0096, B:47:0x00a2, B:49:0x00b0, B:53:0x00bf, B:37:0x006e, B:39:0x0078, B:41:0x0082), top: B:2:0x0009, inners: #1, #2 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean a(android.webkit.WebView r10, java.lang.String r11) {
/*
r9 = this;
java.lang.String r0 = "intent"
java.lang.String r1 = "https"
java.lang.String r2 = "http"
java.lang.String r3 = "MBCommonActivity"
r4 = 0
boolean r5 = android.text.TextUtils.isEmpty(r11) // Catch: java.lang.Throwable -> L42
if (r5 == 0) goto L10
return r4
L10:
android.net.Uri r5 = android.net.Uri.parse(r11) // Catch: java.lang.Throwable -> L42
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r6 = r6.equals(r2) // Catch: java.lang.Throwable -> L42
if (r6 != 0) goto Lef
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r6 = r6.equals(r1) // Catch: java.lang.Throwable -> L42
if (r6 == 0) goto L2a
goto Lef
L2a:
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r6 = r6.equals(r0) // Catch: java.lang.Throwable -> L42
java.lang.String r7 = "android-app"
r8 = 1
if (r6 != 0) goto L45
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r6 = r6.equals(r7) // Catch: java.lang.Throwable -> L42
if (r6 == 0) goto Lca
goto L45
L42:
r10 = move-exception
goto Lf0
L45:
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r0 = r6.equals(r0) // Catch: java.lang.Throwable -> L42
r6 = 0
if (r0 == 0) goto L55
android.content.Intent r0 = android.content.Intent.parseUri(r11, r8) // Catch: java.lang.Throwable -> L42
goto L66
L55:
java.lang.String r0 = r5.getScheme() // Catch: java.lang.Throwable -> L42
boolean r0 = r0.equals(r7) // Catch: java.lang.Throwable -> L42
if (r0 == 0) goto L65
r0 = 2
android.content.Intent r0 = android.content.Intent.parseUri(r11, r0) // Catch: java.lang.Throwable -> L42
goto L66
L65:
r0 = r6
L66:
if (r0 == 0) goto L6e
r0.setComponent(r6) // Catch: java.lang.Throwable -> L42
r0.setSelector(r6) // Catch: java.lang.Throwable -> L42
L6e:
java.lang.String r5 = r0.getPackage() // Catch: java.lang.Throwable -> L8e
boolean r6 = android.text.TextUtils.isEmpty(r5) // Catch: java.lang.Throwable -> L8e
if (r6 != 0) goto L96
android.content.pm.PackageManager r6 = r9.getPackageManager() // Catch: java.lang.Throwable -> L8e
android.content.Intent r5 = r6.getLaunchIntentForPackage(r5) // Catch: java.lang.Throwable -> L8e
if (r5 == 0) goto L96
r5 = 268435456(0x10000000, float:2.524355E-29)
r0.setFlags(r5) // Catch: java.lang.Throwable -> L8e
r9.startActivityForResult(r0, r4) // Catch: java.lang.Throwable -> L8e
r9.finish() // Catch: java.lang.Throwable -> L8e
return r8
L8e:
r5 = move-exception
java.lang.String r5 = r5.getMessage() // Catch: java.lang.Throwable -> L42
com.mbridge.msdk.foundation.tools.af.b(r3, r5) // Catch: java.lang.Throwable -> L42
L96:
java.lang.String r5 = "browser_fallback_url"
java.lang.String r0 = r0.getStringExtra(r5) // Catch: java.lang.Throwable -> Lbd
boolean r5 = android.text.TextUtils.isEmpty(r0) // Catch: java.lang.Throwable -> Lbd
if (r5 != 0) goto Lca
android.net.Uri r5 = android.net.Uri.parse(r11) // Catch: java.lang.Throwable -> Lbd
java.lang.String r6 = r5.getScheme() // Catch: java.lang.Throwable -> Lbd
boolean r6 = r6.equals(r2) // Catch: java.lang.Throwable -> Lbd
if (r6 != 0) goto Lbf
java.lang.String r5 = r5.getScheme() // Catch: java.lang.Throwable -> Lbd
boolean r5 = r5.equals(r1) // Catch: java.lang.Throwable -> Lbd
if (r5 == 0) goto Lbb
goto Lbf
Lbb:
r11 = r0
goto Lca
Lbd:
r10 = move-exception
goto Lc3
Lbf:
r10.loadUrl(r0) // Catch: java.lang.Throwable -> Lbd
return r4
Lc3:
java.lang.String r10 = r10.getMessage() // Catch: java.lang.Throwable -> L42
com.mbridge.msdk.foundation.tools.af.b(r3, r10) // Catch: java.lang.Throwable -> L42
Lca:
boolean r10 = com.mbridge.msdk.click.c.e(r9, r11) // Catch: java.lang.Throwable -> L42
if (r10 == 0) goto Ld9
java.lang.String r10 = "openDeepLink"
com.mbridge.msdk.foundation.tools.af.b(r3, r10) // Catch: java.lang.Throwable -> L42
r9.finish() // Catch: java.lang.Throwable -> L42
return r8
Ld9:
boolean r10 = android.text.TextUtils.isEmpty(r11) // Catch: java.lang.Throwable -> L42
if (r10 != 0) goto Lef
boolean r10 = r11.startsWith(r2) // Catch: java.lang.Throwable -> L42
if (r10 != 0) goto Leb
boolean r10 = r11.startsWith(r1) // Catch: java.lang.Throwable -> L42
if (r10 == 0) goto Lec
Leb:
r4 = r8
Lec:
r10 = r4 ^ 1
return r10
Lef:
return r4
Lf0:
java.lang.String r10 = r10.getMessage()
com.mbridge.msdk.foundation.tools.af.b(r3, r10)
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.activity.DomainMBCommonActivity.a(android.webkit.WebView, java.lang.String):boolean");
}
}