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

1774 lines
64 KiB
Java

package com.scb.phone.view.activity.ndid;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.hardware.Camera;
import android.media.AudioTrack;
import android.os.CountDownTimer;
import android.os.Process;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.Base64;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ExpandableListView;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.facetec.sdk.FaceTecCustomization;
import com.facetec.sdk.FaceTecSDK;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.camera.h;
import com.pingan.ai.face.common.PaFaceConstants;
import com.pingan.ai.face.entity.PaFaceDetectFrame;
import com.pingan.ai.face.manager.PaFaceDetectorManager;
import com.pingan.ai.face.manager.impl.OnPaFaceDetectorListener;
import com.scb.phone.R;
import com.scb.phone.view.activity.facialrecognition.FacialVerificationLockedActivity;
import com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.common.CustomViewProgressAnimationFull;
import com.scb.phone.view.custom.ndid.OverlayWithCircleFocus;
import java.io.File;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractActivityC11247ebj;
import o.AbstractC13175fSw;
import o.AbstractC4304bWR;
import o.C0690Mh;
import o.C0693Mj;
import o.C12144esf;
import o.C12891fKc;
import o.C14815gJ;
import o.C4306bWV;
import o.C4593bdB;
import o.C6583cXR;
import o.InterfaceC13391fZD;
import o.InterfaceC15577gud;
import o.InterfaceC9491dkj;
import o.ZI;
import o.dQY;
import o.eDH;
import o.fSJ;
import o.fSQ;
import o.guQ;
import o.pug;
import o.xzZ;
/* loaded from: classes5.dex */
public abstract class BaseLivenessCheckActivity extends AbstractActivityC11247ebj implements eDH.HBt, OverlayWithCircleFocus.HBt, InterfaceC9491dkj {
private static char[] q;
private static byte s;
private static long u;
private static long w;
private static int y;
private eDH b;
@BindView
Button buttonStart;
@InterfaceC13391fZD
public File cacheFileDir;
@BindView
CustomViewProgressAnimationFull customLoading;
@BindView
FrameLayout framePreview;
private boolean l;
@BindView
LinearLayout layoutBlink;
/* renamed from: o, reason: collision with root package name */
private PaFaceDetectorManager f7594o;
@BindView
OverlayWithCircleFocus owcfFocus;
private fSJ p;
private int r;
@BindView
RelativeLayout rlPingAnUi;
@BindView
TextView tvFeedback;
@BindView
TextView tvInstruction;
@BindView
TextView tvMotionCount;
private static final byte[] $$y = {124, -126, ISO7816.INS_MSE, 69};
private static final int $$z = 43;
private static int $10 = 0;
private static int $11 = 1;
private static int v = 0;
private List<Integer> m = new ArrayList();
private OnPaFaceDetectorListener k = new OnPaFaceDetectorListener(this) { // from class: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.1
private BaseLivenessCheckActivity c;
{
this.c = this;
}
@Override // com.pingan.ai.face.manager.impl.OnPaFaceDetectorListener
public final void onDetectTips(int i) {
int i2;
switch (i) {
case 2001:
i2 = R.string.ndid_liveness_check_tips_normal;
break;
case 2002:
case 2004:
i2 = R.string.ndid_liveness_check_tips_noface;
break;
case 2003:
i2 = R.string.ndid_liveness_check_tips_multiface;
break;
case 2005:
i2 = R.string.ndid_liveness_check_tips_yawleft;
break;
case PaFaceConstants.EnvironmentalTips.FACE_YAW_RIGHT /* 2006 */:
i2 = R.string.ndid_liveness_check_tips_yawright;
break;
case 2007:
i2 = R.string.ndid_liveness_check_tips_rollleft;
break;
case 2008:
i2 = R.string.ndid_liveness_check_tips_rollright;
break;
case 2009:
i2 = R.string.ndid_liveness_check_tips_pitchup;
break;
case 2010:
i2 = R.string.ndid_liveness_check_tips_pitchdown;
break;
case PaFaceConstants.EnvironmentalTips.TOO_DARK /* 2011 */:
i2 = R.string.ndid_liveness_check_tips_toodark;
break;
case 2012:
i2 = R.string.ndid_liveness_check_tips_toobright;
break;
case 2013:
i2 = R.string.ndid_liveness_check_tips_toofuzzy;
break;
case 2014:
i2 = R.string.ndid_liveness_check_tips_tooclose;
break;
case 2015:
i2 = R.string.ndid_liveness_check_tips_toofar;
break;
default:
i2 = 0;
break;
}
AbstractC4304bWR n = this.c.n();
C4306bWV c4306bWV = new C4306bWV(i2);
if (n.f != 0) {
c4306bWV.e(n.f);
}
}
@Override // com.pingan.ai.face.manager.impl.OnAbsListener
public final void onDetectMotionTips(int i) {
AbstractC4304bWR n = this.c.n();
C4306bWV c4306bWV = new C4306bWV(R.string.ndid_liveness_check_tips_normal);
if (n.f != 0) {
c4306bWV.e(n.f);
}
}
@Override // com.pingan.ai.face.manager.impl.OnPaFaceDetectorListener, com.pingan.ai.face.manager.impl.OnAbsListener
public final void onDetectMotionDone(int i) {
if (i == 1003 || i == 1004 || i == 1005) {
final AbstractC4304bWR n = this.c.n();
n.h++;
ZI.IeS ieS = new ZI.IeS(n) { // from class: o.bWX
private AbstractC4304bWR a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9491dkj) obj).b(this.a.h);
}
{
this.a = n;
}
};
if (n.f != 0) {
ieS.e(n.f);
}
}
}
@Override // com.pingan.ai.face.manager.impl.OnPaFaceDetectorListener
public final void onInterruptError(int i) {
BaseLivenessCheckActivity baseLivenessCheckActivity = this.c;
BaseLivenessCheckActivity.d(baseLivenessCheckActivity, baseLivenessCheckActivity.getString(R.string.ndid_liveness_check_error_oniterrupt_error));
}
@Override // com.pingan.ai.face.manager.impl.OnAbsListener
public final void onDetectComplete(int i, PaFaceDetectFrame[] paFaceDetectFrameArr) {
if (i == 4001 && paFaceDetectFrameArr != null && paFaceDetectFrameArr.length > 0) {
PaFaceDetectFrame paFaceDetectFrame = paFaceDetectFrameArr[0];
C12144esf.RVV rvv = new C12144esf.RVV();
rvv.k = paFaceDetectFrame.rectX;
rvv.m = paFaceDetectFrame.rectY;
rvv.n = paFaceDetectFrame.rectW;
rvv.l = paFaceDetectFrame.rectH;
rvv.e = paFaceDetectFrame.faceNum;
rvv.t = paFaceDetectFrame.yaw;
rvv.g = paFaceDetectFrame.pitch;
rvv.f9089o = paFaceDetectFrame.roll;
rvv.c = paFaceDetectFrame.blurness;
rvv.a = paFaceDetectFrame.brightness;
rvv.d = paFaceDetectFrame.imageFrame;
rvv.i = paFaceDetectFrame.frameWidth;
rvv.b = BitmapDescriptorFactory.HUE_RED;
rvv.h = paFaceDetectFrame.frameHeight;
rvv.j = paFaceDetectFrame.frameOri;
rvv.f = paFaceDetectFrame.liveScore;
C12144esf c12144esf = new C12144esf(rvv, (byte) 0);
final AbstractC4304bWR n = this.c.n();
n.a = c12144esf;
if (n.a != null) {
if (n.f != 0) {
n.f.y();
}
ZI.IeS ieS = new ZI.IeS(n) { // from class: o.bWQ
private AbstractC4304bWR a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9491dkj) obj).d(this.a.a);
}
{
this.a = n;
}
};
if (n.f != 0) {
ieS.e(n.f);
}
}
this.c.j();
return;
}
BaseLivenessCheckActivity baseLivenessCheckActivity = this.c;
BaseLivenessCheckActivity.d(baseLivenessCheckActivity, baseLivenessCheckActivity.getString(R.string.ndid_liveness_check_error_timeout_description));
}
};
private CountDownTimer t = new CountDownTimer(this) { // from class: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.3
private BaseLivenessCheckActivity e;
@Override // android.os.CountDownTimer
public final void onTick(long j) {
}
{
this.e = this;
}
@Override // android.os.CountDownTimer
public final void onFinish() {
BaseLivenessCheckActivity baseLivenessCheckActivity = this.e;
BaseLivenessCheckActivity.d(baseLivenessCheckActivity, baseLivenessCheckActivity.getString(R.string.ndid_liveness_check_error_timeout_description));
}
};
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002b). 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 aG(byte r7, short r8, int r9, java.lang.Object[] r10) {
/*
byte[] r0 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.$$y
int r9 = r9 * 2
int r9 = r9 + 1
int r8 = r8 * 2
int r8 = 3 - r8
int r7 = r7 + 77
byte[] r1 = new byte[r9]
r2 = 0
if (r0 != 0) goto L14
r3 = r8
r4 = r2
goto L2b
L14:
r3 = r2
L15:
int r4 = r3 + 1
byte r5 = (byte) r7
int r8 = r8 + 1
r1[r3] = r5
if (r4 != r9) goto L26
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L26:
r3 = r0[r8]
r6 = r3
r3 = r8
r8 = r6
L2b:
int r8 = -r8
int r7 = r7 + r8
r8 = r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.aG(byte, short, int, java.lang.Object[]):void");
}
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
int i4 = (i * (-755)) + (i2 * (-755));
int i5 = ~((~i) | (~i2));
int i6 = i | i2;
int i7 = i4 + (i5 * 1512) + (((~(i6 | i3)) | i5) * (-756)) + ((i6 | (~i3)) * 756);
if (i7 == 1) {
return c(objArr);
}
if (i7 == 2) {
return e(objArr);
}
if (i7 == 3) {
return b(objArr);
}
if (i7 != 4) {
BaseLivenessCheckActivity baseLivenessCheckActivity = (BaseLivenessCheckActivity) objArr[0];
String str = (String) objArr[1];
int i8 = 2 % 2;
baseLivenessCheckActivity.j();
baseLivenessCheckActivity.tvMotionCount.setText("");
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = baseLivenessCheckActivity.getString(R.string.ndid_liveness_check_error_timeout_header);
c0693Mj.c = str;
c0693Mj.e = baseLivenessCheckActivity.k();
if (!baseLivenessCheckActivity.n().g) {
int i9 = v + 109;
y = i9 % 128;
int i10 = i9 % 2;
c0693Mj.e = baseLivenessCheckActivity.k();
}
baseLivenessCheckActivity.l = true;
super.e(c0693Mj);
int i11 = v + 117;
y = i11 % 128;
int i12 = i11 % 2;
return null;
}
return d(objArr);
}
protected abstract AbstractC4304bWR n();
private void aF(String str, Object[] objArr) {
byte[] decode;
byte[] bArr;
int i;
int i2 = 2 % 2;
int i3 = y + 89;
v = i3 % 128;
if (i3 % 2 != 0) {
decode = Base64.decode(str, 1);
bArr = new byte[decode.length];
i = 1;
} else {
decode = Base64.decode(str, 0);
bArr = new byte[decode.length];
i = 0;
}
while (i < decode.length) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ s);
i++;
}
String str2 = new String(bArr, StandardCharsets.UTF_8);
int i4 = y + 49;
v = i4 % 128;
int i5 = i4 % 2;
objArr[0] = str2;
}
static {
y = 1;
R();
N();
System.loadLibrary("idb20c");
System.loadLibrary("h373a7");
int i = v + 29;
y = i % 128;
int i2 = i % 2;
}
private static void aE(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(MotionEvent.axisFromString("") + 403, (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) (21608 - (ViewConfiguration.getMinimumFlingVelocity() >> 16)));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
aG(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i3] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (w ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 239, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) (ImageFormat.getBitsPerPixel(0) + 1));
byte b3 = (byte) ($$z & 5);
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
aG(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i4 = $11 + 103;
$10 = i4 % 128;
int i5 = i4 % 2;
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(238 - (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 - (Process.myTid() >> 22), (char) (Process.myTid() >> 22));
byte b5 = (byte) ($$z & 5);
byte b6 = (byte) (b5 - 1);
Object[] objArr7 = new Object[1];
aG(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
String str = new String(cArr2);
int i6 = $10 + 11;
$11 = i6 % 128;
if (i6 % 2 != 0) {
objArr[0] = str;
} else {
int i7 = 79 / 0;
objArr[0] = str;
}
}
private static void aD(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 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(q[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 309, (Process.myTid() >> 22) + 5, (char) ((ViewConfiguration.getTapTimeout() >> 16) + 32797));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
aG((byte) ($$z >>> 1), 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(u), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 412, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) View.MeasureSpec.getSize(0));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
aG((byte) 22, b2, b2, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i4] = ((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((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 407, Process.getGidForName("") + 6, (char) (29234 - ExpandableListView.getPackedPositionGroup(0L)));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
aG((byte) 29, b3, b3, 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;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
int i5 = $11 + 91;
$10 = i5 % 128;
int i6 = i5 % 2;
while (dqy.a < i2) {
int i7 = $11 + 55;
$10 = i7 % 128;
int i8 = i7 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 407, 5 - View.resolveSize(0, 0), (char) (29234 - (ViewConfiguration.getEdgeSlop() >> 16)));
byte b4 = (byte) 0;
Object[] objArr9 = new Object[1];
aG((byte) 29, b4, b4, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr);
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x00b8, code lost:
if (r3 > 99999) goto L11;
*/
@Override // o.AbstractActivityC11247ebj, 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 r22) {
/*
Method dump skipped, instructions count: 1244
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.onCreate(android.os.Bundle):void");
}
@Override // o.InterfaceC9491dkj
public final void e() {
RelativeLayout relativeLayout;
int i;
int i2 = 2 % 2;
int i3 = v + 49;
y = i3 % 128;
if (i3 % 2 == 0) {
relativeLayout = this.rlPingAnUi;
i = 118;
} else {
relativeLayout = this.rlPingAnUi;
i = 8;
}
relativeLayout.setVisibility(i);
int i4 = y + 31;
v = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9491dkj
public final void b() {
int i = 2 % 2;
int i2 = y + 63;
v = i2 % 128;
int i3 = i2 % 2;
aiM_(this.framePreview);
l();
this.buttonStart.setEnabled(false);
this.buttonStart.setVisibility(0);
this.tvInstruction.setVisibility(8);
int i4 = v + 5;
y = i4 % 128;
int i5 = i4 % 2;
}
/* JADX INFO: Access modifiers changed from: package-private */
@OnClick
public void onNavigateBack() {
int i = 2 % 2;
int i2 = v + 13;
y = i2 % 128;
int i3 = i2 % 2;
finish();
if (i3 == 0) {
throw null;
}
}
public void r() {
int i = 2 % 2;
int i2 = y + 49;
v = i2 % 128;
if (i2 % 2 != 0) {
guQ.b("onPermissionDenied", new Object[1]);
} else {
guQ.b("onPermissionDenied", new Object[0]);
}
int i3 = y + 77;
v = i3 % 128;
int i4 = i3 % 2;
}
public void ax_() {
int i = 2 % 2;
int i2 = v + 43;
y = i2 % 128;
if (i2 % 2 == 0) {
guQ.b("onNeverAskAgain", new Object[0]);
} else {
guQ.b("onNeverAskAgain", new Object[0]);
}
}
public static /* synthetic */ void a(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = v + 81;
y = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.c();
if (i3 == 0) {
int i4 = 4 / 0;
}
}
public static /* synthetic */ void b(InterfaceC15577gud interfaceC15577gud) {
int i = 2 % 2;
int i2 = v + 83;
y = i2 % 128;
int i3 = i2 % 2;
interfaceC15577gud.e();
if (i3 == 0) {
int i4 = 8 / 0;
}
}
public void d(final 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.ebe
private InterfaceC15577gud c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
BaseLivenessCheckActivity.a(this.c);
}
{
this.c = interfaceC15577gud;
}
}), Integer.valueOf(R.string.permission_deny), new DialogInterface.OnClickListener(interfaceC15577gud) { // from class: o.ebd
private InterfaceC15577gud b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i2) {
BaseLivenessCheckActivity.b(this.b);
}
{
this.b = interfaceC15577gud;
}
}})).show();
int i2 = v + 13;
y = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:12:0x019a, code lost:
if (o.C15581guh.b(r14, r1) != false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x01a7, code lost:
r0 = n();
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x01ad, code lost:
if (r0.g != false) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x01af, code lost:
r1 = new o.C4307bWW();
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x01b6, code lost:
if (r0.f == 0) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x01b8, code lost:
r1.e(r0.f);
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x01bd, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x01be, code lost:
r0.d();
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x01c1, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x01a5, code lost:
if (o.C15581guh.b(r14, "android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES") != false) goto L32;
*/
@Override // o.AbstractActivityC11247ebj, 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: 578
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.onResume():void");
}
@Override // o.InterfaceC9491dkj
public final void f() {
int i = 2 % 2;
int i2 = v + 59;
y = i2 % 128;
int i3 = i2 % 2;
this.buttonStart.setEnabled(true);
this.owcfFocus.setLineFocus(true);
this.buttonStart.setVisibility(0);
this.tvInstruction.setVisibility(8);
eDH edh = this.b;
edh.b.addCallback(edh);
if (edh.a != null) {
int i4 = v + 85;
y = i4 % 128;
int i5 = i4 % 2;
try {
Camera camera = edh.a;
if (camera != null) {
camera.release();
edh.a = null;
}
} catch (Exception e) {
guQ.e(e);
}
}
Camera.CameraInfo cameraInfo = new Camera.CameraInfo();
int numberOfCameras = Camera.getNumberOfCameras();
int i6 = 0;
while (true) {
if (i6 >= numberOfCameras) {
break;
}
Camera.getCameraInfo(i6, cameraInfo);
if (cameraInfo.facing == edh.c) {
edh.a = Camera.open(i6);
int i7 = y + 57;
v = i7 % 128;
int i8 = i7 % 2;
break;
}
if (numberOfCameras == 1) {
edh.a = Camera.open(i6);
edh.c = i6;
}
i6++;
}
Camera camera2 = edh.a;
if (camera2 != null) {
Camera.Parameters parameters = camera2.getParameters();
parameters.setPreviewFormat(17);
parameters.setPreviewSize(640, h.Az);
List<String> supportedFocusModes = parameters.getSupportedFocusModes();
if (supportedFocusModes.contains("continuous-picture")) {
parameters.setFocusMode("continuous-picture");
} else if (!(true ^ supportedFocusModes.contains("fixed"))) {
int i9 = y + 69;
v = i9 % 128;
int i10 = i9 % 2;
parameters.setFocusMode("fixed");
} else if (supportedFocusModes.contains("infinity")) {
parameters.setFocusMode("infinity");
} else if (supportedFocusModes.contains("continuous-video")) {
parameters.setFocusMode("continuous-video");
} else {
parameters.setFocusMode(supportedFocusModes.get(0));
}
parameters.setPreviewFrameRate(30);
edh.a.setParameters(parameters);
}
this.b.d();
this.tvFeedback.setText(R.string.ndid_liveness_check_instruction_1);
this.tvInstruction.setText("");
int i11 = v + 63;
y = i11 % 128;
int i12 = i11 % 2;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x002b, code lost:
r3 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v;
r4 = r3 + 115;
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r4 % 128;
r4 = r4 % 2;
r3 = r3 + 61;
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r3 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x003b, code lost:
if ((r3 % 2) == 0) goto L14;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x003d, code lost:
r2.e(r1.f);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0043, code lost:
r2.e(r1.f);
r0 = null;
r0.hashCode();
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x004c, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x004d, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0020, code lost:
if (r1.g == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0017, code lost:
if (r1.g == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x004e, code lost:
r1.d();
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0051, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0022, code lost:
r2 = new o.C4307bWW();
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0029, code lost:
if (r1.f == 0) goto L16;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void J() {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y
int r1 = r1 + 61
int r2 = r1 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v = r2
int r1 = r1 % r0
if (r1 == 0) goto L1a
o.bWR r1 = r6.n()
boolean r2 = r1.g
r3 = 7
int r3 = r3 / 0
if (r2 != 0) goto L4e
goto L22
L1a:
o.bWR r1 = r6.n()
boolean r2 = r1.g
if (r2 != 0) goto L4e
L22:
o.bWW r2 = new o.bWW
r2.<init>()
T extends o.cYp r3 = r1.f
if (r3 == 0) goto L4d
int r3 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v
int r4 = r3 + 115
int r5 = r4 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r5
int r4 = r4 % r0
int r3 = r3 + 61
int r4 = r3 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r4
int r3 = r3 % r0
if (r3 == 0) goto L43
T extends o.cYp r0 = r1.f
r2.e(r0)
goto L4d
L43:
T extends o.cYp r0 = r1.f
r2.e(r0)
r0 = 0
r0.hashCode()
throw r0
L4d:
return
L4e:
r1.d()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.J():void");
}
@OnClick
public void onButtonStartClick() {
int i = 2 % 2;
int i2 = y;
int i3 = i2 + 41;
v = i3 % 128;
int i4 = i3 % 2;
if (!this.l) {
int i5 = i2 + 83;
v = i5 % 128;
int i6 = i5 % 2;
this.f7594o.startFaceDetect();
this.t.start();
}
this.buttonStart.setVisibility(8);
this.tvInstruction.setVisibility(0);
this.owcfFocus.setLineFocus(false);
this.tvFeedback.setText("");
if (!(!this.m.isEmpty())) {
return;
}
int i7 = v + 89;
y = i7 % 128;
int i8 = i7 % 2;
e(this.m.get(0).intValue());
int i9 = v + 41;
y = i9 % 128;
int i10 = i9 % 2;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0034, code lost:
if (r0 != null) goto L11;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object c(java.lang.Object[] r10) {
/*
r0 = 0
r1 = r10[r0]
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity r1 = (com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity) r1
r2 = 1
r10 = r10[r2]
r5 = r10
byte[] r5 = (byte[]) r5
r10 = 2
int r3 = r10 % r10
int r3 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v
int r4 = r3 + 61
int r6 = r4 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r6
int r4 = r4 % r10
int r4 = r1.r
int r4 = r4 + r2
r1.r = r4
r2 = 15
if (r4 <= r2) goto L4f
int r2 = r3 + 43
int r6 = r2 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r6
int r2 = r2 % r10
if (r2 != 0) goto L32
com.pingan.ai.face.manager.PaFaceDetectorManager r2 = r1.f7594o
r6 = 29
int r6 = r6 / r0
if (r2 == 0) goto L4f
r0 = r2
goto L36
L32:
com.pingan.ai.face.manager.PaFaceDetectorManager r0 = r1.f7594o
if (r0 == 0) goto L4f
L36:
int r3 = r3 + 109
int r2 = r3 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y = r2
int r3 = r3 % r10
o.eDH r2 = r1.b
int r6 = r2.c
o.eDH r2 = r1.b
int r7 = r2.e
o.eDH r1 = r1.b
r8 = 640(0x280, float:8.97E-43)
r9 = 480(0x1e0, float:6.73E-43)
r3 = r0
r3.detectPreviewFrame(r4, r5, r6, r7, r8, r9)
L4f:
int r0 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y
int r0 = r0 + 107
int r1 = r0 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v = r1
int r0 = r0 % r10
r10 = 0
return r10
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.c(java.lang.Object[]):java.lang.Object");
}
private void aiM_(FrameLayout frameLayout) {
int i = 2 % 2;
eDH edh = new eDH(this);
this.b = edh;
edh.apV_(frameLayout);
this.b.f = this;
this.owcfFocus.setOnStateChangeListener(this);
int i2 = y + 49;
v = i2 % 128;
if (i2 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void l() {
int i = 2 % 2;
int i2 = y + 65;
v = i2 % 128;
int i3 = i2 % 2;
PaFaceDetectorManager paFaceDetectorManager = PaFaceDetectorManager.getInstance();
this.f7594o = paFaceDetectorManager;
paFaceDetectorManager.initFaceDetector(this);
this.f7594o.setOnFaceDetectorListener(this.k);
this.m.clear();
this.m.addAll(Arrays.asList(Integer.valueOf(PaFaceConstants.MotionType.BLINK_EYE), 1005, 1004));
Collections.shuffle(this.m);
this.f7594o.setMotions(this.m);
this.f7594o.setLoggerEnable(false);
int i4 = y + 53;
v = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object e(Object[] objArr) {
BaseLivenessCheckActivity baseLivenessCheckActivity = (BaseLivenessCheckActivity) objArr[0];
int intValue = ((Number) objArr[1]).intValue();
int i = 2 % 2;
int i2 = v + 89;
y = i2 % 128;
int i3 = i2 % 2;
if (intValue < baseLivenessCheckActivity.m.size()) {
int i4 = y + 81;
v = i4 % 128;
if (i4 % 2 != 0) {
baseLivenessCheckActivity.e(baseLivenessCheckActivity.m.get(intValue).intValue());
throw null;
}
baseLivenessCheckActivity.e(baseLivenessCheckActivity.m.get(intValue).intValue());
}
return null;
}
@Override // o.InterfaceC9491dkj
public final void d(C12144esf c12144esf) {
int i = 2 % 2;
AbstractC13175fSw<File> e = C12891fKc.e(this.cacheFileDir, c12144esf.e);
final AbstractC4304bWR n = n();
Objects.requireNonNull(n);
fSQ<? super File> fsq = new fSQ(n) { // from class: o.eba
private AbstractC4304bWR a;
@Override // o.fSQ
public final void c(Object obj) {
BaseLivenessCheckActivity.e(this.a, (File) obj);
}
{
this.a = n;
}
};
final AbstractC4304bWR n2 = n();
Objects.requireNonNull(n2);
this.p = e.b(fsq, new fSQ(n2) { // from class: o.eaW
private AbstractC4304bWR c;
@Override // o.fSQ
public final void c(Object obj) {
BaseLivenessCheckActivity.b(this.c, (Throwable) obj);
}
{
this.c = n2;
}
});
int i2 = v + 41;
y = i2 % 128;
if (i2 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void e(int i) {
int i2 = 2 % 2;
int i3 = y + 73;
v = i3 % 128;
int i4 = i3 % 2;
String c = c(i);
this.tvInstruction.setVisibility(0);
this.tvInstruction.setText(c);
this.tvInstruction.startAnimation(AnimationUtils.loadAnimation(this, R.anim.2130772045));
int i5 = v + 77;
y = i5 % 128;
int i6 = i5 % 2;
}
private String c(int i) {
int i2 = 2 % 2;
Object obj = null;
if (i == 1003) {
int i3 = y + 49;
v = i3 % 128;
if (i3 % 2 == 0) {
return getString(R.string.ndid_liveness_check_instruction_blink_eye);
}
getString(R.string.ndid_liveness_check_instruction_blink_eye);
obj.hashCode();
throw null;
}
if (i == 1004) {
int i4 = v + 109;
y = i4 % 128;
if (i4 % 2 != 0) {
return getString(R.string.ndid_liveness_check_instruction_shake_head);
}
getString(R.string.ndid_liveness_check_instruction_shake_head);
obj.hashCode();
throw null;
}
if (i != 1005) {
return "";
}
int i5 = y + 23;
v = i5 % 128;
if (i5 % 2 == 0) {
return getString(R.string.ndid_liveness_check_instruction_nod_head);
}
getString(R.string.ndid_liveness_check_instruction_nod_head);
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9491dkj
public final void d(int i) {
String string;
int i2 = 2 % 2;
int i3 = v + 73;
y = i3 % 128;
int i4 = i3 % 2;
TextView textView = this.tvFeedback;
if (i == 0) {
string = "";
} else {
string = getString(i);
if (string.startsWith(",*,)")) {
Object[] objArr = new Object[1];
aF(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
int i5 = v + 7;
y = i5 % 128;
int i6 = i5 % 2;
}
}
textView.setText(string);
}
private C0690Mh k() {
int i = 2 % 2;
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = getString(R.string.ok);
Runnable runnable = new Runnable(this) { // from class: o.ebf
private BaseLivenessCheckActivity b;
@Override // java.lang.Runnable
public final void run() {
BaseLivenessCheckActivity.d(this.b);
}
{
this.b = this;
}
};
c0690Mh.e = C0690Mh.IeS.CUSTOM;
c0690Mh.d = runnable;
int i2 = v + 87;
y = i2 % 128;
if (i2 % 2 != 0) {
return c0690Mh;
}
throw null;
}
private static /* synthetic */ Object b(Object[] objArr) {
BaseLivenessCheckActivity baseLivenessCheckActivity = (BaseLivenessCheckActivity) objArr[0];
C0693Mj c0693Mj = (C0693Mj) objArr[1];
int i = 2 % 2;
int i2 = y + 101;
v = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
if (!baseLivenessCheckActivity.n().g) {
c0693Mj.e = baseLivenessCheckActivity.k();
}
baseLivenessCheckActivity.l = true;
super.e(c0693Mj);
int i3 = y + 109;
v = i3 % 128;
int i4 = i3 % 2;
return null;
}
boolean z = baseLivenessCheckActivity.n().g;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object d(Object[] objArr) {
BaseLivenessCheckActivity baseLivenessCheckActivity = (BaseLivenessCheckActivity) objArr[0];
int i = 2 % 2;
baseLivenessCheckActivity.setResult(-1, new Intent());
baseLivenessCheckActivity.finish();
int i2 = v + 53;
y = i2 % 128;
int i3 = i2 % 2;
return null;
}
@Override // o.AbstractActivityC11247ebj, 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];
aD(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.fill_information_title_breadcrumb_th).substring(0, 16).codePointAt(11) - 3606, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.debit_card_cvv_desc).substring(24, 25).length() + 25, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_promptpay_verification_instructions).substring(0, 2).codePointAt(1) - 32), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aD(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_decline_ncb_consent_name_title).substring(0, 8).length() + 41, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.qr_expired_on).substring(7, 8).length() + 17, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 22686), 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 = v + 99;
y = i2 % 128;
int i3 = i2 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - TextUtils.getCapsMode("", 0, 0), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).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(TextUtils.getCapsMode("", 0, 0) + 487, 5 - (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)), (char) (ViewConfiguration.getTapTimeout() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
AbstractC4304bWR n = n();
if (n.g) {
return;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.bWZ
@Override // o.ZI.IeS
public final void e(Object obj3) {
((InterfaceC9491dkj) obj3).j();
}
};
if (n.f != 0) {
int i4 = y + 89;
v = i4 % 128;
if (i4 % 2 != 0) {
return;
}
ieS.e(n.f);
}
}
@Override // o.InterfaceC9491dkj
public final void j() {
Camera camera;
int i = 2 % 2;
PaFaceDetectorManager paFaceDetectorManager = this.f7594o;
if (paFaceDetectorManager != null) {
int i2 = v + 115;
y = i2 % 128;
int i3 = i2 % 2;
paFaceDetectorManager.stopFaceDetect();
}
eDH edh = this.b;
Object obj = null;
if (edh != null && (camera = edh.a) != null) {
int i4 = v + 83;
y = i4 % 128;
if (i4 % 2 == 0) {
camera.stopPreview();
throw null;
}
camera.stopPreview();
}
CountDownTimer countDownTimer = this.t;
if (countDownTimer != null) {
int i5 = y + 115;
v = i5 % 128;
int i6 = i5 % 2;
countDownTimer.cancel();
if (i6 == 0) {
return;
}
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;
PaFaceDetectorManager paFaceDetectorManager = this.f7594o;
if (paFaceDetectorManager != null) {
paFaceDetectorManager.release();
}
eDH edh = this.b;
if (edh != null) {
int i2 = v + 81;
y = i2 % 128;
int i3 = i2 % 2;
if (edh.d != null) {
edh.d = null;
}
if (edh.f != null) {
edh.f = null;
}
}
n().w_();
fSJ fsj = this.p;
if (fsj != null) {
fsj.dispose();
}
super.onDestroy();
int i4 = v + 17;
y = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.custom.ndid.OverlayWithCircleFocus.HBt
public final void b(int i, int i2) {
int i3 = 2 % 2;
int i4 = v + 1;
y = i4 % 128;
int i5 = i4 % 2;
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.tvFeedback.getLayoutParams();
((ViewGroup.MarginLayoutParams) layoutParams).topMargin = i + i2 + C6583cXR.d(36, getApplicationContext());
this.tvFeedback.setLayoutParams(layoutParams);
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.layoutBlink.getLayoutParams();
((ViewGroup.LayoutParams) layoutParams2).height = ((ViewGroup.MarginLayoutParams) layoutParams).topMargin;
this.layoutBlink.setLayoutParams(layoutParams2);
int i6 = v + 39;
y = i6 % 128;
if (i6 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9491dkj
public final void c(String str) {
int i = 2 % 2;
int i2 = y + 67;
v = i2 % 128;
int i3 = i2 % 2;
startActivity(FacialVerificationLockedActivity.afr_(this, str));
int i4 = v + 25;
y = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
@Override // o.InterfaceC9491dkj
public final void a(String str) {
int i = 2 % 2;
c("face_recognition_init_sdk_fail", new pug("reason", str));
int i2 = y + 121;
v = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 7 / 0;
}
}
public void c() {
int i = 2 % 2;
int i2 = y + 119;
v = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
onBackPressed();
if (i3 != 0) {
obj.hashCode();
throw null;
}
int i4 = y + 35;
v = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9491dkj
public final void h() {
CustomViewProgressAnimationFull customViewProgressAnimationFull;
int i;
int i2 = 2 % 2;
int i3 = v + 7;
y = i3 % 128;
if (i3 % 2 == 0) {
customViewProgressAnimationFull = this.customLoading;
i = 1;
} else {
customViewProgressAnimationFull = this.customLoading;
i = 0;
}
customViewProgressAnimationFull.setVisibility(i);
}
@Override // o.InterfaceC9491dkj
public final void d() {
int i = 2 % 2;
int i2 = v + 3;
y = i2 % 128;
int i3 = i2 % 2;
this.customLoading.setVisibility(8);
int i4 = v + 25;
y = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9491dkj
public final void i() {
int i = 2 % 2;
runOnUiThread(new Runnable(this) { // from class: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.5
private BaseLivenessCheckActivity e;
{
this.e = this;
}
@Override // java.lang.Runnable
public final void run() {
AbstractC4304bWR n = this.e.n();
n.d(n.j.c(this.e.getString(R.string.facetek_error_generic_header), this.e.getString(R.string.facetek_error_generic_description), C0690Mh.IeS.NAVIGATE_BACK));
}
});
int i2 = y + 85;
v = i2 % 128;
int i3 = i2 % 2;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x007c, code lost:
if (r1 > 99999) goto L6;
*/
@Override // o.AbstractActivityC11247ebj, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void attachBaseContext(android.content.Context r18) {
/*
Method dump skipped, instructions count: 820
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.attachBaseContext(android.content.Context):void");
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x004c, code lost:
r3.J();
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x004a, code lost:
if ((!r3.l) != false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x002b, code lost:
if (r3.l == false) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ void d(com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity r3) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y
int r1 = r1 + 99
int r2 = r1 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v = r2
int r1 = r1 % r0
r2 = 0
r3.l = r2
if (r1 == 0) goto L2e
com.pingan.ai.face.manager.PaFaceDetectorManager r1 = r3.f7594o
r1.stopFaceDetect()
com.pingan.ai.face.manager.PaFaceDetectorManager r1 = r3.f7594o
r1.release()
o.bWR r1 = r3.n()
r1.h = r2
android.widget.FrameLayout r1 = r3.framePreview
r3.aiM_(r1)
r3.l()
boolean r1 = r3.l
if (r1 != 0) goto L4f
goto L4c
L2e:
com.pingan.ai.face.manager.PaFaceDetectorManager r1 = r3.f7594o
r1.stopFaceDetect()
com.pingan.ai.face.manager.PaFaceDetectorManager r1 = r3.f7594o
r1.release()
o.bWR r1 = r3.n()
r1.h = r2
android.widget.FrameLayout r1 = r3.framePreview
r3.aiM_(r1)
r3.l()
boolean r1 = r3.l
r1 = r1 ^ 1
if (r1 == 0) goto L4f
L4c:
r3.J()
L4f:
int r3 = com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.y
int r3 = r3 + 103
int r1 = r3 % 128
com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.v = r1
int r3 = r3 % r0
if (r3 != 0) goto L5b
return
L5b:
r3 = 0
throw r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity.d(com.scb.phone.view.activity.ndid.BaseLivenessCheckActivity):void");
}
@Override // o.InterfaceC9491dkj
public final void g() {
int i = 2 % 2;
int i2 = v + 55;
y = i2 % 128;
int i3 = i2 % 2;
FaceTecSDK.setCustomization(C14815gJ.d);
FaceTecSDK.setLowLightCustomization(C14815gJ.b);
FaceTecCustomization faceTecCustomization = C14815gJ.a;
faceTecCustomization.getGuidanceCustomization().foregroundColor = -1;
faceTecCustomization.getGuidanceCustomization().retryScreenHeaderTextColor = -1;
faceTecCustomization.getGuidanceCustomization().retryScreenSubtextTextColor = -1;
faceTecCustomization.getGuidanceCustomization().readyScreenHeaderTextColor = -1;
faceTecCustomization.getGuidanceCustomization().readyScreenSubtextTextColor = -1;
faceTecCustomization.getResultScreenCustomization().foregroundColor = -1;
FaceTecSDK.setDynamicDimmingCustomization(faceTecCustomization);
int i4 = y + 113;
v = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
static void R() {
q = new char[]{36787, 16989, 5236, 58883, 47161, 35550, 23792, 11995, 57525, 45896, 34102, 22313, 10540, 64464, 52735, 40856, 20913, 9296, 15441, 61860, 42923, 22006, 3036, 36787, 16989, 5236, 58883, 47161, 35550, 23792, 11995, 57531, 45899, 34152, 22359, 10527, 64476, 52712, 40852, 20916, 9290, 63092, 51224, 39442, 27855, 16118, 61568, 49835, 38223, 55153, 6790, 19618, 48835, 57587, 53785, 1056, 30324, 47210, 60299, 56756, 4048, 29181, 41758, 38184, 51028, 2413, 31885};
u = -756352561954930125L;
w = -6486508716508717279L;
}
static void N() {
int i = 2 % 2;
int i2 = v;
int i3 = i2 + 93;
y = i3 % 128;
s = i3 % 2 == 0 ? (byte) 96 : (byte) 6;
int i4 = i2 + 39;
y = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.AbstractActivityC11247ebj, 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 = v + 13;
y = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = y + 105;
v = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.scb.phone.view.activity.BaseActivity, o.InterfaceC6638cYp
public final void e(C0693Mj c0693Mj) {
d(new Object[]{this, c0693Mj}, 789907402, -789907399, System.identityHashCode(this));
}
@Override // o.eDH.HBt
public final void b(byte[] bArr) {
d(new Object[]{this, bArr}, -270829768, 270829769, System.identityHashCode(this));
}
@Override // o.InterfaceC9491dkj
public final void a() {
d(new Object[]{this}, 870087181, -870087177, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.e_document_description_mcmc).substring(49, 50).length() - 1966522599);
}
@Override // o.InterfaceC9491dkj
public final void b(int i) {
d(new Object[]{this, Integer.valueOf(i)}, -1535067527, 1535067529, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) + 1036929232);
}
static /* synthetic */ void d(BaseLivenessCheckActivity baseLivenessCheckActivity, String str) {
d(new Object[]{baseLivenessCheckActivity, str}, 1193107218, -1193107218, (int) System.currentTimeMillis());
}
public static /* synthetic */ void e(AbstractC4304bWR abstractC4304bWR, File file) {
int i = 2 % 2;
int i2 = v + 71;
y = i2 % 128;
int i3 = i2 % 2;
abstractC4304bWR.b(file);
int i4 = v + 115;
y = i4 % 128;
int i5 = i4 % 2;
}
public static /* synthetic */ void b(AbstractC4304bWR abstractC4304bWR, Throwable th) {
int i = 2 % 2;
int i2 = v + 17;
y = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
abstractC4304bWR.g(th);
if (i3 == 0) {
throw null;
}
int i4 = y + 81;
v = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
}