what-the-bank/sources/com/scb/phone/view/activity/cardmanagement/ActivationSuccessfulActivit...

395 lines
21 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.cardmanagement;
import android.content.Context;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
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.google.common.base.Ascii;
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.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.jTb;
import o.xzZ;
/* loaded from: classes4.dex */
public final class ActivationSuccessfulActivity extends Hilt_ActivationSuccessfulActivity {
public static final RVV b;
private static int k;
private static int l;
private static byte[] m;
/* renamed from: o, reason: collision with root package name */
private static int f6615o;
private static char p;
private static char q;
private static short[] r;
private static char s;
private static char t;
private static int x;
private static final byte[] $$y = {53, 8, 9, -66};
private static final int $$z = 85;
private static int $10 = 0;
private static int $11 = 1;
private static int w = 1;
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> 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 aF(byte r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r6 = 110 - r6
int r7 = r7 * 3
int r7 = r7 + 1
int r8 = r8 * 3
int r8 = 3 - r8
byte[] r0 = com.scb.phone.view.activity.cardmanagement.ActivationSuccessfulActivity.$$y
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L14
r3 = r8
r4 = r2
goto L2c
L14:
r3 = r2
L15:
byte r4 = (byte) r6
r1[r3] = r4
int r8 = r8 + 1
int r3 = r3 + 1
if (r3 != r7) goto L26
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L26:
r4 = r0[r8]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2c:
int r6 = r6 + r8
r8 = r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.cardmanagement.ActivationSuccessfulActivity.aF(byte, short, short, java.lang.Object[]):void");
}
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
private static void aE(char[] cArr, int i, Object[] objArr) {
String str;
int i2 = 2;
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) {
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i4 = 58224;
int i5 = 0;
while (i5 < 16) {
int i6 = $11 + 31;
$10 = i6 % 128;
int i7 = i6 % i2;
char c = cArr3[1];
char c2 = cArr3[0];
int i8 = (c2 + i4) ^ ((c2 << 4) + ((char) (t ^ 41718355337583039L)));
int i9 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(p);
objArr2[i2] = Integer.valueOf(i9);
objArr2[1] = Integer.valueOf(i8);
objArr2[0] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj != null) {
str = "";
} else {
str = "";
Class cls = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 412, TextUtils.indexOf((CharSequence) str, '0', 0) + 6, (char) (ViewConfiguration.getJumpTapTimeout() >> 16));
byte b2 = (byte) 0;
Object[] objArr3 = new Object[1];
aF((byte) 44, b2, b2, 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 + i4) ^ ((charValue << 4) + ((char) (q ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(s)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 413, KeyEvent.keyCodeFromString(str) + 5, (char) ((-1) - TextUtils.lastIndexOf(str, '0', 0)));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
aF((byte) 44, b3, b3, 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();
i4 -= 40503;
i5++;
i2 = 2;
} 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(98 - TextUtils.indexOf("", "", 0), 4 - TextUtils.indexOf((CharSequence) "", '0'), (char) ((-1) - TextUtils.lastIndexOf("", '0')));
byte b4 = (byte) 0;
Object[] objArr7 = new Object[1];
aF((byte) 43, b4, b4, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i10 = $11 + 39;
$10 = i10 % 128;
int i11 = i10 % 2;
i2 = 2;
}
objArr[0] = new String(cArr2, 0, i);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00d2, code lost:
if (r3 > 99999) goto L10;
*/
@Override // com.scb.phone.view.activity.cardmanagement.Hilt_ActivationSuccessfulActivity, com.scb.phone.view.activity.CCRBaseActivity, 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 final void onCreate(android.os.Bundle r23) {
/*
Method dump skipped, instructions count: 1298
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.cardmanagement.ActivationSuccessfulActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.cardmanagement.Hilt_ActivationSuccessfulActivity, com.scb.phone.view.activity.CCRBaseActivity, 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 final void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aD((short) (ViewConfiguration.getKeyRepeatDelay() >> 16), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 332916547, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(7) - 78, (-2078321333) + Color.red(0), (byte) (40 - Drawable.resolveOpacity(0, 0)), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aE(new char[]{36548, 17433, 47125, 10015, 31560, 26777, 26545, 9398, 29930, 28716, 40294, 65265, 38350, 19333, 38447, 63511, 59577, 56627}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.onboarding_input_address_village_is_not_allowed).substring(40, 41).length() + 17, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = w + 79;
x = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - View.MeasureSpec.getSize(0), (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 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(Drawable.resolveOpacity(0, 0) + 487, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i4 = x + 121;
w = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
ActivationSuccessfulActivity activationSuccessfulActivity = (ActivationSuccessfulActivity) objArr[0];
int i = 2 % 2;
int i2 = w + 11;
x = i2 % 128;
int i3 = i2 % 2;
Context baseContext = activationSuccessfulActivity.getBaseContext();
if (baseContext == null) {
Object[] objArr2 = new Object[1];
aD((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), TextUtils.indexOf((CharSequence) "", '0', 0, 0) - 332916512, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.investment_risk_purchase).substring(46, 47).length() - 33, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_select_account_disclaimer).substring(89, 90).length() - 2078321334, (byte) (40 - View.MeasureSpec.getSize(0)), objArr2);
Class<?> cls = Class.forName((String) objArr2[0]);
Object[] objArr3 = new Object[1];
aE(new char[]{36548, 17433, 47125, 10015, 31560, 26777, 26545, 9398, 29930, 28716, 40294, 65265, 38350, 19333, 38447, 63511, 59577, 56627}, TextUtils.indexOf((CharSequence) "", '0') + 19, objArr3);
baseContext = (Context) cls.getMethod((String) objArr3[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = w + 5;
x = i4 % 128;
try {
if (i4 % 2 != 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - Color.alpha(0), (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)) + 5, (char) (ExpandableListView.getPackedPositionChild(0L) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 486, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (ViewConfiguration.getFadingEdgeLength() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr4);
int i5 = 25 / 0;
} else {
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(492 - (ViewConfiguration.getTouchSlop() >> 8), (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr5 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(488 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (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)) + 5, (char) TextUtils.getOffsetBefore("", 0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr5);
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
super.onPause();
return null;
}
/* JADX WARN: Removed duplicated region for block: B:37:0x01bb */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aD(short r19, int r20, int r21, int r22, byte r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 740
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.cardmanagement.ActivationSuccessfulActivity.aD(short, int, int, int, byte, java.lang.Object[]):void");
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0088, code lost:
if (r2 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.cardmanagement.Hilt_ActivationSuccessfulActivity, com.scb.phone.view.activity.CCRBaseActivity, 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 final void attachBaseContext(android.content.Context r21) {
/*
Method dump skipped, instructions count: 860
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.cardmanagement.ActivationSuccessfulActivity.attachBaseContext(android.content.Context):void");
}
static void j() {
k = 1075444007;
f6615o = 1406017071;
l = 674149635;
m = new byte[]{ISO7816.INS_UNBLOCK_CHV, ISO7816.INS_MSE, 46, ISO7816.INS_LOAD_KEY_FILE, -47, 14, 14, -105, 40, 109, -26, -41, ISO7816.INS_UPDATE_BINARY, -47, ISO7816.INS_MSE, ISO7816.INS_PUT_DATA, 33, 62, -63, -50, 55, 41, -26, 56, 54, -50, ISO7816.INS_DECREASE, -56, ISO7816.INS_UNBLOCK_CHV, Ascii.US, 46, ISOFileInfo.FILE_IDENTIFIER, 61, ISO7816.INS_INCREASE, 14, -9, -58, -57, ISO7816.INS_GET_RESPONSE, 51, -53, ISO7816.INS_DECREASE, Ascii.NAK, Ascii.NAK};
q = (char) 47193;
s = (char) 973;
t = (char) 58649;
p = (char) 51107;
}
@Override // com.scb.phone.view.activity.cardmanagement.Hilt_ActivationSuccessfulActivity, com.scb.phone.view.activity.CCRBaseActivity, 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 final void onPause() {
int i = ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 2109897428;
d(new Object[]{this});
}
@Override // com.scb.phone.view.activity.cardmanagement.Hilt_ActivationSuccessfulActivity, com.scb.phone.view.activity.CCRBaseActivity, 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 final void onStart() {
int i = 2 % 2;
int i2 = x + 89;
w = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = w + 79;
x = i4 % 128;
int i5 = i4 % 2;
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public final void onBackPressed() {
int i = 2 % 2;
int i2 = x + 93;
w = i2 % 128;
int i3 = i2 % 2;
}
static {
x = 0;
j();
b = new RVV((byte) 0);
int i = w + 103;
x = i % 128;
if (i % 2 != 0) {
int i2 = 77 / 0;
}
}
}