what-the-bank/sources/o/AbstractActivityC8818dWt.java

512 lines
25 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Process;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.view.activity.BaseActivityWithFragment;
import com.scb.phone.view.activity.investment.schedule.SetupScheduleActivity;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.C13068fPo;
import o.VLM;
/* renamed from: o.dWt, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public abstract class AbstractActivityC8818dWt extends BaseActivityWithFragment implements fPA {
private volatile C13073fPt k;
private static final byte[] $$p = {ISO7816.INS_INCREASE, 10, Byte.MIN_VALUE, -124};
private static final int $$q = 192;
private static int $10 = 0;
private static int $11 = 1;
private static int s = 0;
private static int r = 1;
private static char[] l = {35373, 49094, 49031, 49054, 49105, 49034, 35372, 49091, 49024, 35368, 49123, 35375, 49025, 49109, 49027, 49029, 49138, 49114, 35371, 49104, 49116, 49095, 49026, 49030, 49028, 49089, 49106, 49053, 35374, 35370, 49088, 49117, 49035, 49119, 49111, 49110};
private static char m = 35375;
private static int p = 2015661571;
/* renamed from: o, reason: collision with root package name */
private final Object f8857o = new Object();
boolean b = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0022 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001a */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0022 -> 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 aC(short r6, short r7, byte r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 4
int r8 = 4 - r8
int r7 = r7 * 4
int r0 = r7 + 1
int r6 = 120 - r6
byte[] r1 = o.AbstractActivityC8818dWt.$$p
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L14
r3 = r8
r4 = r2
goto L2a
L14:
r3 = r2
L15:
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r7) goto L22
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L22:
int r3 = r3 + 1
r4 = r1[r8]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2a:
int r6 = r6 + r8
int r8 = r3 + 1
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8818dWt.aC(short, short, byte, java.lang.Object[]):void");
}
public AbstractActivityC8818dWt() {
addOnContextAvailableListener(new InterfaceC17278vUG(this) { // from class: o.dWt.3
private AbstractActivityC8818dWt a;
{
this.a = this;
}
@Override // o.InterfaceC17278vUG
public final void a(Context context) {
AbstractActivityC8818dWt abstractActivityC8818dWt = this.a;
if (abstractActivityC8818dWt.b) {
return;
}
abstractActivityC8818dWt.b = true;
((InterfaceC8817dWs) abstractActivityC8818dWt.y_()).b((SetupScheduleActivity) abstractActivityC8818dWt);
}
});
}
@Override // o.fPC
public final Object y_() {
Object y_;
int i = 2 % 2;
int i2 = s + 95;
r = i2 % 128;
if (i2 % 2 == 0) {
y_ = g().y_();
int i3 = 24 / 0;
} else {
y_ = g().y_();
}
int i4 = r + 85;
s = i4 % 128;
if (i4 % 2 == 0) {
return y_;
}
Object obj = null;
obj.hashCode();
throw null;
}
private C13073fPt g() {
if (this.k == null) {
synchronized (this.f8857o) {
if (this.k == null) {
this.k = new C13073fPt(this);
}
}
}
return this.k;
}
@Override // androidx.activity.ComponentActivity, o.GvH
public VLM.LWm getDefaultViewModelProviderFactory() {
Bundle bundle;
int i = 2 % 2;
int i2 = r + 101;
s = i2 % 128;
if (i2 % 2 == 0) {
VLM.LWm defaultViewModelProviderFactory = super.getDefaultViewModelProviderFactory();
C13068fPo.LWm a = ((C13068fPo.Sts) fOV.c(this, C13068fPo.Sts.class)).a();
if (getIntent() != null) {
bundle = getIntent().getExtras();
int i3 = s + 115;
r = i3 % 128;
int i4 = i3 % 2;
} else {
bundle = null;
}
VLM.LWm aBN_ = a.aBN_(this, bundle, defaultViewModelProviderFactory);
int i5 = r + 57;
s = i5 % 128;
if (i5 % 2 == 0) {
return aBN_;
}
throw null;
}
super.getDefaultViewModelProviderFactory();
((C13068fPo.Sts) fOV.c(this, C13068fPo.Sts.class)).a();
getIntent();
throw null;
}
/* JADX WARN: Removed duplicated region for block: B:22:0x01b3 */
/* JADX WARN: Removed duplicated region for block: B:24:0x01b4 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aB(int r20, char[] r21, int r22, boolean r23, int r24, java.lang.Object[] r25) {
/*
Method dump skipped, instructions count: 455
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8818dWt.aB(int, char[], int, boolean, int, java.lang.Object[]):void");
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x00fd, code lost:
if (r2 > 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
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r25) {
/*
Method dump skipped, instructions count: 1618
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8818dWt.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];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, new char[]{15, 2, 65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6, 17, 22, 65521, 5}, 135 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), false, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 30, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ay(new char[]{25, 7, 13824, 13824, 30, ' ', 22, 15, 13826, 13826, '#', 15, 20, 25, 23, 15, 19, ' '}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 11), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) - 93, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
int i2 = s + 71;
r = i2 % 128;
int i3 = i2 % 2;
}
if (baseContext != null) {
int i4 = s + 67;
r = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.indexOf("", "") + 492, 5 - View.MeasureSpec.getSize(0), (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 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(487 - TextUtils.indexOf("", ""), TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) TextUtils.getTrimmedLength(""))).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();
}
/* JADX WARN: Code restructure failed: missing block: B:30:0x0023, code lost:
r1 = o.AbstractActivityC8818dWt.s + 55;
o.AbstractActivityC8818dWt.r = r1 % 128;
r1 = r1 % 2;
r7 = (java.lang.Object[]) null;
r6 = new java.lang.Object[1];
aB(((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.faq_pay_with_point_x_description_part_2).substring(92, 94).codePointAt(0) - 8, new char[]{15, 2, 65534, 1, 65534, 11, 1, 15, '\f', 6, 1, 65483, 65534, '\r', '\r', 65483, 65502, 0, 17, 6, 19, 6, 17, 22, 65521, 5}, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 122, false, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.auto_p2p_tap_menu).substring(0, 9).codePointAt(0) - 76, r6);
r6 = java.lang.Class.forName((java.lang.String) r6[0]);
r8 = new java.lang.Object[1];
ay(new char[]{25, 7, 13824, 13824, 30, ' ', 22, 15, 13826, 13826, '#', 15, 20, 25, 23, 15, 19, ' '}, (byte) (((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 10), ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.error_scan_barcode_not_found_title).substring(16, 17).length() + 17, r8);
r1 = (android.content.Context) r6.getMethod((java.lang.String) r8[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:32:0x0021, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001a, code lost:
if (r1 == null) goto L9;
*/
@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 onPause() {
/*
Method dump skipped, instructions count: 526
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8818dWt.onPause():void");
}
private static void ay(char[] cArr, byte b, int i, Object[] objArr) {
int i2;
int i3;
Object obj;
char c;
int i4;
int length;
char[] cArr2;
int i5 = 2 % 2;
IRS irs = new IRS();
char[] cArr3 = l;
Object obj2 = null;
int i6 = 8;
int i7 = 5;
int i8 = 3;
if (cArr3 != null) {
int i9 = $10 + 105;
$11 = i9 % 128;
if (i9 % 2 == 0) {
length = cArr3.length;
cArr2 = new char[length];
} else {
length = cArr3.length;
cArr2 = new char[length];
}
int i10 = 0;
while (i10 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i10])};
Object obj3 = xzZ.y.get(-1987398494);
if (obj3 == null) {
Class cls = (Class) xzZ.c(Color.green(0) + 298, (ViewConfiguration.getTouchSlop() >> i6) + i7, (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b2 = (byte) i8;
byte b3 = (byte) (b2 - 3);
Object[] objArr3 = new Object[1];
aC(b2, b3, b3, objArr3);
obj3 = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj3);
}
cArr2[i10] = ((Character) ((Method) obj3).invoke(null, objArr2)).charValue();
i10++;
i6 = 8;
i7 = 5;
i8 = 3;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr2;
}
try {
Object[] objArr4 = {Integer.valueOf(m)};
Object obj4 = xzZ.y.get(-1987398494);
char c2 = 6;
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(Color.rgb(0, 0, 0) + 16777514, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) ((Process.getThreadPriority(0) + 20) >> 6));
byte b4 = (byte) 3;
byte b5 = (byte) (b4 - 3);
Object[] objArr5 = new Object[1];
aC(b4, b5, b5, objArr5);
obj4 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj4);
}
char charValue = ((Character) ((Method) obj4).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i3 = i - 1;
cArr4[i3] = (char) (cArr[i3] - b);
int i11 = $10 + 17;
$11 = i11 % 128;
i2 = 2;
int i12 = i11 % 2;
} else {
i2 = 2;
i3 = i;
}
if (i3 > 1) {
int i13 = $11 + 61;
$10 = i13 % 128;
int i14 = i13 % i2;
irs.e = 0;
while (irs.e < i3) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
obj = obj2;
c = c2;
i4 = 2;
} else {
try {
Object[] objArr6 = new Object[13];
objArr6[12] = irs;
objArr6[11] = Integer.valueOf(charValue);
objArr6[10] = irs;
objArr6[9] = irs;
objArr6[8] = Integer.valueOf(charValue);
objArr6[7] = irs;
objArr6[c2] = irs;
objArr6[5] = Integer.valueOf(charValue);
objArr6[4] = irs;
objArr6[3] = irs;
objArr6[2] = Integer.valueOf(charValue);
objArr6[1] = irs;
objArr6[0] = irs;
Object obj5 = xzZ.y.get(822107368);
if (obj5 == null) {
Class cls3 = (Class) xzZ.c((Process.myTid() >> 22) + 233, TextUtils.getCapsMode("", 0, 0) + 5, (char) (AndroidCharacter.getMirror('0') + 21976));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
aC(b6, b7, b7, objArr7);
obj5 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj5);
}
if (((Integer) ((Method) obj5).invoke(null, objArr6)).intValue() == irs.j) {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj6 = xzZ.y.get(-1152873385);
if (obj6 != null) {
c = 6;
} else {
Class cls4 = (Class) xzZ.c(327 - View.resolveSizeAndState(0, 0, 0), 4 - Process.getGidForName(""), (char) (KeyEvent.getMaxKeyCode() >> 16));
byte b8 = (byte) 2;
byte b9 = (byte) (b8 - 2);
Object[] objArr9 = new Object[1];
aC(b8, b9, b9, objArr9);
c = 6;
obj6 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj6);
}
obj = null;
int intValue = ((Integer) ((Method) obj6).invoke(null, objArr8)).intValue();
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[intValue];
cArr4[irs.e + 1] = cArr3[i15];
} else {
obj = null;
c = 6;
if (irs.a == irs.d) {
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i16 = (irs.a * charValue) + irs.f;
int i17 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[i16];
cArr4[irs.e + 1] = cArr3[i17];
} else {
int i18 = (irs.a * charValue) + irs.j;
int i19 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr3[i18];
cArr4[irs.e + 1] = cArr3[i19];
int i20 = $10 + 125;
$11 = i20 % 128;
i4 = 2;
int i21 = i20 % 2;
}
}
i4 = 2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
irs.e += i4;
obj2 = obj;
c2 = c;
}
}
int i22 = 0;
while (i22 < i) {
int i23 = $10 + 39;
$11 = i23 % 128;
if (i23 % 2 == 0) {
cArr4[i22] = (char) (cArr4[i22] ^ 19111);
i22 += 25;
} else {
cArr4[i22] = (char) (cArr4[i22] ^ 13722);
i22++;
}
}
objArr[0] = new String(cArr4);
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x007e, code lost:
if (r2 > 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 r19) {
/*
Method dump skipped, instructions count: 954
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.AbstractActivityC8818dWt.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 + 39;
s = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = s + 119;
r = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}