what-the-bank/sources/com/scb/phone/view/activity/hml/BaseHmlPersonalInfoActivity...

350 lines
21 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.hml;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
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.MenuItem;
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.google.common.primitives.SignedBytes;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivityWithFragment;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.GuL;
import o.xzZ;
/* loaded from: classes4.dex */
public abstract class BaseHmlPersonalInfoActivity extends BaseActivityWithFragment {
private static short[] m;
private static final byte[] $$p = {60, -87, -31, 8};
private static final int $$q = 73;
private static int $10 = 0;
private static int $11 = 1;
private static int t = 0;
private static int r = 1;
private static int b = -1876716184;
private static int l = 1406017065;
/* renamed from: o, reason: collision with root package name */
private static int f7174o = -444518294;
private static byte[] k = {-61, -99, ISOFileInfo.FILE_IDENTIFIER, -97, 105, -112, -65, -65, 86, -103, ISO7816.INS_UPDATE_RECORD, 71, -106, -105, -112, ISOFileInfo.FILE_IDENTIFIER, 107, Byte.MIN_VALUE, ISO7816.INS_UPDATE_RECORD, -2, 17, -39, -23, -53, -113, -122, -97, ISO7816.INS_READ_BINARY_STAMPED, -66, 103, -119, -73, -97, ISO7816.INS_READ_BINARY2, -103, -67, -84, -65, SignedBytes.MAX_POWER_OF_TWO, -126, ISO7816.INS_READ_RECORD2, -33, 116, ISOFileInfo.FCI_EXT, -124, ISOFileInfo.DATA_BYTES2, ISO7816.INS_READ_BINARY, -104, ISO7816.INS_READ_BINARY2, -61, -108, -99, ISOFileInfo.FCP_BYTE, Byte.MIN_VALUE, -107, 105, 106, 107, -105, -92, 90, -99, -98, 96, -105, 106, ISOFileInfo.DATA_BYTES2, -31, 40, ISOFileInfo.CHANNEL_SECURITY, 86, -119, Ascii.DEL, 102, 101, 43, 123, 126, 120, ISO7816.INS_READ_RECORD_STAMPED, 114, ISOFileInfo.FMD_BYTE, 103, 123, 46, ISOFileInfo.SECURITY_ATTR_COMPACT, 81, -119, 85, ISOFileInfo.CHANNEL_SECURITY, 43, ISOFileInfo.CHANNEL_SECURITY, 83, ISOFileInfo.CHANNEL_SECURITY, 122, 124, 97, 120, ISO7816.INS_PSO, ISOFileInfo.ENV_TEMP_EF, 102, ISO7816.INS_PSO, -120, 85, -120, 114, 80, 122, 124, ISOFileInfo.FMD_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, ISO7816.INS_PSO, -119, 126, 97, 17, -5, 80, 8, -5, 0, 10, 94, -15, 69, 4, 8, 13, 53, -14, 8, 2, 92, -8, 2, 88, 13, 10, 0, 11, 15, 12, 2, 15, -5, 12, 93, -1, 80, 8, 13, -8, 12, 93, -6, 94, 0, ISO7816.INS_DECREASE_STAMPED, 12, 14, -15, 11, 14, 86, 55, 3, -7, 2, 89, 1, ISO7816.INS_DECREASE_STAMPED, -14, 15, 89, -7, 93, 8, 7, ISO7816.INS_DELETE_FILE, Ascii.ESC, ISO7816.INS_READ_BINARY_STAMPED, -67, -66, -124, -90, -51, ISOFileInfo.LCS_BYTE, 75, -4, 72, ISO7816.INS_READ_RECORD_STAMPED, ISOFileInfo.A5, -75, ISOFileInfo.CHANNEL_SECURITY, -78, -55, 125, ISOFileInfo.CHANNEL_SECURITY, -92, -63, 113, -75, -69, ISO7816.INS_ENVELOPE, 126, Byte.MIN_VALUE, -90, -101, ISO7816.INS_READ_RECORD2, -75, -92, ISOFileInfo.DATA_BYTES2, -90, -101, ISOFileInfo.A5, -50, 73, ISO7816.INS_READ_RECORD_STAMPED, ISOFileInfo.A1, -75, -124, ISOFileInfo.A0, ISOFileInfo.SECURITY_ATTR_EXP, Byte.MIN_VALUE, -71, ISOFileInfo.FILE_IDENTIFIER, -3, ISO7816.INS_MANAGE_CHANNEL, ISOFileInfo.LCS_BYTE, -70, ISO7816.INS_READ_BINARY_STAMPED, ISOFileInfo.ENV_TEMP_EF, -72, -113, -67, -122, -70, -113, -73, -75, -69, ISOFileInfo.ENV_TEMP_EF, -69, -113, ISOFileInfo.ENV_TEMP_EF, -13, -73, -126, 124, ISO7816.INS_READ_BINARY, ISOFileInfo.SECURITY_ATTR_EXP, -73, -69, ISO7816.INS_UPDATE_RECORD, -70, ISO7816.INS_READ_RECORD_STAMPED, -94, -73};
private static long p = -5114674291746961941L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002b). 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 aC(short r6, byte r7, int r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.scb.phone.view.activity.hml.BaseHmlPersonalInfoActivity.$$p
int r6 = r6 + 4
int r8 = r8 * 4
int r1 = 1 - r8
int r7 = r7 + 108
byte[] r1 = new byte[r1]
r2 = 0
int r8 = 0 - r8
r3 = -1
if (r0 != 0) goto L15
r7 = r6
r4 = r8
goto L2b
L15:
r5 = r7
r7 = r6
r6 = r5
L18:
int r3 = r3 + 1
byte r4 = (byte) r6
int r7 = r7 + 1
r1[r3] = r4
if (r3 != r8) goto L29
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L29:
r4 = r0[r7]
L2b:
int r4 = -r4
int r6 = r6 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.BaseHmlPersonalInfoActivity.aC(short, byte, int, java.lang.Object[]):void");
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment
public final String L() {
int i = 2 % 2;
int i2 = t + 9;
r = i2 % 128;
int i3 = i2 % 2;
String string = getString(R.string.hml_personal_info_title);
int i4 = r + 91;
t = i4 % 128;
int i5 = i4 % 2;
return string;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = t + 87;
r = i2 % 128;
if (i2 % 2 != 0) {
if (menuItem.getItemId() == 16908332) {
int i3 = t + 11;
r = i3 % 128;
if (i3 % 2 == 0) {
onBackPressed();
return false;
}
onBackPressed();
return true;
}
return super.onOptionsItemSelected(menuItem);
}
menuItem.getItemId();
Object obj = null;
obj.hashCode();
throw null;
}
private static void aB(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(p ^ (-7538262848231253921L), cArr, i);
int i3 = 4;
guL.a = 4;
while (guL.a < a.length) {
int i4 = $11 + 27;
$10 = i4 % 128;
int i5 = i4 % 2;
guL.c = guL.a - i3;
int i6 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(p)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 207, 5 - TextUtils.indexOf("", ""), (char) (1707 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))));
byte b2 = (byte) (-1);
Object[] objArr3 = new Object[1];
aC(b2, (byte) (b2 & 11), (byte) 0, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((-16776824) - Color.rgb(0, 0, 0), KeyEvent.keyCodeFromString("") + 5, (char) ExpandableListView.getPackedPositionGroup(0L));
byte b3 = (byte) (-1);
Object[] objArr5 = new Object[1];
aC(b3, (byte) (b3 & 13), (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i7 = $11 + 111;
$10 = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 2 / 5;
}
i3 = 4;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x0168, code lost:
if (r3 > 99999) goto L10;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0165, code lost:
if (r3 > 99999) goto L10;
*/
/* JADX WARN: Removed duplicated region for block: B:11:0x0642 */
/* JADX WARN: Removed duplicated region for block: B:9:0x0641 A[RETURN] */
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 r28) {
/*
Method dump skipped, instructions count: 1720
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.BaseHmlPersonalInfoActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.max_select_billing_cycles_err).substring(29, 30).codePointAt(0) + 73), ExpandableListView.getPackedPositionGroup(0L) + 1007842458, (-61) - (ViewConfiguration.getKeyRepeatDelay() >> 16), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.my_qr_belt).substring(2, 3).codePointAt(0) + 1236324802, (byte) (ViewConfiguration.getFadingEdgeLength() >> 16), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ndid_service_register_success_description).substring(22, 23).codePointAt(0) + 58), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.return_to_subscription_list).substring(24, 25).length() + 1007842483, (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)) - 61, 1236324836 - KeyEvent.normalizeMetaState(0), (byte) (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)), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = r + 31;
t = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = r + 113;
t = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (KeyEvent.getMaxKeyCode() >> 16) + 5, (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(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 487, Drawable.resolveOpacity(0, 0) + 5, (char) (Process.getGidForName("") + 1))).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 // com.scb.phone.view.activity.BaseActivityWithFragment, 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 = t + 15;
r = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
getBaseContext();
obj.hashCode();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 71), View.combineMeasuredStates(0, 0) + 1007842458, (-61) - View.MeasureSpec.getMode(0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 1236324821, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) - 111), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 113), 1007842450 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion, (-61) - View.resolveSize(0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(7) + 1236324790, (byte) TextUtils.getOffsetBefore("", 0), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = t + 105;
r = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
int i5 = t + 35;
r = i5 % 128;
int i6 = i5 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - ExpandableListView.getPackedPositionGroup(0L), 5 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).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(487 - (ViewConfiguration.getTouchSlop() >> 8), View.MeasureSpec.getMode(0) + 5, (char) (ViewConfiguration.getFadingEdgeLength() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
int i7 = r + 115;
t = i7 % 128;
int i8 = i7 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
/* JADX WARN: Removed duplicated region for block: B:13:0x01dc */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void ay(short r18, int r19, int r20, int r21, byte r22, java.lang.Object[] r23) {
/*
Method dump skipped, instructions count: 803
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.BaseHmlPersonalInfoActivity.ay(short, int, int, int, byte, java.lang.Object[]):void");
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x00ae, code lost:
if (r3 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 r24) {
/*
Method dump skipped, instructions count: 782
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.BaseHmlPersonalInfoActivity.attachBaseContext(android.content.Context):void");
}
@Override // com.scb.phone.view.activity.BaseActivityWithFragment, 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 = r + 37;
t = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
throw null;
}
}
}