package com.huawei.hms.activity; import android.R; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.graphics.Color; import android.graphics.PointF; import android.graphics.Rect; import android.media.AudioTrack; import android.os.Build; import android.os.Process; import android.telephony.cdma.CdmaCellLocation; import android.text.AndroidCharacter; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.view.Window; import android.view.WindowInsets; import android.view.WindowManager; import android.widget.ExpandableListView; import com.google.android.gms.internal.common.zzd; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.huawei.hms.adapter.internal.CommonCode; import com.huawei.hms.support.log.HMSLog; import com.huawei.hms.ui.SafeIntent; import com.huawei.hms.utils.ResolutionFlagUtil; import com.huawei.hms.utils.UIUtil; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import io.flutter.plugin.platform.PlatformPlugin; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import o.TVH; import o.xzZ; import o.zUI; import org.bouncycastle.crypto.tls.CipherSuite; import org.jnbis.internal.NistHelper; /* loaded from: classes2.dex */ public class BridgeActivity extends Activity { public static final String EXTRA_DELEGATE_CLASS_NAME = "intent.extra.DELEGATE_CLASS_OBJECT"; public static final String EXTRA_DELEGATE_UPDATE_INFO = "intent.extra.update.info"; public static final String EXTRA_INTENT = "intent.extra.intent"; public static final String EXTRA_IS_FULLSCREEN = "intent.extra.isfullscreen"; public static final String EXTRA_RESULT = "intent.extra.RESULT"; private static final int b; private static int c; private static char[] d; private static int e; private IBridgeActivityDelegate a; private static final byte[] $$a = {72, -15, 70, -100}; private static final int $$b = 212; private static int $10 = 0; private static int $11 = 1; private static int h = 1; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public class a implements View.OnApplyWindowInsetsListener { final ViewGroup a; final BridgeActivity b; a(BridgeActivity bridgeActivity, ViewGroup viewGroup) { this.b = bridgeActivity; this.a = viewGroup; } @Override // android.view.View.OnApplyWindowInsetsListener public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) { try { Object invoke = Class.forName("com.huawei.android.view.WindowManagerEx$LayoutParamsEx").getMethod("getDisplaySideRegion", WindowInsets.class).invoke(null, windowInsets); if (invoke == null) { HMSLog.i("BridgeActivity", "sideRegion is null"); } else { Rect rect = (Rect) Class.forName("com.huawei.android.view.DisplaySideRegionEx").getMethod("getSafeInsets", new Class[0]).invoke(invoke, new Object[0]); ViewGroup viewGroup = this.a; if (viewGroup != null) { viewGroup.setPadding(rect.left, 0, rect.right, 0); } } } catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { StringBuilder sb = new StringBuilder("An exception occurred while reading: onApplyWindowInsets"); sb.append(e.getMessage()); HMSLog.e("BridgeActivity", sb.toString()); } return view.onApplyWindowInsets(windowInsets); } } static { e = 0; d(); b = a("ro.build.hw_emui_api_level", 0); int i = h + 103; e = i % 128; int i2 = i % 2; } private static void i(int i, byte b2, int i2, Object[] objArr) { int i3 = 76 - i2; byte[] bArr = $$a; int i4 = i * 2; int i5 = b2 + 4; byte[] bArr2 = new byte[1 - i4]; int i6 = 0 - i4; int i7 = -1; if (bArr == null) { i7 = -1; i3 = i5 + i3; i5 = i5; } while (true) { int i8 = i7 + 1; bArr2[i8] = (byte) i3; if (i8 == i6) { objArr[0] = new String(bArr2, 0); return; } int i9 = i5 + 1; i7 = i8; i3 = bArr[i9] + i3; i5 = i9; } } public static Intent getIntentStartBridgeActivity(Activity activity, String str) { int i = 2 % 2; Intent intent = new Intent(activity, (Class) BridgeActivity.class); intent.putExtra(EXTRA_DELEGATE_CLASS_NAME, str); intent.putExtra("intent.extra.isfullscreen", UIUtil.isActivityFullscreen(activity)); int i2 = h + 123; e = i2 % 128; int i3 = i2 % 2; return intent; } @Override // android.app.Activity public void finish() { int i = 2 % 2; int i2 = h + 51; e = i2 % 128; int i3 = i2 % 2; HMSLog.i("BridgeActivity", "Enter finish."); super.finish(); int i4 = e + 65; h = i4 % 128; if (i4 % 2 == 0) { throw null; } } /* JADX WARN: Code restructure failed: missing block: B:10:0x0028, code lost: r3 = new com.huawei.hms.ui.SafeIntent(r1); r1 = com.huawei.hms.activity.BridgeActivity.e + 97; com.huawei.hms.activity.BridgeActivity.h = r1 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0036, code lost: if ((r1 % 2) == 0) goto L12; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0038, code lost: return r3; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0039, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0026, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x001b, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x003a, code lost: r1 = com.huawei.hms.activity.BridgeActivity.h + 49; com.huawei.hms.activity.BridgeActivity.e = r1 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0043, code lost: if ((r1 % 2) != 0) goto L16; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0045, code lost: return null; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0046, code lost: throw null; */ @Override // android.app.Activity /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public android.content.Intent getIntent() { /* r5 = this; r0 = 2 int r1 = r0 % r0 int r1 = com.huawei.hms.activity.BridgeActivity.e int r1 = r1 + 15 int r2 = r1 % 128 com.huawei.hms.activity.BridgeActivity.h = r2 int r1 = r1 % r0 r2 = 0 if (r1 != 0) goto L1e android.content.Intent r1 = super.getIntent() android.content.Intent r1 = com.huawei.hms.utils.UIUtil.modifyIntentBehaviorsSafe(r1) r3 = 66 int r3 = r3 / 0 if (r1 == 0) goto L3a goto L28 L1e: android.content.Intent r1 = super.getIntent() android.content.Intent r1 = com.huawei.hms.utils.UIUtil.modifyIntentBehaviorsSafe(r1) if (r1 == 0) goto L3a L28: com.huawei.hms.ui.SafeIntent r3 = new com.huawei.hms.ui.SafeIntent r3.(r1) int r1 = com.huawei.hms.activity.BridgeActivity.e int r1 = r1 + 97 int r4 = r1 % 128 com.huawei.hms.activity.BridgeActivity.h = r4 int r1 = r1 % r0 if (r1 == 0) goto L39 return r3 L39: throw r2 L3a: int r1 = com.huawei.hms.activity.BridgeActivity.h int r1 = r1 + 49 int r3 = r1 % 128 com.huawei.hms.activity.BridgeActivity.e = r3 int r1 = r1 % r0 if (r1 != 0) goto L46 return r2 L46: throw r2 */ throw new UnsupportedOperationException("Method not decompiled: com.huawei.hms.activity.BridgeActivity.getIntent():android.content.Intent"); } @Override // android.app.Activity, android.content.ComponentCallbacks public void onConfigurationChanged(Configuration configuration) { int i = 2 % 2; int i2 = h + 57; e = i2 % 128; if (i2 % 2 == 0) { super.onConfigurationChanged(configuration); IBridgeActivityDelegate iBridgeActivityDelegate = this.a; if (iBridgeActivityDelegate != null) { int i3 = h + 19; e = i3 % 128; int i4 = i3 % 2; iBridgeActivityDelegate.onBridgeConfigurationChanged(); return; } return; } super.onConfigurationChanged(configuration); throw null; } private static void a(Window window, boolean z) { int i = 2 % 2; try { window.getClass().getMethod("setHwFloating", Boolean.TYPE).invoke(window, Boolean.valueOf(z)); int i2 = h + 45; e = i2 % 128; if (i2 % 2 != 0) { throw null; } } catch (IllegalAccessException | IllegalArgumentException | NoSuchMethodException | InvocationTargetException e2) { StringBuilder sb = new StringBuilder("In setHwFloating, Failed to call Window.setHwFloating()."); sb.append(e2.getMessage()); HMSLog.e("BridgeActivity", sb.toString()); int i3 = h + 85; e = i3 % 128; int i4 = i3 % 2; } } private void c() { int i = 2 % 2; int i2 = h + 77; e = i2 % 128; int i3 = i2 % 2; try { requestWindowFeature(1); int i4 = h + 115; e = i4 % 128; int i5 = i4 % 2; } catch (Exception e2) { StringBuilder sb = new StringBuilder("requestWindowFeature "); sb.append(e2.getMessage()); HMSLog.w("BridgeActivity", sb.toString()); } Window window = getWindow(); if (b >= 9) { window.addFlags(zzd.zza); a(window, true); } window.getDecorView().setSystemUiVisibility(0); } @Override // android.app.Activity protected void onActivityResult(int i, int i2, Intent intent) { int i3 = 2 % 2; SafeIntent safeIntent = new SafeIntent(intent); super.onActivityResult(i, i2, safeIntent); IBridgeActivityDelegate iBridgeActivityDelegate = this.a; if (iBridgeActivityDelegate != null) { int i4 = e + 19; h = i4 % 128; int i5 = i4 % 2; try { if (iBridgeActivityDelegate.onBridgeActivityResult(i, i2, safeIntent)) { return; } } catch (Throwable unused) { HMSLog.w("BridgeActivity", "onBridgeActivityResult failed, throwable occur."); } if (!isFinishing()) { int i6 = e + 95; h = i6 % 128; int i7 = i6 % 2; setResult(i2, UIUtil.modifyIntentBehaviorsSafe(safeIntent)); finish(); int i8 = h + 91; e = i8 % 128; int i9 = i8 % 2; } } } private boolean b() { IBridgeActivityDelegate iBridgeActivityDelegate; int i = 2 % 2; int i2 = h + 103; e = i2 % 128; if (i2 % 2 == 0) { Intent intent = getIntent(); if (intent == null) { HMSLog.e("BridgeActivity", "In initialize, Must not pass in a null intent."); return false; } if (intent.getBooleanExtra("intent.extra.isfullscreen", false)) { int i3 = h + 37; e = i3 % 128; int i4 = i3 % 2; getWindow().setFlags(1024, 1024); } try { String stringExtra = intent.getStringExtra(EXTRA_DELEGATE_CLASS_NAME); if (stringExtra == null) { HMSLog.e("BridgeActivity", "In initialize, Must not pass in a null or non class object."); return false; } int i5 = e + 5; h = i5 % 128; if (i5 % 2 == 0) { iBridgeActivityDelegate = (IBridgeActivityDelegate) Class.forName(stringExtra).asSubclass(IBridgeActivityDelegate.class).newInstance(); this.a = iBridgeActivityDelegate; } else { iBridgeActivityDelegate = (IBridgeActivityDelegate) Class.forName(stringExtra).asSubclass(IBridgeActivityDelegate.class).newInstance(); this.a = iBridgeActivityDelegate; } try { iBridgeActivityDelegate.onBridgeActivityCreate(this); return true; } catch (Throwable th) { StringBuilder sb = new StringBuilder("onBridgeActivityCreate Exception."); sb.append(th.getMessage()); HMSLog.e("BridgeActivity", sb.toString()); return false; } } catch (ClassCastException e2) { e = e2; StringBuilder sb2 = new StringBuilder("In initialize, Failed to create 'IUpdateWizard' instance."); sb2.append(e.getMessage()); HMSLog.e("BridgeActivity", sb2.toString()); return false; } catch (ClassNotFoundException e3) { e = e3; StringBuilder sb22 = new StringBuilder("In initialize, Failed to create 'IUpdateWizard' instance."); sb22.append(e.getMessage()); HMSLog.e("BridgeActivity", sb22.toString()); return false; } catch (IllegalAccessException e4) { e = e4; StringBuilder sb222 = new StringBuilder("In initialize, Failed to create 'IUpdateWizard' instance."); sb222.append(e.getMessage()); HMSLog.e("BridgeActivity", sb222.toString()); return false; } catch (IllegalStateException e5) { e = e5; StringBuilder sb2222 = new StringBuilder("In initialize, Failed to create 'IUpdateWizard' instance."); sb2222.append(e.getMessage()); HMSLog.e("BridgeActivity", sb2222.toString()); return false; } catch (InstantiationException e6) { e = e6; StringBuilder sb22222 = new StringBuilder("In initialize, Failed to create 'IUpdateWizard' instance."); sb22222.append(e.getMessage()); HMSLog.e("BridgeActivity", sb22222.toString()); return false; } catch (Throwable unused) { HMSLog.e("BridgeActivity", "In initialize, Failed to create 'IUpdateWizard' instance, throwable occur."); return false; } } getIntent(); throw null; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0019, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x001b, code lost: r1.onKeyUp(r4, r5); */ @Override // android.app.Activity, android.view.KeyEvent.Callback /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public boolean onKeyUp(int r4, android.view.KeyEvent r5) { /* r3 = this; r0 = 2 int r1 = r0 % r0 int r1 = com.huawei.hms.activity.BridgeActivity.e int r1 = r1 + 91 int r2 = r1 % 128 com.huawei.hms.activity.BridgeActivity.h = r2 int r1 = r1 % r0 if (r1 != 0) goto L17 com.huawei.hms.activity.IBridgeActivityDelegate r1 = r3.a r2 = 45 int r2 = r2 / 0 if (r1 == 0) goto L1e goto L1b L17: com.huawei.hms.activity.IBridgeActivityDelegate r1 = r3.a if (r1 == 0) goto L1e L1b: r1.onKeyUp(r4, r5) L1e: boolean r4 = super.onKeyUp(r4, r5) int r5 = com.huawei.hms.activity.BridgeActivity.e int r5 = r5 + 69 int r1 = r5 % 128 com.huawei.hms.activity.BridgeActivity.h = r1 int r5 = r5 % r0 return r4 */ throw new UnsupportedOperationException("Method not decompiled: com.huawei.hms.activity.BridgeActivity.onKeyUp(int, android.view.KeyEvent):boolean"); } public static Intent getIntentStartBridgeActivity(Context context, String str) { int i = 2 % 2; Intent intent = new Intent(context, (Class) BridgeActivity.class); intent.putExtra(EXTRA_DELEGATE_CLASS_NAME, str); intent.putExtra("intent.extra.isfullscreen", false); int i2 = e + 27; h = i2 % 128; if (i2 % 2 == 0) { int i3 = 19 / 0; } return intent; } @Override // android.app.Activity protected void onDestroy() { int i = 2 % 2; super.onDestroy(); try { ResolutionFlagUtil.getInstance().removeResolutionFlag(new SafeIntent(getIntent()).getStringExtra(CommonCode.MapKey.TRANSACTION_ID)); } catch (Throwable th) { StringBuilder sb = new StringBuilder("get transaction_id from intent fail: "); sb.append(th.getClass().getSimpleName()); HMSLog.w("BridgeActivity", sb.toString()); } IBridgeActivityDelegate iBridgeActivityDelegate = this.a; Object obj = null; if (iBridgeActivityDelegate != null) { int i2 = h + 35; e = i2 % 128; if (i2 % 2 == 0) { iBridgeActivityDelegate.onBridgeActivityDestroy(); } else { iBridgeActivityDelegate.onBridgeActivityDestroy(); obj.hashCode(); throw null; } } HMSLog.i("BridgeActivity", "BridgeActivity onDestroy"); int i3 = h + 79; e = i3 % 128; if (i3 % 2 == 0) { return; } obj.hashCode(); throw null; } public static void setFullScreenWindowLayoutInDisplayCutout(Window window) { int i = 2 % 2; int i2 = e + 57; h = i2 % 128; Object obj = null; if (i2 % 2 == 0) { throw null; } if (window == null) { return; } if (Build.VERSION.SDK_INT < 28) { WindowManager.LayoutParams attributes = window.getAttributes(); try { Class cls = Class.forName("com.huawei.android.view.LayoutParamsEx"); cls.getMethod("addHwFlags", Integer.TYPE).invoke(cls.getConstructor(WindowManager.LayoutParams.class).newInstance(attributes), 65536); int i3 = e + 85; h = i3 % 128; if (i3 % 2 != 0) { return; } obj.hashCode(); throw null; } catch (ClassCastException | ClassNotFoundException | IllegalAccessException | IllegalArgumentException | InstantiationException | NoSuchMethodException | InvocationTargetException unused) { HMSLog.e("BridgeActivity", "com.huawei.android.view.LayoutParamsEx fail"); return; } } int i4 = e + 75; h = i4 % 128; if (i4 % 2 == 0) { WindowManager.LayoutParams attributes2 = window.getAttributes(); attributes2.layoutInDisplayCutoutMode = 0; window.setAttributes(attributes2); window.getDecorView().setSystemUiVisibility(6524); return; } WindowManager.LayoutParams attributes3 = window.getAttributes(); attributes3.layoutInDisplayCutoutMode = 1; window.setAttributes(attributes3); window.getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI); } private void a() { int i = 2 % 2; View findViewById = getWindow().findViewById(R.id.content); if (findViewById == null || (!(findViewById instanceof ViewGroup))) { HMSLog.e("BridgeActivity", "rootView is null or not ViewGroup"); int i2 = h + 15; e = i2 % 128; int i3 = i2 % 2; return; } int i4 = h + 65; e = i4 % 128; int i5 = i4 % 2; ViewGroup viewGroup = (ViewGroup) findViewById; WindowManager.LayoutParams attributes = getWindow().getAttributes(); try { Class cls = Class.forName("com.huawei.android.view.WindowManagerEx$LayoutParamsEx"); cls.getMethod("setDisplaySideMode", Integer.TYPE).invoke(cls.getDeclaredConstructor(WindowManager.LayoutParams.class).newInstance(attributes), 1); } catch (ClassCastException | ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException e2) { StringBuilder sb = new StringBuilder("An exception occurred while reading: setDisplaySideMode"); sb.append(e2.getMessage()); HMSLog.e("BridgeActivity", sb.toString()); } getWindow().getDecorView().setOnApplyWindowInsetsListener(new a(this, viewGroup)); int i6 = h + 45; e = i6 % 128; int i7 = i6 % 2; } /* JADX WARN: Code restructure failed: missing block: B:6:0x0065, code lost: if (r4 > 99999) goto L10; */ @Override // android.app.Activity /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ protected void onCreate(android.os.Bundle r19) { /* Method dump skipped, instructions count: 1176 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.huawei.hms.activity.BridgeActivity.onCreate(android.os.Bundle):void"); } private static int a(String str, int i) { int i2 = 2 % 2; int i3 = e + 125; h = i3 % 128; int i4 = i3 % 2; try { Class cls = Class.forName("android.os.SystemProperties"); int intValue = ((Integer) cls.getDeclaredMethod("getInt", String.class, Integer.TYPE).invoke(cls, str, Integer.valueOf(i))).intValue(); int i5 = h + 61; e = i5 % 128; if (i5 % 2 != 0) { int i6 = 90 / 0; } return intValue; } catch (ClassCastException | ClassNotFoundException | IllegalAccessException | IllegalArgumentException | NoSuchMethodException | InvocationTargetException unused) { HMSLog.e("BridgeActivity", "An exception occurred while reading: EMUI_SDK_INT"); return i; } } private static void g(int i, char[] cArr, int i2, boolean z, int i3, Object[] objArr) { int i4 = 2 % 2; zUI zui = new zUI(); char[] cArr2 = new char[i]; zui.d = 0; while (zui.d < i) { zui.c = cArr[zui.d]; cArr2[zui.d] = (char) (i2 + zui.c); int i5 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr2[i5]), Integer.valueOf(c)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, TextUtils.indexOf((CharSequence) "", '0', 0) + 8, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1))); byte b2 = (byte) 0; byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; i(b2, b3, (byte) (b3 & 7), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 342, 4 - ((byte) KeyEvent.getModifierMetaStateMask()), (char) TextUtils.getOffsetAfter("", 0)); byte b4 = (byte) 0; byte b5 = (byte) (b4 - 1); Object[] objArr5 = new Object[1]; i(b4, b5, (byte) (b5 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i3 > 0) { zui.a = i3; char[] cArr3 = new char[i]; System.arraycopy(cArr2, 0, cArr3, 0, i); System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a); System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a); } if (z) { int i6 = $10 + 105; $11 = i6 % 128; int i7 = i6 % 2; char[] cArr4 = new char[i]; zui.d = 0; while (zui.d < i) { cArr4[zui.d] = cArr2[(i - zui.d) - 1]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 342, '5' - AndroidCharacter.getMirror('0'), (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 1)); byte b6 = (byte) 0; byte b7 = (byte) (b6 - 1); Object[] objArr7 = new Object[1]; i(b6, b7, (byte) (b7 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } int i8 = $11 + 69; $10 = i8 % 128; int i9 = i8 % 2; cArr2 = cArr4; } String str = new String(cArr2); int i10 = $11 + 97; $10 = i10 % 128; int i11 = i10 % 2; objArr[0] = str; } @Override // android.app.Activity protected void onResume() { int i = 2 % 2; int i2 = e + 89; h = i2 % 128; int i3 = i2 % 2; Context baseContext = getBaseContext(); Object obj = null; if (baseContext == null) { int i4 = e + 15; h = i4 % 128; int i5 = i4 % 2; Object[] objArr = new Object[1]; g(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 8, new char[]{17, 22, 65521, 5, 15, 2, 65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.easycash_success_subtitle).substring(54, 55).codePointAt(0) + 113, false, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.hml_verify_national_ID_description).substring(58, 59).length() + 7, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; g(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, new char[]{4, '\n', 65495, 6, 6, 2, 65535, 65529, 65527, '\n', 65535, 5, 4, 65529, 11, '\b', '\b', 65531}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.auto_single_form_terms_and_conditions_scbs_check_box_title).substring(77, 78).codePointAt(0) + 36, false, 13 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i6 = e + 53; h = i6 % 128; int i7 = i6 % 2; baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { int i8 = e + 13; h = i8 % 128; int i9 = i8 % 2; try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 492, Color.green(0) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr3 = {baseContext}; Object obj3 = xzZ.y.get(1378719468); if (obj3 == null) { obj3 = ((Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 486, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class); xzZ.y.put(1378719468, obj3); } ((Method) obj3).invoke(invoke, objArr3); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } super.onResume(); int i10 = h + 49; e = i10 % 128; if (i10 % 2 == 0) { return; } obj.hashCode(); throw null; } @Override // android.app.Activity protected void onPause() { int i = 2 % 2; int i2 = h + 19; e = i2 % 128; int i3 = i2 % 2; Context baseContext = getBaseContext(); if (baseContext == null) { Object[] objArr = new Object[1]; g(26 - (ViewConfiguration.getWindowTouchSlop() >> 8), new char[]{17, 22, 65521, 5, 15, 2, 65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6}, 145 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), false, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 5, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; g(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, new char[]{4, '\n', 65495, 6, 6, 2, 65535, 65529, 65527, '\n', 65535, 5, 4, 65529, 11, '\b', '\b', 65531}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.auto_single_form_check_eligibility_scbs_account).substring(84, 85).codePointAt(0) + 120, false, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 13, objArr2); baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null); } if (baseContext != null) { int i4 = h + 21; e = i4 % 128; int i5 = i4 % 2; baseContext = baseContext.getApplicationContext(); } if (baseContext != null) { try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(Process.getGidForName("") + 493, (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)))).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(TextUtils.getTrimmedLength("") + 487, 5 - TextUtils.getCapsMode("", 0, 0), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).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(); } private static void f(int[] iArr, boolean z, byte[] bArr, Object[] objArr) { int i; int length; char[] cArr; int i2; int i3 = 2 % 2; TVH tvh = new TVH(); int i4 = 0; int i5 = iArr[0]; int i6 = iArr[1]; int i7 = iArr[2]; int i8 = iArr[3]; char[] cArr2 = d; float f = BitmapDescriptorFactory.HUE_RED; if (cArr2 != null) { int i9 = $10 + 43; $11 = i9 % 128; if (i9 % 2 == 0) { length = cArr2.length; cArr = new char[length]; i2 = 1; } else { length = cArr2.length; cArr = new char[length]; i2 = 0; } while (i2 < length) { int i10 = $11 + 111; $10 = i10 % 128; if (i10 % 2 != 0) { try { Object[] objArr2 = new Object[1]; objArr2[i4] = Integer.valueOf(cArr2[i2]); Object obj = xzZ.y.get(1645349359); if (obj == null) { Class cls = (Class) xzZ.c((AudioTrack.getMinVolume() > f ? 1 : (AudioTrack.getMinVolume() == f ? 0 : -1)) + 223, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 41977)); byte b2 = (byte) i4; byte b3 = (byte) (b2 - 1); Object[] objArr3 = new Object[1]; i(b2, b3, (byte) (b3 & 5), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1645349359, obj); } cArr[i2] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); i2 >>= 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { Object[] objArr4 = {Integer.valueOf(cArr2[i2])}; Object obj2 = xzZ.y.get(1645349359); if (obj2 == null) { Class cls2 = (Class) xzZ.c(223 - (ViewConfiguration.getWindowTouchSlop() >> 8), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 41977)); byte b4 = (byte) 0; byte b5 = (byte) (b4 - 1); Object[] objArr5 = new Object[1]; i(b4, b5, (byte) (b5 & 5), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(1645349359, obj2); } cArr[i2] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i2++; } i4 = 0; f = BitmapDescriptorFactory.HUE_RED; } cArr2 = cArr; } char[] cArr3 = new char[i6]; System.arraycopy(cArr2, i5, cArr3, 0, i6); if (bArr != null) { int i11 = $10 + 111; $11 = i11 % 128; int i12 = i11 % 2; char[] cArr4 = new char[i6]; tvh.c = 0; char c2 = 0; while (tvh.c < i6) { int i13 = $10 + 7; $11 = i13 % 128; int i14 = i13 % 2; if (bArr[tvh.c] == 1) { int i15 = tvh.c; Object[] objArr6 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)}; Object obj3 = xzZ.y.get(850398076); if (obj3 == null) { obj3 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 501, (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (54 - (ViewConfiguration.getTouchSlop() >> 8)))).getMethod("F", Integer.TYPE, Integer.TYPE); xzZ.y.put(850398076, obj3); } cArr4[i15] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue(); } else { int i16 = tvh.c; Object[] objArr7 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c2)}; Object obj4 = xzZ.y.get(1084521042); if (obj4 == null) { obj4 = ((Class) xzZ.c(TextUtils.getTrimmedLength("") + 15, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (58133 - TextUtils.lastIndexOf("", '0')))).getMethod("H", Integer.TYPE, Integer.TYPE); xzZ.y.put(1084521042, obj4); } cArr4[i16] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue(); } c2 = cArr4[tvh.c]; try { Object[] objArr8 = {tvh, tvh}; Object obj5 = xzZ.y.get(1698744941); if (obj5 == null) { Class cls3 = (Class) xzZ.c(Gravity.getAbsoluteGravity(0, 0) + 402, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) (21608 - KeyEvent.keyCodeFromString(""))); byte b6 = (byte) 0; byte b7 = (byte) (b6 - 1); Object[] objArr9 = new Object[1]; i(b6, b7, (byte) (b7 + 4), objArr9); obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1698744941, obj5); } ((Method) obj5).invoke(null, objArr8); } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } cArr3 = cArr4; } if (i8 > 0) { char[] cArr5 = new char[i6]; i = 0; System.arraycopy(cArr3, 0, cArr5, 0, i6); int i17 = i6 - i8; System.arraycopy(cArr5, 0, cArr3, i17, i8); System.arraycopy(cArr5, i8, cArr3, 0, i17); } else { i = 0; } if (!(!z)) { char[] cArr6 = new char[i6]; while (true) { tvh.c = i; if (tvh.c >= i6) { break; } cArr6[tvh.c] = cArr3[(i6 - tvh.c) - 1]; i = tvh.c + 1; } cArr3 = cArr6; } if (i7 > 0) { int i18 = $10 + 11; $11 = i18 % 128; if (i18 % 2 == 0) { tvh.c = 1; } else { tvh.c = 0; } while (tvh.c < i6) { cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]); tvh.c++; } } objArr[0] = new String(cArr3); } @Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper public void attachBaseContext(Context context) { int i = 2 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; f(new int[]{0, 18, 0, 0}, false, new byte[]{1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0}, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; f(new int[]{18, 5, 0, 0}, true, new byte[]{0, 1, 0, 0, 0}, objArr2); Object obj = null; int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue >= 99000) { int i2 = h + 111; e = i2 % 128; if (i2 % 2 != 0) { obj.hashCode(); throw null; } if (intValue <= 99999) { return; } } Context applicationContext = context != null ? context.getApplicationContext() : context; if (applicationContext != null) { int i3 = h + 69; e = i3 % 128; int i4 = i3 % 2; try { Object obj2 = xzZ.y.get(125943855); if (obj2 == null) { obj2 = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 492, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) TextUtils.indexOf("", ""))).getMethod("a", null); xzZ.y.put(125943855, obj2); } Object invoke = ((Method) obj2).invoke(null, null); Object[] objArr3 = new Object[1]; g(ExpandableListView.getPackedPositionChild(0L) + 49, new char[]{65521, 65518, 65514, 65514, 29, 65522, NistHelper.SEP_FS, 65518, NistHelper.SEP_FS, 65519, 31, 65522, 26, 65517, 65516, 65521, 65515, 65516, 27, 65521, 65516, 27, 65516, 26, 65515, 65522, 27, 26, 31, NistHelper.SEP_FS, 65516, 27, 65517, 65520, 65514, 65517, 30, 65521, NistHelper.SEP_FS, 65518, 65522, 65517, 65515, 27, 27, 30, 31, 65514}, 117 - ((Process.getThreadPriority(0) + 20) >> 6), true, 35 - (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; f(new int[]{23, 64, 0, 10}, true, new byte[]{1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 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}, objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; f(new int[]{87, 64, 116, 0}, false, new byte[]{1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0}, objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; f(new int[]{151, 74, 0, 0}, false, new byte[]{0, 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, 1, 0, 1}, objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; f(new int[]{225, 5, 75, 0}, true, new byte[]{1, 0, 0, 0, 1}, objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; f(new int[]{230, 36, 0, 9}, false, new byte[]{1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1}, objArr8); Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj3 = xzZ.y.get(1656189573); if (obj3 == null) { obj3 = ((Class) xzZ.c(487 - (Process.myTid() >> 22), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (TextUtils.lastIndexOf("", '0') + 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj3); } ((Method) obj3).invoke(invoke, objArr9); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } static void d() { d = new char[]{39995, 40044, 40034, 40032, 40059, 40039, 40045, 40002, 40005, 40058, 40027, 39988, 40042, 40059, 40034, 40047, 40039, 40056, 39993, 40045, 40020, 40044, 40056, 39953, 40006, 40004, 39997, 40000, 40007, 40006, 40006, 40007, 40040, 40046, 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, 40033, 40139, 40099, 40110, 40117, 40117, 40139, 40146, 40116, 40098, 40097, 40139, 40156, 40116, 40109, 40099, 40139, 40158, 40147, 40116, 40111, 40111, 40108, 40099, 40117, 40138, 40136, 40146, 40137, 40096, 40096, 40137, 40139, 40116, 40158, 40116, 40098, 40108, 40110, 40110, 40108, 40109, 40109, 40099, 40139, 40147, 40139, 40138, 40156, 40156, 40116, 40098, 40096, 40096, 40099, 40116, 40116, 40119, 40156, 40156, 40116, 40097, 40138, 40138, 39999, 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, 40034, 40058, 40056, 39990, 40049, 40053, 40053, 40053, 39995, 40007, 40005, 40047, 40007, 39999, 39999, 39992, 40000, 40046, 40040, 40002, 39992, 40007, 40005, 39997, 39993, 39973, 39994, 39992, 40001, 40040, 40012, 39995, 39992, 39994, 39994, 39972, 40012, 40042, 40040, 40047, 40003, 39972, 40001, 40001}; c = 2015661577; } @Override // android.app.Activity public void onStart() { int i = 2 % 2; int i2 = e + 81; h = i2 % 128; int i3 = i2 % 2; super.onStart(); if (i3 == 0) { int i4 = 9 / 0; } } }