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

1043 lines
43 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.partner;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.net.http.SslError;
import android.os.Process;
import android.os.SystemClock;
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.CookieManager;
import android.webkit.SslErrorHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.scb.phone.R;
import com.scb.phone.view.activity.partner.PartnerConsentActivity;
import com.scb.phone.view.activity.splash.SplashActivity;
import com.squareup.picasso.Picasso;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import o.AbstractActivityC11371eeA;
import o.C0690Mh;
import o.C0693Mj;
import o.C1010Tp;
import o.C1013Ts;
import o.C12941fLs;
import o.C13020fOa;
import o.C7084chc;
import o.GuL;
import o.InterfaceC12938fLp;
import o.InterfaceC13391fZD;
import o.InterfaceC8963dak;
import o.fLG;
import o.guQ;
import o.jTb;
import o.mfY;
import o.pug;
import o.xzZ;
/* loaded from: classes5.dex */
public class PartnerConsentActivity extends AbstractActivityC11371eeA implements InterfaceC8963dak, InterfaceC12938fLp {
@BindView
Button btSingleButton;
@BindView
Button btnAllow;
@BindView
Button btnDeny;
@BindView
ImageView imgIcon;
private String k;
private boolean l;
@BindView
LinearLayout llPairButton;
private String m;
/* renamed from: o, reason: collision with root package name */
private String f7689o;
@InterfaceC13391fZD
public C7084chc partnerConsentPresenter;
@BindView
TextView tvConsentDescription;
@BindView
View viewHide;
@BindView
WebView wvConsentDescription;
private static final byte[] $$p = {94, -44, 14, -83};
private static final int $$q = 79;
private static int $10 = 0;
private static int $11 = 1;
private static int u = 0;
private static int x = 1;
private static char q = 33724;
private static char t = 44507;
private static char r = 27334;
private static char s = 15210;
private static long p = -242045734768978795L;
/* 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:0x002a). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aC(int r6, short r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 3
int r6 = r6 + 1
int r7 = r7 + 4
int r8 = 121 - r8
byte[] r0 = com.scb.phone.view.activity.partner.PartnerConsentActivity.$$p
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L13
r4 = r6
r8 = r7
r3 = r2
goto L2a
L13:
r3 = r2
r5 = r8
r8 = r7
r7 = r5
L17:
byte r4 = (byte) r7
r1[r3] = r4
int r3 = r3 + 1
int r8 = r8 + 1
if (r3 != r6) goto L28
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L28:
r4 = r0[r8]
L2a:
int r4 = -r4
int r7 = r7 + r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.PartnerConsentActivity.aC(int, short, short, java.lang.Object[]):void");
}
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i2;
int i5 = (i * 367) + (i2 * 367) + ((i | i2) * (-366)) + (((~(i4 | i3)) | i) * (-366)) + (((~(i | i4 | i3)) | (~(i2 | (~i)))) * 366);
return i5 != 1 ? i5 != 2 ? d(objArr) : c(objArr) : b(objArr);
}
private static void aB(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
GuL guL = new GuL();
char[] a = GuL.a(p ^ (-7538262848231253921L), cArr, i);
guL.a = 4;
int i3 = $11 + 19;
$10 = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 4 / 5;
}
while (guL.a < a.length) {
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(p)};
Object obj = xzZ.y.get(428080616);
if (obj == null) {
Class cls = (Class) xzZ.c(207 - Process.getGidForName(""), TextUtils.indexOf((CharSequence) "", '0', 0) + 6, (char) (1706 - (ViewConfiguration.getDoubleTapTimeout() >> 16)));
byte b = (byte) 0;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
aC(b, b2, (byte) (b2 + 3), 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();
try {
Object[] objArr4 = {guL, guL};
Object obj2 = xzZ.y.get(-1875914398);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(393 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 5 - TextUtils.getCapsMode("", 0, 0), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
aC(b3, b4, (byte) (b4 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1875914398, obj2);
}
((Method) obj2).invoke(null, objArr4);
int i6 = $11 + 77;
$10 = i6 % 128;
int i7 = i6 % 2;
} 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;
}
}
objArr[0] = new String(a, 4, a.length - 4);
}
public static Intent ajT_(Context context, String str, boolean z, String str2) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) PartnerConsentActivity.class);
intent.putExtra("consent_session_id", str);
intent.putExtra("IS_NEED_HISTORY_STACK", z);
intent.putExtra("deny_url", str2);
int i2 = x + 79;
u = i2 % 128;
if (i2 % 2 == 0) {
return intent;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static void aA(char[] cArr, int i, Object[] objArr) {
int i2;
int i3 = 2;
int i4 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
int i5 = $11 + 1;
$10 = i5 % 128;
int i6 = i5 % 2;
while (jtb.b < cArr.length) {
int i7 = $10 + 13;
$11 = i7 % 128;
int i8 = i7 % i3;
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i9 = 58224;
int i10 = 0;
while (i10 < 16) {
int i11 = $10 + 105;
$11 = i11 % 128;
int i12 = i11 % i3;
char c = cArr3[1];
char c2 = cArr3[0];
int i13 = (c2 + i9) ^ ((c2 << 4) + ((char) (r ^ 41718355337583039L)));
int i14 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(s);
objArr2[i3] = Integer.valueOf(i14);
objArr2[1] = Integer.valueOf(i13);
objArr2[0] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 412, 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (TextUtils.lastIndexOf("", '0') + 1));
byte b = (byte) 0;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
aC(b, b2, (byte) (b2 & 55), 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 + i9) ^ ((charValue << 4) + ((char) (q ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(t)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 413, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)));
byte b3 = (byte) 0;
byte b4 = (byte) (b3 - 1);
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);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i9 -= 40503;
i10++;
int i15 = $10 + 107;
$11 = i15 % 128;
int i16 = i15 % 2;
i3 = 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 != null) {
i2 = 2;
} else {
Class cls3 = (Class) xzZ.c(98 - KeyEvent.normalizeMetaState(0), (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) Color.blue(0));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 - 1);
Object[] objArr7 = new Object[1];
aC(b5, b6, (byte) (b6 & 54), objArr7);
i2 = 2;
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
i3 = i2;
}
objArr[0] = new String(cArr2, 0, i);
}
public static Intent ajS_(Context context, String str, mfY mfy) {
int i = 2 % 2;
Intent intent = new Intent(context, (Class<?>) PartnerConsentActivity.class);
intent.putExtra("consent_session_id", str);
intent.putExtra("IS_NEED_HISTORY_STACK", true);
intent.putExtra("EXTRA_PARTNER_FLOW_TYPE", mfy.ordinal());
int i2 = u + 107;
x = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 7 / 0;
}
return intent;
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00ae, code lost:
if (r2 > 99999) goto L11;
*/
@Override // o.AbstractActivityC11371eeA, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onCreate(android.os.Bundle r17) {
/*
Method dump skipped, instructions count: 1416
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.PartnerConsentActivity.onCreate(android.os.Bundle):void");
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = x + 23;
u = i2 % 128;
int i3 = i2 % 2;
if (this.l) {
super.onBackPressed();
return;
}
this.partnerConsentPresenter.c(this.k);
int i4 = x + 97;
u = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@OnClick
public void onAllowClick() {
mfY mfy;
String str;
int i = 2 % 2;
int i2 = x + 55;
u = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
this.partnerConsentPresenter.b(this.m, this.l);
C1010Tp c1010Tp = this.partnerConsentPresenter.b().i;
mfY mfy2 = mfY.CDX;
getIntent().getExtras();
throw null;
}
this.partnerConsentPresenter.b(this.m, this.l);
C1010Tp c1010Tp2 = this.partnerConsentPresenter.b().i;
mfY mfy3 = mfY.CDX;
if (getIntent().getExtras() != null) {
mfy = mfY.values()[getIntent().getIntExtra("EXTRA_PARTNER_FLOW_TYPE", 0)];
int i3 = u + 25;
x = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 4 / 5;
}
} else {
mfy = mfY.NORMAL;
}
if (mfy3 == mfy) {
int i5 = x + 5;
int i6 = i5 % 128;
u = i6;
int i7 = i5 % 2;
if (c1010Tp2 != null) {
int i8 = i6 + 117;
x = i8 % 128;
if (i8 % 2 == 0) {
String str2 = c1010Tp2.b;
obj.hashCode();
throw null;
}
str = c1010Tp2.b;
} else {
str = "";
}
} else {
str = "scbs";
}
c("partner_consent", new pug("source", str), new pug("button", "allow"));
}
@OnClick
public void onDenyClick() {
mfY mfy;
String str;
int i = 2 % 2;
int i2 = u + 33;
x = i2 % 128;
int i3 = i2 % 2;
C7084chc c7084chc = this.partnerConsentPresenter;
C7084chc.e(new Object[]{c7084chc, this.m, this.k}, -1219051450, 1219051454, System.identityHashCode(c7084chc));
C1010Tp c1010Tp = this.partnerConsentPresenter.b().i;
mfY mfy2 = mfY.CDX;
if (getIntent().getExtras() != null) {
int i4 = u + 33;
x = i4 % 128;
int i5 = i4 % 2;
mfy = mfY.values()[getIntent().getIntExtra("EXTRA_PARTNER_FLOW_TYPE", 0)];
} else {
mfy = mfY.NORMAL;
}
if (mfy2 != mfy) {
str = "scbs";
} else if (c1010Tp != null) {
str = c1010Tp.b;
} else {
int i6 = u + 79;
x = i6 % 128;
int i7 = i6 % 2;
str = "";
}
c("partner_consent", new pug("source", str), new pug("button", "deny"));
}
@OnClick
public void onSingleAllowClick() {
String str;
int i = 2 % 2;
int i2 = u + 57;
x = i2 % 128;
int i3 = i2 % 2;
this.partnerConsentPresenter.b(this.m, this.l);
C1010Tp c1010Tp = this.partnerConsentPresenter.b().i;
if (c1010Tp != null) {
int i4 = u + 111;
x = i4 % 128;
int i5 = i4 % 2;
str = c1010Tp.b;
} else {
int i6 = x + 61;
u = i6 % 128;
int i7 = i6 % 2;
str = "";
}
c("partner_consent", new pug("source", str), new pug("button", "allow"));
}
@Override // o.InterfaceC8963dak
public final void a(C1013Ts c1013Ts) {
ImageView imageView;
int i = 2 % 2;
if (this.mToolbar != null) {
int i2 = u + 89;
x = i2 % 128;
int i3 = i2 % 2;
this.mToolbar.setVisibility(0);
int i4 = x + 41;
u = i4 % 128;
int i5 = i4 % 2;
}
int i6 = 8;
this.viewHide.setVisibility(8);
C1010Tp c1010Tp = c1013Ts.i;
if (c1010Tp != null) {
if (!TextUtils.isEmpty(c1010Tp.d)) {
this.imgIcon.setVisibility(0);
C13020fOa b = Picasso.d().e(c1010Tp.d).e(R.drawable.shape_gray_rectangle).b(R.drawable.shape_gray_rectangle);
b.a.c(new fLG((int) getResources().getDimension(R.dimen.f24712131166237), 0, 0));
b.aBu_(this.imgIcon, null);
int i7 = u + 41;
x = i7 % 128;
int i8 = i7 % 2;
} else {
int i9 = x + 73;
u = i9 % 128;
if (i9 % 2 != 0) {
imageView = this.imgIcon;
i6 = 115;
} else {
imageView = this.imgIcon;
}
imageView.setVisibility(i6);
}
String str = c1013Ts.a;
this.tvConsentDescription.setVisibility(0);
this.tvConsentDescription.setText(str);
if (TextUtils.isEmpty(c1010Tp.b)) {
return;
}
c("partner_consent", new pug("source", c1010Tp.b));
}
}
private static /* synthetic */ Object d(Object[] objArr) {
PartnerConsentActivity partnerConsentActivity = (PartnerConsentActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
if (partnerConsentActivity.mToolbar != null) {
int i2 = u + 119;
x = i2 % 128;
int i3 = i2 % 2;
partnerConsentActivity.mToolbar.setVisibility(0);
int i4 = x + 67;
u = i4 % 128;
int i5 = i4 % 2;
}
partnerConsentActivity.viewHide.setVisibility(8);
partnerConsentActivity.wvConsentDescription.setVisibility(0);
partnerConsentActivity.wvConsentDescription.setWebChromeClient(new WebChromeClient());
partnerConsentActivity.wvConsentDescription.setWebViewClient(new WebViewClient(partnerConsentActivity) { // from class: com.scb.phone.view.activity.partner.PartnerConsentActivity.2
private PartnerConsentActivity a;
{
this.a = partnerConsentActivity;
}
@Override // android.webkit.WebViewClient
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
new C12941fLs().aAA_(this.a, sslErrorHandler);
}
@Override // android.webkit.WebViewClient
public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
webView.clearCache(true);
webView.loadUrl(webResourceRequest.getUrl().toString());
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.a.v();
}
@Override // android.webkit.WebViewClient
public final void onPageFinished(WebView webView, String str2) {
super.onPageFinished(webView, str2);
this.a.aq_();
}
});
partnerConsentActivity.wvConsentDescription.getSettings().setJavaScriptEnabled(true);
partnerConsentActivity.wvConsentDescription.getSettings().setDomStorageEnabled(true);
partnerConsentActivity.wvConsentDescription.clearCache(true);
partnerConsentActivity.wvConsentDescription.clearHistory();
partnerConsentActivity.wvConsentDescription.loadUrl(str);
partnerConsentActivity.wvConsentDescription.getSettings().setDomStorageEnabled(true);
return null;
}
@Override // o.InterfaceC8963dak
public final void a(String str, String str2, boolean z) {
int i = 2 % 2;
int i2 = x + 23;
u = i2 % 128;
int i3 = i2 % 2;
l(str);
Intent ajU_ = PartnerDiscoverWebViewActivity.ajU_(this, str, str2, z);
ajU_.putExtras(getIntent());
startActivity(ajU_);
finish();
int i4 = x + 61;
u = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 81 / 0;
}
}
@Override // o.InterfaceC8963dak
public final void b(String str, String str2, boolean z) {
int i = 2 % 2;
int i2 = x + 95;
u = i2 % 128;
if (i2 % 2 != 0) {
l(str);
Intent intent = (Intent) SCBUniversalWebViewActivity.h(new Object[]{this, str, str2, Boolean.FALSE, Boolean.TRUE, Boolean.valueOf(z)}, -165111865, 165111867, (int) System.currentTimeMillis());
intent.putExtras(getIntent());
startActivity(intent);
finish();
int i3 = 81 / 0;
return;
}
l(str);
Intent intent2 = (Intent) SCBUniversalWebViewActivity.h(new Object[]{this, str, str2, Boolean.FALSE, Boolean.TRUE, Boolean.valueOf(z)}, -165111865, 165111867, (int) System.currentTimeMillis());
intent2.putExtras(getIntent());
startActivity(intent2);
finish();
}
@Override // o.InterfaceC8963dak
public final void c(String str) {
int i = 2 % 2;
try {
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str));
intent.addFlags(268435456);
startActivity(intent);
finish();
int i2 = u + 67;
x = i2 % 128;
int i3 = i2 % 2;
} catch (ActivityNotFoundException | NullPointerException unused) {
e();
}
}
@Override // o.InterfaceC8963dak
public final void a() {
int i = 2 % 2;
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = getString(R.string.ok);
c0690Mh.e = C0690Mh.IeS.CUSTOM;
Runnable runnable = new Runnable(this) { // from class: o.eeI
private PartnerConsentActivity d;
@Override // java.lang.Runnable
public final void run() {
PartnerConsentActivity.a(this.d);
}
{
this.d = this;
}
};
c0690Mh.e = C0690Mh.IeS.CUSTOM;
c0690Mh.d = runnable;
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = getString(R.string.partner_consent_citizen_title);
c0693Mj.c = getString(R.string.partner_consent_citizen_message);
c0693Mj.e = c0690Mh;
e(c0693Mj);
int i2 = u + 79;
x = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC8963dak
public final void e() {
int i = 2 % 2;
if (this.l) {
int i2 = x + 113;
u = i2 % 128;
int i3 = i2 % 2;
finish();
int i4 = x + 21;
u = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
return;
}
Intent intent = new Intent(this, (Class<?>) SplashActivity.class);
intent.addFlags(268468224);
startActivity(intent);
finish();
int i5 = x + 63;
u = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 37 / 0;
}
}
private static /* synthetic */ Object c(Object[] objArr) {
PartnerConsentActivity partnerConsentActivity = (PartnerConsentActivity) objArr[0];
int i = 2 % 2;
Intent intent = new Intent(partnerConsentActivity, (Class<?>) SplashActivity.class);
intent.addFlags(268468224);
partnerConsentActivity.startActivity(intent);
partnerConsentActivity.finish();
int i2 = x + 87;
u = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 25 / 0;
}
return null;
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
if (16908332 == menuItem.getItemId()) {
int i2 = u + 117;
x = i2 % 128;
int i3 = i2 % 2;
onBackPressed();
return true;
}
boolean onOptionsItemSelected = super.onOptionsItemSelected(menuItem);
int i4 = x + 1;
u = i4 % 128;
int i5 = i4 % 2;
return onOptionsItemSelected;
}
@Override // o.InterfaceC12938fLp
public final void M_() {
int i = 2 % 2;
int i2 = x + 19;
u = i2 % 128;
int i3 = i2 % 2;
onBackPressed();
int i4 = x + 33;
u = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC8963dak
public final void b(String str) {
int i = 2 % 2;
int i2 = u + 73;
x = i2 % 128;
int i3 = i2 % 2;
d_(str);
if (i3 == 0) {
int i4 = 76 / 0;
}
}
@Override // o.InterfaceC8963dak
public final void a(String str) {
int i = 2 % 2;
Intent intent = new Intent();
intent.putExtra("EXTRA_CALL_BACK_URL", str);
setResult(-1, intent);
finish();
int i2 = x + 99;
u = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 36 / 0;
}
}
private static /* synthetic */ Object b(Object[] objArr) {
PartnerConsentActivity partnerConsentActivity = (PartnerConsentActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
int i2 = x + 47;
u = i2 % 128;
if (i2 % 2 != 0) {
partnerConsentActivity.llPairButton.setVisibility(80);
partnerConsentActivity.btSingleButton.setVisibility(1);
} else {
partnerConsentActivity.llPairButton.setVisibility(8);
partnerConsentActivity.btSingleButton.setVisibility(0);
}
partnerConsentActivity.btSingleButton.setText(str);
int i3 = x + 37;
u = i3 % 128;
int i4 = i3 % 2;
return null;
}
@Override // o.InterfaceC8963dak
public final void e(String str, String str2) {
int i = 2 % 2;
int i2 = u + 61;
x = i2 % 128;
int i3 = i2 % 2;
this.btnAllow.setText(str);
this.btnDeny.setText(str2);
int i4 = u + 33;
x = i4 % 128;
int i5 = i4 % 2;
}
private void l(String str) {
int i = 2 % 2;
int i2 = u + 25;
x = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
String stringExtra = getIntent().getStringExtra("EXTRA_CLEAR_COOKIES_PARAMETER");
if (str == null || stringExtra == null) {
return;
}
CookieManager cookieManager = CookieManager.getInstance();
try {
URL url = new URL(str);
StringBuilder sb = new StringBuilder();
sb.append(url.getProtocol());
sb.append("://");
sb.append(url.getHost());
cookieManager.setCookie(sb.toString(), stringExtra);
int i3 = u + 9;
x = i3 % 128;
if (i3 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
} catch (MalformedURLException e) {
guQ.e(e);
return;
}
}
getIntent().getStringExtra("EXTRA_CLEAR_COOKIES_PARAMETER");
throw null;
}
@Override // o.InterfaceC8963dak
public final void c() {
int i = 2 % 2;
int i2 = x + 111;
u = i2 % 128;
int i3 = i2 % 2;
j(false);
int i4 = u + 17;
x = i4 % 128;
int i5 = i4 % 2;
}
@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 = u + 57;
x = i2 % 128;
int i3 = i2 % 2;
this.partnerConsentPresenter.w_();
super.onDestroy();
int i4 = u + 57;
x = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x0021, code lost:
r7 = (java.lang.Object[]) null;
r7 = new java.lang.Object[1];
aA(new char[]{31219, 35828, 17941, 65175, 39158, 3163, 18892, 21995, 31328, 36801, 48202, 63108, 52339, 10712, 20419, 29815, 16596, 10897, 9462, 14232, 46916, 9960, 27997, 19041, 6525, 40781}, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.pin_lock_message).substring(4, 9).codePointAt(1) - 54, r7);
r1 = java.lang.Class.forName((java.lang.String) r7[0]);
r7 = new java.lang.Object[1];
aB(new char[]{37910, 38005, 24350, 54177, 44668, 46197, 47002, 4697, 42843, 57474, 58036, 28082, 62006, 44148, 53748, 47282, 3341, 31037, 7428, 35786, 22745, 1562}, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.deejung_transfer_email_notification_message).substring(33, 34).codePointAt(0) - 32, r7);
r1 = (android.content.Context) r1.getMethod((java.lang.String) r7[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x001f, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r1 == null) goto L9;
*/
@Override // o.AbstractActivityC11371eeA, 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: 404
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.PartnerConsentActivity.onResume():void");
}
/* JADX WARN: Code restructure failed: missing block: B:42:0x0024, code lost:
r8 = (java.lang.Object[]) null;
r8 = new java.lang.Object[1];
aA(new char[]{31219, 35828, 17941, 65175, 39158, 3163, 18892, 21995, 31328, 36801, 48202, 63108, 52339, 10712, 20419, 29815, 16596, 10897, 9462, 14232, 46916, 9960, 27997, 19041, 6525, 40781}, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.hml_summary_request_value).substring(0, 5).codePointAt(2) - 10, r8);
r1 = java.lang.Class.forName((java.lang.String) r8[0]);
r9 = new java.lang.Object[1];
aB(new char[]{37910, 38005, 24350, 54177, 44668, 46197, 47002, 4697, 42843, 57474, 58036, 28082, 62006, 44148, 53748, 47282, 3341, 31037, 7428, 35786, 22745, 1562}, android.text.TextUtils.getOffsetBefore("", 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:44:0x0022, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001b, code lost:
if (r1 == null) goto L9;
*/
@Override // o.AbstractActivityC11371eeA, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onPause() {
/*
Method dump skipped, instructions count: 520
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.partner.PartnerConsentActivity.onPause():void");
}
@Override // o.AbstractActivityC11371eeA, 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;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aA(new char[]{31219, 35828, 17941, 65175, 39158, 3163, 18892, 21995, 56483, 1390, 34335, 10854, 38648, 14544, 43787, 46685, 42005, 256}, ExpandableListView.getPackedPositionGroup(0L) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(new char[]{53142, 53243, 50366, 18445, 5860, 16334, 3877, 39417, 64730}, TextUtils.getOffsetAfter("", 0), objArr2);
Object obj = null;
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i2 = x + 59;
u = i2 % 128;
int i3 = i2 % 2;
if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i4 = x + 71;
u = i4 % 128;
if (i4 % 2 != 0) {
context.getApplicationContext();
obj.hashCode();
throw null;
}
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
int i5 = u + 35;
x = i5 % 128;
int i6 = i5 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(491 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = new Object[1];
aA(new char[]{50989, 25546, 42220, 47770, 48939, 27595, 27242, 61465, 64514, 41010, 61129, 14164, 7744, 5464, 5174, 9002, 59382, 56604, 61841, 1615, 34837, 42965, 11894, 25463, 50579, 4738, 63738, 4172, 21155, 50158, 29083, 8092, 16622, 31024, 58212, 2607, 29778, 10470, 21065, 62782, 56181, 54569, 12010, 42615, 27175, 41687, 1249, 38268}, 48 - (ViewConfiguration.getPressedStateDuration() >> 16), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aA(new char[]{32482, 37381, 33735, 54006, 57854, 52205, 49612, 5757, 62728, '3', 46540, 15856, 46540, 15856, 23857, 14301, 26116, 3441, 1845, 4111, 8911, 18016, 26406, 42506, 47727, 30682, 48605, 52671, 50752, 11004, 62569, 13085, 28469, 38653, 10892, 61539, 26421, 3409, 21065, 62782, 57854, 52205, 46335, 50279, 14002, 11926, 57854, 52205, 36324, 64273, 21871, 11695, 27175, 41687, 48534, 21370, 16478, 1483, 8448, 19966, 57854, 52205, 30098, 29077}, 64 - TextUtils.getTrimmedLength(""), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aA(new char[]{13110, 52289, 6002, 38809, 2274, 40932, 37648, 60390, 50752, 11004, 17213, 13497, 39845, 37286, 62569, 13085, 477, 26182, 29905, 6762, 46076, 58707, 17442, 25966, 27175, 41687, 29778, 10470, 15092, 9471, 32835, 63393, 42220, 47770, 65516, 35588, 18578, 23660, 49257, 24872, 63734, 27213, 43431, 46509, 23172, 63131, 33735, 54006, 9242, 37870, 61841, 1615, 725, 11225, 34174, 60710, 25757, 32028, 27242, 61465, 26421, 3409, 29491, 56601}, 63 - Process.getGidForName(""), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aA(new char[]{5204, 15226, 55663, 58112, 17658, 50601, 42692, 40245, 16578, 58682, 44628, 28470, 2699, 6088, 25792, 47690, 43966, 35997, 64843, 23661, 11367, 16026, 31322, 5702, 22093, 44499, 34103, 59327, 2196, 20139, 50565, 59976, 63391, 377, 48654, 9453, 19968, 20291, 21219, 39099, 36930, 57248, 51686, 22385, 32835, 46491, 36930, 57248, 31511, 44993, 2699, 6088, 25429, 61886, 31328, 36801, 37572, 50524, 47469, 19348, 7372, 13573, 23162, 4145, 18296, 4157, 45430, 2030, 53318, 37238, 36183, 8638, 6979, 4713}, (ViewConfiguration.getJumpTapTimeout() >> 16) + 74, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB(new char[]{18252, 18293, 47013, 15169, 39048, 25069, 33060, 51101, 29780}, ViewConfiguration.getWindowTouchSlop() >> 8, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA(new char[]{50565, 59976, 56181, 54569, 33396, 5448, 42581, 2800, 61677, 48360, 25999, 42328, 29617, 20765, 60678, 12892, 49257, 24872, 40389, 50232, 9242, 37870, 22092, 60475, 50710, 40097, 61129, 14164, 28901, 22589, 63738, 4172, 63013, 64598, 63046, 41521}, Process.getGidForName("") + 37, objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj3 = xzZ.y.get(1656189573);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(Process.getGidForName("") + 488, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj3);
}
((Method) obj3).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
public static /* synthetic */ void a(PartnerConsentActivity partnerConsentActivity) {
int i = 2 % 2;
int i2 = x + 21;
u = i2 % 128;
int i3 = i2 % 2;
partnerConsentActivity.j(false);
int i4 = x + 69;
u = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.AbstractActivityC11371eeA, 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 = x + 49;
u = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = u + 73;
x = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // o.InterfaceC8963dak
public final void e(String str) {
b(new Object[]{this, str}, 1307583448, -1307583447, ((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) - 834104397);
}
@Override // o.InterfaceC8963dak
public final void d(String str) {
b(new Object[]{this, str}, -1444477365, 1444477365, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 481042604);
}
@Override // o.InterfaceC8963dak
public final void b() {
b(new Object[]{this}, -1751765771, 1751765773, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 434404568);
}
}