what-the-bank/sources/io/flutter/plugins/urllauncher/WebViewActivity.java

705 lines
34 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.urllauncher;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Message;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import o.TVH;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes6.dex */
public class WebViewActivity extends Activity {
public static String ACTION_CLOSE = "close action";
private static String ENABLE_DOM_EXTRA = "enableDomStorage";
private static String ENABLE_JS_EXTRA = "enableJavaScript";
private static String URL_EXTRA = "url";
private static char[] b;
private static int e;
private WebView webview;
private static final byte[] $$a = {75, -3, Ascii.EM, 97};
private static final int $$b = CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 1;
private final BroadcastReceiver broadcastReceiver = new BroadcastReceiver(this) { // from class: io.flutter.plugins.urllauncher.WebViewActivity.1
final WebViewActivity this$0;
{
this.this$0 = this;
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
if (WebViewActivity.ACTION_CLOSE.equals(intent.getAction())) {
this.this$0.finish();
}
}
};
private final WebViewClient webViewClient = new WebViewClient(this) { // from class: io.flutter.plugins.urllauncher.WebViewActivity.2
final WebViewActivity this$0;
{
this.this$0 = this;
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
return super.shouldOverrideUrlLoading(webView, str);
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
webView.loadUrl(webResourceRequest.getUrl().toString());
return false;
}
};
private IntentFilter closeIntentFilter = new IntentFilter(ACTION_CLOSE);
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002e). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void f(byte r7, short r8, int r9, java.lang.Object[] r10) {
/*
int r7 = r7 * 4
int r7 = 3 - r7
byte[] r0 = io.flutter.plugins.urllauncher.WebViewActivity.$$a
int r8 = r8 * 2
int r8 = r8 + 1
int r9 = r9 * 2
int r9 = 73 - r9
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L17
r9 = r7
r3 = r8
r5 = r2
goto L2e
L17:
r3 = r2
L18:
int r7 = r7 + 1
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r8) goto L29
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L29:
r3 = r0[r7]
r6 = r9
r9 = r7
r7 = r6
L2e:
int r3 = -r3
int r7 = r7 + r3
r3 = r5
r6 = r9
r9 = r7
r7 = r6
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: io.flutter.plugins.urllauncher.WebViewActivity.f(byte, short, int, java.lang.Object[]):void");
}
static /* synthetic */ WebView access$000(WebViewActivity webViewActivity) {
int i = 2 % 2;
int i2 = e + 63;
c = i2 % 128;
int i3 = i2 % 2;
WebView webView = webViewActivity.webview;
if (i3 != 0) {
return webView;
}
throw null;
}
/* loaded from: classes6.dex */
class FlutterWebChromeClient extends WebChromeClient {
final WebViewActivity this$0;
private FlutterWebChromeClient(WebViewActivity webViewActivity) {
this.this$0 = webViewActivity;
}
@Override // android.webkit.WebChromeClient
public boolean onCreateWindow(WebView webView, boolean z, boolean z2, Message message) {
WebViewClient webViewClient = new WebViewClient(this) { // from class: io.flutter.plugins.urllauncher.WebViewActivity.FlutterWebChromeClient.1
final FlutterWebChromeClient this$1;
{
this.this$1 = this;
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView2, WebResourceRequest webResourceRequest) {
WebViewActivity.access$000(this.this$1.this$0).loadUrl(webResourceRequest.getUrl().toString());
return true;
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView2, String str) {
WebViewActivity.access$000(this.this$1.this$0).loadUrl(str);
return true;
}
};
WebView webView2 = new WebView(WebViewActivity.access$000(this.this$0).getContext());
webView2.setWebViewClient(webViewClient);
((WebView.WebViewTransport) message.obj).setWebView(webView2);
message.sendToTarget();
return true;
}
}
@Override // android.app.Activity
public void onCreate(Bundle bundle) {
int i = 2 % 2;
Object[] objArr = new Object[1];
a(new int[]{0, 18, 0, 0}, true, new byte[]{1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
a(new int[]{18, 5, 0, 0}, true, new byte[]{0, 1, 0, 0, 0}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
a(new int[]{23, 26, 121, 0}, true, new byte[]{1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
a(new int[]{49, 18, 0, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = c + 27;
e = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
int i4 = c + 1;
e = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
int i6 = e + 87;
c = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(Process.getGidForName("") + 493, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (TextUtils.lastIndexOf("", '0') + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
a(new int[]{67, 48, CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA, 40}, true, null, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
a(new int[]{115, 64, 0, 0}, true, new byte[]{1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
a(new int[]{CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA384, 64, 0, 0}, true, new byte[]{1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1}, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
a(new int[]{243, 74, 0, 3}, false, new byte[]{0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1}, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
a(new int[]{317, 5, 0, 0}, false, new byte[]{1, 1, 0, 0, 0}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
a(new int[]{322, 36, 101, 0}, true, new byte[]{0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0}, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) (1 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
WebView webView = new WebView(this);
this.webview = webView;
setContentView(webView);
Intent intent = getIntent();
String stringExtra = intent.getStringExtra(URL_EXTRA);
boolean booleanExtra = intent.getBooleanExtra(ENABLE_JS_EXTRA, false);
boolean booleanExtra2 = intent.getBooleanExtra(ENABLE_DOM_EXTRA, false);
this.webview.loadUrl(stringExtra, extractHeaders(intent.getBundleExtra("com.android.browser.headers")));
this.webview.getSettings().setJavaScriptEnabled(booleanExtra);
this.webview.getSettings().setDomStorageEnabled(booleanExtra2);
this.webview.setWebViewClient(this.webViewClient);
this.webview.getSettings().setSupportMultipleWindows(true);
this.webview.setWebChromeClient(new FlutterWebChromeClient());
registerReceiver(this.broadcastReceiver, this.closeIntentFilter);
}
public static Map<String, String> extractHeaders(Bundle bundle) {
int i = 2 % 2;
int i2 = c;
int i3 = i2 + 59;
e = i3 % 128;
int i4 = i3 % 2;
if (bundle == null) {
int i5 = i2 + 53;
e = i5 % 128;
int i6 = i5 % 2;
return Collections.emptyMap();
}
HashMap hashMap = new HashMap();
Iterator<String> it = bundle.keySet().iterator();
while (it.hasNext()) {
int i7 = c + 99;
e = i7 % 128;
if (i7 % 2 != 0) {
String next = it.next();
hashMap.put(next, bundle.getString(next));
int i8 = 29 / 0;
} else {
String next2 = it.next();
hashMap.put(next2, bundle.getString(next2));
}
}
return hashMap;
}
private static void a(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
int i2;
int length;
char[] cArr;
int i3;
int i4 = 2 % 2;
TVH tvh = new TVH();
int i5 = 0;
int i6 = iArr[0];
int i7 = iArr[1];
int i8 = iArr[2];
int i9 = iArr[3];
char[] cArr2 = b;
if (cArr2 != null) {
int i10 = $11 + 51;
$10 = i10 % 128;
if (i10 % 2 != 0) {
length = cArr2.length;
cArr = new char[length];
i3 = 1;
} else {
length = cArr2.length;
cArr = new char[length];
i3 = 0;
}
while (i3 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i5] = Integer.valueOf(cArr2[i3]);
Object obj = xzZ.y.get(1645349359);
if (obj == null) {
Class cls = (Class) xzZ.c(223 - (ViewConfiguration.getJumpTapTimeout() >> 16), (CdmaCellLocation.convertQuartSecToDecDegrees(i5) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(i5) == 0.0d ? 0 : -1)) + 5, (char) ((ViewConfiguration.getTapTimeout() >> 16) + 41977));
byte b2 = (byte) i5;
byte b3 = b2;
Object[] objArr3 = new Object[1];
f(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr[i3] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i3++;
i5 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr;
}
char[] cArr3 = new char[i7];
System.arraycopy(cArr2, i6, cArr3, 0, i7);
if (bArr != null) {
char[] cArr4 = new char[i7];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i7) {
if (bArr[tvh.c] == 1) {
int i11 = $11 + 45;
$10 = i11 % 128;
int i12 = i11 % 2;
int i13 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 502, Color.green(0) + 5, (char) (55 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr4[i13] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
int i14 = $11 + 47;
$10 = i14 % 128;
int i15 = i14 % 2;
} else {
int i16 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((Process.myPid() >> 22) + 15, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) ((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 58134))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr4[i16] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
int i17 = $10 + 55;
$11 = i17 % 128;
int i18 = i17 % 2;
}
c2 = cArr4[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 402, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) ((ViewConfiguration.getEdgeSlop() >> 16) + 21608));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
f(b4, b5, b5, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr3 = cArr4;
}
if (i9 > 0) {
int i19 = $10 + 79;
$11 = i19 % 128;
if (i19 % 2 == 0) {
char[] cArr5 = new char[i7];
i = 0;
System.arraycopy(cArr3, 1, cArr5, 0, i7);
System.arraycopy(cArr5, 1, cArr3, i7 << i9, i9);
System.arraycopy(cArr5, i9, cArr3, 1, i7 + i9);
} else {
i = 0;
char[] cArr6 = new char[i7];
System.arraycopy(cArr3, 0, cArr6, 0, i7);
int i20 = i7 - i9;
System.arraycopy(cArr6, 0, cArr3, i20, i9);
System.arraycopy(cArr6, i9, cArr3, 0, i20);
}
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i7];
tvh.c = i;
int i21 = $11 + 123;
$10 = i21 % 128;
int i22 = 2;
int i23 = i21 % 2;
while (tvh.c < i7) {
int i24 = $11 + 5;
$10 = i24 % 128;
if (i24 % i22 != 0) {
cArr7[tvh.c] = cArr3[(i7 << tvh.c) >>> 1];
i2 = tvh.c;
} else {
cArr7[tvh.c] = cArr3[(i7 - tvh.c) - 1];
i2 = tvh.c + 1;
}
tvh.c = i2;
i22 = 2;
}
cArr3 = cArr7;
}
if (i8 > 0) {
int i25 = $11 + 79;
$10 = i25 % 128;
if (i25 % 2 != 0) {
tvh.c = 1;
} else {
tvh.c = 0;
}
while (tvh.c < i7) {
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
tvh.c++;
}
}
objArr[0] = new String(cArr3);
}
@Override // android.app.Activity
protected void onDestroy() {
int i = 2 % 2;
int i2 = c + 65;
e = i2 % 128;
int i3 = i2 % 2;
super.onDestroy();
unregisterReceiver(this.broadcastReceiver);
int i4 = c + 53;
e = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.app.Activity, android.view.KeyEvent.Callback
public boolean onKeyDown(int i, KeyEvent keyEvent) {
int i2 = 2 % 2;
if (i == 4) {
int i3 = c + 17;
e = i3 % 128;
int i4 = i3 % 2;
if (this.webview.canGoBack()) {
this.webview.goBack();
int i5 = c + 63;
e = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 26 / 0;
}
return true;
}
}
return super.onKeyDown(i, keyEvent);
}
public static Intent createIntent(Context context, String str, boolean z, boolean z2, Bundle bundle) {
int i = 2 % 2;
Intent putExtra = new Intent(context, (Class<?>) WebViewActivity.class).putExtra(URL_EXTRA, str).putExtra(ENABLE_JS_EXTRA, z).putExtra(ENABLE_DOM_EXTRA, z2).putExtra("com.android.browser.headers", bundle);
int i2 = e + 111;
c = i2 % 128;
if (i2 % 2 != 0) {
return putExtra;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.Activity
protected void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
a(new int[]{23, 26, 121, 0}, true, new byte[]{1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
a(new int[]{49, 18, 0, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = e + 125;
c = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 492, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(486 - TextUtils.lastIndexOf("", '0', 0, 0), (ViewConfiguration.getEdgeSlop() >> 16) + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i4 = c + 97;
e = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
int i6 = c + 43;
e = i6 % 128;
if (i6 % 2 != 0) {
throw null;
}
}
@Override // android.app.Activity
protected void onPause() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = e + 97;
c = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
a(new int[]{23, 26, 121, 0}, true, new byte[]{1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
a(new int[]{49, 18, 0, 0}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i4 = c + 53;
e = i4 % 128;
int i5 = i4 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(View.resolveSize(0, 0) + 492, Color.rgb(0, 0, 0) + 16777221, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 487, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) View.MeasureSpec.getMode(0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
a(new int[]{0, 18, 0, 0}, true, new byte[]{1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
a(new int[]{18, 5, 0, 0}, true, new byte[]{0, 1, 0, 0, 0}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i2 = e + 5;
c = i2 % 128;
if (i2 % 2 == 0) {
context.getApplicationContext();
throw null;
}
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
int i3 = c + 33;
e = i3 % 128;
int i4 = i3 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 492, TextUtils.lastIndexOf("", '0') + 6, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
a(new int[]{67, 48, CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA, 40}, true, null, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
a(new int[]{115, 64, 0, 0}, true, new byte[]{1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
a(new int[]{CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA384, 64, 0, 0}, true, new byte[]{1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
a(new int[]{243, 74, 0, 3}, false, new byte[]{0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
a(new int[]{317, 5, 0, 0}, false, new byte[]{1, 1, 0, 0, 0}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
a(new int[]{322, 36, 101, 0}, true, new byte[]{0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0}, objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 487, 5 - View.getDefaultSize(0, 0), (char) View.resolveSize(0, 0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
static void d() {
b = new char[]{39986, 40056, 40039, 40047, 40034, 40059, 40042, 39988, 40027, 40058, 40005, 40002, 40045, 40039, 40059, 40032, 40034, 40044, 39993, 40045, 40020, 40044, 40056, 40037, 40144, 40151, 40175, 40173, 40156, 40148, 40164, 40172, 40163, 40163, 40172, 40175, 40128, 40123, 40131, 40162, 40170, 40139, 40137, 40148, 40174, 40162, 40175, 40169, 40171, 39994, 40039, 40056, 40057, 40032, 40034, 40058, 40017, 40019, 40059, 40037, 40033, 40045, 40041, 40033, 40037, 40039, 40037, 40166, 40166, 40187, 40186, 40119, 40136, 40139, 40119, 40119, 40164, 40143, 40165, 40139, 40165, 40138, 40186, 40143, 40167, 40116, 40117, 40136, 40118, 40117, 40166, 40136, 40117, 40166, 40117, 40167, 40118, 40143, 40166, 40167, 40186, 40165, 40117, 40166, 40116, 40137, 40119, 40116, 40187, 40136, 40165, 40139, 40143, 40116, 40118, 39993, 40040, 40042, 40007, 39996, 39999, 40001, 40006, 40006, 40000, 39997, 40006, 40006, 40005, 40004, 40005, 40040, 40007, 39992, 39992, 39998, 40000, 40042, 40007, 40007, 40041, 40006, 39997, 40000, 40000, 39997, 39996, 39996, 39999, 39999, 39998, 40001, 40002, 39992, 39999, 39992, 40001, 40000, 40007, 40001, 39994, 39993, 39998, 39992, 39999, 39997, 39999, 39999, 39999, 39992, 40006, 40004, 39997, 40000, 40007, 40006, 40006, 40007, 40040, 39952, 40006, 40006, 39997, 40000, 40040, 40040, 40003, 40000, 40000, 39999, 39996, 39996, 39998, 40000, 40040, 40040, 40006, 40007, 40047, 40007, 39999, 39993, 39993, 39992, 39994, 39994, 39992, 39998, 40000, 40042, 40000, 40007, 40005, 39996, 39996, 40005, 40046, 40004, 40006, 40001, 39999, 39992, 39995, 39995, 40000, 40047, 40042, 40007, 39999, 39993, 40000, 40040, 40007, 39997, 39998, 40000, 40046, 40007, 40001, 40001, 39994, 39999, 40007, 39996, 40058, 40056, 40038, 40037, 40063, 40057, 40058, 40029, 39999, 39972, 40026, 40037, 40046, 40044, 40035, 40034, 40037, 40038, 40034, 40032, 40033, 40045, 40046, 40045, 40044, 40042, 40044, 40039, 40007, 40026, 40037, 40038, 40032, 40040, 40033, 40032, 40041, 40033, 40056, 40026, 40001, 40037, 40032, 40034, 40032, 40032, 40057, 40056, 40032, 40034, 40032, 40002, 40003, 40034, 40037, 40005, 40003, 40035, 40039, 40007, 40007, 40032, 40033, 40045, 40039, 40056, 40026, 40025, 40031, 39995, 40001, 40038, 40038, 39959, 39992, 39992, 39992, 39972, 40046, 40123, 40083, 40082, 40082, 40122, 40130, 40120, 40122, 40101, 40100, 40100, 40095, 40102, 40130, 40131, 40141, 40103, 40095, 40093, 40093, 40083, 40094, 40103, 40131, 40100, 40083, 40093, 40088, 40092, 40080, 40120, 40122, 40083, 40101, 40131};
}
@Override // android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = e + 59;
c = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = c + 25;
e = i4 % 128;
int i5 = i4 % 2;
}
static {
e = 0;
d();
int i = c + 47;
e = i % 128;
if (i % 2 != 0) {
throw null;
}
}
}