what-the-bank/sources/com/kofax/mobile/sdk/capture/id/IdCaptureActivity.java

463 lines
28 KiB
Java

package com.kofax.mobile.sdk.capture.id;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Process;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.kmc.ken.engines.data.FixedAspectRatioDetectionSettings;
import com.kofax.mobile.sdk._internal.capture.CaptureCriteria;
import com.kofax.mobile.sdk._internal.capture.CaptureMessage;
import com.kofax.mobile.sdk._internal.dagger.Injector;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.kofax.mobile.sdk._internal.view.IOverlayView;
import com.kofax.mobile.sdk.capture.CaptureActivity;
import com.kofax.mobile.sdk.l.d;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C3614bBe;
import o.InterfaceC13391fZD;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes3.dex */
public class IdCaptureActivity extends CaptureActivity {
@InterfaceC13391fZD
IOverlayView Zo;
private final FixedAspectRatioDetectionSettings aco = new FixedAspectRatioDetectionSettings();
@InterfaceC13391fZD
d nh;
private static final byte[] $$d = {54, -108, 123, 45};
private static final int $$e = CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int j = 1;
private static char[] d = {15928, 15925, 15931, 15913, 15926, 15920, 16117, 15914, 15895, 15930, 15932, 15924, 15904, 15884, 15927, 15896, 15915, 15917, 15883, 15935, 15916, 15923, 16104, 16110, 16107, 15929, 16106, 15933, 16096, 16105, 16111, 16109, 16108, 16119, 16097, 16118, 15922, 15934, 15912, 16116};
private static int b = 1934311079;
private static boolean e = true;
private static boolean a = true;
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x0031). 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 g(short r6, byte r7, int r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 3
int r7 = 4 - r7
int r6 = r6 * 57
int r6 = 122 - r6
int r8 = r8 * 2
int r0 = 1 - r8
byte[] r1 = com.kofax.mobile.sdk.capture.id.IdCaptureActivity.$$d
byte[] r0 = new byte[r0]
r2 = 0
int r8 = 0 - r8
if (r1 != 0) goto L18
r3 = r7
r4 = r2
goto L31
L18:
r3 = r2
r5 = r7
r7 = r6
r6 = r5
L1c:
byte r4 = (byte) r7
r0[r3] = r4
if (r3 != r8) goto L29
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L29:
int r3 = r3 + 1
r4 = r1[r6]
r5 = r3
r3 = r6
r6 = r4
r4 = r5
L31:
int r7 = r7 + r6
int r6 = r3 + 1
r3 = r4
goto L1c
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.id.IdCaptureActivity.g(short, byte, int, java.lang.Object[]):void");
}
@Override // com.kofax.mobile.sdk.capture.CaptureActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int i = 2 % 2;
Object[] objArr = new Object[1];
f(null, null, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 127, new byte[]{-120, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, ISOFileInfo.PROP_INFO, -124, -119, ISOFileInfo.FCI_EXT, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(null, null, TextUtils.lastIndexOf("", '0', 0) + 128, new byte[]{ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
f(null, null, 127 - KeyEvent.normalizeMetaState(0), new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -108, -109, ISOFileInfo.ENV_TEMP_EF, -111, -122, -110, -122, -111, ISOFileInfo.LCS_BYTE, -112, ISOFileInfo.FCI_EXT, -113, -113, ISOFileInfo.DATA_BYTES2, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
f(null, null, View.MeasureSpec.getMode(0) + 127, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, -111, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -106, -113, -113, -112, -111, -126, ISOFileInfo.SECURITY_ATTR_EXP, -124, -124, -107, ISOFileInfo.LCS_BYTE}, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i2 = c + 81;
j = i2 % 128;
int i3 = i2 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((Process.myTid() >> 22) + 492, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) TextUtils.getOffsetAfter("", 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.occupation_inline_error_length).substring(0, 1).codePointAt(0) + 85, new byte[]{-103, ISOFileInfo.SECURITY_ATTR_EXP, -97, ISOFileInfo.LCS_BYTE, ISOFileInfo.A1, -99, -103, -98, -102, -102, ISOFileInfo.SECURITY_ATTR_EXP, -100, -105, -97, ISOFileInfo.A1, -105, -105, ISOFileInfo.FILE_IDENTIFIER, -99, ISOFileInfo.LCS_BYTE, ISOFileInfo.A1, ISOFileInfo.LCS_BYTE, ISOFileInfo.A0, -100, -99, ISOFileInfo.DATA_BYTES2, -103, -101, -97, -98, -101, -102, -97, -101, -102, -101, ISOFileInfo.DATA_BYTES2, -98, -99, -102, ISOFileInfo.DATA_BYTES2, -100, ISOFileInfo.LCS_BYTE, -101, -102, -103, -104, -105}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 114, new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, -102, ISOFileInfo.A0, -97, -105, ISOFileInfo.LCS_BYTE, -97, -102, ISOFileInfo.A1, -97, ISOFileInfo.LCS_BYTE, -104, -100, -97, ISOFileInfo.FILE_IDENTIFIER, -102, ISOFileInfo.A0, -105, ISOFileInfo.A1, ISOFileInfo.A0, ISOFileInfo.DATA_BYTES2, -102, ISOFileInfo.A0, -102, -102, -97, ISOFileInfo.A1, ISOFileInfo.DATA_BYTES2, ISOFileInfo.A1, -104, -104, -97, -94, -99, -98, ISOFileInfo.LCS_BYTE, -94, ISOFileInfo.A0, -101, -103, ISOFileInfo.DATA_BYTES2, ISOFileInfo.A0, ISOFileInfo.LCS_BYTE, -98, -105, -103, ISOFileInfo.A0, -105, -104, ISOFileInfo.A0, -98, ISOFileInfo.A0, -98, ISOFileInfo.A1, ISOFileInfo.SECURITY_ATTR_EXP, -99, -103, -102, ISOFileInfo.A0, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.A0, -102, ISOFileInfo.SECURITY_ATTR_EXP}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(null, null, 128 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), new byte[]{-104, ISOFileInfo.LCS_BYTE, -97, ISOFileInfo.A1, ISOFileInfo.DATA_BYTES2, -100, ISOFileInfo.DATA_BYTES2, -94, -100, -94, -99, ISOFileInfo.A0, -97, -98, ISOFileInfo.SECURITY_ATTR_EXP, -102, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.A0, ISOFileInfo.LCS_BYTE, -100, -101, ISOFileInfo.A1, -94, ISOFileInfo.A1, -105, -105, -98, ISOFileInfo.A1, ISOFileInfo.A1, ISOFileInfo.DATA_BYTES2, -102, -103, ISOFileInfo.FILE_IDENTIFIER, -99, ISOFileInfo.A0, -97, ISOFileInfo.SECURITY_ATTR_EXP, -100, -97, ISOFileInfo.LCS_BYTE, -98, -104, -94, -105, -94, -100, -102, ISOFileInfo.DATA_BYTES2, -97, -94, -103, -102, ISOFileInfo.SECURITY_ATTR_EXP, -101, -99, -98, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_EXP, -101, ISOFileInfo.DATA_BYTES2, -101, -94, -97, ISOFileInfo.DATA_BYTES2}, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.registration_completed_error).substring(29, 30).codePointAt(0) + 95, new byte[]{-120, -111, -126, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.SECURITY_ATTR_EXP, -92, -98, -110, -92, -111, -120, ISOFileInfo.SECURITY_ATTR_EXP, -90, -126, -122, -92, -122, -113, ISOFileInfo.DATA_BYTES2, -92, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -124, ISOFileInfo.DATA_BYTES2, -107, -89, -120, ISOFileInfo.FILE_IDENTIFIER, -124, ISOFileInfo.DATA_BYTES2, -107, -90, ISOFileInfo.FCI_EXT, -111, -120, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -111, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -108, -111, ISOFileInfo.FCI_EXT, ISOFileInfo.A5, -126, ISOFileInfo.DATA_BYTES2, -102, -106, ISOFileInfo.DATA_BYTES2, -122, ISOFileInfo.LCS_BYTE, -124, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.DATA_BYTES2, -122, -120, -92, -92, -93, -120, -113, -111, -111, -108}, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{-94, ISOFileInfo.FCI_EXT, -97, ISOFileInfo.FCI_EXT, -99}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.deposit_dialog_title).substring(0, 5).length() + 122, new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, -105, ISOFileInfo.A1, -103, ISOFileInfo.A1, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, -104, ISOFileInfo.DATA_BYTES2, -98, ISOFileInfo.LCS_BYTE, -98, -88, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, -102, ISOFileInfo.DATA_BYTES2, -88, -105, -105, -98, -103, -88, -102, ISOFileInfo.SECURITY_ATTR_EXP, -94, ISOFileInfo.A0, -88, -94, -103, -99, ISOFileInfo.FILE_IDENTIFIER, -103, -98, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP}, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getKeyRepeatDelay() >> 16), TextUtils.indexOf("", "") + 5, (char) Color.green(0))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
Injector.getInjector(this).inject(this);
super.onCreate(bundle);
a(this.Zo);
initController(this.Zo, this.nh);
this.nh.c(this.aco);
int i4 = j + 111;
c = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.kofax.mobile.sdk.capture.CaptureActivity
public void setCaptureCriteria(CaptureCriteria captureCriteria) {
int i;
int i2 = 2 % 2;
int i3 = c + 111;
j = i3 % 128;
if (i3 % 2 == 0) {
captureCriteria.setPitchThreshold(15);
i = 82;
} else {
i = 45;
captureCriteria.setPitchThreshold(45);
}
captureCriteria.setRollThreshold(i);
super.setCaptureCriteria(captureCriteria);
}
private void a(IOverlayView iOverlayView) {
int i = 2 % 2;
int i2 = c + 123;
j = i2 % 128;
int i3 = i2 % 2;
CaptureMessage instructionMsg = iOverlayView.getInstructionMsg();
instructionMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setInstructionMsg(instructionMsg);
CaptureMessage centerMsg = iOverlayView.getCenterMsg();
centerMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setCenterMsg(centerMsg);
CaptureMessage zoomInMsg = iOverlayView.getZoomInMsg();
zoomInMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setZoomInMsg(zoomInMsg);
CaptureMessage zoomOutMsg = iOverlayView.getZoomOutMsg();
zoomOutMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setZoomOutMsg(zoomOutMsg);
CaptureMessage holdParallelMsg = iOverlayView.getHoldParallelMsg();
holdParallelMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setHoldParallelMsg(holdParallelMsg);
CaptureMessage rotateMsg = iOverlayView.getRotateMsg();
rotateMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setRotateMsg(rotateMsg);
CaptureMessage steadyMsg = iOverlayView.getSteadyMsg();
steadyMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setSteadyMsg(steadyMsg);
CaptureMessage capturedMsg = iOverlayView.getCapturedMsg();
capturedMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setCapturedMsg(capturedMsg);
CaptureMessage tutorialDismissMsg = iOverlayView.getTutorialDismissMsg();
tutorialDismissMsg.setOrientation(CaptureMessage.KUIMessageOrientation.REVERSEPORTRAIT);
iOverlayView.setTutorialDismissMsg(tutorialDismissMsg);
int i4 = j + 61;
c = i4 % 128;
int i5 = i4 % 2;
}
private static void f(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int i2 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr2 = d;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i3 = 0;
while (i3 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i3])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 337, View.resolveSizeAndState(0, 0, 0) + 5, (char) Color.green(0));
byte b2 = (byte) 1;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr3[i3] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i3++;
int i4 = $11 + 25;
$10 = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(b)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(283 - ((Process.getThreadPriority(0) + 20) >> 6), TextUtils.indexOf((CharSequence) "", '0', 0) + 6, (char) (TextUtils.indexOf("", "") + 39813));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (a) {
c3614bBe.c = bArr.length;
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i6 = $11 + 39;
$10 = i6 % 128;
int i7 = i6 % 2;
cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(Color.green(0) + 40, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr4);
return;
}
if (!e) {
c3614bBe.c = iArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
c3614bBe.a++;
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = cArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
int i8 = $11 + 23;
$10 = i8 % 128;
int i9 = i8 % 2;
while (c3614bBe.a < c3614bBe.c) {
cArr6[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
try {
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 40, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr6);
}
@Override // com.kofax.mobile.sdk.capture.CaptureActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -108, -109, ISOFileInfo.ENV_TEMP_EF, -111, -122, -110, -122, -111, ISOFileInfo.LCS_BYTE, -112, ISOFileInfo.FCI_EXT, -113, -113, ISOFileInfo.DATA_BYTES2, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, -111, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -106, -113, -113, -112, -111, -126, ISOFileInfo.SECURITY_ATTR_EXP, -124, -124, -107, ISOFileInfo.LCS_BYTE}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = j + 1;
c = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - View.combineMeasuredStates(0, 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (ViewConfiguration.getTouchSlop() >> 8))).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(487 - (KeyEvent.getMaxKeyCode() >> 16), TextUtils.getCapsMode("", 0, 0) + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).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();
int i4 = c + 23;
j = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.kofax.mobile.sdk.capture.CaptureActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
int i2 = c + 93;
j = i2 % 128;
if (i2 % 2 == 0) {
getBaseContext();
throw null;
}
Context baseContext = getBaseContext();
if (baseContext == null) {
int i3 = c + 27;
j = i3 % 128;
int i4 = i3 % 2;
Object[] objArr = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(9) + 23, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, -124, -108, -109, ISOFileInfo.ENV_TEMP_EF, -111, -122, -110, -122, -111, ISOFileInfo.LCS_BYTE, -112, ISOFileInfo.FCI_EXT, -113, -113, ISOFileInfo.DATA_BYTES2, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 114, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, -111, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -106, -113, -113, -112, -111, -126, ISOFileInfo.SECURITY_ATTR_EXP, -124, -124, -107, ISOFileInfo.LCS_BYTE}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 487, 4 - Process.getGidForName(""), (char) (Process.myPid() >> 22))).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();
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x006a, code lost:
if (r2 > 99999) goto L6;
*/
@Override // com.kofax.mobile.sdk.capture.CaptureActivity, 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 r14) {
/*
Method dump skipped, instructions count: 686
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.id.IdCaptureActivity.attachBaseContext(android.content.Context):void");
}
@Override // com.kofax.mobile.sdk.capture.CaptureActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = j + 113;
c = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = c + 115;
j = i4 % 128;
int i5 = i4 % 2;
}
}