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

1045 lines
47 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.embedding.android;
import android.app.Activity;
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.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.Window;
import android.widget.ExpandableListView;
import android.window.OnBackInvokedCallback;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.libraries.places.api.model.PlaceTypes;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import io.flutter.Log;
import io.flutter.embedding.android.FlutterActivityAndFragmentDelegate;
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.InterfaceC16541pFg;
import o.LPk;
import o.TVH;
import o.kVs;
import o.wdQ;
import o.xzZ;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class FlutterActivity extends Activity implements FlutterActivityAndFragmentDelegate.Host, InterfaceC16541pFg {
public static final int FLUTTER_VIEW_ID;
private static final String TAG = "FlutterActivity";
private static int a;
private static boolean b;
private static char[] c;
private static boolean d;
private static char[] e;
protected FlutterActivityAndFragmentDelegate delegate;
private LPk lifecycle;
private final OnBackInvokedCallback onBackInvokedCallback;
private static final byte[] $$a = {82, ISO7816.INS_UNBLOCK_CHV, -108, -93};
private static final int $$b = CipherSuite.TLS_DHE_DSS_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int j = 0;
private static int f = 1;
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002c). 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 i(byte r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 4
int r8 = r8 + 4
int r6 = r6 * 3
int r0 = 1 - r6
byte[] r1 = io.flutter.embedding.android.FlutterActivity.$$a
int r7 = r7 + 65
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L17
r4 = r6
r7 = r8
r3 = r2
goto L2c
L17:
r3 = r2
r5 = r8
r8 = r7
r7 = r5
L1b:
byte r4 = (byte) r8
r0[r3] = r4
if (r3 != r6) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L28:
int r3 = r3 + 1
r4 = r1[r7]
L2c:
int r8 = r8 + r4
int r7 = r7 + 1
goto L1b
*/
throw new UnsupportedOperationException("Method not decompiled: io.flutter.embedding.android.FlutterActivity.i(byte, short, int, java.lang.Object[]):void");
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterEngineConfigurator
public void cleanUpFlutterEngine(FlutterEngine flutterEngine) {
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public Activity getActivity() {
return this;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public Context getContext() {
return this;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public ExclusiveAppComponent<Activity> getExclusiveAppComponent() {
return this.delegate;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, o.InterfaceC16541pFg
public wdQ getLifecycle() {
return this.lifecycle;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void onFlutterSurfaceViewCreated(FlutterSurfaceView flutterSurfaceView) {
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void onFlutterTextureViewCreated(FlutterTextureView flutterTextureView) {
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void onFlutterUiNoLongerDisplayed() {
}
@Override // io.flutter.plugin.platform.PlatformPlugin.PlatformPluginDelegate
public boolean popSystemNavigator() {
return false;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterEngineProvider
public FlutterEngine provideFlutterEngine(Context context) {
return null;
}
void setDelegate(FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate) {
this.delegate = flutterActivityAndFragmentDelegate;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public boolean shouldAttachEngineToActivity() {
return true;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public boolean shouldDispatchAppLifecycleState() {
return true;
}
private static void g(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int i2;
int length;
char[] cArr2;
int i3 = 2;
int i4 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = e;
if (cArr3 != null) {
int i5 = $10 + 49;
$11 = i5 % 128;
if (i5 % 2 == 0) {
length = cArr3.length;
cArr2 = new char[length];
} else {
length = cArr3.length;
cArr2 = new char[length];
}
int i6 = 0;
while (i6 < length) {
int i7 = $11 + 57;
$10 = i7 % 128;
int i8 = i7 % i3;
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i6])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 337, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) (Process.myTid() >> 22));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
i(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr2;
}
Object[] objArr4 = {Integer.valueOf(a)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(282 - Process.getGidForName(""), (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) (39812 - MotionEvent.axisFromString("")));
byte b4 = (byte) 0;
Object[] objArr5 = new Object[1];
i(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 (!(!d)) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr4[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(View.getDefaultSize(0, 0) + 40, 4 - ImageFormat.getBitsPerPixel(0), (char) (Process.myPid() >> 22))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (b) {
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i9 = $11 + 7;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr5[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 41, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i11 = $11 + 7;
$10 = i11 % 128;
if (i11 % 2 != 0) {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[c3614bBe.c >>> c3614bBe.a] + i] + intValue);
i2 = c3614bBe.a << 1;
} else {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
i2 = c3614bBe.a + 1;
}
c3614bBe.a = i2;
}
String str = new String(cArr6);
int i12 = $10 + 35;
$11 = i12 % 128;
int i13 = i12 % 2;
objArr[0] = str;
}
private static void h(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i = 2 % 2;
TVH tvh = new TVH();
int i2 = iArr[0];
int i3 = iArr[1];
int i4 = iArr[2];
int i5 = iArr[3];
char[] cArr = c;
if (cArr != null) {
int length = cArr.length;
char[] cArr2 = new char[length];
for (int i6 = 0; i6 < length; i6++) {
try {
Object[] objArr2 = {Integer.valueOf(cArr[i6])};
Object obj = xzZ.y.get(1645349359);
if (obj == null) {
Class cls = (Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 222, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (41977 - View.MeasureSpec.getSize(0)));
byte b2 = (byte) 0;
Object[] objArr3 = new Object[1];
i(b2, (byte) (b2 | 6), b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i7 = $11 + 53;
$10 = i7 % 128;
int i8 = i7 % 2;
cArr = cArr2;
}
char[] cArr3 = new char[i3];
System.arraycopy(cArr, i2, cArr3, 0, i3);
if (bArr != null) {
int i9 = $10 + 83;
$11 = i9 % 128;
int i10 = i9 % 2;
char[] cArr4 = new char[i3];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i3) {
if (bArr[tvh.c] == 1) {
int i11 = 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(502 - Color.argb(0, 0, 0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (54 - (ViewConfiguration.getWindowTouchSlop() >> 8)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr4[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i12 = 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(15 - ((Process.getThreadPriority(0) + 20) >> 6), 4 - TextUtils.lastIndexOf("", '0', 0), (char) (58134 - (Process.myPid() >> 22)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr4[i12] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c2 = cArr4[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c((-16776814) - Color.rgb(0, 0, 0), 4 - TextUtils.lastIndexOf("", '0', 0), (char) (ImageFormat.getBitsPerPixel(0) + 21609));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
i(b3, (byte) (b3 | 8), b3, objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr3 = cArr4;
}
if (i5 > 0) {
int i13 = $11 + 61;
$10 = i13 % 128;
int i14 = i13 % 2;
char[] cArr5 = new char[i3];
System.arraycopy(cArr3, 0, cArr5, 0, i3);
int i15 = i3 - i5;
System.arraycopy(cArr5, 0, cArr3, i15, i5);
System.arraycopy(cArr5, i5, cArr3, 0, i15);
}
if (z) {
int i16 = $11 + 109;
$10 = i16 % 128;
int i17 = i16 % 2;
char[] cArr6 = new char[i3];
tvh.c = 0;
while (tvh.c < i3) {
cArr6[tvh.c] = cArr3[(i3 - tvh.c) - 1];
tvh.c++;
}
cArr3 = cArr6;
}
if (i4 > 0) {
tvh.c = 0;
while (tvh.c < i3) {
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
tvh.c++;
}
}
objArr[0] = new String(cArr3);
}
static {
c();
FLUTTER_VIEW_ID = ViewUtils.generateViewId(61938);
}
public static Intent createDefaultIntent(Context context) {
return withNewEngine().build(context);
}
public static NewEngineIntentBuilder withNewEngine() {
return new NewEngineIntentBuilder(FlutterActivity.class);
}
/* loaded from: classes5.dex */
public static class NewEngineIntentBuilder {
private final Class<? extends FlutterActivity> 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 FlutterActivity> 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;
}
}
public static CachedEngineIntentBuilder withCachedEngine(String str) {
return new CachedEngineIntentBuilder(FlutterActivity.class, str);
}
/* loaded from: classes5.dex */
public static class CachedEngineIntentBuilder {
private final Class<? extends FlutterActivity> 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 FlutterActivity> 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);
}
}
public FlutterActivity() {
this.onBackInvokedCallback = Build.VERSION.SDK_INT >= 33 ? new OnBackInvokedCallback(this) { // from class: io.flutter.embedding.android.FlutterActivity.1
final FlutterActivity this$0;
{
this.this$0 = this;
}
@Override // android.window.OnBackInvokedCallback
public void onBackInvoked() {
this.this$0.onBackPressed();
}
} : null;
this.lifecycle = new LPk(this);
}
@Override // android.app.Activity
protected 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 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), TextUtils.indexOf("", "", 0) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).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((ViewConfiguration.getJumpTapTimeout() >> 16) + 487, 5 - View.getDefaultSize(0, 0), (char) View.resolveSizeAndState(0, 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, objArr);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
switchLaunchThemeForNormalTheme();
super.onCreate(bundle);
FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate = new FlutterActivityAndFragmentDelegate(this);
this.delegate = flutterActivityAndFragmentDelegate;
flutterActivityAndFragmentDelegate.onAttach(this);
this.delegate.onRestoreInstanceState(bundle);
this.lifecycle.d(wdQ.HBt.ON_CREATE);
registerOnBackInvokedCallback();
configureWindowForTransparency();
setContentView(createFlutterView());
configureStatusBarForFullscreenFlutterExperience();
}
public void registerOnBackInvokedCallback() {
if (Build.VERSION.SDK_INT >= 33) {
getOnBackInvokedDispatcher().registerOnBackInvokedCallback(0, this.onBackInvokedCallback);
}
}
public void unregisterOnBackInvokedCallback() {
if (Build.VERSION.SDK_INT >= 33) {
getOnBackInvokedDispatcher().unregisterOnBackInvokedCallback(this.onBackInvokedCallback);
}
}
private void switchLaunchThemeForNormalTheme() {
try {
Bundle metaData = getMetaData();
if (metaData == null) {
Log.v(TAG, "Using the launch theme as normal theme.");
} else {
int i = metaData.getInt("io.flutter.embedding.android.NormalTheme", -1);
if (i != -1) {
setTheme(i);
}
}
} catch (PackageManager.NameNotFoundException unused) {
Log.e(TAG, "Could not read meta-data for FlutterActivity. Using the launch theme as normal theme.");
}
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, 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 i = metaData != null ? metaData.getInt("io.flutter.embedding.android.SplashScreenDrawable") : 0;
if (i != 0) {
return kVs.nZ_(getResources(), i, 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 createFlutterView() {
return this.delegate.onCreateView(null, null, null, FLUTTER_VIEW_ID, getRenderMode() == RenderMode.surface);
}
private void configureStatusBarForFullscreenFlutterExperience() {
Window window = getWindow();
window.addFlags(PKIFailureInfo.systemUnavail);
window.setStatusBarColor(1073741824);
window.getDecorView().setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI);
}
@Override // android.app.Activity
protected void onStart() {
super.onStart();
this.lifecycle.d(wdQ.HBt.ON_START);
if (stillAttachedForEvent("onStart")) {
this.delegate.onStart();
}
}
@Override // android.app.Activity
protected void onResume() {
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(Color.rgb(0, 0, 0) + 16777708, 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) View.resolveSize(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - TextUtils.getOffsetBefore("", 0), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) KeyEvent.getDeadChar(0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
this.lifecycle.d(wdQ.HBt.ON_RESUME);
if (stillAttachedForEvent("onResume")) {
this.delegate.onResume();
}
}
@Override // android.app.Activity
public void onPostResume() {
super.onPostResume();
if (stillAttachedForEvent("onPostResume")) {
this.delegate.onPostResume();
}
}
@Override // android.app.Activity
protected void onPause() {
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 - ((Process.getThreadPriority(0) + 20) >> 6), Color.alpha(0) + 5, (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[] objArr = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(486 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) ExpandableListView.getPackedPositionType(0L))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
if (stillAttachedForEvent("onPause")) {
this.delegate.onPause();
}
this.lifecycle.d(wdQ.HBt.ON_PAUSE);
}
@Override // android.app.Activity
protected void onStop() {
super.onStop();
if (stillAttachedForEvent("onStop")) {
this.delegate.onStop();
}
this.lifecycle.d(wdQ.HBt.ON_STOP);
}
@Override // android.app.Activity
protected void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
if (stillAttachedForEvent("onSaveInstanceState")) {
this.delegate.onSaveInstanceState(bundle);
}
}
public void release() {
unregisterOnBackInvokedCallback();
FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate = this.delegate;
if (flutterActivityAndFragmentDelegate != null) {
flutterActivityAndFragmentDelegate.release();
this.delegate = null;
}
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void detachFromFlutterEngine() {
Log.w(TAG, "FlutterActivity " + this + " connection to the engine " + getFlutterEngine() + " evicted by another attaching activity");
FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate = this.delegate;
if (flutterActivityAndFragmentDelegate != null) {
flutterActivityAndFragmentDelegate.onDestroyView();
this.delegate.onDetach();
}
}
@Override // android.app.Activity
protected void onDestroy() {
super.onDestroy();
if (stillAttachedForEvent("onDestroy")) {
this.delegate.onDestroyView();
this.delegate.onDetach();
}
release();
this.lifecycle.d(wdQ.HBt.ON_DESTROY);
}
@Override // android.app.Activity
protected void onActivityResult(int i, int i2, Intent intent) {
if (stillAttachedForEvent("onActivityResult")) {
this.delegate.onActivityResult(i, i2, intent);
}
}
@Override // android.app.Activity
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
if (stillAttachedForEvent("onNewIntent")) {
this.delegate.onNewIntent(intent);
}
}
@Override // android.app.Activity
public void onBackPressed() {
if (stillAttachedForEvent("onBackPressed")) {
this.delegate.onBackPressed();
}
}
@Override // android.app.Activity
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
if (stillAttachedForEvent("onRequestPermissionsResult")) {
this.delegate.onRequestPermissionsResult(i, strArr, iArr);
}
}
@Override // android.app.Activity
public void onUserLeaveHint() {
if (stillAttachedForEvent("onUserLeaveHint")) {
this.delegate.onUserLeaveHint();
}
}
@Override // android.app.Activity, android.content.ComponentCallbacks2
public void onTrimMemory(int i) {
super.onTrimMemory(i);
if (stillAttachedForEvent("onTrimMemory")) {
this.delegate.onTrimMemory(i);
}
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public FlutterShellArgs getFlutterShellArgs() {
return FlutterShellArgs.fromIntent(getIntent());
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public String getCachedEngineId() {
return getIntent().getStringExtra("cached_engine_id");
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public boolean shouldDestroyEngineWithHost() {
boolean booleanExtra = getIntent().getBooleanExtra("destroy_engine_with_activity", false);
return (getCachedEngineId() != null || this.delegate.isFlutterEngineFromHost()) ? booleanExtra : getIntent().getBooleanExtra("destroy_engine_with_activity", true);
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
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";
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public List<String> getDartEntrypointArgs() {
return (List) getIntent().getSerializableExtra("dart_entrypoint_args");
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public String getDartEntrypointLibraryUri() {
try {
Bundle metaData = getMetaData();
if (metaData != null) {
return metaData.getString("io.flutter.EntrypointUri");
}
} catch (PackageManager.NameNotFoundException unused) {
}
return null;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public 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;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public String getAppBundlePath() {
String dataString;
if (isDebuggable() && "android.intent.action.RUN".equals(getIntent().getAction()) && (dataString = getIntent().getDataString()) != null) {
return dataString;
}
return null;
}
private boolean isDebuggable() {
return (getApplicationInfo().flags & 2) != 0;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public RenderMode getRenderMode() {
return getBackgroundMode() == FlutterActivityLaunchConfigs.BackgroundMode.opaque ? RenderMode.surface : RenderMode.texture;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public TransparencyMode getTransparencyMode() {
if (getBackgroundMode() == FlutterActivityLaunchConfigs.BackgroundMode.opaque) {
return TransparencyMode.opaque;
}
return TransparencyMode.transparent;
}
protected FlutterActivityLaunchConfigs.BackgroundMode getBackgroundMode() {
if (getIntent().hasExtra("background_mode")) {
return FlutterActivityLaunchConfigs.BackgroundMode.valueOf(getIntent().getStringExtra("background_mode"));
}
return FlutterActivityLaunchConfigs.BackgroundMode.opaque;
}
protected FlutterEngine getFlutterEngine() {
return this.delegate.getFlutterEngine();
}
protected Bundle getMetaData() throws PackageManager.NameNotFoundException {
return getPackageManager().getActivityInfo(getComponentName(), 128).metaData;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public PlatformPlugin providePlatformPlugin(Activity activity, FlutterEngine flutterEngine) {
return new PlatformPlugin(getActivity(), flutterEngine.getPlatformChannel(), this);
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterEngineConfigurator
public void configureFlutterEngine(FlutterEngine flutterEngine) {
if (this.delegate.isFlutterEngineFromHost()) {
return;
}
GeneratedPluginRegister.registerGeneratedPlugins(flutterEngine);
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public boolean shouldHandleDeeplinking() {
try {
Bundle metaData = getMetaData();
if (metaData != null) {
return metaData.getBoolean("flutter_deeplinking_enabled");
}
} catch (PackageManager.NameNotFoundException unused) {
}
return false;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void onFlutterUiDisplayed() {
if (Build.VERSION.SDK_INT >= 29) {
reportFullyDrawn();
}
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public boolean shouldRestoreAndSaveState() {
if (getIntent().hasExtra("enable_state_restoration")) {
return getIntent().getBooleanExtra("enable_state_restoration", false);
}
return getCachedEngineId() == null;
}
@Override // io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host
public void updateSystemUiOverlays() {
FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate = this.delegate;
if (flutterActivityAndFragmentDelegate != null) {
flutterActivityAndFragmentDelegate.updateSystemUiOverlays();
}
}
private boolean stillAttachedForEvent(String str) {
FlutterActivityAndFragmentDelegate flutterActivityAndFragmentDelegate = this.delegate;
if (flutterActivityAndFragmentDelegate == null) {
Log.w(TAG, "FlutterActivity " + hashCode() + " " + str + " called after release.");
return false;
}
if (flutterActivityAndFragmentDelegate.isAttached()) {
return true;
}
Log.w(TAG, "FlutterActivity " + hashCode() + " " + str + " called after detach.");
return false;
}
@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];
g(null, null, 127 - KeyEvent.keyCodeFromString(""), new byte[]{-120, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, ISOFileInfo.PROP_INFO, -124, -119, ISOFileInfo.FCI_EXT, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
h(new int[]{0, 5, 0, 0}, false, new byte[]{1, 0, 0, 0, 1}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i2 = j + 39;
f = i2 % 128;
int i3 = i2 % 2;
if (intValue <= 99999) {
return;
}
}
if (context != null) {
context2 = context.getApplicationContext();
int i4 = f + 119;
j = i4 % 128;
int i5 = i4 % 2;
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 492, 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
g(null, null, 127 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), new byte[]{ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.SECURITY_ATTR_EXP, -108, ISOFileInfo.LCS_BYTE, -106, -110, ISOFileInfo.CHANNEL_SECURITY, -109, -113, -113, ISOFileInfo.SECURITY_ATTR_EXP, -111, ISOFileInfo.SECURITY_ATTR_COMPACT, -108, -106, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.FILE_IDENTIFIER, -110, ISOFileInfo.LCS_BYTE, -106, ISOFileInfo.LCS_BYTE, -107, -111, -110, ISOFileInfo.DATA_BYTES2, ISOFileInfo.CHANNEL_SECURITY, -112, -108, -109, -112, -113, -108, -112, -113, -112, ISOFileInfo.DATA_BYTES2, -109, -110, -113, ISOFileInfo.DATA_BYTES2, -111, ISOFileInfo.LCS_BYTE, -112, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
h(new int[]{5, 64, 55, 0}, false, new byte[]{0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
h(new int[]{69, 64, CipherSuite.TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256, 0}, true, new byte[]{0, 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];
g(null, null, 127 - Color.argb(0, 0, 0, 0), new byte[]{-120, -104, -126, ISOFileInfo.SECURITY_ATTR_EXP, -94, ISOFileInfo.SECURITY_ATTR_EXP, -101, -109, -94, -101, -104, -120, ISOFileInfo.SECURITY_ATTR_EXP, -97, -126, -122, -101, -122, -103, ISOFileInfo.DATA_BYTES2, -101, -100, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -124, ISOFileInfo.DATA_BYTES2, ISOFileInfo.A0, ISOFileInfo.A1, -120, ISOFileInfo.FILE_IDENTIFIER, -124, ISOFileInfo.DATA_BYTES2, ISOFileInfo.A0, -97, ISOFileInfo.FCI_EXT, -104, -120, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -104, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -105, -104, ISOFileInfo.FCI_EXT, -98, -126, ISOFileInfo.DATA_BYTES2, -113, -99, ISOFileInfo.DATA_BYTES2, -122, ISOFileInfo.LCS_BYTE, -124, ISOFileInfo.SECURITY_ATTR_EXP, -100, -100, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, -100, ISOFileInfo.DATA_BYTES2, -122, -120, -101, -101, -102, -120, -103, -104, -104, -105}, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
h(new int[]{133, 5, 192, 0}, false, new byte[]{1, 1, 0, 0, 0}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
h(new int[]{CipherSuite.TLS_PSK_WITH_RC4_128_SHA, 36, 16, 36}, true, null, 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((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 487, 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).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 c() {
e = new char[]{15926, 15907, 15913, 15911, 15908, 15918, 16099, 15960, 15877, 15912, 15914, 16102, 15900, 15897, 15927, 15896, 15915, 15902, 16103, 15901, 15899, 15898, 15917, 15961, 15909, 15903, 16100, 15906, 15905, 15904, 15916, 15962, 15910, 15963};
a = 1934311125;
b = true;
d = true;
c = new char[]{39997, 40056, 40044, 40020, 40045, 40005, 40081, 40072, 40079, 40079, 40072, 40073, 40038, 40077, 40079, 40033, 40032, 40032, 40032, 40038, 40032, 40033, 40039, 40034, 40035, 40074, 40072, 40073, 40074, 40033, 40032, 40033, 40075, 40074, 40039, 40032, 40032, 40037, 40037, 40038, 40073, 40073, 40038, 40079, 40082, 40072, 40072, 40083, 40073, 40039, 40033, 40033, 40072, 40081, 40078, 40077, 40078, 40079, 40079, 40038, 40073, 40079, 40079, 40074, 40032, 40037, 40072, 40083, 40081, 40050, 40195, 40195, 40186, 40205, 40213, 40213, 40200, 40205, 40205, 40164, 40185, 40185, 40187, 40205, 40213, 40213, 40195, 40204, 40212, 40204, 40164, 40166, 40166, 40165, 40167, 40167, 40165, 40187, 40205, 40215, 40205, 40204, 40194, 40185, 40185, 40194, 40235, 40193, 40195, 40206, 40164, 40165, 40160, 40160, 40205, 40212, 40215, 40204, 40164, 40166, 40205, 40213, 40204, 40186, 40187, 40205, 40235, 40204, 40206, 40206, 40167, 40164, 40204, 40055, 40184, 40184, 40184, 40164, 40062, 40010, 40014, 40015, 40014, 40056, 40062, 40012, 40058, 40009, 40056, 40009, 39990, 40056, 40062, 40057, 40058, 39990, 40010, 40010, 40009, 40015, 39990, 40057, 40062, 40011, 40013, 39990, 40011, 40015, 40002, 40063, 40015, 40009, 40058, 40062};
}
}