package io.flutter.app; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.graphics.Color; import android.media.AudioTrack; import android.os.Bundle; import android.os.Process; import android.os.SystemClock; 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.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper; import io.flutter.app.FlutterActivityDelegate; import io.flutter.plugin.common.PluginRegistry; import io.flutter.view.FlutterNativeView; import io.flutter.view.FlutterView; import java.lang.reflect.Method; import o.jTb; import o.xzZ; @Deprecated /* loaded from: classes5.dex */ public class FlutterActivity extends Activity implements FlutterView.Provider, PluginRegistry, FlutterActivityDelegate.ViewFactory { private static final String TAG = "FlutterActivity"; private final FlutterActivityDelegate delegate; private final FlutterActivityEvents eventDelegate; private final PluginRegistry pluginRegistry; private final FlutterView.Provider viewProvider; private static final byte[] $$a = {Ascii.SUB, 97, -29, 95}; private static final int $$b = 205; private static int $10 = 0; private static int $11 = 1; private static int f = 0; private static int j = 1; private static char c = 2256; private static char b = 19145; private static char e = 21701; private static char a = 8590; private static char[] d = {20500, 20494, 20528, 20538, 20517, 36791, 36798, 36856, 36765, 36828, 36854, 36786, 36745, 36807, 36761, 36716, 36734, 36680, 36690, 36641, 36657, 36612, 36616, 36639, 36586, 36521, 36546, 36487, 36516, 36529, 36538, 36494, 36555, 36456, 36477, 36422, 36440, 36389, 36395, 36411, 36441, 36383, 36332, 36260, 36242, 36308, 36238, 36351, 36286, 36239, 36245, 36192, 36130, 36118, 36164, 36104, 36143, 36201, 36108, 36115, 36018, 36090, 36015, 36047, 36048, 36012, 36070, 36055, 36037, 36787, 36836, 36862, 36811, 36747, 36775, 36835, 36821, 36752, 36757, 36717, 36653, 36632, 36688, 36646, 36664, 36691, 36702, 36680, 36584, 36603, 36548, 36561, 36514, 36577, 36532, 36568, 36557, 36450, 36466, 36431, 36356, 36390, 36478, 36463, 36365, 36383, 36326, 36343, 36289, 36311, 36316, 36267, 36283, 36316, 36295, 36192, 36133, 36112, 36121, 36188, 36128, 36156, 36109, 36118, 36022, 36082, 36013, 35992, 35977, 36015, 36028, 36053, 35991, 32343, 32334, 32330, 32362, 32358, 36791, 36797, 36860, 36812, 36750, 36781, 36786, 36736, 36751, 36762, 36718, 36653, 36632, 36681, 36642, 36658, 36611, 36621, 36611, 36537, 36520, 36497, 36485, 36541, 36528, 36591, 36492, 36553, 36461, 36385, 36373, 36437, 36390, 36393, 36415, 36445}; private static long i = -720683682893557796L; /* 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: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 k(int r7, byte r8, byte r9, java.lang.Object[] r10) { /* int r9 = r9 * 2 int r9 = r9 + 4 int r7 = r7 + 66 int r8 = r8 * 4 int r8 = 1 - r8 byte[] r0 = io.flutter.app.FlutterActivity.$$a byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L15 r3 = r8 r7 = r9 r4 = r2 goto L2a L15: r3 = r2 r6 = r9 r9 = r7 r7 = r6 L19: int r4 = r3 + 1 byte r5 = (byte) r9 r1[r3] = r5 if (r4 != r8) goto L28 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L28: r3 = r0[r7] L2a: int r9 = r9 + r3 int r7 = r7 + 1 r3 = r4 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: io.flutter.app.FlutterActivity.k(int, byte, byte, java.lang.Object[]):void"); } @Override // io.flutter.app.FlutterActivityDelegate.ViewFactory public FlutterNativeView createFlutterNativeView() { return null; } @Override // io.flutter.app.FlutterActivityDelegate.ViewFactory public FlutterView createFlutterView(Context context) { return null; } @Override // io.flutter.app.FlutterActivityDelegate.ViewFactory public boolean retainFlutterNativeView() { return false; } public FlutterActivity() { FlutterActivityDelegate flutterActivityDelegate = new FlutterActivityDelegate(this, this); this.delegate = flutterActivityDelegate; this.eventDelegate = flutterActivityDelegate; this.viewProvider = flutterActivityDelegate; this.pluginRegistry = flutterActivityDelegate; } @Override // io.flutter.view.FlutterView.Provider public FlutterView getFlutterView() { return this.viewProvider.getFlutterView(); } @Override // io.flutter.plugin.common.PluginRegistry public final boolean hasPlugin(String str) { return this.pluginRegistry.hasPlugin(str); } @Override // io.flutter.plugin.common.PluginRegistry public final T valuePublishedByPlugin(String str) { return (T) this.pluginRegistry.valuePublishedByPlugin(str); } @Override // io.flutter.plugin.common.PluginRegistry public final PluginRegistry.Registrar registrarFor(String str) { return this.pluginRegistry.registrarFor(str); } /* JADX WARN: Removed duplicated region for block: B:28:0x0206 */ /* JADX WARN: Removed duplicated region for block: B:30:0x0207 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void h(int r19, int r20, char r21, java.lang.Object[] r22) { /* Method dump skipped, instructions count: 528 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: io.flutter.app.FlutterActivity.h(int, int, char, java.lang.Object[]):void"); } @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((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 493, 5 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1))).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((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 487, 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) Gravity.getAbsoluteGravity(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; } } } super.onCreate(bundle); this.eventDelegate.onCreate(bundle); } private static void g(char[] cArr, int i2, Object[] objArr) { int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i4 = $10 + 53; $11 = i4 % 128; int i5 = i4 % 2; cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i6 = 58224; int i7 = 0; while (i7 < 16) { int i8 = $10 + 43; $11 = i8 % 128; int i9 = i8 % 2; char c2 = cArr3[1]; char c3 = cArr3[0]; int i10 = i7; try { Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (e ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(a)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 412, (Process.myTid() >> 22) + 5, (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; k(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(b)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - View.resolveSizeAndState(0, 0, 0), View.MeasureSpec.getSize(0) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; k(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; i7 = i10 + 1; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 98, 5 - KeyEvent.keyCodeFromString(""), (char) (1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)))); byte b6 = (byte) ($$b & 3); byte b7 = (byte) (b6 - 1); Object[] objArr7 = new Object[1]; k(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); } String str = new String(cArr2, 0, i2); int i11 = $11 + 65; $10 = i11 % 128; if (i11 % 2 == 0) { objArr[0] = str; } else { Object obj4 = null; obj4.hashCode(); throw null; } } @Override // android.app.Activity protected void onStart() { super.onStart(); this.eventDelegate.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(492 - View.getDefaultSize(0, 0), View.resolveSize(0, 0) + 5, (char) (ViewConfiguration.getScrollBarSize() >> 8))).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((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 486, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) Color.green(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.eventDelegate.onResume(); } @Override // android.app.Activity protected void onDestroy() { this.eventDelegate.onDestroy(); super.onDestroy(); } @Override // android.app.Activity public void onBackPressed() { if (this.eventDelegate.onBackPressed()) { return; } super.onBackPressed(); } @Override // android.app.Activity protected void onStop() { this.eventDelegate.onStop(); super.onStop(); } @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 - View.MeasureSpec.getSize(0), 5 - TextUtils.getTrimmedLength(""), (char) TextUtils.getOffsetBefore("", 0))).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(View.MeasureSpec.makeMeasureSpec(0, 0) + 487, (ViewConfiguration.getWindowTouchSlop() >> 8) + 5, (char) TextUtils.getOffsetAfter("", 0))).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(); this.eventDelegate.onPause(); } @Override // android.app.Activity protected void onPostResume() { super.onPostResume(); this.eventDelegate.onPostResume(); } @Override // android.app.Activity public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) { this.eventDelegate.onRequestPermissionsResult(i2, strArr, iArr); } @Override // android.app.Activity protected void onActivityResult(int i2, int i3, Intent intent) { if (this.eventDelegate.onActivityResult(i2, i3, intent)) { return; } super.onActivityResult(i2, i3, intent); } @Override // android.app.Activity protected void onNewIntent(Intent intent) { this.eventDelegate.onNewIntent(intent); } @Override // android.app.Activity public void onUserLeaveHint() { this.eventDelegate.onUserLeaveHint(); } @Override // android.app.Activity, android.content.ComponentCallbacks2 public void onTrimMemory(int i2) { this.eventDelegate.onTrimMemory(i2); } @Override // android.app.Activity, android.content.ComponentCallbacks public void onLowMemory() { this.eventDelegate.onLowMemory(); } @Override // android.app.Activity, android.content.ComponentCallbacks public void onConfigurationChanged(Configuration configuration) { super.onConfigurationChanged(configuration); this.eventDelegate.onConfigurationChanged(configuration); } @Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper public void attachBaseContext(Context context) { int i2 = 2 % 2; int i3 = f + 81; j = i3 % 128; int i4 = i3 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; g(new char[]{19737, 29265, 57468, 61999, 1821, 25499, 30172, 32044, 42417, 51199, 52868, 16045, 16750, 45813, 46070, 2910, 31114, 19479}, KeyEvent.keyCodeFromString("") + 18, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; h(View.resolveSizeAndState(0, 0, 0), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 57260), objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue >= 99000) { int i5 = f + 109; j = i5 % 128; int i6 = i5 % 2; if (intValue <= 99999) { return; } } Context applicationContext = context != null ? context.getApplicationContext() : context; if (applicationContext != null) { int i7 = f + 101; j = i7 % 128; int i8 = i7 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 492, 4 - Process.getGidForName(""), (char) (Process.myTid() >> 22))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = new Object[1]; g(new char[]{15229, 18659, 19677, 49088, 13686, 39184, 36787, 48517, 20019, 21471, 3998, 48041, 56696, 41152, 64837, 62773, 13247, 23084, 2288, 62040, 7279, 48864, 30674, 27492, 7045, 7157, 32737, 16987, 18071, 19664, 21501, 39555, 46983, 16069, 53866, 12141, 249, 15200, 23245, 20043, 33900, 27, 45119, 23900, 53212, 16153, 1469, 56065}, 48 - Color.green(0), objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; h((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 5, Gravity.getAbsoluteGravity(0, 0) + 64, (char) TextUtils.indexOf("", ""), objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; h(ExpandableListView.getPackedPositionChild(0L) + 70, TextUtils.getTrimmedLength("") + 64, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)), objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; g(new char[]{61698, 10078, 16116, 34675, 16952, 27839, 47824, 3537, 8166, 3120, 16472, 21113, 48837, 30429, 19750, 57426, 42931, 41054, 30091, 9680, 54392, 24375, 47873, 9293, 11528, 46998, 63899, 41173, 2894, 57924, 41612, 52459, 15750, 34755, 31842, 38576, 63171, 46641, 30783, 50640, 47676, 53182, 7869, 63225, 55202, 31334, 47676, 53182, 61088, 10724, 48837, 30429, 12407, 2631, 23894, 64819, 23773, 47803, 4607, 30124, 23483, 28261, 46483, 49780, 10500, 36220, 60329, 59286, 22180, 29433, 8574, 33061, 3148, 46985}, (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 75, objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; h(MotionEvent.axisFromString("") + 134, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (61884 - ((Process.getThreadPriority(0) + 20) >> 6)), objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; h(138 - (ViewConfiguration.getTapTimeout() >> 16), 36 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) TextUtils.indexOf("", "", 0, 0), objArr8); Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c(Color.argb(0, 0, 0, 0) + 487, 5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (char) (1 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr9); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } }