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

745 lines
37 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.thirdparty;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
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.webkit.SslErrorHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ExpandableListView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.kofax.kmc.kut.utilities.IpLibUtil;
import com.scb.phone.R;
import com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity;
import com.scb.phone.view.activity.splash.SplashActivity;
import com.scb.phone.view.activity.thirdparty.ThirdPartyConsentFragment;
import java.lang.reflect.Method;
import o.AbstractActivityC11944eor;
import o.AbstractC13482fbE;
import o.C12941fLs;
import o.C6201cLr;
import o.GuL;
import o.InterfaceC13391fZD;
import o.InterfaceC6634cYl;
import o.hwW;
import o.jTb;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class ThirdPartyConsentActivity extends AbstractActivityC11944eor implements ThirdPartyConsentFragment.IeS, InterfaceC6634cYl {
private String k;
private ThirdPartyConsentFragment m;
@InterfaceC13391fZD
public C6201cLr partnerConsentPresenter;
private static final byte[] $$p = {115, -56, 28, 10};
private static final int $$q = CipherSuite.TLS_DH_anon_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int p = 0;
private static int t = 1;
/* renamed from: o, reason: collision with root package name */
private static long f7960o = -8460766263054380363L;
private static char l = 47576;
private static char s = 1799;
private static char q = 20006;
private static char r = 63991;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> 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 aC(byte r7, short r8, short r9, java.lang.Object[] r10) {
/*
int r9 = 121 - r9
byte[] r0 = com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.$$p
int r7 = r7 * 4
int r7 = r7 + 1
int r8 = r8 * 4
int r8 = r8 + 4
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L14
r3 = r7
r5 = r2
goto L29
L14:
r3 = r2
L15:
byte r4 = (byte) r9
int r5 = r3 + 1
r1[r3] = r4
if (r5 != r7) goto L24
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L24:
r3 = r0[r8]
r6 = r3
r3 = r9
r9 = r6
L29:
int r9 = -r9
int r8 = r8 + 1
int r9 = r9 + r3
r3 = r5
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.aC(byte, short, short, java.lang.Object[]):void");
}
public static Intent aml_(Context context, String str, String str2, String str3) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) ThirdPartyConsentActivity.class);
intent.putExtra("third_party_application_id", str);
intent.putExtra("third_party_transaction_id", str2);
intent.putExtra("third_party_callback_url", str3);
int i2 = p + 23;
t = i2 % 128;
int i3 = i2 % 2;
return intent;
}
private static void aA(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(f7960o ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
int i3 = $11 + 23;
while (true) {
$10 = i3 % 128;
int i4 = i3 % 2;
if (guL.a >= a.length) {
objArr[0] = new String(a, 4, a.length - 4);
return;
}
guL.c = guL.a - 4;
int i5 = guL.a;
try {
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(f7960o)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(256 - AndroidCharacter.getMirror('0'), 5 - View.MeasureSpec.getMode(0), (char) (View.MeasureSpec.makeMeasureSpec(0, 0) + 1706));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, (byte) (b2 + 2), objArr3);
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
xzZ.y.put(428080616, obj);
}
a[i5] = ((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((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 391, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 4, (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aC(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
i3 = $11 + 71;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
private static void aB(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i3 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
cArr3[i3] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i4 = $10 + 49;
$11 = i4 % 128;
int i5 = i4 % 2;
int i6 = 58224;
int i7 = i3;
while (i7 < 16) {
char c = cArr3[1];
char c2 = cArr3[i3];
int i8 = (c2 + i6) ^ ((c2 << 4) + ((char) (q ^ 41718355337583039L)));
int i9 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(r);
objArr2[2] = Integer.valueOf(i9);
objArr2[1] = Integer.valueOf(i8);
objArr2[i3] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 412, 5 - View.combineMeasuredStates(i3, i3), (char) (TextUtils.indexOf((CharSequence) "", '0', i3) + 1));
byte b = (byte) i3;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, (byte) (b2 | 55), objArr3);
String str = (String) objArr3[i3];
Class<?>[] clsArr = new Class[4];
clsArr[i3] = Integer.TYPE;
clsArr[1] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
char[] cArr4 = cArr3;
Object[] objArr4 = {Integer.valueOf(cArr3[i3]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (l ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(s)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Color.red(0) + 412, (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) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aC(b3, b4, (byte) (b4 | 55), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
i7++;
cArr3 = cArr4;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(98 - (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 - TextUtils.getOffsetAfter("", 0), (char) TextUtils.getOffsetAfter("", 0));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
aC(b5, b6, (byte) (b6 | 54), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i3 = 0;
}
String str2 = new String(cArr2, 0, i);
int i10 = $11 + 7;
$10 = i10 % 128;
if (i10 % 2 == 0) {
objArr[0] = str2;
} else {
int i11 = 50 / 0;
objArr[0] = str2;
}
}
@Override // o.AbstractActivityC11944eor, 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 onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = t + 31;
p = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aA(new char[]{46306, 46211, 51148, 52552, 29275, 26603, 59446, 40741, 51450, 61751, 13123, 33970, 58333, 42373, 8017, 45220, 13928, 19009, 60148, 27433, 6705, 32309}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.billpayment_bnpl_coin_more_detail_description_2_2).substring(0, 73).length() - 73, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new char[]{32752, 17667, 55817, 15164, 36521, 29020}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.etb_set_detail_amount_min_max_error).substring(36, 37).length() + 4, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
aB(new char[]{32159, 29836, 36908, 8266, 45529, 49967, 53461, 12581, 7271, 13476, 58877, 23234, 37020, 18971, 28128, 13796, 18215, 16981, 50606, 64913, 17112, 3176, 14479, 40891, 25622, 50184}, 26 - Drawable.resolveOpacity(0, 0), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
aB(new char[]{55302, 12654, 11938, 61981, 53943, 18483, 35555, 53164, 58465, 43052, 55947, 29263, 12485, 52009, 28128, 13796, 546, 36574}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ndid_how_to_verify_biometric_description).substring(0, 2).length() + 16, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = t + 1;
p = 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(492 - KeyEvent.normalizeMetaState(0), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
aA(new char[]{16062, 16015, 49863, 51226, 24691, 30099, 1718, 5413, 9834, 62518, 8553, 27245, 27020, 41156, 3429, 24069, 48245, 20295, 63628, 34276, 36988, 31614, 42037, 59660, 58565, 10177, 36878, 56661, 15144, 53803, 31700, 241, 3909, 65148, 10107, 29709, 25551, 43736, 4959, 23461, 46640, 20848, 65197, 36782, 35356, 32137, 43566, 62225, 57061, 10717, 38426, 9896}, ExpandableListView.getPackedPositionType(0L), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(new char[]{5056, 5029, 4111, 6791, 21837, 16559, 48699, 14430, 40672, 9983, 5125, 53951, 17653, 29184, 14427, 59096, 37130, 40411, 52662, 15719, 48470, 43441, 37128, 20876, 51691, 62731, 42288, 26066, 5635, 227, 20153, 47149, 8810, 11444, 4625, 52366, 20151, 30738, 9836, 58239, 39709, 33765, 52115, 14116, 42854, 44823, 40776, 19352, 62413, 64284, 41847, 40564, 6212, 1789, 29855, 45641, 9259, 21061, 6180, 50884, 28872, 32374, 11384, 7478, 40238, 35247, 61824, 12563}, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aA(new char[]{20638, 20735, 27168, 24818, 17006, 22410, 43195, 31575, 34870, 23681, 887, 50229, 2044, 2083, 12153, 61533, 53764, 59382, 55954, 11192, 65119, 54216, 34428, 18264, 35559, 36642, 45637, 29442, 21773, 31426, 22988, 44797, 24894, 22164, 1339, 55812, 3562, 616, 12571, 62973, 55363, 63936, 56547, 8609, 58427, 54634, 34879, 23883, 45248, 33121, 46164, 34981, 23324, 31887, 25576, 42128, 26400, 10347, 3842, 53270, 13214, 1115, 15116, 3001, 56947, 62426, 59041, 10135}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(12) + IpLibUtil.KIPP_BAD_HISTOGRAM, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aB(new char[]{20846, 8198, 10901, 24458, 22686, 37505, 48453, 46339, 21788, 4379, 18903, 29550, 43430, 53017, 21410, 18296, 6307, 38775, 31740, 23435, 29660, 34170, 22258, 21357, 757, 39792, 7695, 52156, 55943, 14293, 64111, 43155, 50360, 45168, 37905, 62140, 20255, 1431, 13113, 53258, 32880, 12764, 26382, 19630, 57158, 31482, 32880, 12764, 48954, 5645, 43430, 53017, 56419, 30191, 7271, 13476, 19853, 5045, 63724, 27499, 34048, 51853, 10495, 36990, 63427, 3060, 17438, 59592, 39260, 43610, 53943, 18483, 13672, 1558}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_outcome_pending_button_text).substring(14, 16).length() + 72, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aA(new char[]{40042, 40019, 38272, 40772, 37234, 33950, 23232, 47090, 31312}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.bond_review_purchase_page_scb_function_flow_disclaimer_next_day).substring(42, 43).length() - 1, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aA(new char[]{26830, 26795, 36800, 34123, 11236, 15874, 34201, 17154, 42259, 47467, 27308, 59717, 16307, 60876, 18160, 56696, 59988, 527, 45852, 1687, 50783, 13947, 61373, 27180, 45796, 27287, 56219, 24120, 27916, 40825, 12306, 33756, 22881, 45863, 27883, 63344, 13754, 59359, 22721, 55432}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.mw_edit_qr_amount_hint).substring(0, 11).codePointAt(2) - 36, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 488, 5 - Color.red(0), (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
setContentView(R.layout.2131558815);
ButterKnife.Dg_(this);
this.partnerConsentPresenter.e((C6201cLr) this);
super.Z();
p("");
ac();
Bundle extras = getIntent().getExtras();
if (extras != null) {
this.m = ThirdPartyConsentFragment.d();
AbstractC13482fbE a = getSupportFragmentManager().a();
a.b(R.id.fragment_container, this.m, null, 2);
a.b();
this.m.d = this;
this.k = extras.getString("third_party_transaction_id", null);
this.partnerConsentPresenter.e(this.k, extras.getString("third_party_callback_url", null));
int i5 = p + 47;
t = i5 % 128;
int i6 = i5 % 2;
}
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
int i = 2 % 2;
int i2 = t + 109;
p = i2 % 128;
if (i2 % 2 == 0) {
super.Z();
p("");
ac();
} else {
super.Z();
p("");
ac();
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x001b, code lost:
r3.m.c(r1.d, r4.a);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0019, code lost:
if (r1 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r1 != null) goto L9;
*/
@Override // o.InterfaceC6634cYl
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void e(o.C1013Ts r4) {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.t
int r1 = r1 + 85
int r2 = r1 % 128
com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.p = r2
int r1 = r1 % r0
if (r1 == 0) goto L17
o.Tp r1 = r4.i
r2 = 83
int r2 = r2 / 0
if (r1 == 0) goto L24
goto L1b
L17:
o.Tp r1 = r4.i
if (r1 == 0) goto L24
L1b:
com.scb.phone.view.activity.thirdparty.ThirdPartyConsentFragment r2 = r3.m
java.lang.String r1 = r1.d
java.lang.String r4 = r4.a
r2.c(r1, r4)
L24:
int r4 = com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.p
int r4 = r4 + 89
int r1 = r4 % 128
com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.t = r1
int r4 = r4 % r0
if (r4 != 0) goto L32
r4 = 6
int r4 = r4 / 0
L32:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.e(o.Ts):void");
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object d(Object[] objArr) {
ThirdPartyConsentActivity thirdPartyConsentActivity = (ThirdPartyConsentActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
final ThirdPartyConsentFragment thirdPartyConsentFragment = thirdPartyConsentActivity.m;
thirdPartyConsentFragment.viewHide.setVisibility(8);
thirdPartyConsentFragment.wvConsentDescription.setVisibility(0);
thirdPartyConsentFragment.wvConsentDescription.setWebChromeClient(new WebChromeClient());
thirdPartyConsentFragment.wvConsentDescription.setWebViewClient(new WebViewClient(thirdPartyConsentFragment) { // from class: com.scb.phone.view.activity.thirdparty.ThirdPartyConsentFragment.2
private ThirdPartyConsentFragment e;
/* JADX INFO: Access modifiers changed from: package-private */
{
this.e = thirdPartyConsentFragment;
}
@Override // android.webkit.WebViewClient
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
new C12941fLs().aAA_(this.e.requireContext(), sslErrorHandler);
}
@Override // android.webkit.WebViewClient
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
webView.loadUrl(webResourceRequest.getUrl().toString());
return true;
}
@Override // android.webkit.WebViewClient
public final void onPageStarted(WebView webView, String str2, Bitmap bitmap) {
super.onPageStarted(webView, str2, bitmap);
this.e.v();
}
@Override // android.webkit.WebViewClient
public final void onPageFinished(WebView webView, String str2) {
super.onPageFinished(webView, str2);
this.e.aq_();
}
});
thirdPartyConsentFragment.wvConsentDescription.getSettings().setJavaScriptEnabled(true);
thirdPartyConsentFragment.wvConsentDescription.getSettings().setDomStorageEnabled(true);
thirdPartyConsentFragment.wvConsentDescription.clearCache(true);
thirdPartyConsentFragment.wvConsentDescription.clearHistory();
thirdPartyConsentFragment.wvConsentDescription.loadUrl(str);
thirdPartyConsentFragment.wvConsentDescription.getSettings().setDomStorageEnabled(true);
int i2 = t + 41;
p = i2 % 128;
int i3 = i2 % 2;
return null;
}
@Override // o.InterfaceC6634cYl
public final void a(String str, String str2) {
int i = 2 % 2;
int i2 = p + 75;
t = i2 % 128;
if (i2 % 2 != 0) {
startActivity(SCBUniversalWebViewActivity.akh_(getBaseContext(), str, str2));
finish();
} else {
startActivity(SCBUniversalWebViewActivity.akh_(getBaseContext(), str, str2));
finish();
throw null;
}
}
@Override // o.InterfaceC6634cYl
public final void e(String str) {
int i = 2 % 2;
try {
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str)));
finish();
int i2 = t + 125;
p = i2 % 128;
int i3 = i2 % 2;
} catch (ActivityNotFoundException | NullPointerException unused) {
a();
}
}
@Override // o.InterfaceC6634cYl
public final void a() {
int i = 2 % 2;
int i2 = p + 97;
t = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
"facebook.payment".equals(this.partnerConsentPresenter.a());
throw null;
}
if ("facebook.payment".equals(this.partnerConsentPresenter.a())) {
startActivity(FacebookConsentDeepLinkActivity.amj_(this, "user_cancel", null));
int i3 = p + 11;
t = i3 % 128;
if (i3 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
Intent intent = new Intent(this, (Class<?>) SplashActivity.class);
intent.addFlags(268468224);
startActivity(intent);
finishAffinity();
int i4 = p + 45;
t = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 90 / 0;
}
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = p + 93;
t = i2 % 128;
int i3 = i2 % 2;
a();
if (i3 == 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
boolean z;
int i = 2 % 2;
if (16908332 != menuItem.getItemId()) {
return super.onOptionsItemSelected(menuItem);
}
int i2 = p + 55;
t = i2 % 128;
if (i2 % 2 == 0) {
onBackPressed();
z = false;
} else {
onBackPressed();
z = true;
}
int i3 = t + 93;
p = i3 % 128;
if (i3 % 2 == 0) {
return z;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.scb.phone.view.activity.thirdparty.ThirdPartyConsentFragment.IeS
public final void f() {
int i = 2 % 2;
int i2 = t + 45;
p = i2 % 128;
int i3 = i2 % 2;
this.partnerConsentPresenter.d(this.k, hwW.DENY_ACTION);
int i4 = t + 67;
p = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.thirdparty.ThirdPartyConsentFragment.IeS
public final void g() {
int i = 2 % 2;
int i2 = t + 103;
p = i2 % 128;
int i3 = i2 % 2;
this.partnerConsentPresenter.d(this.k, hwW.ALLOW_ACTION);
int i4 = p + 65;
t = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:28:0x0025, code lost:
r1 = new java.lang.Object[1];
aB(new char[]{32159, 29836, 36908, 8266, 45529, 49967, 53461, 12581, 7271, 13476, 58877, 23234, 37020, 18971, 28128, 13796, 18215, 16981, 50606, 64913, 17112, 3176, 14479, 40891, 25622, 50184}, android.graphics.Color.blue(0) + 26, r1);
r1 = java.lang.Class.forName((java.lang.String) r1[0]);
r9 = new java.lang.Object[1];
aB(new char[]{55302, 12654, 11938, 61981, 53943, 18483, 35555, 53164, 58465, 43052, 55947, 29263, 12485, 52009, 28128, 13796, 546, 36574}, 17 - android.text.TextUtils.indexOf((java.lang.CharSequence) "", '0', 0), r9);
r1 = (android.content.Context) r1.getMethod((java.lang.String) r9[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x0023, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001c, code lost:
if (r1 == null) goto L9;
*/
@Override // o.AbstractActivityC11944eor, 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 onResume() {
/*
Method dump skipped, instructions count: 326
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.onResume():void");
}
@Override // o.AbstractActivityC11944eor, 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;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = t + 85;
p = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aB(new char[]{32159, 29836, 36908, 8266, 45529, 49967, 53461, 12581, 7271, 13476, 58877, 23234, 37020, 18971, 28128, 13796, 18215, 16981, 50606, 64913, 17112, 3176, 14479, 40891, 25622, 50184}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new char[]{55302, 12654, 11938, 61981, 53943, 18483, 35555, 53164, 58465, 43052, 55947, 29263, 12485, 52009, 28128, 13796, 546, 36574}, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 18, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = p + 89;
t = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i6 = t + 23;
p = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - Drawable.resolveOpacity(0, 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 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(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 487, 5 - KeyEvent.keyCodeFromString(""), (char) ((Process.getThreadPriority(0) + 20) >> 6))).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();
int i8 = t + 75;
p = i8 % 128;
if (i8 % 2 != 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0063, code lost:
if (r1 > 99999) goto L6;
*/
@Override // o.AbstractActivityC11944eor, 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 r18) {
/*
Method dump skipped, instructions count: 826
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.thirdparty.ThirdPartyConsentActivity.attachBaseContext(android.content.Context):void");
}
@Override // o.AbstractActivityC11944eor, 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 = p + 65;
t = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC6634cYl
public final void d(String str) {
int i = ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 1238199629;
d(new Object[]{this, str});
}
}