what-the-bank/sources/com/scb/phone/view/activity/ndid/NationalIdCameraActivity.java

1399 lines
63 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.ndid;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Configuration;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.hardware.Camera;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CameraDevice;
import android.hardware.camera2.CaptureRequest;
import android.media.Image;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.SurfaceView;
import android.view.TextureView;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.ndid.NationalIdCameraActivity;
import com.scb.phone.view.camera.CameraApi2;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.ndid.OverlayNationalIdFocus;
import java.lang.reflect.Method;
import java.util.Objects;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC11254ebq;
import o.AbstractC13175fSw;
import o.C11228ebQ;
import o.C11229ebR;
import o.C11231ebT;
import o.C12891fKc;
import o.C4374bYa;
import o.C4376bYc;
import o.DFY;
import o.InterfaceC10306eAb;
import o.InterfaceC13391fZD;
import o.InterfaceC15577gud;
import o.InterfaceC9424djV;
import o.SurfaceHolderCallbackC12505ezV;
import o.ZI;
import o.dQY;
import o.fSJ;
import o.guQ;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class NationalIdCameraActivity extends AbstractActivityC11254ebq implements InterfaceC10306eAb, InterfaceC9424djV, OverlayNationalIdFocus.RVV {
private static short[] x;
@BindView
ImageView ivArrowBack;
@BindView
ImageView ivCapture;
private SurfaceHolderCallbackC12505ezV k;
private CameraApi2 m;
@InterfaceC13391fZD
public C4376bYc ndidNationalIdCameraPresenter;
@BindView
OverlayNationalIdFocus overlay;
private int q;
private fSJ r;
private int s;
@BindView
SurfaceView surfaceView;
private Uri t;
@BindView
TextureView textureView;
@BindView
TextView tvTitle;
private static final byte[] $$p = {94, -44, 14, -83};
private static final int $$q = 121;
private static int $10 = 0;
private static int $11 = 1;
private static int z = 0;
private static int B = 1;
private static int p = -1877948927;
private static int y = 1406017143;
private static int w = 48436413;
private static byte[] v = {Ascii.NAK, Ascii.ESC, Ascii.ETB, -31, -24, 55, 55, -82, 17, 84, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, -18, 1, -55, Ascii.EM, Ascii.SYN, -23, -26, Ascii.US, 1, -50, 16, 30, -26, Ascii.CAN, ISO7816.INS_CREATE_FILE, 4, 55, 6, ISOFileInfo.AB, Ascii.NAK, Ascii.SUB, 38, -33, -18, -17, -24, Ascii.ESC, -29, Ascii.CAN, ISO7816.INS_PUT_DATA, 56, ISO7816.INS_GET_RESPONSE, 59, -23, 16, Ascii.ETB, -59, Ascii.NAK, -24, -22, 32, -20, Ascii.SYN, 17, Ascii.NAK, ISO7816.INS_LOAD_KEY_FILE, 62, -61, 59, -57, 56, -59, 56, -51, 56, Ascii.DC4, -18, 19, -22, -60, 63, 16, -60, 58, -57, 58, -20, ISO7816.INS_ENVELOPE, Ascii.DC4, -18, Ascii.SYN, 37, -60, 59, -24, 19, 33, -23, Ascii.DC4, -22, -57, -21, 59, -61, 58, ISO7816.INS_PUT_DATA, ISO7816.INS_CHANGE_CHV, 16, -33, -21, Ascii.SYN, Ascii.DC4, 33, -23, Ascii.NAK, -22, -21, Ascii.DC2, -34, -24, 32, -17, 28, -24, -23, -18, ISO7816.INS_GET_RESPONSE, 37, Ascii.ETB, -60, -23, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
private static char[] u = {11088, 37881, 23103, 380, 51626, 45286, 32573, 9803, 61115, 22004, 7209, 56175, 33700, 19169, 12597, 63595, 41132, 28658, 36791, 14095, 65178, 42378, 27928, 5131, 56220, 33490, 19023, 61776, 47254, 32721, 10004, 61015, 38295, 23762, 1044, 52041, 29325, 14797, 57693, 43087, 28633, 5839, 56841, 34115, 19588, 62356, 47876, 25160, 10624, 53451, 38917, 24442, 1721, 52654, 30011, 15473, 58346, 43689, 21052, 6439, 49381, 34801, 20275, 63088, 48566, 25761, 11366, 54117, 39674, 16872, 2429, 45153, 30637, 16057, 58914, 44342, 21669, 7151, 49952, 35379, 12785, 63670, 36787, 14165, 65180, 42460, 27983, 5210, 56269, 33422, 18968, 61788, 47255, 32642, 10052, 61013, 38288, 23771, 1091, 51999, 29402, 14799, 57615, 43081, 28559, 5833, 56921, 34125, 19666, 62354, 47886, 25159, 10633, 53399, 38918, 24367, 1773, 52730, 30011, 15483, 58297, 43770, 21055, 6517, 49329, 34804, 20320, 63010, 48566, 25766, 11360, 54072, 39598, 16871, 2344, 45152, 30632, 16061, 58922, 44340, 21746, 7094, 49955, 35433, 12787, 63716, 36794, 14105, 65240, 42399, 27997, 5203, 56199, 33476, 19033, 61708, 47301, 32650, 10053, 60942, 38349, 23694, 1095, 51983, 29407, 14742, 57695, 43029, 28634, 5786, 56916, 34078, 19610, 62339, 47966, 25091, 10709, 53394, 38982, 24366, 1773, 52668, 30074, 15463, 58351, 43710, 21099, 6455, 49376, 34740, 20343, 63028, 48609, 25777, 11367, 54131, 39679, 16816, 2419, 45174, 30713, 16043, 58995, 44410, 21757, 7097, 50033, 35380, 12771, 63655, 41021, 26587, 11998, 54784, 40203, 17631, 2957, 45893, 31262, 8662, 16460, 63716, 12595, 27238, 41657};
private static long C = 8875775226179434349L;
/* renamed from: o */
private float f7614o = 1.0f;
private boolean l = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0029). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void aC(short r5, int r6, int r7, java.lang.Object[] r8) {
/*
int r7 = r7 + 98
int r6 = r6 * 2
int r6 = r6 + 4
byte[] r0 = com.scb.phone.view.activity.ndid.NationalIdCameraActivity.$$p
int r5 = r5 * 4
int r1 = 1 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r5 = 0 - r5
if (r0 != 0) goto L17
r7 = r5
r4 = r6
r3 = r2
goto L29
L17:
r3 = r2
L18:
byte r4 = (byte) r7
r1[r3] = r4
if (r3 != r5) goto L25
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L25:
r4 = r0[r6]
int r3 = r3 + 1
L29:
int r6 = r6 + 1
int r4 = -r4
int r7 = r7 + r4
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NationalIdCameraActivity.aC(short, int, int, java.lang.Object[]):void");
}
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i;
int i5 = ~i2;
int i6 = (~(i4 | i5)) | (~(i5 | i3));
int i7 = ~i3;
int i8 = i7 | i;
int i9 = (i * 1773) + (i2 * (-885)) + ((i6 | (~(i8 | i2))) * 886) + ((i | (~(i2 | i7))) * (-1772)) + ((~i8) * 886);
return i9 != 1 ? i9 != 2 ? i9 != 3 ? e(objArr) : a(objArr) : d(objArr) : b(objArr);
}
private static void aB(int i, int i2, char c, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i4 = $10 + 33;
$11 = i4 % 128;
int i5 = i4 % 2;
int i6 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(u[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(307 - MotionEvent.axisFromString(""), Gravity.getAbsoluteGravity(0, 0) + 5, (char) (32797 - TextUtils.indexOf("", "")));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aC(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(C), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), '5' - AndroidCharacter.getMirror('0'), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
aC(b3, b4, (byte) (b4 + 1), 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();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(408 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), 4 - Process.getGidForName(""), (char) (Color.red(0) + 29234));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
aC(b5, b6, (byte) (b6 | 8), 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;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i7 = $11 + 87;
$10 = i7 % 128;
int i8 = i7 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 406, 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) ((ViewConfiguration.getTapTimeout() >> 16) + 29234));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr9 = new Object[1];
aC(b7, b8, (byte) (b8 | 8), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
objArr[0] = new String(cArr);
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x019b, code lost:
if (r7 > 99999) goto L57;
*/
@Override // o.AbstractActivityC11254ebq, 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 r30) {
/*
Method dump skipped, instructions count: 1768
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NationalIdCameraActivity.onCreate(android.os.Bundle):void");
}
private static /* synthetic */ Object a(Object[] objArr) {
NationalIdCameraActivity nationalIdCameraActivity = (NationalIdCameraActivity) objArr[0];
int i = 2 % 2;
int i2 = z + 99;
B = i2 % 128;
if (i2 % 2 == 0) {
boolean z2 = nationalIdCameraActivity.l;
throw null;
}
if (!nationalIdCameraActivity.l) {
nationalIdCameraActivity.textureView.setVisibility(0);
nationalIdCameraActivity.surfaceView.setVisibility(8);
CameraApi2 cameraApi2 = new CameraApi2(nationalIdCameraActivity);
nationalIdCameraActivity.m = cameraApi2;
cameraApi2.e = nationalIdCameraActivity;
} else {
nationalIdCameraActivity.textureView.setVisibility(8);
nationalIdCameraActivity.surfaceView.setVisibility(0);
SurfaceHolderCallbackC12505ezV surfaceHolderCallbackC12505ezV = new SurfaceHolderCallbackC12505ezV(nationalIdCameraActivity);
nationalIdCameraActivity.k = surfaceHolderCallbackC12505ezV;
surfaceHolderCallbackC12505ezV.a = nationalIdCameraActivity;
int i3 = z + 121;
B = i3 % 128;
int i4 = i3 % 2;
}
DisplayMetrics displayMetrics = new DisplayMetrics();
nationalIdCameraActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
nationalIdCameraActivity.s = displayMetrics.heightPixels;
nationalIdCameraActivity.q = displayMetrics.widthPixels;
nationalIdCameraActivity.overlay.setOnStateChangeListener(nationalIdCameraActivity);
return null;
}
private static void aA(short s, int i, int i2, int i3, byte b, Object[] objArr) {
boolean z2;
int length;
byte[] bArr;
int i4;
int i5 = 2 % 2;
DFY dfy = new DFY();
StringBuilder sb = new StringBuilder();
try {
Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(y)};
Object obj = xzZ.y.get(-2092856797);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 336, TextUtils.getTrimmedLength("") + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
aC(b2, b3, (byte) (b3 | 12), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
int i6 = intValue == -1 ? 1 : 0;
if (i6 != 0) {
byte[] bArr2 = v;
if (bArr2 != null) {
int i7 = $11 + 31;
$10 = i7 % 128;
if (i7 % 2 != 0) {
length = bArr2.length;
bArr = new byte[length];
i4 = 1;
} else {
length = bArr2.length;
bArr = new byte[length];
i4 = 0;
}
while (i4 < length) {
Object[] objArr4 = {Integer.valueOf(bArr2[i4])};
Object obj2 = xzZ.y.get(-1648115392);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(60 - (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 - View.resolveSizeAndState(0, 0, 0), (char) View.getDefaultSize(0, 0));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
aC(b4, b5, (byte) (b5 | 10), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1648115392, obj2);
}
bArr[i4] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue();
i4++;
}
bArr2 = bArr;
}
if (bArr2 != null) {
byte[] bArr3 = v;
Object[] objArr6 = {Integer.valueOf(i), Integer.valueOf(p)};
Object obj3 = xzZ.y.get(-2092856797);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 338, 5 - View.MeasureSpec.getMode(0), (char) TextUtils.getOffsetBefore("", 0));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
aC(b6, b7, (byte) (b7 | 12), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj3);
}
intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (y ^ (-7303220121662775787L))));
} else {
intValue = (short) (((short) (x[i + ((int) (p ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (y ^ (-7303220121662775787L))));
}
}
if (intValue > 0) {
int i8 = $11 + 11;
$10 = i8 % 128;
int i9 = i8 % 2;
dfy.c = ((i + intValue) - 2) + ((int) (p ^ (-7303220121662775787L))) + i6;
Object[] objArr8 = {dfy, Integer.valueOf(i3), Integer.valueOf(w), sb};
Object obj4 = xzZ.y.get(1546973421);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(748 - Color.argb(0, 0, 0, 0), Color.green(0) + 5, (char) ExpandableListView.getPackedPositionGroup(0L))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
xzZ.y.put(1546973421, obj4);
}
((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a);
dfy.e = dfy.a;
byte[] bArr4 = v;
if (bArr4 != null) {
int i10 = $11 + 47;
$10 = i10 % 128;
int i11 = i10 % 2;
int length2 = bArr4.length;
byte[] bArr5 = new byte[length2];
for (int i12 = 0; i12 < length2; i12++) {
bArr5[i12] = (byte) (bArr4[i12] ^ (-7303220121662775787L));
}
bArr4 = bArr5;
}
if (bArr4 != null) {
int i13 = $11 + 47;
$10 = i13 % 128;
int i14 = i13 % 2;
z2 = true;
} else {
z2 = false;
}
dfy.d = 1;
while (dfy.d < intValue) {
if (z2) {
byte[] bArr6 = v;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r7] ^ (-7303220121662775787L))) + s)) ^ b));
} else {
short[] sArr = x;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r7] ^ (-7303220121662775787L))) + s)) ^ b));
int i15 = $10 + 33;
$11 = i15 % 128;
int i16 = i15 % 2;
}
sb.append(dfy.a);
dfy.e = dfy.a;
dfy.d++;
}
}
objArr[0] = sb.toString();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
@Override // o.AbstractActivityC11254ebq, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = z + 41;
B = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aA((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) - 98), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.billpayment_bnpl_coin_more_detail_title).substring(0, 19).length() + 1008805870, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 106, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.prepaid_travel_conversion_landing_remark).substring(34, 35).codePointAt(0) - 1361906279, (byte) Color.blue(0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(1) - 111, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 42175), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = B + 123;
z = i4 % 128;
if (i4 % 2 == 0) {
baseContext = baseContext.getApplicationContext();
} else {
baseContext.getApplicationContext();
throw null;
}
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (KeyEvent.getMaxKeyCode() >> 16), '5' - AndroidCharacter.getMirror('0'), (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(488 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 5 - View.combineMeasuredStates(0, 0), (char) TextUtils.getOffsetBefore("", 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
if (Build.VERSION.SDK_INT >= 33) {
int i5 = B + 75;
int i6 = i5 % 128;
z = i6;
int i7 = i5 % 2;
int i8 = i6 + 19;
B = i8 % 128;
if (i8 % 2 != 0) {
C11231ebT.a(this);
return;
} else {
C11231ebT.a(this);
throw null;
}
}
C11231ebT.b(this);
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.activity.ComponentActivity, android.app.Activity, android.content.ComponentCallbacks
public void onConfigurationChanged(Configuration configuration) {
int i = 2 % 2;
int i2 = z + 67;
B = i2 % 128;
int i3 = i2 % 2;
super.onConfigurationChanged(configuration);
int i4 = z + 19;
B = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 55 / 0;
}
}
/* JADX WARN: Removed duplicated region for block: B:26:0x007d A[Catch: CameraHardwareNotSupportException -> 0x023b, TryCatch #7 {CameraHardwareNotSupportException -> 0x023b, blocks: (B:12:0x0022, B:15:0x0030, B:18:0x0045, B:20:0x0055, B:24:0x0079, B:26:0x007d, B:27:0x0080, B:29:0x0084, B:32:0x0094, B:56:0x0098, B:58:0x00aa, B:60:0x00cd, B:63:0x00dc, B:65:0x00f7, B:67:0x00fd, B:73:0x010b, B:84:0x0121, B:86:0x013b, B:87:0x0142, B:89:0x0153, B:90:0x0155, B:91:0x015f, B:93:0x0165, B:122:0x006f, B:123:0x0074, B:128:0x0076, B:133:0x0037), top: B:10:0x0020, inners: #6 }] */
/* JADX WARN: Removed duplicated region for block: B:49:0x027c */
/* JADX WARN: Removed duplicated region for block: B:51:0x0280 */
/* JADX WARN: Removed duplicated region for block: B:55:0x0098 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void f() {
/*
Method dump skipped, instructions count: 1049
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NationalIdCameraActivity.f():void");
}
public static /* synthetic */ void a(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = B + 55;
z = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.c();
int i4 = z + 93;
B = i4 % 128;
int i5 = i4 % 2;
}
public static /* synthetic */ void d(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = z + 23;
B = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.e();
int i4 = B + 79;
z = i4 % 128;
int i5 = i4 % 2;
}
public final void b(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(this).c(R.string.permission_storage_camera_title).d(R.string.permission_storage_camera).aoT_(R.string.permission_allow, new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.ebP
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
NationalIdCameraActivity.a(this.b);
}
{
this.b = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.ebX
private InterfaceC15577gud d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
NationalIdCameraActivity.d(this.d);
}
{
this.d = interfaceC15577gud;
}
}})).show();
int i2 = B + 95;
z = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object d(Object[] objArr) {
int i = 2 % 2;
int i2 = z + 97;
B = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("showDeniedForChooser", new Object[1]);
} else {
guQ.b("showDeniedForChooser", new Object[0]);
}
int i3 = B + 67;
z = i3 % 128;
if (i3 % 2 == 0) {
return null;
}
throw null;
}
public static void h() {
int i = 2 % 2;
int i2 = B + 97;
z = i2 % 128;
if (i2 % 2 != 0) {
guQ.b("showDeniedForChooserAndroid13", new Object[0]);
} else {
guQ.b("showDeniedForChooserAndroid13", new Object[0]);
}
}
@OnClick
public void onClick() {
int i = 2 % 2;
int i2 = z + 37;
B = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
if (this.l) {
SurfaceHolderCallbackC12505ezV surfaceHolderCallbackC12505ezV = this.k;
Camera camera = surfaceHolderCallbackC12505ezV.c;
if (camera != null) {
int i3 = z + 75;
B = i3 % 128;
if (i3 % 2 == 0) {
camera.takePicture(surfaceHolderCallbackC12505ezV.f, surfaceHolderCallbackC12505ezV.j, surfaceHolderCallbackC12505ezV.d);
throw null;
}
camera.takePicture(surfaceHolderCallbackC12505ezV.f, surfaceHolderCallbackC12505ezV.j, surfaceHolderCallbackC12505ezV.d);
}
} else {
CameraApi2 cameraApi2 = this.m;
if (cameraApi2.d != null) {
int i4 = z + 121;
B = i4 % 128;
if (i4 % 2 == 0) {
CaptureRequest.Builder builder = cameraApi2.j;
throw null;
}
CaptureRequest.Builder builder2 = cameraApi2.j;
if (builder2 != null) {
int i5 = B + 59;
z = i5 % 128;
int i6 = i5 % 2;
if (cameraApi2.b != null) {
builder2.set(CaptureRequest.JPEG_ORIENTATION, (Integer) cameraApi2.a.get(CameraCharacteristics.SENSOR_ORIENTATION));
try {
cameraApi2.d.capture(cameraApi2.j.build(), null, cameraApi2.b);
} catch (CameraAccessException e) {
e.getMessage();
}
}
}
}
}
this.ivCapture.setEnabled(false);
int i7 = B + 115;
z = i7 % 128;
int i8 = i7 % 2;
}
@Override // o.InterfaceC10306eAb
public final void j() {
CaptureRequest.Builder builder;
int i = 2 % 2;
if (!(!this.l)) {
this.k.c.startPreview();
return;
}
CameraApi2 cameraApi2 = this.m;
CaptureRequest.Key key = CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE;
CaptureRequest.Builder builder2 = cameraApi2.f;
Object obj = null;
if (builder2 != null && cameraApi2.j != null) {
int i2 = B + 13;
z = i2 % 128;
if (i2 % 2 != 0) {
builder2.set(key, 2);
cameraApi2.j.set(key, 2);
throw null;
}
builder2.set(key, 2);
cameraApi2.j.set(key, 2);
}
CameraApi2 cameraApi22 = this.m;
CaptureRequest.Key key2 = CaptureRequest.CONTROL_AF_MODE;
CaptureRequest.Builder builder3 = cameraApi22.f;
if (builder3 != null && cameraApi22.j != null) {
int i3 = B + 123;
z = i3 % 128;
if (i3 % 2 != 0) {
builder3.set(key2, 4);
cameraApi22.j.set(key2, 4);
obj.hashCode();
throw null;
}
builder3.set(key2, 4);
cameraApi22.j.set(key2, 4);
}
CameraApi2 cameraApi23 = this.m;
CameraCaptureSession cameraCaptureSession = cameraApi23.d;
if (cameraCaptureSession != null && (builder = cameraApi23.f) != null && cameraApi23.b != null) {
try {
cameraCaptureSession.setRepeatingRequest(builder.build(), null, cameraApi23.b);
return;
} catch (CameraAccessException e) {
e.getMessage();
}
}
int i4 = z + 53;
B = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC10306eAb
public final void aob_(Image image) {
int i = 2 % 2;
CameraCaptureSession cameraCaptureSession = this.m.d;
if (cameraCaptureSession != null) {
try {
cameraCaptureSession.stopRepeating();
} catch (CameraAccessException e) {
e.getMessage();
}
}
if (this.t != null) {
int i2 = B + 41;
z = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
getWindowManager().getDefaultDisplay().getRotation();
C4376bYc c4376bYc = this.ndidNationalIdCameraPresenter;
getContentResolver();
T t = c4376bYc.f;
throw null;
}
int rotation = getWindowManager().getDefaultDisplay().getRotation();
C4376bYc c4376bYc2 = this.ndidNationalIdCameraPresenter;
ContentResolver contentResolver = getContentResolver();
Uri uri = this.t;
float f = this.f7614o;
if (c4376bYc2.f != 0) {
int i3 = B + 55;
z = i3 % 128;
int i4 = i3 % 2;
c4376bYc2.f.y();
}
ZI.IeS ieS = new ZI.IeS(c4376bYc2, contentResolver, image, uri, f, rotation) { // from class: o.bYe
private Uri a;
private float b;
private ContentResolver c;
private Image d;
private C4376bYc e;
private int g;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9424djV) obj2).aiS_(this.c, this.d, this.a, this.b, C4376bYc.a(this.g, 2));
}
{
this.e = c4376bYc2;
this.c = contentResolver;
this.d = image;
this.a = uri;
this.b = f;
this.g = rotation;
}
};
if (c4376bYc2.f != 0) {
int i5 = z;
int i6 = i5 + 47;
B = i6 % 128;
if (i6 % 2 != 0) {
int i7 = i5 + 61;
B = i7 % 128;
if (i7 % 2 != 0) {
ieS.e(c4376bYc2.f);
} else {
ieS.e(c4376bYc2.f);
obj.hashCode();
throw null;
}
}
}
}
}
@Override // o.InterfaceC10306eAb
public final void d(byte[] bArr) {
int i = 2 % 2;
this.k.c.stopPreview();
if (this.t != null) {
int rotation = getWindowManager().getDefaultDisplay().getRotation();
C4376bYc c4376bYc = this.ndidNationalIdCameraPresenter;
ContentResolver contentResolver = getContentResolver();
Uri uri = this.t;
float f = this.f7614o;
if (c4376bYc.f != 0) {
int i2 = B + 53;
int i3 = i2 % 128;
z = i3;
int i4 = i2 % 2;
int i5 = i3 + 17;
B = i5 % 128;
int i6 = i5 % 2;
c4376bYc.f.y();
}
ZI.IeS ieS = new ZI.IeS(c4376bYc, contentResolver, bArr, uri, f, rotation) { // from class: o.bYh
private byte[] a;
private float b;
private ContentResolver c;
private Uri d;
private C4376bYc e;
private int j;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9424djV) obj).aiT_(this.c, this.a, this.d, this.b, C4376bYc.a(this.j, 1));
}
{
this.e = c4376bYc;
this.c = contentResolver;
this.a = bArr;
this.d = uri;
this.b = f;
this.j = rotation;
}
};
if (!(c4376bYc.f != 0)) {
return;
}
int i7 = B + 79;
z = i7 % 128;
if (i7 % 2 == 0) {
ieS.e(c4376bYc.f);
} else {
ieS.e(c4376bYc.f);
int i8 = 58 / 0;
}
}
}
private static /* synthetic */ Object e(Object[] objArr) {
NationalIdCameraActivity nationalIdCameraActivity = (NationalIdCameraActivity) objArr[0];
int i = 2 % 2;
int i2 = B;
int i3 = i2 + 5;
z = i3 % 128;
int i4 = i3 % 2;
if (nationalIdCameraActivity.l) {
SurfaceHolderCallbackC12505ezV surfaceHolderCallbackC12505ezV = nationalIdCameraActivity.k;
Camera camera = surfaceHolderCallbackC12505ezV.c;
if (camera != null) {
int i5 = B + 11;
z = i5 % 128;
if (i5 % 2 != 0) {
camera.stopPreview();
surfaceHolderCallbackC12505ezV.c.release();
surfaceHolderCallbackC12505ezV.c = null;
int i6 = 78 / 0;
} else {
camera.stopPreview();
surfaceHolderCallbackC12505ezV.c.release();
surfaceHolderCallbackC12505ezV.c = null;
}
}
return null;
}
int i7 = i2 + 107;
z = i7 % 128;
int i8 = i7 % 2;
CameraApi2 cameraApi2 = nationalIdCameraActivity.m;
CameraDevice cameraDevice = cameraApi2.g;
if (cameraDevice != null) {
cameraDevice.close();
}
HandlerThread handlerThread = cameraApi2.c;
if (handlerThread != null) {
handlerThread.quitSafely();
try {
cameraApi2.c.join();
cameraApi2.c = null;
cameraApi2.b = null;
return null;
} catch (InterruptedException e) {
e.getMessage();
Thread.currentThread().interrupt();
}
}
return null;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0088, code lost:
r1.dispose();
r0 = 73 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x008f, code lost:
r1.dispose();
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x007b, code lost:
if (r1 != null) goto L24;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x004c, code lost:
if (r1 != null) goto L24;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x007d, code lost:
r2 = com.scb.phone.view.activity.ndid.NationalIdCameraActivity.z + 57;
com.scb.phone.view.activity.ndid.NationalIdCameraActivity.B = r2 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0086, code lost:
if ((r2 % 2) != 0) goto L27;
*/
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void onDestroy() {
/*
r10 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.ndid.NationalIdCameraActivity.B
int r1 = r1 + 5
int r2 = r1 % 128
com.scb.phone.view.activity.ndid.NationalIdCameraActivity.z = r2
int r1 = r1 % r0
r2 = 1294194600(0x4d23d7a8, float:1.7180122E8)
r3 = -1294194600(0xffffffffb2dc2858, float:-2.5629717E-8)
java.lang.String r4 = "currentApplication"
java.lang.String r5 = "android.app.ActivityThread"
r6 = -746423289(0xffffffffd3827c07, float:-1.1208532E12)
r7 = 0
r8 = 0
if (r1 == 0) goto L4f
java.lang.Object[] r1 = new java.lang.Object[]{r10}
java.lang.Class r5 = java.lang.Class.forName(r5)
java.lang.Class[] r9 = new java.lang.Class[r8]
java.lang.reflect.Method r4 = r5.getMethod(r4, r9)
r5 = r7
java.lang.Object[] r5 = (java.lang.Object[]) r5
java.lang.Object r4 = r4.invoke(r7, r7)
android.content.Context r4 = (android.content.Context) r4
android.content.Context r4 = r4.getApplicationContext()
android.content.pm.ApplicationInfo r4 = r4.getApplicationInfo()
int r4 = r4.targetSdkVersion
int r4 = r4 + r6
c(r1, r3, r2, r4)
o.bYc r1 = r10.ndidNationalIdCameraPresenter
r1.w_()
o.fSJ r1 = r10.r
r2 = 15
int r2 = r2 / r8
if (r1 == 0) goto L92
goto L7d
L4f:
java.lang.Object[] r1 = new java.lang.Object[]{r10}
java.lang.Class r5 = java.lang.Class.forName(r5)
java.lang.Class[] r9 = new java.lang.Class[r8]
java.lang.reflect.Method r4 = r5.getMethod(r4, r9)
r5 = r7
java.lang.Object[] r5 = (java.lang.Object[]) r5
java.lang.Object r4 = r4.invoke(r7, r7)
android.content.Context r4 = (android.content.Context) r4
android.content.Context r4 = r4.getApplicationContext()
android.content.pm.ApplicationInfo r4 = r4.getApplicationInfo()
int r4 = r4.targetSdkVersion
int r4 = r4 + r6
c(r1, r3, r2, r4)
o.bYc r1 = r10.ndidNationalIdCameraPresenter
r1.w_()
o.fSJ r1 = r10.r
if (r1 == 0) goto L92
L7d:
int r2 = com.scb.phone.view.activity.ndid.NationalIdCameraActivity.z
int r2 = r2 + 57
int r3 = r2 % 128
com.scb.phone.view.activity.ndid.NationalIdCameraActivity.B = r3
int r2 = r2 % r0
if (r2 != 0) goto L8f
r1.dispose()
r0 = 73
int r0 = r0 / r8
goto L92
L8f:
r1.dispose()
L92:
super.onDestroy()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NationalIdCameraActivity.onDestroy():void");
}
@OnClick
public void onNavigateBack() {
int i = 2 % 2;
int i2 = B + 39;
z = i2 % 128;
int i3 = i2 % 2;
c(new Object[]{this}, -1294194600, 1294194600, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 746423289);
setResult(0);
finish();
int i4 = z + 19;
B = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9424djV
public final void d() {
int i = 2 % 2;
c(new Object[]{this}, -1294194600, 1294194600, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 746423289);
runOnUiThread(new Runnable(this) { // from class: o.ebU
private NationalIdCameraActivity e;
@Override // java.lang.Runnable
public final void run() {
NationalIdCameraActivity.e(this.e);
}
{
this.e = this;
}
});
int i2 = z + 95;
B = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9424djV
public final void c() {
int i = 2 % 2;
int i2 = B + 115;
z = i2 % 128;
int i3 = i2 % 2;
onNavigateBack();
int i4 = z + 75;
B = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 29 / 0;
}
}
@Override // o.InterfaceC9424djV
public final void aiS_(ContentResolver contentResolver, Image image, Uri uri, float f, int i) {
int i2 = 2 % 2;
AbstractC13175fSw<Boolean> azb_ = C12891fKc.azb_(contentResolver, getResources(), image, uri, f, i);
C4376bYc c4376bYc = this.ndidNationalIdCameraPresenter;
Objects.requireNonNull(c4376bYc);
C11229ebR c11229ebR = new C11229ebR(c4376bYc);
C4376bYc c4376bYc2 = this.ndidNationalIdCameraPresenter;
Objects.requireNonNull(c4376bYc2);
this.r = azb_.b(c11229ebR, new C11228ebQ(c4376bYc2));
int i3 = B + 83;
z = i3 % 128;
if (i3 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9424djV
public final void aiT_(ContentResolver contentResolver, byte[] bArr, Uri uri, float f, int i) {
int i2 = 2 % 2;
AbstractC13175fSw<Boolean> azc_ = C12891fKc.azc_(contentResolver, getResources(), bArr, uri, f, i);
C4376bYc c4376bYc = this.ndidNationalIdCameraPresenter;
Objects.requireNonNull(c4376bYc);
C11229ebR c11229ebR = new C11229ebR(c4376bYc);
C4376bYc c4376bYc2 = this.ndidNationalIdCameraPresenter;
Objects.requireNonNull(c4376bYc2);
this.r = azc_.b(c11229ebR, new C11228ebQ(c4376bYc2));
int i3 = B + 65;
z = i3 % 128;
int i4 = i3 % 2;
}
@Override // com.scb.phone.view.custom.ndid.OverlayNationalIdFocus.RVV
public final void e(int i, int i2) {
TextView textView;
int width;
int i3 = 2 % 2;
int i4 = z + 25;
B = i4 % 128;
if (i4 % 2 == 0) {
textView = this.tvTitle;
width = ((int) ((i2 * this.tvTitle.getWidth()) * 2.0f)) - i;
} else {
textView = this.tvTitle;
width = ((int) ((i2 - this.tvTitle.getWidth()) / 2.0f)) + i;
}
textView.setX(width);
}
@Override // o.AbstractActivityC11254ebq, 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();
Object obj = null;
if (baseContext == null) {
int i2 = B + 35;
z = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aA((short) TextUtils.indexOf("", "", 0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_terms_and_conditions_decline_description_dialog).substring(31, 32).codePointAt(0) + 1008805857, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 106, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_outcome_pending_button_text).substring(14, 16).codePointAt(0) - 1361906279, (byte) Color.blue(0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aB(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_csent_sensitive_deny_message).substring(CipherSuite.TLS_RSA_WITH_AES_128_GCM_SHA256, CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384).length() - 1, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(5) - 81, (char) (ImageFormat.getBitsPerPixel(0) + 42210), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = z + 25;
B = i4 % 128;
if (i4 % 2 == 0) {
baseContext.getApplicationContext();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i5 = B + 109;
z = i5 % 128;
try {
if (i5 % 2 != 0) {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - TextUtils.getCapsMode("", 0, 0), View.resolveSizeAndState(0, 0, 0) + 5, (char) (ViewConfiguration.getScrollBarSize() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 488, 5 - TextUtils.indexOf("", "", 0, 0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
obj.hashCode();
throw null;
}
Object obj4 = xzZ.y.get(125943855);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(491 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj4);
}
Object invoke2 = ((Method) obj4).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj5 = xzZ.y.get(1633456013);
if (obj5 == null) {
obj5 = ((Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 487, Color.green(0) + 5, (char) Color.blue(0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj5);
}
((Method) obj5).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
@Override // o.AbstractActivityC11254ebq, 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((short) TextUtils.indexOf("", ""), 1008805868 + (Process.myPid() >> 22), (-16777296) - Color.rgb(0, 0, 0), (-1361906247) - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (byte) Color.red(0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aA((short) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1), 1008805885 - ExpandableListView.getPackedPositionGroup(0L), View.resolveSizeAndState(0, 0, 0) - 93, TextUtils.indexOf("", "", 0) - 1361906235, (byte) (ViewConfiguration.getTapTimeout() >> 16), 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 || intValue > 99999) {
if (context != null) {
int i2 = B + 93;
z = i2 % 128;
if (i2 % 2 != 0) {
context.getApplicationContext();
obj.hashCode();
throw null;
}
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
int i3 = B + 123;
z = i3 % 128;
int i4 = i3 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 492, Drawable.resolveOpacity(0, 0) + 5, (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = new Object[1];
aA((short) TextUtils.indexOf("", "", 0, 0), View.MeasureSpec.makeMeasureSpec(0, 0) + 1008805914, (-50) - Color.blue(0), (-1361906295) - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (byte) (ViewConfiguration.getMinimumFlingVelocity() >> 16), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aB((ViewConfiguration.getKeyRepeatDelay() >> 16) + 18, 64 - Gravity.getAbsoluteGravity(0, 0), (char) (ImageFormat.getBitsPerPixel(0) + 1), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aB(KeyEvent.normalizeMetaState(0) + 82, (ViewConfiguration.getKeyRepeatTimeout() >> 16) + 64, (char) (ViewConfiguration.getFadingEdgeLength() >> 16), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aB(View.MeasureSpec.makeMeasureSpec(0, 0) + CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA, 73 - ExpandableListView.getPackedPositionChild(0L), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aB(219 - TextUtils.lastIndexOf("", '0', 0, 0), 5 - KeyEvent.normalizeMetaState(0), (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 53160), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aA((short) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 1008805961 - TextUtils.indexOf("", "", 0, 0), (ViewConfiguration.getScrollDefaultDelay() >> 16) - 62, (-1378683459) - Color.rgb(0, 0, 0), (byte) (ViewConfiguration.getPressedStateDuration() >> 16), 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(TextUtils.getTrimmedLength("") + 487, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16))).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);
int i5 = z + 95;
B = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
public static /* synthetic */ void a(NationalIdCameraActivity nationalIdCameraActivity) {
int i = 2 % 2;
int i2 = B + 67;
z = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
nationalIdCameraActivity.setResult(-1);
nationalIdCameraActivity.finish();
int i3 = z + 77;
B = i3 % 128;
if (i3 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
nationalIdCameraActivity.setResult(-1);
nationalIdCameraActivity.finish();
throw null;
}
private static /* synthetic */ Object b(Object[] objArr) {
C4376bYc c4376bYc = (C4376bYc) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i = 2 % 2;
int i2 = z + 75;
B = i2 % 128;
int i3 = i2 % 2;
if (c4376bYc.f != 0) {
int i4 = B + 19;
z = i4 % 128;
int i5 = i4 % 2;
c4376bYc.f.ar_();
}
if (booleanValue) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bYg
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9424djV) obj).d();
}
};
if (c4376bYc.f != 0) {
int i6 = B + 71;
z = i6 % 128;
int i7 = i6 % 2;
ieS.e(c4376bYc.f);
}
return null;
}
C4374bYa c4374bYa = new C4374bYa();
if (c4376bYc.f != 0) {
int i8 = B + 55;
z = i8 % 128;
if (i8 % 2 == 0) {
c4374bYa.e(c4376bYc.f);
}
}
return null;
}
public static /* synthetic */ void e(NationalIdCameraActivity nationalIdCameraActivity) {
int i = 2 % 2;
nationalIdCameraActivity.ivCapture.setVisibility(8);
nationalIdCameraActivity.overlay.setVisibility(8);
nationalIdCameraActivity.ivArrowBack.setVisibility(8);
nationalIdCameraActivity.tvTitle.setVisibility(8);
new Handler().postDelayed(new Runnable(nationalIdCameraActivity) { // from class: o.ebW
private NationalIdCameraActivity a;
@Override // java.lang.Runnable
public final void run() {
NationalIdCameraActivity.a(this.a);
}
{
this.a = nationalIdCameraActivity;
}
}, 200L);
int i2 = z + 7;
B = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 50 / 0;
}
}
public static /* synthetic */ void c(C4376bYc c4376bYc) {
int i = 2 % 2;
int i2 = B + 69;
z = i2 % 128;
int i3 = i2 % 2;
if (c4376bYc.f != 0) {
int i4 = B + 1;
z = i4 % 128;
int i5 = i4 % 2;
c4376bYc.f.ar_();
int i6 = B + 7;
z = i6 % 128;
int i7 = i6 % 2;
}
C4374bYa c4374bYa = new C4374bYa();
if (c4376bYc.f == 0) {
int i8 = B + 109;
z = i8 % 128;
int i9 = i8 % 2;
return;
}
int i10 = B + 51;
int i11 = i10 % 128;
z = i11;
int i12 = i10 % 2;
int i13 = i11 + 77;
B = i13 % 128;
if (i13 % 2 != 0) {
c4374bYa.e(c4376bYc.f);
} else {
c4374bYa.e(c4376bYc.f);
throw null;
}
}
@Override // o.AbstractActivityC11254ebq, 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 = z + 21;
B = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = z + 107;
B = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
static void g() {
c(new Object[0], 688462049, -688462047, (int) System.currentTimeMillis());
}
@Override // o.InterfaceC9424djV
public final void b() {
c(new Object[]{this}, -797427884, 797427887, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 1398338682);
}
private void m() {
c(new Object[]{this}, -1294194600, 1294194600, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 746423289);
}
}