what-the-bank/sources/com/scb/phone/view/activity/hml/ekyc/HmlNdidSelectIdpActivity.java

447 lines
23 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.hml.ekyc;
import android.content.Context;
import android.graphics.PointF;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.fragment.hml.ekyc.HmlNdidSelectIdpFragment;
import com.scb.phone.view.fragment.hml.ekyc.HmlNdidSelectIdpSuccessFragment;
import com.scb.phone.view.fragment.ndid.NdidSelectIdpFragment;
import com.scb.phone.view.fragment.ndid.NdidSelectIdpSuccessFragment;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.C14957gcv;
import o.GuL;
import o.xzZ;
import o.zUI;
/* loaded from: classes4.dex */
public final class HmlNdidSelectIdpActivity extends Hilt_HmlNdidSelectIdpActivity {
public static final RVV b;
private static int l;
private static long m;
/* renamed from: o, reason: collision with root package name */
private static int f7392o;
private static final byte[] $$y = {75, ISO7816.INS_UPDATE_RECORD, 11, 77};
private static final int $$z = 74;
private static int $10 = 0;
private static int $11 = 1;
private static int k = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x0029). 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(short r6, short r7, byte r8, java.lang.Object[] r9) {
/*
int r6 = 121 - r6
int r7 = r7 * 4
int r7 = r7 + 1
int r8 = r8 * 3
int r8 = 3 - r8
byte[] r0 = com.scb.phone.view.activity.hml.ekyc.HmlNdidSelectIdpActivity.$$y
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r3 = r6
r6 = r7
r4 = r2
goto L29
L15:
r3 = r2
L16:
int r4 = r3 + 1
byte r5 = (byte) r6
int r8 = r8 + 1
r1[r3] = r5
if (r4 != r7) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L27:
r3 = r0[r8]
L29:
int r6 = r6 + r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.ekyc.HmlNdidSelectIdpActivity.aF(short, short, byte, java.lang.Object[]):void");
}
@Override // com.scb.phone.view.activity.ndid.NdidSelectIdpActivity
public final /* synthetic */ NdidSelectIdpSuccessFragment a(List list) {
int i = 2 % 2;
C14957gcv.e(list, "");
HmlNdidSelectIdpSuccessFragment.RVV rvv = HmlNdidSelectIdpSuccessFragment.c;
C14957gcv.e(list, "");
HmlNdidSelectIdpSuccessFragment hmlNdidSelectIdpSuccessFragment = new HmlNdidSelectIdpSuccessFragment();
Bundle bundle = new Bundle();
bundle.putStringArrayList("REMARKS", new ArrayList<>(list));
hmlNdidSelectIdpSuccessFragment.setArguments(bundle);
HmlNdidSelectIdpSuccessFragment hmlNdidSelectIdpSuccessFragment2 = hmlNdidSelectIdpSuccessFragment;
int i2 = l + 41;
k = i2 % 128;
int i3 = i2 % 2;
return hmlNdidSelectIdpSuccessFragment2;
}
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
private static void aD(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(m ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
int i3 = $10 + 89;
$11 = i3 % 128;
int i4 = i3 % 2;
while (guL.a < a.length) {
int i5 = $11 + 99;
$10 = i5 % 128;
int i6 = i5 % 2;
guL.c = guL.a - 4;
int i7 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(m)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(207 - TextUtils.indexOf((CharSequence) "", '0', 0), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) (1706 - (ViewConfiguration.getJumpTapTimeout() >> 16)));
byte b2 = (byte) ($$z & 7);
byte b3 = (byte) (b2 - 2);
Object[] objArr3 = new Object[1];
aF(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i7] = ((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(391 - Process.getGidForName(""), 5 - TextUtils.getOffsetAfter("", 0), (char) (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)));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
aF(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
} 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:4:0x00ea, code lost:
if (r1 > 99999) goto L6;
*/
@Override // com.scb.phone.view.activity.hml.ekyc.Hilt_HmlNdidSelectIdpActivity, com.scb.phone.view.activity.ndid.NdidSelectIdpActivity, o.AbstractActivityC11259ebv, 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 final void onCreate(android.os.Bundle r22) {
/*
Method dump skipped, instructions count: 1526
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.ekyc.HmlNdidSelectIdpActivity.onCreate(android.os.Bundle):void");
}
private static void aE(int i, char[] cArr, int i2, boolean z, int i3, Object[] objArr) {
Object method;
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
while (zui.d < i) {
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i2 + zui.c);
int i5 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i5]), Integer.valueOf(f7392o)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(143 - (ViewConfiguration.getWindowTouchSlop() >> 8), View.getDefaultSize(0, 0) + 7, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b2 = (byte) 0;
Object[] objArr3 = new Object[1];
aF((byte) 52, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 342, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
aF((byte) 45, b3, b3, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $11 + 87;
$10 = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i3 > 0) {
zui.a = i3;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
}
if (z) {
char[] cArr4 = new char[i];
zui.d = 0;
while (zui.d < i) {
int i8 = $11 + 57;
$10 = i8 % 128;
if (i8 % 2 != 0) {
cArr4[zui.d] = cArr2[(zui.d + i) << 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(341 - MotionEvent.axisFromString(""), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
byte b4 = (byte) 0;
Object[] objArr7 = new Object[1];
aF((byte) 45, b4, b4, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
} else {
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
try {
Object[] objArr8 = {zui, zui};
Object obj4 = xzZ.y.get(1294990079);
if (obj4 != null) {
method = obj4;
} else {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 341, 5 - KeyEvent.normalizeMetaState(0), (char) TextUtils.indexOf("", "", 0));
byte b5 = (byte) 0;
Object[] objArr9 = new Object[1];
aF((byte) 45, b5, b5, objArr9);
method = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1294990079, method);
}
((Method) method).invoke(null, objArr8);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
@Override // com.scb.phone.view.activity.hml.ekyc.Hilt_HmlNdidSelectIdpActivity, com.scb.phone.view.activity.ndid.NdidSelectIdpActivity, o.AbstractActivityC11259ebv, 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 final void onResume() {
int i = 2 % 2;
int i2 = k + 99;
l = i2 % 128;
if (i2 % 2 == 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aD(new char[]{40049, 59173, 42354, 39952, 2246, 6812, 24248, 61745, 27458, 4735, 22044, 63497, 29352, 3034, 20324, 57557, 31268, 1197, 17604, 55094, 16759, 15371, 31768, 56906, 18665, 13806, 30074, 50930, 20536, 11966}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(11) - 109, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aD(new char[]{18997, 12740, 22581, 19030, 19693, 52326, 41961, 46362, 48396, 50329, 43851, 48205, 42237, 56635, 45631, 42169, 44098, 53838, 47491, 37661, 38698, 60141}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.banking_generate_qr_expire_message).substring(27, 30).length() - 2, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i3 = k + 113;
l = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i5 = k + 7;
l = i5 % 128;
int i6 = i5 % 2;
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 491, 5 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) (ViewConfiguration.getScrollDefaultDelay() >> 16))).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((ViewConfiguration.getScrollBarSize() >> 8) + 487, 5 - View.resolveSizeAndState(0, 0, 0), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) - 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.hml.ekyc.Hilt_HmlNdidSelectIdpActivity, com.scb.phone.view.activity.ndid.NdidSelectIdpActivity, o.AbstractActivityC11259ebv, 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 final void onPause() {
int i = 2 % 2;
int i2 = l + 37;
k = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
aD(new char[]{40049, 59173, 42354, 39952, 2246, 6812, 24248, 61745, 27458, 4735, 22044, 63497, 29352, 3034, 20324, 57557, 31268, 1197, 17604, 55094, 16759, 15371, 31768, 56906, 18665, 13806, 30074, 50930, 20536, 11966}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 33, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aD(new char[]{18997, 12740, 22581, 19030, 19693, 52326, 41961, 46362, 48396, 50329, 43851, 48205, 42237, 56635, 45631, 42169, 44098, 53838, 47491, 37661, 38698, 60141}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 12, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = k + 83;
l = i4 % 128;
if (i4 % 2 == 0) {
baseContext.getApplicationContext();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 492, 5 - (Process.myTid() >> 22), (char) TextUtils.getOffsetBefore("", 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 488, (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) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:6:0x0086, code lost:
if (r5 > 99999) goto L11;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ java.lang.Object a(java.lang.Object[] r21) {
/*
Method dump skipped, instructions count: 940
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.hml.ekyc.HmlNdidSelectIdpActivity.a(java.lang.Object[]):java.lang.Object");
}
@Override // com.scb.phone.view.activity.ndid.NdidSelectIdpActivity
public final /* synthetic */ NdidSelectIdpFragment j() {
int i = 2 % 2;
HmlNdidSelectIdpFragment.HBt hBt = HmlNdidSelectIdpFragment.d;
HmlNdidSelectIdpFragment hmlNdidSelectIdpFragment = new HmlNdidSelectIdpFragment();
int i2 = l + 99;
k = i2 % 128;
int i3 = i2 % 2;
return hmlNdidSelectIdpFragment;
}
static void f() {
m = -3369822750103624312L;
f7392o = 2015661757;
}
@Override // com.scb.phone.view.activity.hml.ekyc.Hilt_HmlNdidSelectIdpActivity, com.scb.phone.view.activity.ndid.NdidSelectIdpActivity, o.AbstractActivityC11259ebv, 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
public final void attachBaseContext(Context context) {
System.identityHashCode(this);
a(new Object[]{this, context});
}
@Override // com.scb.phone.view.activity.hml.ekyc.Hilt_HmlNdidSelectIdpActivity, com.scb.phone.view.activity.ndid.NdidSelectIdpActivity, o.AbstractActivityC11259ebv, 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 final void onStart() {
int i = 2 % 2;
int i2 = k + 119;
l = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = k + 83;
l = i4 % 128;
int i5 = i4 % 2;
}
static {
l = 1;
f();
b = new RVV((byte) 0);
int i = k + 59;
l = i % 128;
if (i % 2 == 0) {
int i2 = 35 / 0;
}
}
}