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

648 lines
36 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.capture;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.kmc.ken.engines.data.Image;
import com.kofax.kmc.kui.uicontrols.ImgReviewEditCntrl;
import com.kofax.kmc.kut.utilities.error.KmcException;
import com.kofax.mobile.sdk._internal.dagger.Injector;
import com.kofax.mobile.sdk._internal.e;
import com.kofax.mobile.sdk._internal.h;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.kofax.mobile.sdk._internal.impl.view.af;
import com.kofax.mobile.sdk._internal.k;
import com.kofax.mobile.sdk._internal.view.ICaptureMenuListener;
import com.kofax.mobile.sdk._internal.view.b;
import com.kofax.mobile.sdk.capture.parameter.IParameters;
import com.kofax.mobile.sdk.capture.processing.IImageProcessor;
import com.kofax.mobile.sdk.capture.processing.IImageProcessorListener;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C3614bBe;
import o.InterfaceC13391fZD;
import o.dQY;
import o.xzZ;
/* loaded from: classes3.dex */
public class ProcessActivity extends Activity implements IImageProcessorListener {
private IParameters YA;
private String YL = "";
@InterfaceC13391fZD
IImageProcessor YT;
private boolean YU;
@InterfaceC13391fZD
IImageStorage Yw;
@InterfaceC13391fZD
e Yx;
@InterfaceC13391fZD
b Yy;
@InterfaceC13391fZD
h Yz;
private static final byte[] $$a = {40, 9, -20, ISOFileInfo.AB};
private static final int $$b = 208;
private static int $10 = 0;
private static int $11 = 1;
private static int j = 0;
private static int i = 1;
private static char[] b = {28573, 7563, 35754, 14789, 42999, 21992, 49934, 29053, 65371, 28014, 6952, 35007, 13986, 42198, 21185, 49390, 19999, 64550, 33819, 62998, 24593, 53844, 19574, 24952, 4920, 34075, 14177, 43292, 23383, 52714, 32723, 61923, 25537, 5584, 34415, 14423, 43624, 23671, 52822, 16616, 62162, 25789, 5874, 35036, 15652, 44808, 8468, 54050, 17744, 63477, 27103, 7069, 36346, 16334, 45178, 8717, 54338, 17962, 63559, 27304, 7350, 36510, 231, 45764, 10024, 55606, 19225, 64819, 28447, 57681, 37867, 1483, 47029, 10697, 56282, 19515, 65037, 28783, 57888, 37969, 1769, 47317, 10939, 56560, 20180, 50036, 29961};
private static long d = -2446933789242425909L;
private static char[] c = {16301, 16346, 16288, 16350, 16347, 16293, 16282, 16348, 16269, 16303, 16336, 16338, 16341, 16304, 16292, 16289, 16337, 16344, 16285, 16275, 16272, 16302, 16287, 16290, 16277, 16286, 16276, 16274, 16273, 16284, 16351, 16278, 16283, 16345, 16295, 16291, 16349, 16281};
private static int a = 1934310988;
private static boolean e = true;
private static boolean g = true;
/* 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:0x0027). 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 k(byte r5, byte r6, int r7, java.lang.Object[] r8) {
/*
byte[] r0 = com.kofax.mobile.sdk.capture.ProcessActivity.$$a
int r5 = r5 * 4
int r5 = 4 - r5
int r6 = r6 * 3
int r1 = r6 + 1
int r7 = 122 - r7
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r3 = r7
r4 = r2
r7 = r6
goto L27
L15:
r3 = r2
L16:
byte r4 = (byte) r7
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r6) goto L25
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L25:
r3 = r0[r5]
L27:
int r5 = r5 + 1
int r7 = r7 + r3
r3 = r4
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.ProcessActivity.k(byte, byte, int, java.lang.Object[]):void");
}
private static void f(int i2, int i3, char c2, Object[] objArr) {
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i3];
dqy.a = 0;
while (dqy.a < i3) {
int i5 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(b[i2 + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(309 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), TextUtils.getCapsMode("", 0, 0) + 5, (char) (32797 - Color.red(0)));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
k(b2, b3, (byte) (b3 | Ascii.CAN), 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(d), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (-16777211) - Color.rgb(0, 0, 0), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
k(b4, b5, (byte) (b5 | Ascii.ETB), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i5] = ((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(View.MeasureSpec.getMode(0) + 407, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (29234 - (ViewConfiguration.getMinimumFlingVelocity() >> 16)));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
k(b6, b7, (byte) (b7 | 16), 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[i3];
dqy.a = 0;
int i6 = $10 + 47;
$11 = i6 % 128;
int i7 = i6 % 2;
while (dqy.a < i3) {
int i8 = $10 + 29;
$11 = i8 % 128;
int i9 = i8 % 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(407 - (ViewConfiguration.getTouchSlop() >> 8), 5 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) (29234 - View.getDefaultSize(0, 0)));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr9 = new Object[1];
k(b8, b9, (byte) (b9 | 16), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr);
}
@Override // android.app.Activity
protected void onCreate(Bundle bundle) {
int i2 = 2 % 2;
Object[] objArr = new Object[1];
f(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 112, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.fund_information).substring(16, 18).length() + 16, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.qr_expired_dialog_desc).substring(13, 14).length() + 57389), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(Color.argb(0, 0, 0, 0) + 18, Process.getGidForName("") + 6, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 2967), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
int i3 = i + 21;
j = i3 % 128;
int i4 = i3 % 2;
Object[] objArr3 = new Object[1];
h(null, null, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 127, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, -112, -124, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_EXP, -122, ISOFileInfo.SECURITY_ATTR_COMPACT, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, -119, ISOFileInfo.FCI_EXT, -120, -120, 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];
h(null, null, ImageFormat.getBitsPerPixel(0) + 128, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -110, -120, -120, -119, ISOFileInfo.SECURITY_ATTR_EXP, -126, -112, -124, -124, -111, ISOFileInfo.LCS_BYTE}, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i5 = j + 13;
i = i5 % 128;
if (i5 % 2 == 0) {
baseContext.getApplicationContext();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i6 = j + 111;
i = i6 % 128;
int i7 = i6 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - ((Process.getThreadPriority(0) + 20) >> 6), (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) Color.green(0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{-107, -112, -101, ISOFileInfo.LCS_BYTE, -99, -103, -107, -102, -106, -106, -112, -104, -109, -101, -99, -109, -109, ISOFileInfo.FILE_IDENTIFIER, -103, ISOFileInfo.LCS_BYTE, -99, ISOFileInfo.LCS_BYTE, -100, -104, -103, ISOFileInfo.DATA_BYTES2, -107, -105, -101, -102, -105, -106, -101, -105, -106, -105, ISOFileInfo.DATA_BYTES2, -102, -103, -106, ISOFileInfo.DATA_BYTES2, -104, ISOFileInfo.LCS_BYTE, -105, -106, -107, -108, -109}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
h(null, null, 127 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), new byte[]{-112, ISOFileInfo.DATA_BYTES2, -106, -100, -101, -109, ISOFileInfo.LCS_BYTE, -101, -106, -99, -101, ISOFileInfo.LCS_BYTE, -108, -104, -101, ISOFileInfo.FILE_IDENTIFIER, -106, -100, -109, -99, -100, ISOFileInfo.DATA_BYTES2, -106, -100, -106, -106, -101, -99, ISOFileInfo.DATA_BYTES2, -99, -108, -108, -101, -98, -103, -102, ISOFileInfo.LCS_BYTE, -98, -100, -105, -107, ISOFileInfo.DATA_BYTES2, -100, ISOFileInfo.LCS_BYTE, -102, -109, -107, -100, -109, -108, -100, -102, -100, -102, -99, -112, -103, -107, -106, -100, -112, -100, -106, -112}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(7) - 23, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30, (char) (61131 - Color.argb(0, 0, 0, 0)), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.registration_facial_verification_locked_no_card_button_return_label).substring(14, 15).length() + 126, new byte[]{-97, ISOFileInfo.SECURITY_ATTR_EXP, -126, -112, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, ISOFileInfo.A1, -102, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.A1, ISOFileInfo.SECURITY_ATTR_EXP, -97, -112, -92, -126, -122, ISOFileInfo.A1, -122, -120, ISOFileInfo.DATA_BYTES2, ISOFileInfo.A1, -94, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, ISOFileInfo.FCI_EXT, -112, -124, ISOFileInfo.DATA_BYTES2, -111, ISOFileInfo.A5, -97, ISOFileInfo.FILE_IDENTIFIER, -124, ISOFileInfo.DATA_BYTES2, -111, -92, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -97, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, -112, -124, -113, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.FCI_EXT, -93, -126, ISOFileInfo.DATA_BYTES2, -106, -110, ISOFileInfo.DATA_BYTES2, -122, ISOFileInfo.LCS_BYTE, -124, -112, -94, -94, ISOFileInfo.PROP_INFO, ISOFileInfo.LCS_BYTE, -94, ISOFileInfo.DATA_BYTES2, -122, -97, ISOFileInfo.A1, ISOFileInfo.A1, ISOFileInfo.A0, -97, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_EXP, -113}, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_kofax_camera_tutorial_no_fold).substring(0, 2).length() + 125, new byte[]{-98, ISOFileInfo.FCI_EXT, -101, ISOFileInfo.FCI_EXT, -103}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
h(null, null, TextUtils.indexOf("", "", 0, 0) + 127, new byte[]{-112, -109, -99, -107, -99, ISOFileInfo.LCS_BYTE, -112, -108, ISOFileInfo.DATA_BYTES2, -102, ISOFileInfo.LCS_BYTE, -102, -90, ISOFileInfo.LCS_BYTE, -112, -106, ISOFileInfo.DATA_BYTES2, -90, -109, -109, -102, -107, -90, -106, -112, -98, -100, -90, -98, -107, -103, ISOFileInfo.FILE_IDENTIFIER, -107, -102, ISOFileInfo.DATA_BYTES2, -112}, 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(MotionEvent.axisFromString("") + 488, 5 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
Injector.getInjector(this).inject(this);
this.YA = getParameters(bundle);
this.YL = getIntent().getStringExtra("_com.kofax.mobile.sdk.capture.internal_image_id_");
a(this.YA);
this.YT.setParameters(this.YA.getProcessingParameters());
}
private static void h(int[] iArr, char[] cArr, int i2, byte[] bArr, Object[] objArr) {
int i3;
int i4 = 2;
int i5 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr2 = c;
float f = BitmapDescriptorFactory.HUE_RED;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
int i7 = $10 + 43;
$11 = i7 % 128;
int i8 = i7 % i4;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 337, 6 - (ViewConfiguration.getScrollFriction() > f ? 1 : (ViewConfiguration.getScrollFriction() == f ? 0 : -1)), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
k(b2, b3, (byte) (b3 | 57), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
i4 = 2;
f = BitmapDescriptorFactory.HUE_RED;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
try {
Object[] objArr4 = {Integer.valueOf(a)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(283 - (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 - View.resolveSizeAndState(0, 0, 0), (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 39814));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
k(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 (!(!g)) {
int i9 = $11 + 21;
$10 = i9 % 128;
if (i9 % 2 != 0) {
c3614bBe.c = bArr.length;
} else {
c3614bBe.c = bArr.length;
}
char[] cArr4 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i10 = $10 + 1;
$11 = i10 % 128;
int i11 = i10 % 2;
cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(40 - (KeyEvent.getMaxKeyCode() >> 16), 5 - View.resolveSizeAndState(0, 0, 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
int i12 = $10 + 29;
$11 = i12 % 128;
int i13 = i12 % 2;
}
String str = new String(cArr4);
int i14 = $10 + 65;
$11 = i14 % 128;
int i15 = i14 % 2;
objArr[0] = str;
return;
}
if (e) {
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 39, View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) TextUtils.getOffsetAfter("", 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr5);
return;
}
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i16 = $11 + 57;
$10 = i16 % 128;
if (i16 % 2 != 0) {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c % 0) - c3614bBe.a] << i2] >>> intValue);
i3 = c3614bBe.a << 1;
} else {
cArr6[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
i3 = c3614bBe.a + 1;
}
c3614bBe.a = i3;
}
objArr[0] = new String(cArr6);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
private void a(IParameters iParameters) {
int i2 = 2 % 2;
LinearLayout linearLayout = new LinearLayout(this);
linearLayout.setOrientation(0);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, -2, 1.0f);
Bitmap image = this.Yw.getImage(this.YL);
ImgReviewEditCntrl imgReviewEditCntrl = new ImgReviewEditCntrl(this);
try {
imgReviewEditCntrl.setImage(new Image(image));
} catch (KmcException e2) {
k.e(e2);
}
RelativeLayout relativeLayout = new RelativeLayout(this);
relativeLayout.addView(imgReviewEditCntrl);
relativeLayout.addView(new af(this));
linearLayout.addView(relativeLayout, layoutParams);
LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-2, -2);
this.Yy.getView().setLayoutParams(layoutParams2);
linearLayout.addView(this.Yy.getView(), layoutParams2);
this.Yy.setExitButtonEnabled(iParameters.getLookAndFeelParameters().exitEnabled);
this.Yy.setListener(new ICaptureMenuListener(this) { // from class: com.kofax.mobile.sdk.capture.ProcessActivity.1
final ProcessActivity YV;
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
public void onForceCaptureButtonClick() {
}
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
public void onGalleryButtonClick() {
}
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
public void onTorchChange(boolean z) {
}
{
this.YV = this;
}
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
public void onExitButtonClick() {
this.YV.finish();
}
});
setContentView(linearLayout);
int i3 = i + 81;
j = i3 % 128;
int i4 = i3 % 2;
}
public <T extends IParameters> T getParameters(Bundle bundle) {
int i2 = 2 % 2;
int i3 = i + 91;
j = i3 % 128;
int i4 = i3 % 2;
T t = (T) WorkflowActivity.a(bundle, getIntent(), "_com.kofax.mobile.sdk.capture.internal_parameters_");
int i5 = j + 115;
i = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 38 / 0;
}
return t;
}
@Override // android.app.Activity
public void onBackPressed() {
synchronized (this) {
if (this.YU) {
this.YT.cancel();
}
super.onBackPressed();
}
}
@Override // android.app.Activity
protected void onResume() {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.credit_charge_info).substring(0, 1).codePointAt(0) + 85, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, -112, -124, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_EXP, -122, ISOFileInfo.SECURITY_ATTR_COMPACT, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, -119, ISOFileInfo.FCI_EXT, -120, -120, 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];
h(null, null, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 126, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -110, -120, -120, -119, ISOFileInfo.SECURITY_ATTR_EXP, -126, -112, -124, -124, -111, 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 - (ViewConfiguration.getDoubleTapTimeout() >> 16), 5 - (ViewConfiguration.getScrollDefaultDelay() >> 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(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - ExpandableListView.getPackedPositionType(0L), (char) (ViewConfiguration.getTapTimeout() >> 16))).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;
}
}
synchronized (this) {
synchronized (this) {
super.onResume();
this.YT.setImageOutListener(this);
Image image = new Image(this.Yw.getImage(this.YL));
image.setTargetFrame(this.Yx.A(this.YL));
this.YT.process(image);
this.YU = true;
}
}
}
@Override // android.app.Activity
protected void onPause() {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.export_deposit_note_request).substring(6, 7).length() + 126, new byte[]{ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.DATA_BYTES2, -112, -124, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_EXP, -122, ISOFileInfo.SECURITY_ATTR_COMPACT, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, -119, ISOFileInfo.FCI_EXT, -120, -120, 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];
h(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.crop_document_error_low_contrast).substring(37, 38).codePointAt(0) + 95, new byte[]{-126, ISOFileInfo.PROP_INFO, -122, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.LCS_BYTE, -122, -110, -120, -120, -119, ISOFileInfo.SECURITY_ATTR_EXP, -126, -112, -124, -124, -111, 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 - ExpandableListView.getPackedPositionType(0L), 6 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (char) (TextUtils.indexOf((CharSequence) "", '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(487 - (Process.myPid() >> 22), 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (ViewConfiguration.getKeyRepeatDelay() >> 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;
}
}
synchronized (this) {
super.onPause();
this.YT.cancel();
}
}
@Override // android.app.Activity
protected void onSaveInstanceState(Bundle bundle) {
int i2 = 2 % 2;
int i3 = i + 77;
j = i3 % 128;
int i4 = i3 % 2;
super.onSaveInstanceState(bundle);
bundle.putSerializable("_com.kofax.mobile.sdk.capture.internal_parameters_", this.YA);
bundle.putString("_com.kofax.mobile.sdk.capture.internal_image_id_", this.YL);
int i5 = j + 23;
i = i5 % 128;
int i6 = i5 % 2;
}
@Override // com.kofax.mobile.sdk.capture.processing.IImageProcessorListener
public void onImageProcessed(Image image) {
synchronized (this) {
String bf = this.Yz.bf();
this.Yw.setImage(image.getImageBitmap(), bf);
this.Yx.a(bf, image.getImageDPI().intValue());
this.Yx.a(bf, image.getImageMimeType());
this.Yx.a(bf, image.getImageOutputColor());
Intent intent = new Intent();
intent.putExtra("_com.kofax.mobile.sdk.capture.internal_image_id_", bf);
setResult(-1, intent);
this.YU = false;
finish();
}
}
/* JADX WARN: Code restructure failed: missing block: B:6:0x0076, code lost:
if (r1 > 99999) goto L11;
*/
@Override // 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 r17) {
/*
Method dump skipped, instructions count: 652
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.ProcessActivity.attachBaseContext(android.content.Context):void");
}
@Override // android.app.Activity
public void onStart() {
int i2 = 2 % 2;
int i3 = j + 51;
i = i3 % 128;
int i4 = i3 % 2;
super.onStart();
if (i4 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}