what-the-bank/sources/com/scb/phone/view/activity/CCRBaseActivity.java

384 lines
20 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC9738dpZ;
import o.C4593bdB;
import o.xzZ;
/* loaded from: classes4.dex */
public class CCRBaseActivity extends AbstractActivityC9738dpZ {
private static final byte[] $$g = {33, ISOFileInfo.ENV_TEMP_EF, -97, 85};
private static final int $$h = 12;
private static int $10 = 0;
private static int $11 = 1;
/* renamed from: o, reason: collision with root package name */
private static int f6521o = 0;
private static int l = 1;
private static char[] b = {53024, 24816, 37019, 49326, 28754, 41075, 53279, 'v', 45526, 57829, 4569, 16772, 61767, 8573, 20752, 33077, 12994, 25341, 19055, 58788, 5609, 17910, 62746, 51513, 26345, 38530, 50871, 30283, 42602, 54790, 1647, 47041, 59391, 6046, 18403, 63341, 10088, 22302, 34592, 13534, 25854, 38018, 50348, 29792, 42107, 54272, 1076, 46545, 58875, 3880, 41185, 20615, 164, 45138, 24702, 4101, 49171, 29123, 8684, 53649, 33207, 12636, 57721, 37133, 16691, 62164, 41706, 36835, 8250, 53336, 32813, 12445, 57578, 37006, 16554, 61768, 41276, 20822, 294, 45461, 25059, 4563, 49659, 29248, 8750, 53838, 33383, 12941, 58029, 37529, 17122, 62300, 41763, 21271, 866, 46037, 25512, 5012, 50146, 29699, 9304, 54388, 33950, 13544, 58508, 38058, 17737, 62776, 42321, 21885, 1426, 46565, 26073, 5541, 50711, 62427, 23645, 44084, 64532, 19623, 40146, 60645, 15558, 36208, 56660, 11583, 32074, 52652, 7645, 28088, 48531, 3627, 24087, 44658, 65031, 20199, 40641, 61095, 16001, 36657, 57157, 12154, 32602, 53222, 8143, 28577, 49119, 2158, 22631, 43077, 63730, 18643, 39091, 59537, 14706, 35159, 55613, 10521, 31228, 51592, 6634, 27038, 47662, 2568, 23152, 43526, 64239, 19136, 39592, 60032, 15157, 35650, 56188, 11098, 31678, 52171, 7073, 27611, 46188, 36843, 8227, 53332, 32865, 12446, 40885, 12398, 49244, 36985, 8392, 61618, 32990, 20729, 57605, 45361, 16726, 4384, 41414, 29102, 470, 53747, 25105, 12846, 49747, 37436, 8926, 62206, 33433, 21236, 58122, 45940, 17220, 4916, 41859, 29686, 913, 54244, 25604, 13402, 50303, 38088};
private static long m = -7878303997069352947L;
private static long k = 2350848384646973230L;
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:10:0x0022 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001a */
/* JADX WARN: Type inference failed for: r6v2, types: [int] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0022 -> B:4:0x0026). 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 az(short r5, byte r6, byte r7, java.lang.Object[] r8) {
/*
byte[] r0 = com.scb.phone.view.activity.CCRBaseActivity.$$g
int r5 = r5 * 3
int r1 = r5 + 1
int r6 = r6 * 3
int r6 = 4 - r6
int r7 = 106 - r7
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L14
r4 = r6
r3 = r2
goto L26
L14:
r3 = r2
L15:
byte r4 = (byte) r7
r1[r3] = r4
if (r3 != r5) goto L22
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L22:
int r3 = r3 + 1
r4 = r0[r6]
L26:
int r6 = r6 + 1
int r4 = -r4
int r7 = r7 + r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.CCRBaseActivity.az(short, byte, byte, java.lang.Object[]):void");
}
@Override // com.scb.phone.view.activity.BaseActivity
public final boolean z_() {
int i = 2 % 2;
int i2 = l + 113;
f6521o = i2 % 128;
if (i2 % 2 == 0) {
return super.z_();
}
super.z_();
throw null;
}
@Override // com.akexorcist.localizationactivity.LocalizationActivity
public final String B_() {
int i = 2 % 2;
int i2 = f6521o + 65;
l = i2 % 128;
if (i2 % 2 == 0) {
super.B_();
throw null;
}
String B_ = super.B_();
int i3 = f6521o + 11;
l = i3 % 128;
int i4 = i3 % 2;
return B_;
}
@Override // com.scb.phone.view.activity.BaseActivity
public final boolean A_() {
int i = 2 % 2;
int i2 = l + 67;
f6521o = i2 % 128;
int i3 = i2 % 2;
boolean A_ = super.A_();
int i4 = l + 111;
f6521o = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 77 / 0;
}
return A_;
}
private static void ay(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(401 - TextUtils.indexOf((CharSequence) "", '0'), (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (21608 - TextUtils.getTrimmedLength("")));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
az(b2, b3, (byte) (b3 | 29), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i3] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (k ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "") + 238, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
az(b4, b5, (byte) (b5 | 28), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i4 = $10 + 51;
$11 = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i6 = $10 + 81;
$11 = i6 % 128;
if (i6 % 2 == 0) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(238 - View.resolveSizeAndState(0, 0, 0), 5 - View.combineMeasuredStates(0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
az(b6, b7, (byte) (b7 | 28), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
throw null;
}
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
try {
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((Process.myTid() >> 22) + 238, 5 - KeyEvent.normalizeMetaState(0), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr9 = new Object[1];
az(b8, b9, (byte) (b9 | 28), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr2);
}
/* JADX WARN: Removed duplicated region for block: B:27:0x01fd */
/* JADX WARN: Removed duplicated region for block: B:29:0x01fe */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ax(int r19, int r20, char r21, java.lang.Object[] r22) {
/*
Method dump skipped, instructions count: 519
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.CCRBaseActivity.ax(int, int, char, java.lang.Object[]):void");
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x00ec, code lost:
if (r3 > 99999) goto L6;
*/
@Override // o.AbstractActivityC9738dpZ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r17) {
/*
Method dump skipped, instructions count: 1270
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.CCRBaseActivity.onCreate(android.os.Bundle):void");
}
@Override // o.AbstractActivityC9738dpZ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ax(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 11, 26 - Drawable.resolveOpacity(0, 0), (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_business_url_info_add_more_btn).substring(0, 2).codePointAt(0) + 18015), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 36, 18 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 32887), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = f6521o + 123;
l = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = f6521o + 61;
l = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.indexOf("", "", 0, 0) + 492, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) KeyEvent.normalizeMetaState(0))).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(TextUtils.indexOf((CharSequence) "", '0', 0) + 488, 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) Color.blue(0))).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 // o.AbstractActivityC9738dpZ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = l + 19;
f6521o = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ax(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 11, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.common_google_play_services_install_text).substring(0, 5).length() + 21, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(2) + 17949), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ax(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.e_coupon_quantity_total_points_result).substring(0, 5).codePointAt(3) - 66, (ViewConfiguration.getScrollBarSize() >> 8) + 18, (char) (TextUtils.getTrimmedLength("") + 32921), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i3 = f6521o + 115;
l = i3 % 128;
int i4 = i3 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - View.getDefaultSize(0, 0), 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(488 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) (ViewConfiguration.getEdgeSlop() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i5 = f6521o + 17;
l = i5 % 128;
if (i5 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0075, code lost:
if (r2 > 99999) goto L6;
*/
@Override // o.AbstractActivityC9738dpZ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void attachBaseContext(android.content.Context r19) {
/*
Method dump skipped, instructions count: 690
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.CCRBaseActivity.attachBaseContext(android.content.Context):void");
}
@Override // o.AbstractActivityC9738dpZ, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = f6521o + 67;
l = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}