what-the-bank/sources/com/scb/phone/view/activity/partner/SCBUniversalWebViewActivity...

2188 lines
95 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.partner;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
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.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.webkit.DownloadListener;
import android.webkit.SslErrorHandler;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ExpandableListView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.ImagesContract;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.tasks.Task;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.common.ThirdPartySlipActivity;
import com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity;
import com.scb.phone.view.activity.splash.SplashActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.webview.SCBWebView;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractActivityC11374eeD;
import o.C0999Ti;
import o.C11463efn;
import o.C12891fKc;
import o.C12941fLs;
import o.C14957gcv;
import o.C3527azI;
import o.C7066chK;
import o.C7105chx;
import o.C7107chz;
import o.C7134ciZ;
import o.C9257dgM;
import o.C9469dkN;
import o.InterfaceC12921fLV;
import o.InterfaceC12922fLZ;
import o.InterfaceC12938fLp;
import o.InterfaceC12954fMb;
import o.InterfaceC13391fZD;
import o.InterfaceC15577gud;
import o.InterfaceC9087ddB;
import o.InterfaceC9462dkG;
import o.InterfaceC9463dkH;
import o.QJy;
import o.QnL;
import o.RunnableC10451eEl;
import o.TK;
import o.ZI;
import o.dQY;
import o.eXH;
import o.guQ;
import o.jTb;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.bouncycastle.i18n.MessageBundle;
/* loaded from: classes5.dex */
public class SCBUniversalWebViewActivity extends AbstractActivityC11374eeD implements InterfaceC12938fLp, InterfaceC9463dkH.Sts, InterfaceC9087ddB, InterfaceC9462dkG, InterfaceC12954fMb, C9469dkN.IeS {
private String b;
private boolean k;
protected LocationManager m;
/* renamed from: o */
private boolean f7695o;
private ValueCallback<Uri[]> p;
@BindView
public SCBWebView partnerWebView;
@InterfaceC13391fZD
public C7066chK presenter;
@InterfaceC13391fZD
public C3527azI printSlipWebViewPresenter;
private GoogleSignInClient q;
private Uri r;
@InterfaceC13391fZD
public C7134ciZ scbUniversalWebViewPresenter;
@InterfaceC13391fZD
public C7105chx signinAndLocationPresenter;
private static final byte[] $$E = {35, 6, 76, ISO7816.INS_READ_RECORD2};
private static final int $$F = CipherSuite.TLS_DHE_PSK_WITH_NULL_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int C = 0;
private static int D = 1;
private static char[] t = {36787, 20449, 3852, 52919, 36553, 20074, 3480, 52599, 36181, 19684, 3166, 52349, 35836, 19204, 2727, 51908, 35441, 18828, 36799, 20470, 3901, 52908, 36546, 36787, 20449, 3852, 52919, 36553, 20074, 3480, 52599, 36187, 19687, 3072, 52227, 35791, 19208, 2736, 51912, 35444, 18838, 2348, 51532, 35010, 18459, 2142, 51180, 34571, 18083, 14407, 63500, 47340, 31041, 14645, 63899, 47742, 31470, 15036, 64273, 48106, 31666, 15387, 64764, 48454, 32062, 15771, 65127, 50246, 1090, 17581, 34051, 50482, 1477, 18028, 34505, 50941, 1883, 18358, 34749, 49177, 170, 16641, 33132, 49558, 616, 17099, 33520, 50002, 950, 17390, 35918, 52476, 3338, 19763, 36237, 52787, 3736, 20216, 36608, 53171, 4024, 18460, 34981, 51462, 2404, 18904, 35389, 51866, 2802, 19280, 35723, 52157, 5149, 21671, 38225, 54581, 5519, 22079, 38552, 55029, 5983, 22409, 38842, 53327, 4339, 20819, 37161, 53726, 4662, 21186, 37619, 3135, 52341, 35972, 19775, 3394, 36791, 20462, 3930, 52977, 36546, 20026, 3528, 52585, 36119, 19617, 3136, 52296, 35820, 19270, 2800, 51859, 35379, 18894, 2421, 51540, 35060, 18454, 2127, 51108, 34648, 18084, 1682, 50812, 34249, 17726, 1367, 50340, 33862, 17434, 953, 49920};
private static long x = -454963005019172977L;
private static char u = 61672;
private static char y = 27714;
private static char v = 32966;
private static char w = 36877;
private final LocationListener s = new RVV(this, (byte) 0);
private boolean l = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002d). 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 aL(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.$$E
int r8 = r8 * 4
int r1 = 1 - r8
int r7 = r7 * 3
int r7 = 3 - r7
int r6 = 106 - r6
byte[] r1 = new byte[r1]
r2 = 0
int r8 = 0 - r8
if (r0 != 0) goto L16
r3 = r7
r4 = r2
goto L2d
L16:
r3 = r2
L17:
int r7 = r7 + 1
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r8) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L28:
r3 = r0[r7]
r5 = r3
r3 = r7
r7 = r5
L2d:
int r6 = r6 + r7
r7 = r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.aL(byte, byte, byte, java.lang.Object[]):void");
}
public static /* synthetic */ Object h(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~i3;
switch ((i * 302) + (i2 * 603) + (((~(i4 | i5)) | i2) * (-602)) + (((~(i | i5 | i2)) | (~(i3 | i4)) | (~((~i2) | i4))) * (-301)) + ((~(i5 | i2)) * 301)) {
case 1:
return d(objArr);
case 2:
return e(objArr);
case 3:
return a(objArr);
case 4:
int i6 = 2 % 2;
int i7 = C + 99;
D = i7 % 128;
int i8 = i7 % 2;
guQ.b("showDeniedForChooser", new Object[0]);
int i9 = D + 95;
C = i9 % 128;
int i10 = i9 % 2;
return null;
case 5:
return b(objArr);
case 6:
return g(objArr);
case 7:
return f(objArr);
case 8:
return j(objArr);
default:
return c(objArr);
}
}
private static void aJ(int i, int i2, char c, Object[] objArr) {
int i3 = 2;
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i5 = $10 + 31;
$11 = i5 % 128;
if (i5 % i3 == 0) {
int i6 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(t[i >>> dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 309, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (View.getDefaultSize(0, 0) + 32797));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
aL((byte) 8, b, b, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(x), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Process.getGidForName("") + 413, View.combineMeasuredStates(0, 0) + 5, (char) Color.green(0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
aL((byte) ($$E[1] + 1), b2, b2, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 407, (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) (29235 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr7 = new Object[1];
aL(b3, b4, b4, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
} else {
int i7 = dqy.a;
try {
Object[] objArr8 = {Integer.valueOf(t[i + dqy.a])};
Object obj4 = xzZ.y.get(1095064095);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 309, 4 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (char) (View.MeasureSpec.getSize(0) + 32797));
byte b5 = (byte) 0;
Object[] objArr9 = new Object[1];
aL((byte) 8, b5, b5, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
xzZ.y.put(1095064095, obj4);
}
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(x), Integer.valueOf(c)};
Object obj5 = xzZ.y.get(-548438098);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(411 - ImageFormat.getBitsPerPixel(0), 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) ExpandableListView.getPackedPositionType(0L));
byte b6 = (byte) 0;
Object[] objArr11 = new Object[1];
aL((byte) ($$E[1] + 1), b6, b6, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj5);
}
jArr[i7] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
Object[] objArr12 = {dqy, dqy};
Object obj6 = xzZ.y.get(1071125919);
if (obj6 == null) {
Class cls6 = (Class) xzZ.c(407 - TextUtils.getCapsMode("", 0, 0), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (29233 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr13 = new Object[1];
aL(b7, b8, b8, objArr13);
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj6);
}
((Method) obj6).invoke(null, objArr12);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
i3 = 2;
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i8 = $10 + 3;
$11 = i8 % 128;
int i9 = i8 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr14 = {dqy, dqy};
Object obj7 = xzZ.y.get(1071125919);
if (obj7 == null) {
Class cls7 = (Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 407, TextUtils.indexOf("", "") + 5, (char) (29234 - (ViewConfiguration.getScrollBarFadeDuration() >> 16)));
byte b9 = (byte) 0;
byte b10 = b9;
Object[] objArr15 = new Object[1];
aL(b9, b10, b10, objArr15);
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj7);
}
((Method) obj7).invoke(null, objArr14);
}
objArr[0] = new String(cArr);
}
private static void aK(char[] cArr, int i, Object[] objArr) {
int i2 = 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) {
int i3 = $11 + 125;
$10 = i3 % 128;
int i4 = i3 % 2;
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i5 = $11 + 123;
$10 = i5 % 128;
int i6 = i5 % 2;
int i7 = 58224;
for (int i8 = 0; i8 < 16; i8++) {
char c = cArr3[1];
char c2 = cArr3[0];
try {
Object[] objArr2 = {Integer.valueOf(c), Integer.valueOf((c2 + i7) ^ ((c2 << 4) + ((char) (v ^ 41718355337583039L)))), Integer.valueOf(c2 >>> 5), Integer.valueOf(w)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(413 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), TextUtils.getTrimmedLength("") + 5, (char) ((-1) - ExpandableListView.getPackedPositionChild(0L)));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
aL((byte) 40, b, b, 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 + i7) ^ ((charValue << 4) + ((char) (u ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(y)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 412, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, (char) TextUtils.getTrimmedLength(""));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
aL((byte) 40, b2, b2, 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();
i7 -= 40503;
} 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((Process.myPid() >> 22) + 98, View.getDefaultSize(0, 0) + 5, (char) TextUtils.getOffsetBefore("", 0));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
aL((byte) 39, b3, b3, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr2, 0, i);
}
public static Intent akg_(Context context, String str) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) SCBUniversalWebViewActivity.class);
intent.putExtra(ImagesContract.URL, str);
int i2 = D + 65;
C = i2 % 128;
if (i2 % 2 == 0) {
return intent;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static Intent akh_(Context context, String str, String str2) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) SCBUniversalWebViewActivity.class);
intent.putExtra(ImagesContract.URL, str);
intent.putExtra(MessageBundle.TITLE_ENTRY, str2);
int i2 = C + 37;
D = i2 % 128;
if (i2 % 2 != 0) {
return intent;
}
throw null;
}
private static /* synthetic */ Object a(Object[] objArr) {
Context context = (Context) objArr[0];
String str = (String) objArr[1];
String str2 = (String) objArr[2];
Boolean bool = (Boolean) objArr[3];
Boolean bool2 = (Boolean) objArr[4];
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) SCBUniversalWebViewActivity.class);
intent.putExtra(ImagesContract.URL, str);
intent.putExtra(MessageBundle.TITLE_ENTRY, str2);
intent.putExtra("isShowBackButton", bool);
intent.putExtra("EXTRA_IS_BACK_PREVIOUS", bool2);
int i2 = C + 15;
D = i2 % 128;
if (i2 % 2 != 0) {
return intent;
}
throw null;
}
private static /* synthetic */ Object e(Object[] objArr) {
Context context = (Context) objArr[0];
String str = (String) objArr[1];
String str2 = (String) objArr[2];
Boolean bool = (Boolean) objArr[3];
Boolean bool2 = (Boolean) objArr[4];
boolean booleanValue = ((Boolean) objArr[5]).booleanValue();
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) SCBUniversalWebViewActivity.class);
intent.putExtra(ImagesContract.URL, str);
intent.putExtra(MessageBundle.TITLE_ENTRY, str2);
intent.putExtra("isShowBackButton", bool);
intent.putExtra("EXTRA_IS_BACK_PREVIOUS", bool2);
intent.putExtra("EXTRA_IS_SHOW_NAVBAR", booleanValue);
int i2 = C + 113;
D = i2 % 128;
if (i2 % 2 != 0) {
return intent;
}
throw null;
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$3 */
/* loaded from: classes5.dex */
public final class AnonymousClass3 extends WebViewClient {
private SCBUniversalWebViewActivity e;
AnonymousClass3(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.e = sCBUniversalWebViewActivity;
}
@Override // android.webkit.WebViewClient
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
new C12941fLs().aAA_(this.e, sslErrorHandler);
}
@Override // android.webkit.WebViewClient
public final void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
if (SCBUniversalWebViewActivity.d(this.e).equalsIgnoreCase(webResourceRequest.getUrl().toString())) {
this.e.aC_();
}
}
@Override // android.webkit.WebViewClient
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
String obj = webResourceRequest.getUrl().toString();
webView.clearCache(true);
if (obj.startsWith("https://play.google.com/store/apps") || obj.startsWith("market://")) {
SCBUniversalWebViewActivity.d(this.e, obj, false);
} else if (obj.startsWith("http")) {
webView.loadUrl(obj);
} else {
C7066chK c7066chK = this.e.presenter;
if (C7066chK.b(obj)) {
this.e.presenter.e(obj, ((Boolean) SCBUniversalWebViewActivity.h(new Object[]{this.e}, 825069153, -825069147, (int) System.currentTimeMillis())).booleanValue());
} else {
if (obj.startsWith("intent:")) {
try {
Intent parseUri = Intent.parseUri(obj, 1);
if (this.e.getPackageManager().resolveActivity(parseUri, 65536) != null) {
this.e.startActivity(parseUri);
}
return true;
} catch (URISyntaxException e) {
guQ.e(e);
return false;
}
}
SCBUniversalWebViewActivity.d(this.e, obj, true);
}
}
return true;
}
@Override // android.webkit.WebViewClient
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
webView.clearCache(true);
super.onPageStarted(webView, str, bitmap);
this.e.v();
}
@Override // android.webkit.WebViewClient
public final void onPageFinished(WebView webView, String str) {
this.e.aq_();
super.onPageFinished(webView, str);
}
}
@Override // o.AbstractActivityC11374eeD, 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) {
boolean z;
boolean z2;
String str;
int i = 2 % 2;
int i2 = D + 61;
C = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.landing_percentage).substring(0, 6).length() + 12, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_external_authentication_ota_field_error).substring(12, 13).codePointAt(0) - 32), 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) {
int i4 = D + 11;
C = i4 % 128;
int i5 = i4 % 2;
Object[] objArr3 = new Object[1];
aJ((KeyEvent.getMaxKeyCode() >> 16) + 23, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(0) - 73, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(5) - 99), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
aJ(TextUtils.indexOf((CharSequence) "", '0') + 50, 18 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (47093 - ExpandableListView.getPackedPositionChild(0L)), objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i6 = C + 109;
D = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getLongPressTimeout() >> 16), 5 - TextUtils.indexOf("", ""), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
aK(new char[]{55726, 16883, 39602, 32555, 61398, 19995, 51586, 14389, 631, 64679, 9182, 9028, 25844, 59359, 59580, 20587, 5592, 20183, 9064, 49091, 26624, 20665, 37944, 51835, 7248, 64037, 1670, 50803, 20841, 46574, 64899, 19413, 7761, 19114, 61116, 63362, 58664, 5730, 10503, 15005, 47917, 44581, 22811, 58546, 1366, 57166, 132, 23748}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 14, objArr5);
String str2 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aK(new char[]{19469, 25145, 19303, 39967, 38370, 50958, 58631, 40590, 19208, 36159, 41766, 31798, 41766, 31798, 7036, 1394, 20477, 53082, 18629, 43266, 34895, 32538, 23362, 64078, 1406, 14097, 41574, 3721, 10943, 12107, 10442, 16585, 20179, 16840, 10962, 36053, 1773, 35737, 10503, 15005, 38370, 50958, 36732, 60002, 64659, 62482, 38370, 50958, 60945, 5763, 13121, 54375, 1366, 57166, 5401, 45732, 3048, 57922, 14678, 34008, 38370, 50958, 55205, 35353}, (ViewConfiguration.getFadingEdgeLength() >> 16) + 64, objArr6);
String str3 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 33, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.successful_qr_code_transfer_description).substring(13, 14).codePointAt(0) + 32, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 19411), objArr7);
String str4 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aK(new char[]{8995, 22060, 44201, 46043, 6659, 35351, 39026, 38446, 54444, 6487, 16851, 37275, 8985, 53430, 31122, 50636, 64038, 471, 51325, 32930, 59664, 33463, 47457, 16655, 15249, 61759, 2545, 42849, 49238, 17052, 48955, 30000, 64147, 49563, 35997, 28536, 43992, 56698, 50600, 41626, 63485, 39745, 59772, 46805, 31486, 62171, 63485, 39745, 15220, 23130, 8985, 53430, 26434, 22325, 59416, 38360, 12762, 40972, 3183, 5853, 34653, 44679, 61273, 5055, 16936, 47622, 61980, 21838, 23943, 52081, 26299, 38182, 49200, 58590}, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 74, objArr8);
String str5 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 118, 5 - (ViewConfiguration.getJumpTapTimeout() >> 16), (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.successful_qr_code_transfer_description).substring(13, 14).codePointAt(0) + 33716), objArr9);
String str6 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_robo_advisor_open_scbs_account_stop_3).substring(0, 1).length() + 135, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_issuer_input_error_character).substring(47, 48).codePointAt(0) + 4, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr10);
Object[] objArr11 = {baseContext, str2, str3, str4, str5, true, str6, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 486, 5 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (ViewConfiguration.getPressedStateDuration() >> 16))).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);
this.scbUniversalWebViewPresenter.e((C7134ciZ) this);
C7134ciZ c7134ciZ = this.scbUniversalWebViewPresenter;
Bundle extras = getIntent().getExtras();
ZI.IeS ieS = new ZI.IeS(extras != null && extras.getBoolean("EXTRA_IS_FROM_PRIVACY_MANAGEMENT_LANDING", false)) { // from class: o.cjb
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C7134ciZ.e(this.e, (C9469dkN.IeS) obj3);
}
{
this.e = r1;
}
};
if (!(!(c7134ciZ.f != 0))) {
ieS.e(c7134ciZ.f);
}
setContentView(R.layout.2131558713);
ButterKnife.Dg_(this);
Z();
if (getIntent().getExtras() != null) {
str = getIntent().getExtras().getString(MessageBundle.TITLE_ENTRY, "");
z2 = getIntent().getBooleanExtra("isShowBackButton", false);
z = true;
this.l = getIntent().getBooleanExtra("EXTRA_IS_BACK_PREVIOUS", true);
} else {
z = true;
z2 = false;
str = "";
}
p(str);
C7134ciZ c7134ciZ2 = this.scbUniversalWebViewPresenter;
Bundle extras2 = getIntent().getExtras();
ZI.IeS ieS2 = new ZI.IeS((extras2 == null || !extras2.getBoolean("EXTRA_IS_SHOW_NAVBAR", z)) ? false : z) { // from class: o.cjg
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C7134ciZ.a(this.c, (C9469dkN.IeS) obj3);
}
{
this.c = r1;
}
};
if (c7134ciZ2.f != 0) {
int i8 = D + 5;
C = i8 % 128;
if (i8 % 2 != 0) {
ieS2.e(c7134ciZ2.f);
Object obj3 = null;
obj3.hashCode();
throw null;
}
ieS2.e(c7134ciZ2.f);
}
this.presenter.e((C7066chK) this);
this.printSlipWebViewPresenter.e((C3527azI) this);
this.signinAndLocationPresenter.e((C7105chx) this);
C7134ciZ c7134ciZ3 = this.scbUniversalWebViewPresenter;
ZI.IeS ieS3 = new ZI.IeS(z2) { // from class: o.cji
private boolean b;
@Override // o.ZI.IeS
public final void e(Object obj4) {
C7134ciZ.d(this.b, (C9469dkN.IeS) obj4);
}
{
this.b = z2;
}
};
if (c7134ciZ3.f != 0) {
int i9 = D;
int i10 = i9 + 107;
C = i10 % 128;
int i11 = i10 % 2;
int i12 = i9 + 89;
C = i12 % 128;
if (i12 % 2 != 0) {
ieS3.e(c7134ciZ3.f);
throw null;
}
ieS3.e(c7134ciZ3.f);
}
this.k = getIntent().getExtras().getBoolean("IS_NEED_HISTORY_STACK", false);
if (getIntent().getExtras() != null) {
int i13 = C + 55;
D = i13 % 128;
int i14 = i13 % 2;
this.b = getIntent().getExtras().getString(ImagesContract.URL, "");
} else {
this.b = "";
}
if (C7066chK.b(this.b)) {
this.presenter.e(this.b, this.k);
} else {
e_(this.b);
}
}
private static /* synthetic */ Object j(Object[] objArr) {
SCBUniversalWebViewActivity sCBUniversalWebViewActivity = (SCBUniversalWebViewActivity) objArr[0];
int i = 2 % 2;
int i2 = D + 3;
C = i2 % 128;
int i3 = i2 % 2;
if (sCBUniversalWebViewActivity.mToolbar == null) {
return null;
}
sCBUniversalWebViewActivity.mToolbar.setVisibility(8);
int i4 = D + 77;
C = i4 % 128;
int i5 = i4 % 2;
return null;
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$1 */
/* loaded from: classes5.dex */
public final class AnonymousClass1 extends WebChromeClient {
private SCBUniversalWebViewActivity a;
AnonymousClass1(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.a = sCBUniversalWebViewActivity;
}
@Override // android.webkit.WebChromeClient
public final boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> valueCallback, WebChromeClient.FileChooserParams fileChooserParams) {
if (SCBUniversalWebViewActivity.akd_(this.a) != null) {
SCBUniversalWebViewActivity.akd_(this.a).onReceiveValue(null);
}
SCBUniversalWebViewActivity.ake_(this.a, valueCallback);
if (SCBUniversalWebViewActivity.P()) {
C11463efn.e(this.a);
return true;
}
C11463efn.d(this.a);
return true;
}
}
@Override // o.AbstractActivityC11374eeD, 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();
Object obj = null;
if (baseContext == null) {
Object[] objArr = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 11, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.isprint_force_set_new_pin_message).substring(22, 23).codePointAt(0) - 6, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.contact_info_laser_id_description).substring(14, 15).length() - 1), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.app_account_deletion_time_out_message).substring(100, 101).codePointAt(0) + 17, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.juristic_resend_starting_pin).substring(7, 21).codePointAt(7) - 92, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.debit_card_banking_action).substring(18, 19).length() + 47093), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i2 = C + 19;
D = i2 % 128;
try {
if (i2 % 2 != 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) (ViewConfiguration.getEdgeSlop() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - (ViewConfiguration.getDoubleTapTimeout() >> 16), TextUtils.getCapsMode("", 0, 0) + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} else {
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 492, 5 - Color.argb(0, 0, 0, 0), (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj5 = xzZ.y.get(1378719468);
if (obj5 == null) {
obj5 = ((Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> 16) + 487, 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (ViewConfiguration.getTouchSlop() >> 8))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj5);
}
((Method) obj5).invoke(invoke2, objArr4);
throw null;
}
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
if (this.f7695o) {
int i3 = C + 41;
D = i3 % 128;
if (i3 % 2 != 0) {
SplashActivity.b(new Object[]{this}, 1199803597, -1199803588, (int) System.currentTimeMillis());
} else {
SplashActivity.b(new Object[]{this}, 1199803597, -1199803588, (int) System.currentTimeMillis());
obj.hashCode();
throw null;
}
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public void onDestroy() {
int i = 2 % 2;
int i2 = C + 93;
D = i2 % 128;
if (i2 % 2 == 0) {
super.onDestroy();
this.partnerWebView.removeJavascriptInterface("WebviewJS");
this.partnerWebView.destroy();
this.signinAndLocationPresenter.w_();
int i3 = 1 / 0;
} else {
super.onDestroy();
this.partnerWebView.removeJavascriptInterface("WebviewJS");
this.partnerWebView.destroy();
this.signinAndLocationPresenter.w_();
}
int i4 = D + 121;
C = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 39 / 0;
}
}
public void aC_() {
SCBWebView sCBWebView;
int i;
int i2 = 2 % 2;
int i3 = C + 89;
D = i3 % 128;
if (i3 % 2 == 0) {
sCBWebView = this.partnerWebView;
i = 60;
} else {
sCBWebView = this.partnerWebView;
i = 8;
}
sCBWebView.setVisibility(i);
int i4 = C + 81;
D = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 57 / 0;
}
}
protected void e_(String str) {
int i = 2 % 2;
this.partnerWebView.setWebViewClient(new WebViewClient(this) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.3
private SCBUniversalWebViewActivity e;
AnonymousClass3(SCBUniversalWebViewActivity this) {
this.e = this;
}
@Override // android.webkit.WebViewClient
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
new C12941fLs().aAA_(this.e, sslErrorHandler);
}
@Override // android.webkit.WebViewClient
public final void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
if (SCBUniversalWebViewActivity.d(this.e).equalsIgnoreCase(webResourceRequest.getUrl().toString())) {
this.e.aC_();
}
}
@Override // android.webkit.WebViewClient
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
String obj = webResourceRequest.getUrl().toString();
webView.clearCache(true);
if (obj.startsWith("https://play.google.com/store/apps") || obj.startsWith("market://")) {
SCBUniversalWebViewActivity.d(this.e, obj, false);
} else if (obj.startsWith("http")) {
webView.loadUrl(obj);
} else {
C7066chK c7066chK = this.e.presenter;
if (C7066chK.b(obj)) {
this.e.presenter.e(obj, ((Boolean) SCBUniversalWebViewActivity.h(new Object[]{this.e}, 825069153, -825069147, (int) System.currentTimeMillis())).booleanValue());
} else {
if (obj.startsWith("intent:")) {
try {
Intent parseUri = Intent.parseUri(obj, 1);
if (this.e.getPackageManager().resolveActivity(parseUri, 65536) != null) {
this.e.startActivity(parseUri);
}
return true;
} catch (URISyntaxException e) {
guQ.e(e);
return false;
}
}
SCBUniversalWebViewActivity.d(this.e, obj, true);
}
}
return true;
}
@Override // android.webkit.WebViewClient
public final void onPageStarted(WebView webView, String str2, Bitmap bitmap) {
webView.clearCache(true);
super.onPageStarted(webView, str2, bitmap);
this.e.v();
}
@Override // android.webkit.WebViewClient
public final void onPageFinished(WebView webView, String str2) {
this.e.aq_();
super.onPageFinished(webView, str2);
}
});
this.partnerWebView.setDownloadListener(new DownloadListener(this) { // from class: o.efg
private SCBUniversalWebViewActivity b;
@Override // android.webkit.DownloadListener
public final void onDownloadStart(String str2, String str3, String str4, String str5, long j) {
SCBUniversalWebViewActivity.b(this.b, str2);
}
{
this.b = this;
}
});
this.partnerWebView.setAdvanceWebView(this, new WebChromeClient(this) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.1
private SCBUniversalWebViewActivity a;
AnonymousClass1(SCBUniversalWebViewActivity this) {
this.a = this;
}
@Override // android.webkit.WebChromeClient
public final boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> valueCallback, WebChromeClient.FileChooserParams fileChooserParams) {
if (SCBUniversalWebViewActivity.akd_(this.a) != null) {
SCBUniversalWebViewActivity.akd_(this.a).onReceiveValue(null);
}
SCBUniversalWebViewActivity.ake_(this.a, valueCallback);
if (SCBUniversalWebViewActivity.P()) {
C11463efn.e(this.a);
return true;
}
C11463efn.d(this.a);
return true;
}
});
this.partnerWebView.getSettings().setUseWideViewPort(true);
this.partnerWebView.getSettings().setLoadWithOverviewMode(true);
this.partnerWebView.getSettings().setMediaPlaybackRequiresUserGesture(!C14957gcv.b((Object) this.presenter.a.e.d.b(), (Object) "debenture"));
this.partnerWebView.setJavascriptInterface(new InterfaceC12921fLV(this) { // from class: o.efi
private SCBUniversalWebViewActivity d;
@Override // o.InterfaceC12921fLV
public final void e(String str2, String str3) {
this.d.b(str2, str3);
}
{
this.d = this;
}
}, "WebviewJS");
SCBWebView sCBWebView = this.partnerWebView;
if (str != null) {
int i2 = C + 123;
D = i2 % 128;
int i3 = i2 % 2;
sCBWebView.loadUrl(str);
}
int i4 = D + 1;
C = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC12954fMb
public final Integer N() {
int i = 2 % 2;
int i2 = C + 29;
D = i2 % 128;
int i3 = i2 % 2;
int i4 = C + 11;
D = i4 % 128;
if (i4 % 2 != 0) {
return 100;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC12954fMb
public final Boolean K_() {
int i = 2 % 2;
int i2 = C + 71;
D = i2 % 128;
int i3 = i2 % 2;
Boolean bool = Boolean.TRUE;
int i4 = C + 43;
D = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 76 / 0;
}
return bool;
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$4 */
/* loaded from: classes5.dex */
public final class AnonymousClass4 implements InterfaceC12922fLZ {
private SCBUniversalWebViewActivity b;
AnonymousClass4(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.b = sCBUniversalWebViewActivity;
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "requestExternalLoginCallback";
}
}
private void c(String str, boolean z) {
int i = 2 % 2;
try {
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str));
intent.addFlags(268435456);
startActivity(intent);
this.f7695o = z;
int i2 = C + 121;
D = i2 % 128;
if (i2 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
} catch (ActivityNotFoundException e) {
this.f7695o = false;
guQ.e(e);
}
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
if (this.partnerWebView.canGoBack()) {
int i2 = C + 25;
D = i2 % 128;
int i3 = i2 % 2;
this.partnerWebView.goBack();
return;
}
super.onBackPressed();
int i4 = C + 103;
D = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onActivityResult(int i, int i2, Intent intent) {
Uri[] uriArr;
Uri uri;
GoogleSignInAccount googleSignInAccount;
int i3 = 2 % 2;
super.onActivityResult(i, i2, intent);
Object obj = null;
if (i != 4432) {
if (i != 4434 || this.p == null) {
return;
}
if (i2 == -1) {
if (intent == null || intent.getDataString() == null) {
uri = this.r;
if (uri != null) {
int i4 = D + 123;
C = i4 % 128;
if (i4 % 2 != 0) {
Uri[] uriArr2 = new Uri[0];
uriArr2[0] = uri;
uriArr = uriArr2;
this.p.onReceiveValue(uriArr);
this.p = null;
return;
}
}
} else {
uri = Uri.parse(intent.getDataString());
}
uriArr = new Uri[]{uri};
this.p.onReceiveValue(uriArr);
this.p = null;
return;
}
uriArr = null;
this.p.onReceiveValue(uriArr);
this.p = null;
return;
}
if (i2 != -1) {
this.signinAndLocationPresenter.a();
return;
}
int i5 = C + 123;
D = i5 % 128;
int i6 = i5 % 2;
Task<GoogleSignInAccount> signedInAccountFromIntent = GoogleSignIn.getSignedInAccountFromIntent(intent);
C7105chx c7105chx = this.signinAndLocationPresenter;
String string = getString(R.string.default_web_client_id);
C14957gcv.e(signedInAccountFromIntent, "");
C14957gcv.e(string, "");
try {
googleSignInAccount = signedInAccountFromIntent.getResult(ApiException.class);
} catch (ApiException unused) {
googleSignInAccount = null;
}
if (googleSignInAccount == null) {
c7105chx.a();
return;
}
C7107chz c7107chz = new C7107chz();
if (c7105chx.f != 0) {
c7107chz.e(c7105chx.f);
}
c7105chx.a = googleSignInAccount.getEmail();
String serverAuthCode = googleSignInAccount.getServerAuthCode();
if (serverAuthCode != null) {
int i7 = D + 51;
C = i7 % 128;
if (i7 % 2 != 0) {
T t2 = c7105chx.f;
obj.hashCode();
throw null;
}
if (c7105chx.f != 0) {
c7105chx.f.y();
} else {
int i8 = D + 87;
C = i8 % 128;
int i9 = i8 % 2;
}
c7105chx.d.a(serverAuthCode, string);
QnL qnL = c7105chx.d;
qnL.d(qnL.i, new C7105chx.IeS(c7105chx));
}
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$5 */
/* loaded from: classes5.dex */
final class AnonymousClass5 implements InterfaceC12922fLZ {
private SCBUniversalWebViewActivity d;
AnonymousClass5(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.d = sCBUniversalWebViewActivity;
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "getCurrentLocationCallback";
}
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
int i2 = 2 % 2;
int i3 = C + 31;
D = i3 % 128;
if (i3 % 2 != 0) {
super.onRequestPermissionsResult(i, strArr, iArr);
C11463efn.d(this, i, iArr);
} else {
super.onRequestPermissionsResult(i, strArr, iArr);
C11463efn.d(this, i, iArr);
throw null;
}
}
@Override // o.InterfaceC12938fLp
public final void M_() {
int i = 2 % 2;
int i2 = D + 99;
C = i2 % 128;
int i3 = i2 % 2;
onBackPressed();
int i4 = D + 97;
C = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9463dkH.Sts
public final void h(String str) {
int i = 2 % 2;
try {
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str)).addFlags(268435456));
C7066chK c7066chK = this.presenter;
if (!this.l) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.chM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9463dkH.Sts) obj).ay_();
}
};
if (c7066chK.f != 0) {
int i2 = C;
int i3 = i2 + 13;
D = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 9;
D = i5 % 128;
int i6 = i5 % 2;
ieS.e(c7066chK.f);
}
}
int i7 = C + 119;
D = i7 % 128;
if (i7 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
} catch (ActivityNotFoundException e) {
guQ.e(e);
}
}
@Override // o.InterfaceC9463dkH.Sts
public final void f(String str) {
int i = 2 % 2;
int i2 = C + 61;
D = i2 % 128;
c(str, i2 % 2 != 0);
}
@Override // o.InterfaceC9087ddB
public final void j_(String str) {
int i = 2 % 2;
int i2 = C + 13;
D = i2 % 128;
int i3 = i2 % 2;
startActivity(ThirdPartySlipActivity.aaC_(this, str, QJy.DISPLAY));
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$2 */
/* loaded from: classes5.dex */
final class AnonymousClass2 implements InterfaceC12922fLZ {
private SCBUniversalWebViewActivity c;
AnonymousClass2(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.c = sCBUniversalWebViewActivity;
}
@Override // o.InterfaceC12922fLZ
public final String d(String str) {
StringBuilder sb = new StringBuilder("javascript:");
sb.append(d());
sb.append(".onInitChannelCode(");
sb.append(str);
sb.append(")");
return sb.toString();
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "onInitChannelCode";
}
}
@Override // o.InterfaceC9087ddB
public final void Q_() {
int i = 2 % 2;
Intent intent = new Intent(this, (Class<?>) HomeActivity.class);
intent.addFlags(603979776);
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.landing_page_tab);
startActivity(intent);
finish();
int i2 = D + 59;
C = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9623dnJ
public final void o(String str) {
int i = 2 % 2;
int i2 = C + 81;
D = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
SCBWebView sCBWebView = this.partnerWebView;
if (str != null) {
sCBWebView.loadUrl(str);
}
int i3 = D + 15;
C = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC9462dkG
public final void e(List<String> list) {
int i = 2 % 2;
ArrayList arrayList = new ArrayList();
if (list != null) {
int i2 = C + 93;
D = i2 % 128;
int i3 = i2 % 2;
for (int i4 = 0; i4 < list.size(); i4++) {
arrayList.add(new Scope(list.get(i4)));
}
}
GoogleSignInClient client = GoogleSignIn.getClient((Activity) this, new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestIdToken(getResources().getString(R.string.default_web_client_id)).requestServerAuthCode(getResources().getString(R.string.default_web_client_id), true).requestEmail().requestScopes(new Scope("email"), (Scope[]) arrayList.toArray(new Scope[0])).build());
this.q = client;
startActivityForResult(client.getSignInIntent(), 4432);
int i5 = C + 25;
D = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 61 / 0;
}
}
/* renamed from: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity$9 */
/* loaded from: classes5.dex */
final class AnonymousClass9 implements InterfaceC12922fLZ {
private SCBUniversalWebViewActivity b;
AnonymousClass9(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.b = sCBUniversalWebViewActivity;
}
@Override // o.InterfaceC12922fLZ
public final String d(String str) {
return String.format(a(), "window.j4u", "onReceivedPreferences", str);
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "onReceivedPreferences";
}
}
private static /* synthetic */ Object b(Object[] objArr) {
SCBUniversalWebViewActivity sCBUniversalWebViewActivity = (SCBUniversalWebViewActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
SCBWebView sCBWebView = sCBUniversalWebViewActivity.partnerWebView;
AnonymousClass4 anonymousClass4 = new InterfaceC12922fLZ(sCBUniversalWebViewActivity) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.4
private SCBUniversalWebViewActivity b;
AnonymousClass4(SCBUniversalWebViewActivity sCBUniversalWebViewActivity2) {
this.b = sCBUniversalWebViewActivity2;
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "requestExternalLoginCallback";
}
};
C14957gcv.e(anonymousClass4, "");
C14957gcv.e(str, "");
sCBWebView.post(new RunnableC10451eEl(str, anonymousClass4, sCBWebView));
int i2 = D + 73;
C = i2 % 128;
int i3 = i2 % 2;
return null;
}
@Override // o.InterfaceC9462dkG
public final void L_() {
int i = 2 % 2;
int i2 = D;
int i3 = i2 + 11;
C = i3 % 128;
int i4 = i3 % 2;
GoogleSignInClient googleSignInClient = this.q;
if (googleSignInClient != null) {
int i5 = i2 + 105;
C = i5 % 128;
int i6 = i5 % 2;
googleSignInClient.signOut();
}
}
public final void M() {
int i = 2 % 2;
try {
LocationManager locationManager = (LocationManager) getSystemService("location");
this.m = locationManager;
locationManager.requestLocationUpdates("gps", 5000L, BitmapDescriptorFactory.HUE_RED, this.s);
this.m.requestLocationUpdates("network", 5000L, BitmapDescriptorFactory.HUE_RED, this.s);
} catch (SecurityException unused) {
C7105chx c7105chx = this.signinAndLocationPresenter;
boolean z = false;
ZI.IeS ieS = new ZI.IeS(c7105chx.e.toJson(new C0999Ti(false, null, null, new TK("invalidMessage", "ERROR")))) { // from class: o.chA
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7105chx.c(this.e, (InterfaceC9462dkG) obj);
}
{
this.e = r1;
}
};
if (c7105chx.f != 0) {
z = true;
} else {
int i2 = C + 31;
D = i2 % 128;
int i3 = i2 % 2;
}
if (!z) {
return;
}
ieS.e(c7105chx.f);
int i4 = D + 97;
C = i4 % 128;
int i5 = i4 % 2;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public class RVV implements LocationListener {
private SCBUniversalWebViewActivity b;
@Override // android.location.LocationListener
public final void onProviderDisabled(String str) {
}
@Override // android.location.LocationListener
public final void onProviderEnabled(String str) {
}
@Override // android.location.LocationListener
public final void onStatusChanged(String str, int i, Bundle bundle) {
}
private RVV(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
this.b = sCBUniversalWebViewActivity;
}
@Override // android.location.LocationListener
public final void onLocationChanged(Location location) {
this.b.m.removeUpdates(SCBUniversalWebViewActivity.akc_(this.b));
this.b.signinAndLocationPresenter.d(String.valueOf(location.getLatitude()), String.valueOf(location.getLongitude()));
}
/* synthetic */ RVV(SCBUniversalWebViewActivity sCBUniversalWebViewActivity, byte b) {
this(sCBUniversalWebViewActivity);
}
}
@Override // o.InterfaceC9462dkG
public final void n(String str) {
int i = 2 % 2;
SCBWebView sCBWebView = this.partnerWebView;
AnonymousClass5 anonymousClass5 = new InterfaceC12922fLZ(this) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.5
private SCBUniversalWebViewActivity d;
AnonymousClass5(SCBUniversalWebViewActivity this) {
this.d = this;
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "getCurrentLocationCallback";
}
};
C14957gcv.e(anonymousClass5, "");
C14957gcv.e(str, "");
sCBWebView.post(new RunnableC10451eEl(str, anonymousClass5, sCBWebView));
int i2 = D + 25;
C = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object c(Object[] objArr) {
SCBUniversalWebViewActivity sCBUniversalWebViewActivity = (SCBUniversalWebViewActivity) objArr[0];
int i = 2 % 2;
int i2 = C + 37;
D = i2 % 128;
int i3 = i2 % 2;
C11463efn.b(sCBUniversalWebViewActivity);
if (i3 != 0) {
return null;
}
int i4 = 29 / 0;
return null;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Removed duplicated region for block: B:35:0x0101 */
/* JADX WARN: Removed duplicated region for block: B:57:0x0156 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void b(java.lang.String r9, java.lang.String r10) {
/*
Method dump skipped, instructions count: 696
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.b(java.lang.String, java.lang.String):void");
}
@Override // o.InterfaceC9463dkH.Sts
public final void g(String str) {
int i = 2 % 2;
SCBWebView sCBWebView = this.partnerWebView;
AnonymousClass2 anonymousClass2 = new InterfaceC12922fLZ(this) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.2
private SCBUniversalWebViewActivity c;
AnonymousClass2(SCBUniversalWebViewActivity this) {
this.c = this;
}
@Override // o.InterfaceC12922fLZ
public final String d(String str2) {
StringBuilder sb = new StringBuilder("javascript:");
sb.append(d());
sb.append(".onInitChannelCode(");
sb.append(str2);
sb.append(")");
return sb.toString();
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "onInitChannelCode";
}
};
C14957gcv.e(anonymousClass2, "");
C14957gcv.e(str, "");
sCBWebView.post(new RunnableC10451eEl(str, anonymousClass2, sCBWebView));
int i2 = C + 19;
D = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9463dkH.Sts
public final void aB_() {
int i = 2 % 2;
int i2 = D + 25;
C = i2 % 128;
int i3 = i2 % 2;
finish();
if (i3 != 0) {
int i4 = 11 / 0;
}
int i5 = C + 23;
D = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 47 / 0;
}
}
public void b(String str) {
int i = 2 % 2;
eXH exh = new eXH();
exh.d("product", "debenture");
exh.d("ref_id", str);
exh.c(((BaseActivity) this).scbAnalytics, "receive_metadata");
int i2 = D + 21;
C = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 92 / 0;
}
}
@Override // o.InterfaceC9463dkH.Sts
public final void q_(String str) {
int i = 2 % 2;
SCBWebView sCBWebView = this.partnerWebView;
AnonymousClass9 anonymousClass9 = new InterfaceC12922fLZ(this) { // from class: com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity.9
private SCBUniversalWebViewActivity b;
AnonymousClass9(SCBUniversalWebViewActivity this) {
this.b = this;
}
@Override // o.InterfaceC12922fLZ
public final String d(String str2) {
return String.format(a(), "window.j4u", "onReceivedPreferences", str2);
}
@Override // o.InterfaceC12922fLZ
public final String e() {
return "onReceivedPreferences";
}
};
C14957gcv.e(anonymousClass9, "");
C14957gcv.e(str, "");
sCBWebView.post(new RunnableC10451eEl(str, anonymousClass9, sCBWebView));
int i2 = D + 83;
C = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object f(Object[] objArr) {
SCBUniversalWebViewActivity sCBUniversalWebViewActivity = (SCBUniversalWebViewActivity) objArr[0];
int i = 2 % 2;
int i2 = D + 17;
C = i2 % 128;
int i3 = i2 % 2;
sCBUniversalWebViewActivity.Y();
int i4 = C + 19;
D = i4 % 128;
if (i4 % 2 != 0) {
return null;
}
throw null;
}
@Override // o.C9469dkN.IeS
public final void l() {
int i = 2 % 2;
int i2 = D + 113;
C = i2 % 128;
int i3 = i2 % 2;
ac();
int i4 = D + 119;
C = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.C9469dkN.IeS
public final void m() {
int i = 2 % 2;
int i2 = C + 75;
D = i2 % 128;
int i3 = i2 % 2;
setTheme(R.style.f49352132017184);
((BaseActivity) this).e = true;
int i4 = D + 15;
C = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9463dkH.Sts
public final void ay_() {
int i = 2 % 2;
int i2 = D + 9;
C = i2 % 128;
int i3 = i2 % 2;
finish();
int i4 = C + 11;
D = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final void L() {
Intent[] intentArr;
int i;
int i2 = 2 % 2;
Intent akf_ = akf_();
Intent type = new Intent("android.intent.action.OPEN_DOCUMENT").addCategory("android.intent.category.OPENABLE").setType("*/*");
if (akf_ != null) {
intentArr = new Intent[]{akf_};
i = D + 119;
} else {
intentArr = new Intent[0];
i = D + 103;
}
C = i % 128;
int i3 = i % 2;
startActivityForResult(Intent.createChooser(type, null).putExtra("android.intent.extra.INITIAL_INTENTS", intentArr), 4434);
}
private Intent akf_() {
File file;
int i = 2 % 2;
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
if (intent.resolveActivity(getPackageManager()) != null) {
try {
file = C12891fKc.b(this);
} catch (IOException e) {
guQ.a(e);
file = null;
}
if (file != null) {
int i2 = D + 45;
C = i2 % 128;
if (i2 % 2 != 0) {
Uri uriForFile = C9257dgM.getUriForFile(this, "com.scb.phone.ExternalStorageFileProvider", file);
this.r = uriForFile;
intent.putExtra("output", uriForFile);
throw null;
}
Uri uriForFile2 = C9257dgM.getUriForFile(this, "com.scb.phone.ExternalStorageFileProvider", file);
this.r = uriForFile2;
intent.putExtra("output", uriForFile2);
int i3 = C + 1;
D = i3 % 128;
int i4 = i3 % 2;
return intent;
}
}
return null;
}
public static /* synthetic */ void b(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = C + 83;
D = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.c();
int i4 = C + 67;
D = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 26 / 0;
}
}
public static /* synthetic */ void a(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = C + 79;
D = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.e();
if (i3 == 0) {
throw null;
}
}
public final void e(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(this).c(R.string.permission_storage_title).d(R.string.permission_storage).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.efl
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
SCBUniversalWebViewActivity.b(this.b);
}
{
this.b = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.efk
private InterfaceC15577gud e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
SCBUniversalWebViewActivity.a(this.e);
}
{
this.e = interfaceC15577gud;
}
}})).show();
int i2 = C + 63;
D = i2 % 128;
int i3 = i2 % 2;
}
public static void R() {
int i = 2 % 2;
int i2 = C + 15;
D = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("showNeverAskForChooser", new Object[0]);
} else {
guQ.b("showNeverAskForChooser", new Object[0]);
}
int i3 = D + 41;
C = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 3 / 0;
}
}
public static void J() {
int i = 2 % 2;
int i2 = C + 53;
D = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("showDeniedForChooserAndroid13", new Object[1]);
} else {
guQ.b("showDeniedForChooserAndroid13", new Object[0]);
}
int i3 = C + 47;
D = i3 % 128;
int i4 = i3 % 2;
}
public static void aA() {
int i = 2 % 2;
int i2 = C + 115;
D = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("showNeverAskForChooserAndroid13", new Object[1]);
} else {
guQ.b("showNeverAskForChooserAndroid13", new Object[0]);
}
}
@Override // o.AbstractActivityC11374eeD, 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) {
Object[] objArr = new Object[1];
aJ(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.addition_document_scb_account_instruction).substring(26, 27).codePointAt(0) - 9, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 8, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aJ(49 - (ViewConfiguration.getTouchSlop() >> 8), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, (char) (47095 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i2 = C + 67;
D = i2 % 128;
try {
if (i2 % 2 == 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getFadingEdgeLength() >> 16), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) (ViewConfiguration.getLongPressTimeout() >> 16))).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(487 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (Process.getGidForName("") + 1))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
throw null;
}
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 491, ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(487 - View.resolveSize(0, 0), (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i3 = C + 91;
D = i3 % 128;
int i4 = i3 % 2;
}
@Override // o.AbstractActivityC11374eeD, 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 void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
int i2 = D + 11;
C = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aJ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1, Gravity.getAbsoluteGravity(0, 0) + 18, (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aJ(Color.argb(0, 0, 0, 0) + 18, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) View.MeasureSpec.getSize(0), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = D + 93;
C = i4 % 128;
int i5 = i4 % 2;
if (intValue <= 99999) {
return;
}
}
if (context != null) {
context2 = context.getApplicationContext();
int i6 = D + 73;
C = i6 % 128;
int i7 = i6 % 2;
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(KeyEvent.keyCodeFromString("") + 492, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) View.resolveSizeAndState(0, 0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aK(new char[]{55726, 16883, 39602, 32555, 61398, 19995, 51586, 14389, 631, 64679, 9182, 9028, 25844, 59359, 59580, 20587, 5592, 20183, 9064, 49091, 26624, 20665, 37944, 51835, 7248, 64037, 1670, 50803, 20841, 46574, 64899, 19413, 7761, 19114, 61116, 63362, 58664, 5730, 10503, 15005, 47917, 44581, 22811, 58546, 1366, 57166, 132, 23748}, 48 - (ViewConfiguration.getKeyRepeatDelay() >> 16), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aK(new char[]{19469, 25145, 19303, 39967, 38370, 50958, 58631, 40590, 19208, 36159, 41766, 31798, 41766, 31798, 7036, 1394, 20477, 53082, 18629, 43266, 34895, 32538, 23362, 64078, 1406, 14097, 41574, 3721, 10943, 12107, 10442, 16585, 20179, 16840, 10962, 36053, 1773, 35737, 10503, 15005, 38370, 50958, 36732, 60002, 64659, 62482, 38370, 50958, 60945, 5763, 13121, 54375, 1366, 57166, 5401, 45732, 3048, 57922, 14678, 34008, 38370, 50958, 55205, 35353}, TextUtils.getOffsetBefore("", 0) + 64, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aJ(Color.blue(0) + 67, ExpandableListView.getPackedPositionChild(0L) + 65, (char) (19445 - TextUtils.getCapsMode("", 0, 0)), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aK(new char[]{8995, 22060, 44201, 46043, 6659, 35351, 39026, 38446, 54444, 6487, 16851, 37275, 8985, 53430, 31122, 50636, 64038, 471, 51325, 32930, 59664, 33463, 47457, 16655, 15249, 61759, 2545, 42849, 49238, 17052, 48955, 30000, 64147, 49563, 35997, 28536, 43992, 56698, 50600, 41626, 63485, 39745, 59772, 46805, 31486, 62171, 63485, 39745, 15220, 23130, 8985, 53430, 26434, 22325, 59416, 38360, 12762, 40972, 3183, 5853, 34653, 44679, 61273, 5055, 16936, 47622, 61980, 21838, 23943, 52081, 26299, 38182, 49200, 58590}, (ViewConfiguration.getScrollDefaultDelay() >> 16) + 74, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aJ(131 - View.MeasureSpec.getMode(0), 5 - KeyEvent.getDeadChar(0, 0), (char) ((Process.myTid() >> 22) + 33748), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aJ(KeyEvent.normalizeMetaState(0) + 136, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 36, (char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 488, TextUtils.indexOf("", "") + 5, (char) (KeyEvent.getMaxKeyCode() >> 16))).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, objArr9);
int i8 = C + 55;
D = i8 % 128;
int i9 = i8 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
public static /* synthetic */ void b(SCBUniversalWebViewActivity sCBUniversalWebViewActivity, String str) {
int i = 2 % 2;
sCBUniversalWebViewActivity.aq_();
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
intent.setData(Uri.parse(str));
sCBUniversalWebViewActivity.startActivity(intent);
int i2 = D + 109;
C = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object g(Object[] objArr) {
SCBUniversalWebViewActivity sCBUniversalWebViewActivity = (SCBUniversalWebViewActivity) objArr[0];
int i = 2 % 2;
int i2 = C + 19;
int i3 = i2 % 128;
D = i3;
int i4 = i2 % 2;
boolean z = sCBUniversalWebViewActivity.k;
int i5 = i3 + 15;
C = i5 % 128;
int i6 = i5 % 2;
return Boolean.valueOf(z);
}
private static /* synthetic */ Object d(Object[] objArr) {
int i = 2 % 2;
int i2 = C + 67;
int i3 = i2 % 128;
D = i3;
int i4 = i2 % 2;
int i5 = i3 + 55;
C = i5 % 128;
int i6 = i5 % 2;
return true;
}
@Override // o.AbstractActivityC11374eeD, 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 = C + 59;
D = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = D + 91;
C = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
static void K() {
h(new Object[0], 1681323232, -1681323228, (int) System.currentTimeMillis());
}
@Override // o.C9469dkN.IeS
public final void n() {
h(new Object[]{this}, 79789937, -79789930, System.identityHashCode(this));
}
@Override // o.InterfaceC9087ddB
public final void i_(String str) {
int i = 2 % 2;
int i2 = D + 63;
C = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 57 / 0;
}
}
@Override // o.InterfaceC9462dkG
public final void l(String str) {
h(new Object[]{this, str}, 2126022204, -2126022199, System.identityHashCode(this));
}
@Override // o.InterfaceC12954fMb
public final boolean aA_() {
int i = 2 % 2;
int i2 = C + 107;
D = i2 % 128;
return i2 % 2 != 0;
}
@Override // o.InterfaceC12954fMb
public final boolean P_() {
return ((Boolean) h(new Object[]{this}, -867015319, 867015320, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.security_block_enable_accessibility_description).substring(121, 122).codePointAt(0) + 94165370)).booleanValue();
}
@Override // o.C9469dkN.IeS
public final void o() {
h(new Object[]{this}, 1964901721, -1964901713, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.wealth4u).substring(0, 8).codePointAt(4) + 481234319);
}
@Override // o.InterfaceC9462dkG
public final void az_() {
h(new Object[]{this}, 434860507, -434860507, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 399979722);
}
public static Intent akj_(Context context, String str, String str2, Boolean bool, Boolean bool2, boolean z) {
return (Intent) h(new Object[]{context, str, str2, bool, bool2, Boolean.valueOf(z)}, -165111865, 165111867, (int) System.currentTimeMillis());
}
public static Intent aki_(Context context, String str, String str2, Boolean bool, Boolean bool2) {
return (Intent) h(new Object[]{context, str, str2, bool, bool2}, 651321262, -651321259, (int) System.currentTimeMillis());
}
static /* synthetic */ void d(SCBUniversalWebViewActivity sCBUniversalWebViewActivity, String str, boolean z) {
int i = 2 % 2;
int i2 = D + 13;
C = i2 % 128;
int i3 = i2 % 2;
sCBUniversalWebViewActivity.c(str, z);
int i4 = C + 67;
D = i4 % 128;
int i5 = i4 % 2;
}
static /* bridge */ /* synthetic */ void ake_(SCBUniversalWebViewActivity sCBUniversalWebViewActivity, ValueCallback valueCallback) {
int i = 2 % 2;
int i2 = C;
int i3 = i2 + 33;
D = i3 % 128;
int i4 = i3 % 2;
sCBUniversalWebViewActivity.p = valueCallback;
int i5 = i2 + 77;
D = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
}
static /* bridge */ /* synthetic */ ValueCallback akd_(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
int i = 2 % 2;
int i2 = C;
int i3 = i2 + 43;
D = i3 % 128;
int i4 = i3 % 2;
ValueCallback<Uri[]> valueCallback = sCBUniversalWebViewActivity.p;
int i5 = i2 + 99;
D = i5 % 128;
if (i5 % 2 != 0) {
return valueCallback;
}
throw null;
}
static /* synthetic */ LocationListener akc_(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
int i = 2 % 2;
int i2 = C + 109;
int i3 = i2 % 128;
D = i3;
int i4 = i2 % 2;
LocationListener locationListener = sCBUniversalWebViewActivity.s;
int i5 = i3 + 121;
C = i5 % 128;
if (i5 % 2 == 0) {
return locationListener;
}
Object obj = null;
obj.hashCode();
throw null;
}
static /* bridge */ /* synthetic */ String d(SCBUniversalWebViewActivity sCBUniversalWebViewActivity) {
int i = 2 % 2;
int i2 = D;
int i3 = i2 + 35;
C = i3 % 128;
int i4 = i3 % 2;
String str = sCBUniversalWebViewActivity.b;
int i5 = i2 + 89;
C = i5 % 128;
if (i5 % 2 == 0) {
return str;
}
throw null;
}
}