what-the-bank/sources/io/flutter/embedding/android/FlutterFragmentActivity.java

964 lines
48 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.embedding.android;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.ExpandableListView;
import android.widget.FrameLayout;
import androidx.fragment.app.FragmentActivity;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.libraries.places.api.model.PlaceTypes;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import io.flutter.Log;
import io.flutter.embedding.android.FlutterActivityLaunchConfigs;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterShellArgs;
import io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister;
import io.flutter.plugin.platform.PlatformPlugin;
import io.flutter.util.ViewUtils;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C3614bBe;
import o.IRS;
import o.kVs;
import o.xzZ;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.jnbis.internal.NistHelper;
/* loaded from: classes5.dex */
public class FlutterFragmentActivity extends FragmentActivity implements SplashScreenProvider, FlutterEngineProvider, FlutterEngineConfigurator {
public static final int FRAGMENT_CONTAINER_ID;
private static final String TAG = "FlutterFragmentActivity";
private static final String TAG_FLUTTER_FRAGMENT = "flutter_fragment";
private static char a;
private static char[] b;
private static boolean c;
private static int d;
private static char[] e;
private static boolean f;
private FlutterFragment flutterFragment;
private static final byte[] $$m = {4, 8, Ascii.DC4, -35};
private static final int $$n = CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 0;
private static int g = 1;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0023 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001b */
/* JADX WARN: Type inference failed for: r7v1, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x002a). 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 z(byte r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 + 65
int r6 = r6 * 4
int r6 = 4 - r6
int r8 = r8 * 3
int r0 = r8 + 1
byte[] r1 = io.flutter.embedding.android.FlutterFragmentActivity.$$m
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L15
r4 = r7
r3 = r2
r7 = r6
goto L2a
L15:
r3 = r2
L16:
byte r4 = (byte) r7
r0[r3] = r4
if (r3 != r8) goto L23
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L23:
int r3 = r3 + 1
r4 = r1[r6]
r5 = r7
r7 = r6
r6 = r5
L2a:
int r6 = r6 + r4
int r7 = r7 + 1
r5 = r7
r7 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: io.flutter.embedding.android.FlutterFragmentActivity.z(byte, short, short, java.lang.Object[]):void");
}
@Override // io.flutter.embedding.android.FlutterEngineConfigurator
public void cleanUpFlutterEngine(FlutterEngine flutterEngine) {
}
public FlutterEngine provideFlutterEngine(Context context) {
return null;
}
protected boolean shouldAttachEngineToActivity() {
return true;
}
static {
i();
FRAGMENT_CONTAINER_ID = ViewUtils.generateViewId(609893468);
}
public static Intent createDefaultIntent(Context context) {
return withNewEngine().build(context);
}
public static NewEngineIntentBuilder withNewEngine() {
return new NewEngineIntentBuilder(FlutterFragmentActivity.class);
}
/* loaded from: classes5.dex */
public static class NewEngineIntentBuilder {
private final Class<? extends FlutterFragmentActivity> activityClass;
private List<String> dartEntrypointArgs;
private String initialRoute = "/";
private String backgroundMode = FlutterActivityLaunchConfigs.DEFAULT_BACKGROUND_MODE;
public NewEngineIntentBuilder dartEntrypointArgs(List<String> list) {
this.dartEntrypointArgs = list;
return this;
}
public NewEngineIntentBuilder initialRoute(String str) {
this.initialRoute = str;
return this;
}
public NewEngineIntentBuilder(Class<? extends FlutterFragmentActivity> cls) {
this.activityClass = cls;
}
public NewEngineIntentBuilder backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode backgroundMode) {
this.backgroundMode = backgroundMode.name();
return this;
}
public Intent build(Context context) {
Intent putExtra = new Intent(context, this.activityClass).putExtra(PlaceTypes.ROUTE, this.initialRoute).putExtra("background_mode", this.backgroundMode).putExtra("destroy_engine_with_activity", true);
if (this.dartEntrypointArgs != null) {
putExtra.putExtra("dart_entrypoint_args", new ArrayList(this.dartEntrypointArgs));
}
return putExtra;
}
}
private static void y(int[] iArr, char[] cArr, int i2, byte[] bArr, Object[] objArr) {
char[] cArr2;
int i3 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = e;
int i4 = 0;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i5 = 0;
while (i5 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr3[i5]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 338, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) KeyEvent.getDeadChar(i4, i4));
byte b2 = (byte) i4;
byte b3 = b2;
Object[] objArr3 = new Object[1];
z(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr4[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i5++;
int i6 = $10 + 111;
$11 = i6 % 128;
int i7 = i6 % 2;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr4;
}
Object[] objArr4 = {Integer.valueOf(d)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(283 - (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)), ImageFormat.getBitsPerPixel(0) + 6, (char) (39813 - (ViewConfiguration.getScrollBarSize() >> 8)));
byte b4 = (byte) 0;
Object[] objArr5 = new Object[1];
z(b4, (byte) (b4 | 57), b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (f) {
int i8 = $11 + 111;
$10 = i8 % 128;
if (i8 % 2 != 0) {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 1;
} else {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 0;
}
while (c3614bBe.a < c3614bBe.c) {
int i9 = $11 + 73;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr2[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(TextUtils.getOffsetBefore("", 0) + 40, 5 - TextUtils.getOffsetAfter("", 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr2);
return;
}
if (!c) {
c3614bBe.c = iArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
c3614bBe.a++;
int i11 = $10 + 3;
$11 = i11 % 128;
if (i11 % 2 == 0) {
int i12 = 2 / 4;
}
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = cArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 41, TextUtils.indexOf("", "", 0, 0) + 5, (char) KeyEvent.keyCodeFromString(""))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr6);
}
public static CachedEngineIntentBuilder withCachedEngine(String str) {
return new CachedEngineIntentBuilder(FlutterFragmentActivity.class, str);
}
/* loaded from: classes5.dex */
public static class CachedEngineIntentBuilder {
private final Class<? extends FlutterFragmentActivity> activityClass;
private final String cachedEngineId;
private boolean destroyEngineWithActivity = false;
private String backgroundMode = FlutterActivityLaunchConfigs.DEFAULT_BACKGROUND_MODE;
public CachedEngineIntentBuilder destroyEngineWithActivity(boolean z) {
this.destroyEngineWithActivity = z;
return this;
}
public CachedEngineIntentBuilder(Class<? extends FlutterFragmentActivity> cls, String str) {
this.activityClass = cls;
this.cachedEngineId = str;
}
public CachedEngineIntentBuilder backgroundMode(FlutterActivityLaunchConfigs.BackgroundMode backgroundMode) {
this.backgroundMode = backgroundMode.name();
return this;
}
public Intent build(Context context) {
return new Intent(context, this.activityClass).putExtra("cached_engine_id", this.cachedEngineId).putExtra("destroy_engine_with_activity", this.destroyEngineWithActivity).putExtra("background_mode", this.backgroundMode);
}
}
private static void x(char[] cArr, byte b2, int i2, Object[] objArr) {
int i3;
Object obj;
char c2;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = b;
char c3 = '0';
Object obj2 = null;
int i5 = 6;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = $11 + 45;
$10 = i6 % 128;
int i7 = i6 % 2;
int i8 = 0;
while (i8 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i8])};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 298, TextUtils.indexOf("", c3) + i5, (char) (1 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b3 = (byte) 0;
Object[] objArr3 = new Object[1];
z(b3, (byte) (b3 | ISO7816.INS_DECREASE_STAMPED), b3, objArr3);
obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
cArr3[i8] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue();
i8++;
c3 = '0';
i5 = 6;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(a)};
Object obj4 = xzZ.y.get(-1987398494);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(MotionEvent.axisFromString("") + 299, Color.blue(0) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1));
byte b4 = (byte) 0;
Object[] objArr5 = new Object[1];
z(b4, (byte) (b4 | ISO7816.INS_DECREASE_STAMPED), b4, objArr5);
obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj4);
}
char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i2];
if (i2 % 2 != 0) {
i3 = i2 - 1;
cArr4[i3] = (char) (cArr[i3] - b2);
} else {
i3 = i2;
}
if (i3 > 1) {
int i9 = $11 + 65;
$10 = i9 % 128;
int i10 = 2;
int i11 = i9 % 2;
irs.e = 0;
char c4 = '\t';
int i12 = $11 + 9;
$10 = i12 % 128;
int i13 = i12 % 2;
while (irs.e < i3) {
int i14 = $11 + 23;
$10 = i14 % 128;
int i15 = i14 % i10;
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
int i16 = $11 + 45;
$10 = i16 % 128;
int i17 = i16 % 2;
cArr4[irs.e] = (char) (irs.b - b2);
cArr4[irs.e + 1] = (char) (irs.c - b2);
obj = obj2;
c2 = c4;
} else {
Object[] objArr6 = new Object[13];
objArr6[12] = irs;
objArr6[11] = Integer.valueOf(charValue);
objArr6[10] = irs;
objArr6[c4] = irs;
objArr6[8] = Integer.valueOf(charValue);
objArr6[7] = irs;
objArr6[6] = irs;
objArr6[5] = Integer.valueOf(charValue);
objArr6[4] = irs;
objArr6[3] = irs;
objArr6[2] = Integer.valueOf(charValue);
objArr6[1] = irs;
objArr6[0] = irs;
Object obj5 = xzZ.y.get(822107368);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c(233 - KeyEvent.keyCodeFromString(""), 5 - Color.blue(0), (char) (Color.red(0) + 22024));
byte b5 = (byte) 0;
Object[] objArr7 = new Object[1];
z(b5, (byte) (b5 | 55), b5, objArr7);
obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj5);
}
if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) {
int i18 = $10 + 113;
$11 = i18 % 128;
int i19 = i18 % 2;
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj6 = xzZ.y.get(-1152873385);
if (obj6 != null) {
c2 = '\t';
} else {
Class cls4 = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 326, 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16));
byte b6 = (byte) 0;
Object[] objArr9 = new Object[1];
z(b6, (byte) (b6 | 53), b6, objArr9);
c2 = '\t';
obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj6);
}
obj = null;
int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue();
int i20 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i20];
} else {
obj = null;
c2 = '\t';
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i21 = (irs.a * charValue) + irs.f;
int i22 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i21];
cArr4[irs.e + 1] = cArr2[i22];
} else {
int i23 = (irs.a * charValue) + irs.j;
int i24 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i23];
cArr4[irs.e + 1] = cArr2[i24];
}
}
}
irs.e += 2;
obj2 = obj;
c4 = c2;
i10 = 2;
}
}
for (int i25 = 0; i25 < i2; i25++) {
cArr4[i25] = (char) (cArr4[i25] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int intValue = ((Integer) Class.forName("android.os.Process").getDeclaredMethod("myUid", new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
baseContext = (Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - KeyEvent.getDeadChar(0, 0), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) ((-1) - MotionEvent.axisFromString("")))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr = {baseContext, "174b3cfab92a3b38b32834a9f6c5c9d11581febb2495c8e4", "eb6e6b49e52626716412c6a4360c2908775a58bb6ba6516bd8f7c85b8c186bae", "a803a3ee293eb408abf01072c8fe869d4ba552115053fc6ebe28690f0afa58c7", "https://siamcommercialbank.threatcast.guardsquare.com/api/ingest/v2/events", true, "9.8.0", "ea24d940-60eb-4211-abec-2c2a7ec5451e"};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - View.combineMeasuredStates(0, 0), View.MeasureSpec.getSize(0) + 5, (char) (ViewConfiguration.getEdgeSlop() >> 16))).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, objArr);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
switchLaunchThemeForNormalTheme();
this.flutterFragment = retrieveExistingFlutterFragmentIfPossible();
super.onCreate(bundle);
configureWindowForTransparency();
setContentView(createFragmentContainer());
configureStatusBarForFullscreenFlutterExperience();
ensureFlutterFragmentCreated();
}
private void switchLaunchThemeForNormalTheme() {
try {
Bundle metaData = getMetaData();
if (metaData == null) {
Log.v(TAG, "Using the launch theme as normal theme.");
} else {
int i2 = metaData.getInt("io.flutter.embedding.android.NormalTheme", -1);
if (i2 != -1) {
setTheme(i2);
}
}
} catch (PackageManager.NameNotFoundException unused) {
Log.e(TAG, "Could not read meta-data for FlutterFragmentActivity. Using the launch theme as normal theme.");
}
}
@Override // io.flutter.embedding.android.SplashScreenProvider
public SplashScreen provideSplashScreen() {
Drawable splashScreenFromManifest = getSplashScreenFromManifest();
if (splashScreenFromManifest != null) {
return new DrawableSplashScreen(splashScreenFromManifest);
}
return null;
}
private Drawable getSplashScreenFromManifest() {
try {
Bundle metaData = getMetaData();
int i2 = metaData != null ? metaData.getInt("io.flutter.embedding.android.SplashScreenDrawable") : 0;
if (i2 != 0) {
return kVs.nZ_(getResources(), i2, getTheme());
}
} catch (PackageManager.NameNotFoundException unused) {
} catch (Resources.NotFoundException e2) {
Log.e(TAG, "Splash screen not found. Ensure the drawable exists and that it's valid.");
throw e2;
}
return null;
}
private void configureWindowForTransparency() {
if (getBackgroundMode() == FlutterActivityLaunchConfigs.BackgroundMode.transparent) {
getWindow().setBackgroundDrawable(new ColorDrawable(0));
}
}
private View createFragmentContainer() {
FrameLayout provideRootLayout = provideRootLayout(this);
provideRootLayout.setId(FRAGMENT_CONTAINER_ID);
provideRootLayout.setLayoutParams(new ViewGroup.LayoutParams(-1, -1));
return provideRootLayout;
}
FlutterFragment retrieveExistingFlutterFragmentIfPossible() {
return (FlutterFragment) getSupportFragmentManager().findFragmentByTag(TAG_FLUTTER_FRAGMENT);
}
private void ensureFlutterFragmentCreated() {
if (this.flutterFragment == null) {
this.flutterFragment = retrieveExistingFlutterFragmentIfPossible();
}
if (this.flutterFragment == null) {
this.flutterFragment = createFlutterFragment();
getSupportFragmentManager().a().c(FRAGMENT_CONTAINER_ID, this.flutterFragment, TAG_FLUTTER_FRAGMENT).b();
}
}
protected FlutterFragment createFlutterFragment() {
TransparencyMode transparencyMode;
FlutterActivityLaunchConfigs.BackgroundMode backgroundMode = getBackgroundMode();
RenderMode renderMode = getRenderMode();
if (backgroundMode == FlutterActivityLaunchConfigs.BackgroundMode.opaque) {
transparencyMode = TransparencyMode.opaque;
} else {
transparencyMode = TransparencyMode.transparent;
}
boolean z = renderMode == RenderMode.surface;
if (getCachedEngineId() != null) {
Log.v(TAG, "Creating FlutterFragment with cached engine:\nCached engine ID: " + getCachedEngineId() + "\nWill destroy engine when Activity is destroyed: " + shouldDestroyEngineWithHost() + "\nBackground transparency mode: " + backgroundMode + "\nWill attach FlutterEngine to Activity: " + shouldAttachEngineToActivity());
return FlutterFragment.withCachedEngine(getCachedEngineId()).renderMode(renderMode).transparencyMode(transparencyMode).handleDeeplinking(Boolean.valueOf(shouldHandleDeeplinking())).shouldAttachEngineToActivity(shouldAttachEngineToActivity()).destroyEngineWithFragment(shouldDestroyEngineWithHost()).shouldDelayFirstAndroidViewDraw(z).build();
}
StringBuilder sb = new StringBuilder("Creating FlutterFragment with new engine:\nBackground transparency mode: ");
sb.append(backgroundMode);
sb.append("\nDart entrypoint: ");
sb.append(getDartEntrypointFunctionName());
sb.append("\nDart entrypoint library uri: ");
sb.append(getDartEntrypointLibraryUri() != null ? getDartEntrypointLibraryUri() : "\"\"");
sb.append("\nInitial route: ");
sb.append(getInitialRoute());
sb.append("\nApp bundle path: ");
sb.append(getAppBundlePath());
sb.append("\nWill attach FlutterEngine to Activity: ");
sb.append(shouldAttachEngineToActivity());
Log.v(TAG, sb.toString());
return FlutterFragment.withNewEngine().dartEntrypoint(getDartEntrypointFunctionName()).dartLibraryUri(getDartEntrypointLibraryUri()).dartEntrypointArgs(getDartEntrypointArgs()).initialRoute(getInitialRoute()).appBundlePath(getAppBundlePath()).flutterShellArgs(FlutterShellArgs.fromIntent(getIntent())).handleDeeplinking(Boolean.valueOf(shouldHandleDeeplinking())).renderMode(renderMode).transparencyMode(transparencyMode).shouldAttachEngineToActivity(shouldAttachEngineToActivity()).shouldDelayFirstAndroidViewDraw(z).build();
}
private void configureStatusBarForFullscreenFlutterExperience() {
Window window = getWindow();
window.addFlags(PKIFailureInfo.systemUnavail);
window.setStatusBarColor(1073741824);
window.getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI);
}
@Override // androidx.fragment.app.FragmentActivity, android.app.Activity
public void onPostResume() {
super.onPostResume();
this.flutterFragment.onPostResume();
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onNewIntent(Intent intent) {
this.flutterFragment.onNewIntent(intent);
super.onNewIntent(intent);
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
this.flutterFragment.onBackPressed();
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i2, strArr, iArr);
this.flutterFragment.onRequestPermissionsResult(i2, strArr, iArr);
}
@Override // android.app.Activity
public void onUserLeaveHint() {
this.flutterFragment.onUserLeaveHint();
}
@Override // androidx.activity.ComponentActivity, android.app.Activity, android.content.ComponentCallbacks2
public void onTrimMemory(int i2) {
super.onTrimMemory(i2);
this.flutterFragment.onTrimMemory(i2);
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onActivityResult(int i2, int i3, Intent intent) {
super.onActivityResult(i2, i3, intent);
this.flutterFragment.onActivityResult(i2, i3, intent);
}
protected FlutterEngine getFlutterEngine() {
return this.flutterFragment.getFlutterEngine();
}
public boolean shouldDestroyEngineWithHost() {
return getIntent().getBooleanExtra("destroy_engine_with_activity", false);
}
protected boolean shouldHandleDeeplinking() {
try {
Bundle metaData = getMetaData();
if (metaData != null) {
return metaData.getBoolean("flutter_deeplinking_enabled");
}
} catch (PackageManager.NameNotFoundException unused) {
}
return false;
}
public void configureFlutterEngine(FlutterEngine flutterEngine) {
FlutterFragment flutterFragment = this.flutterFragment;
if (flutterFragment == null || !flutterFragment.isFlutterEngineInjected()) {
GeneratedPluginRegister.registerGeneratedPlugins(flutterEngine);
}
}
protected String getAppBundlePath() {
String dataString;
if (isDebuggable() && "android.intent.action.RUN".equals(getIntent().getAction()) && (dataString = getIntent().getDataString()) != null) {
return dataString;
}
return null;
}
protected Bundle getMetaData() throws PackageManager.NameNotFoundException {
return getPackageManager().getActivityInfo(getComponentName(), 128).metaData;
}
public String getDartEntrypointFunctionName() {
String string;
try {
Bundle metaData = getMetaData();
string = metaData != null ? metaData.getString("io.flutter.Entrypoint") : null;
} catch (PackageManager.NameNotFoundException unused) {
}
return string != null ? string : "main";
}
public List<String> getDartEntrypointArgs() {
return (List) getIntent().getSerializableExtra("dart_entrypoint_args");
}
public String getDartEntrypointLibraryUri() {
try {
Bundle metaData = getMetaData();
if (metaData != null) {
return metaData.getString("io.flutter.EntrypointUri");
}
} catch (PackageManager.NameNotFoundException unused) {
}
return null;
}
protected String getInitialRoute() {
if (getIntent().hasExtra(PlaceTypes.ROUTE)) {
return getIntent().getStringExtra(PlaceTypes.ROUTE);
}
try {
Bundle metaData = getMetaData();
if (metaData != null) {
return metaData.getString("io.flutter.InitialRoute");
}
} catch (PackageManager.NameNotFoundException unused) {
}
return null;
}
protected String getCachedEngineId() {
return getIntent().getStringExtra("cached_engine_id");
}
protected FlutterActivityLaunchConfigs.BackgroundMode getBackgroundMode() {
if (getIntent().hasExtra("background_mode")) {
return FlutterActivityLaunchConfigs.BackgroundMode.valueOf(getIntent().getStringExtra("background_mode"));
}
return FlutterActivityLaunchConfigs.BackgroundMode.opaque;
}
protected RenderMode getRenderMode() {
return getBackgroundMode() == FlutterActivityLaunchConfigs.BackgroundMode.opaque ? RenderMode.surface : RenderMode.texture;
}
private boolean isDebuggable() {
return (getApplicationInfo().flags & 2) != 0;
}
protected FrameLayout provideRootLayout(Context context) {
return new FrameLayout(context);
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i2 = 2 % 2;
int i3 = i + 83;
g = i3 % 128;
int i4 = i3 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i5 = i + 111;
g = i5 % 128;
int i6 = i5 % 2;
Object[] objArr = new Object[1];
x(new char[]{26, 1, 20, 26, 0, 22, 15, 20, 31, '\r', '\t', 19, 22, '#', 23, 19, 30, 20, 21, 4, 30, 29, 26, ' ', 26, '\r'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_personal_laser_id_header).substring(30, 31).length() + 35), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.contact_info_mcmc_topup_document_receive_option_header).substring(0, 19).codePointAt(8) - 3608, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
y(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.billpayment_bnpl_coin_more_detail_description_1_1).substring(0, 61).codePointAt(7) - 3500, new byte[]{ISOFileInfo.PROP_INFO, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -119, -120, -120, ISOFileInfo.FCI_EXT, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i7 = i + 91;
g = i7 % 128;
int i8 = i7 % 2;
}
if (baseContext != null) {
int i9 = i + 111;
g = i9 % 128;
int i10 = i9 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 493, View.getDefaultSize(0, 0) + 5, (char) (ViewConfiguration.getTouchSlop() >> 8))).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(487 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (ViewConfiguration.getTouchSlop() >> 8))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i2 = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
x(new char[]{26, 1, 20, 26, 0, 22, 15, 20, 31, '\r', '\t', 19, 22, '#', 23, 19, 30, 20, 21, 4, 30, 29, 26, ' ', 26, '\r'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 8, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
y(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ssf_tab).substring(0, 3).length() + 124, new byte[]{ISOFileInfo.PROP_INFO, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -119, -120, -120, ISOFileInfo.FCI_EXT, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = i + 35;
g = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 2 / 4;
}
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getTapTimeout() >> 16), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -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(488 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), 5 - (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)), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i5 = g + 3;
i = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i2 = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
x(new char[]{26, 1, 20, 26, 0, 22, 15, 20, '\n', 16, 27, 3, 22, 2, ' ', NistHelper.SEP_FS, 13806, 13806}, (byte) (5 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1))), (ViewConfiguration.getPressedStateDuration() >> 16) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
y(null, null, 127 - Gravity.getAbsoluteGravity(0, 0), new byte[]{-112, ISOFileInfo.LCS_BYTE, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF}, 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) {
context = context.getApplicationContext();
int i3 = g + 55;
i = i3 % 128;
int i4 = i3 % 2;
}
if (context != null) {
int i5 = g + 5;
i = i5 % 128;
int i6 = i5 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(493 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), ExpandableListView.getPackedPositionGroup(0L) + 5, (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
y(null, null, 127 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), new byte[]{-109, -124, -103, ISOFileInfo.DATA_BYTES2, -101, -105, -109, -104, -108, -108, -124, -106, -111, -103, -101, -111, -111, -112, -105, ISOFileInfo.DATA_BYTES2, -101, ISOFileInfo.DATA_BYTES2, -102, -106, -105, ISOFileInfo.SECURITY_ATTR_EXP, -109, -107, -103, -104, -107, -108, -103, -107, -108, -107, ISOFileInfo.SECURITY_ATTR_EXP, -104, -105, -108, ISOFileInfo.SECURITY_ATTR_EXP, -106, ISOFileInfo.DATA_BYTES2, -107, -108, -109, -110, -111}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
y(null, null, 127 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), new byte[]{-124, ISOFileInfo.SECURITY_ATTR_EXP, -108, -102, -103, -111, ISOFileInfo.DATA_BYTES2, -103, -108, -101, -103, ISOFileInfo.DATA_BYTES2, -110, -106, -103, -112, -108, -102, -111, -101, -102, ISOFileInfo.SECURITY_ATTR_EXP, -108, -102, -108, -108, -103, -101, ISOFileInfo.SECURITY_ATTR_EXP, -101, -110, -110, -103, -100, -105, -104, ISOFileInfo.DATA_BYTES2, -100, -102, -107, -109, ISOFileInfo.SECURITY_ATTR_EXP, -102, ISOFileInfo.DATA_BYTES2, -104, -111, -109, -102, -111, -110, -102, -104, -102, -104, -101, -124, -105, -109, -108, -102, -124, -102, -108, -124}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
y(null, null, 127 - TextUtils.indexOf("", "", 0), new byte[]{-110, ISOFileInfo.DATA_BYTES2, -103, -101, ISOFileInfo.SECURITY_ATTR_EXP, -106, ISOFileInfo.SECURITY_ATTR_EXP, -100, -106, -100, -105, -102, -103, -104, -124, -108, -124, -102, ISOFileInfo.DATA_BYTES2, -106, -107, -101, -100, -101, -111, -111, -104, -101, -101, ISOFileInfo.SECURITY_ATTR_EXP, -108, -109, -112, -105, -102, -103, -124, -106, -103, ISOFileInfo.DATA_BYTES2, -104, -110, -100, -111, -100, -106, -108, ISOFileInfo.SECURITY_ATTR_EXP, -103, -100, -109, -108, -124, -107, -105, -104, -124, -124, -107, ISOFileInfo.SECURITY_ATTR_EXP, -107, -100, -103, ISOFileInfo.SECURITY_ATTR_EXP}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
x(new char[]{NistHelper.SEP_FS, 18, 19, '\n', 11, 4, 13763, 13763, 6, 22, 27, '\r', 4, '\n', 13829, 13829, ' ', 26, 30, 22, 24, '\r', 29, 26, 1, ' ', 22, 23, 26, 18, 27, 26, NistHelper.SEP_FS, 4, NistHelper.SEP_FS, 7, 23, 22, '#', '\f', 26, 19, 16, '\b', 14, '\f', 26, 19, 27, 20, 4, '\n', 21, 15, 31, '\r', 21, 6, 20, 0, ' ', 24, 16, NistHelper.SEP_FS, '\b', '!', 21, 7, ' ', 2, ' ', '\b', NistHelper.SEP_FS, 16}, (byte) (TextUtils.lastIndexOf("", '0', 0, 0) + 15), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 74, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
y(null, null, KeyEvent.getDeadChar(0, 0) + 127, new byte[]{-100, -99, -103, -99, -105}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
x(new char[]{27, 26, 20, 7, '\f', '\b', '\t', 26, 17, '\n', NistHelper.SEP_FS, 27, '\"', 22, 7, 20, 13749, 13749, '\r', NistHelper.SEP_FS, 29, 27, 4, 22, 22, 31, 25, 31, 2, 24, 31, 4, 7, 2, 24, 27}, (byte) (10 - View.getDefaultSize(0, 0)), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 35, objArr8);
Object[] objArr9 = {context, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (Process.myPid() >> 22) + 5, (char) ExpandableListView.getPackedPositionGroup(0L))).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 i() {
b = new char[]{49028, 49030, 49117, 49098, 49116, 49033, 49034, 49091, 49031, 49052, 49088, 49029, 49119, 49090, 49111, 49118, 49054, 49094, 49114, 49025, 49089, 49053, 49095, 49138, 49115, 49106, 49110, 49027, 49105, 49026, 49108, 49112, 49093, 49123, 49104, 49127};
a = (char) 35375;
e = new char[]{15974, 16264, 16277, 16280, 16273, 16279, 15940, 16275, 16287, 16284, 15972, 16274, 16272, 16268, 15976, 15975, 15956, 15946, 15959, 15973, 15958, 16281, 15948, 15957, 15947, 15945, 15944, 15955, 15953};
d = 1934310915;
c = true;
f = true;
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i2 = 2 % 2;
int i3 = g + 55;
i = i3 % 128;
int i4 = i3 % 2;
super.onStart();
if (i4 != 0) {
int i5 = 40 / 0;
}
int i6 = g + 115;
i = i6 % 128;
int i7 = i6 % 2;
}
}