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

763 lines
46 KiB
Java

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.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.google.common.primitives.SignedBytes;
import com.kofax.kmc.ken.engines.data.Image;
import com.kofax.kmc.kut.utilities.CertificateValidatorListener;
import com.kofax.mobile.sdk._internal.e;
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.view.ICaptureMenuListener;
import com.kofax.mobile.sdk._internal.view.b;
import com.kofax.mobile.sdk.capture.extraction.Extractor;
import com.kofax.mobile.sdk.capture.extraction.ExtractorResponse;
import com.kofax.mobile.sdk.capture.extraction.IExtractorListener;
import com.kofax.mobile.sdk.capture.parameter.IParameters;
import com.scb.phone.R;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.DFY;
import o.InterfaceC13391fZD;
import o.dQY;
import o.xzZ;
import org.bouncycastle.crypto.signers.PSSSigner;
import org.jmrtd.lds.CVCAFile;
/* loaded from: classes3.dex */
public abstract class ExtractActivity<T extends ExtractorResponse> extends Activity implements IExtractorListener<T> {
public static final String CERTIFICATE_VALIDATOR_LISTENER = "_com.kofax.mobile.sdk.capture._certificate_validator_listener_";
private static short[] e;
private CertificateValidatorListener JI;
private IParameters YA;
@InterfaceC13391fZD
IImageStorage YK;
private String YL = "";
@InterfaceC13391fZD
e Yx;
@InterfaceC13391fZD
b Yy;
protected Extractor<T> _extractor;
private static final byte[] $$a = {4, 8, Ascii.DC4, -35};
private static final int $$b = 12;
private static int $10 = 0;
private static int $11 = 1;
private static int i = 0;
private static int h = 1;
private static int b = -1323204046;
private static int c = 1406017064;
private static int a = 542209810;
private static byte[] d = {-69, -87, ISOFileInfo.A5, -73, -66, -59, -59, 124, -89, -6, 109, PSSSigner.TRAILER_IMPLICIT, -67, -66, -87, ISO7816.INS_READ_BINARY2, -82, 106, ISOFileInfo.ENV_TEMP_EF, 117, ISOFileInfo.PROP_INFO, 78, 65, 94, 119, 121, 38, 72, 118, 94, ISO7816.INS_MANAGE_CHANNEL, 88, 124, ISOFileInfo.FCI_BYTE, 126, 3, 77, 114, -98, 55, 70, 71, SignedBytes.MAX_POWER_OF_TWO, 115, 91, ISO7816.INS_MANAGE_CHANNEL, -23, 79, Ascii.ETB, 78, 60, 39, 58, -24, 56, 63, 57, 119, 51, 37, ISO7816.INS_CHANGE_CHV, 56, -17, 77, Ascii.SYN, 78, -22, 79, -24, 79, 16, 79, 59, 61, 38, 57, -21, CVCAFile.CAR_TAG, 39, -21, 73, -22, 73, 51, 17, 59, 61, 37, 72, -21, 78, 63, 38, -82, -41, ISO7816.INS_WRITE_BINARY, -66, ISO7816.INS_LOAD_KEY_FILE, -25, -84, 109, Ascii.SYN, ISOFileInfo.FCP_BYTE, -88, -33, -81, ISOFileInfo.A0, -44, -29, -105, ISOFileInfo.A0, -34, -5, 107, -81, -35, ISO7816.INS_DELETE_FILE, -112, -70, ISO7816.INS_LOAD_KEY_FILE, -67, -43, -81, -34, -69, ISO7816.INS_LOAD_KEY_FILE, -67, -33, ISO7816.INS_CREATE_FILE, 99, -88, -37, -81, -66, ISO7816.INS_PUT_DATA, -83, -70, -45, ISOFileInfo.A5, Ascii.ETB, 106, -84, ISO7816.INS_UPDATE_RECORD, -82, -89, ISO7816.INS_WRITE_RECORD, ISOFileInfo.A1, -41, -72, ISO7816.INS_UPDATE_RECORD, ISOFileInfo.A1, -87, -81, -35, -89, -35, ISOFileInfo.A1, -89, Ascii.NAK, -87, -92, -106, -86, -83, -87, -35, -88, -92, ISO7816.INS_WRITE_BINARY, ISOFileInfo.A5, ISO7816.INS_READ_BINARY, 120, 103, 101, 86, 122, ISOFileInfo.LCS_BYTE, 82, -75, 85, -73, 99, 46, 122, 97, 103, ISO7816.INS_READ_BINARY, 120, ISOFileInfo.FMD_BYTE, 101, 122, 109, 41, 123, ISO7816.INS_READ_RECORD2, 126, ISOFileInfo.FCI_BYTE, 123, 120, 121, 83, ISO7816.INS_READ_BINARY_STAMPED, 102, 87, 120, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK, Ascii.NAK};
private static char[] j = {36785, 65297, 28364, 56706, 19823, 48178, 11234, 39785, 2578, 31172, 59554, 22633, 51001, 13965, 42578, 5393, 34013, 62378, 20700, 8301, 45539, 766, 37463, 25429, 62665, 17530, 54636, 42730, 14231, 34653, 6147, 59825, 31098, 51746, 23535, 11419, 48196, 3337, 40674, 28257, 65404, 28887, 49562, 20809, 8949, 46056, 867, 37918, 26077, 63115, 17998, 55288, 43168, 14394, 35092, 6863, 60383, 31585, 52479, 24061, 11524, 48669, 4036, 40822, 4155, 57777, 29437, 49751, 21331, 9420, 46114, 1327, 38632, 26561, 63313, 18524, 55732, 43379, 14887, 35717, 7372, 60438, 36787, 65372, 28302, 56771, 19819, 48239, 11251, 39757, 2640, 31117, 59645, 22629, 51000, 14040, 42518, 5440, 34003, 62374, 25464, 53856, 16859, 45324, 8257, 44986, 7841, 36396, 64968, 27781, 56322, 19322, 47807, 10684, 39206, 2246, 30623, 59141, 22143, 50606, 13543, 42073, 5015, 33476, 62011, 24947, 53500, 16463, 53072, 16093, 44432, 7521, 35948, 64424, 27420, 55877, 18822, 47278, 10290, 38709, 1672, 30273, 58703, 21684, 50085, 13103};
private static long f = -6872874101138784412L;
/* 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:0x002c). 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 m(byte r6, short r7, byte r8, java.lang.Object[] r9) {
/*
byte[] r0 = com.kofax.mobile.sdk.capture.ExtractActivity.$$a
int r7 = r7 + 98
int r6 = r6 + 4
int r8 = r8 * 3
int r1 = 1 - r8
byte[] r1 = new byte[r1]
r2 = 0
int r8 = 0 - r8
if (r0 != 0) goto L15
r7 = r6
r3 = r8
r4 = r2
goto L2c
L15:
r3 = r2
L16:
byte r4 = (byte) r7
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r8) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
int r6 = r6 + 1
r3 = r0[r6]
r5 = r7
r7 = r6
r6 = r5
L2c:
int r6 = r6 + r3
r3 = r4
r5 = r7
r7 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.ExtractActivity.m(byte, short, byte, java.lang.Object[]):void");
}
private static void l(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 = $11 + 87;
$10 = i5 % 128;
int i6 = i5 % 2;
int i7 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(j[i2 + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 308, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (32796 - MotionEvent.axisFromString("")));
byte b2 = (byte) (-1);
byte b3 = (byte) (b2 + 1);
Object[] objArr3 = new Object[1];
m(b2, b3, b3, 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(f), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(413 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b4 = (byte) (-1);
byte b5 = (byte) (-b4);
Object[] objArr5 = new Object[1];
m(b4, b5, (byte) (b5 - 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i7] = ((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(406 - TextUtils.indexOf((CharSequence) "", '0'), TextUtils.indexOf((CharSequence) "", '0', 0) + 6, (char) (29234 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
Object[] objArr7 = new Object[1];
m((byte) (-1), $$a[1], (byte) 0, 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;
while (dqy.a < i3) {
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 407, 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (TextUtils.indexOf((CharSequence) "", '0', 0) + 29235));
Object[] objArr9 = new Object[1];
m((byte) (-1), $$a[1], (byte) 0, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
String str = new String(cArr);
int i8 = $11 + 53;
$10 = i8 % 128;
if (i8 % 2 != 0) {
throw null;
}
objArr[0] = str;
}
@Override // android.app.Activity
public void onCreate(Bundle bundle) {
int i2 = 2 % 2;
Object[] objArr = new Object[1];
k((short) (TextUtils.getOffsetAfter("", 0) + 82), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.taking_photo_details_blurry_slip).substring(30, 31).length() + 487613400, (-43) - (ViewConfiguration.getLongPressTimeout() >> 16), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 1939826888, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
k((short) (124 - TextUtils.getOffsetBefore("", 0)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 487613405, (-56) - Color.green(0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 1939826855, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 112), 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];
k((short) ((-88) - Color.alpha(0)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(9) + 487613318, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.activate_card_detail_header_register_flow).substring(25, 26).codePointAt(0) - 132, View.combineMeasuredStates(0, 0) - 1939826854, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.preregistration_pin_title).substring(8, 9).length() - 1), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
l(View.MeasureSpec.getMode(0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 5, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.deejung_direct_debit_description_jcb).substring(42, 43).codePointAt(0) - 32), objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = h + 5;
i = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
int i5 = i + 33;
h = i5 % 128;
int i6 = i5 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(491 - ((byte) KeyEvent.getModifierMetaStateMask()), TextUtils.indexOf("", "") + 5, (char) TextUtils.getOffsetAfter("", 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
k((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 79), (ViewConfiguration.getJumpTapTimeout() >> 16) + 487613447, (-12) - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.please_choose_min_full_payment).substring(25, 26).length() - 1939826903, (byte) TextUtils.getOffsetAfter("", 0), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
l(18 - Color.red(0), 64 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.terms_and_conditions_link_not_clickable_right).substring(0, 1).codePointAt(0) + 57163), objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.contact_info_mcmc_topup_document_receive_option_header).substring(0, 19).length() + 63, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_kofax_camera_tutorial_perfect_example).substring(0, 2).length() + 62, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(11) - 110), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
k((short) (TextUtils.getTrimmedLength("") + 68), (Process.myTid() >> 22) + 487613494, 13 - TextUtils.indexOf("", "", 0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 1939826959, (byte) View.resolveSizeAndState(0, 0, 0), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
k((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 56), 487613567 - Color.argb(0, 0, 0, 0), (-57) - ((byte) KeyEvent.getModifierMetaStateMask()), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(4) - 1939827009, (byte) View.MeasureSpec.makeMeasureSpec(0, 0), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
k((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_app_outcome_upselling_custom_placeholder).substring(0, 7).codePointAt(3) - 157), 487613571 - View.MeasureSpec.getMode(0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.preregistration_pin_locked_body).substring(31, 32).codePointAt(0) - 57, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_summary_repayment_about_remark_info).substring(0, 3).codePointAt(1) - 1939826896, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(2) - 109), 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(TextUtils.getOffsetAfter("", 0) + 487, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16))).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);
this.YA = getParameters(bundle);
this.YL = getIntent().getStringExtra("_com.kofax.mobile.sdk.capture.internal_image_id_");
this.JI = WorkflowActivity.a(bundle, getIntent());
a(this.YA);
}
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.YK.getImage(this.YL);
ImageView imageView = new ImageView(this);
imageView.setImageBitmap(image);
RelativeLayout relativeLayout = new RelativeLayout(this);
relativeLayout.addView(imageView);
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.ExtractActivity.1
final ExtractActivity YM;
@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.YM = this;
}
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
public void onExitButtonClick() {
this.YM.finish();
}
});
setContentView(linearLayout);
int i3 = h + 101;
i = i3 % 128;
int i4 = i3 % 2;
}
/* JADX WARN: Incorrect return type in method signature: <T::Lcom/kofax/mobile/sdk/capture/parameter/IParameters;>(Landroid/os/Bundle;)TT; */
public IParameters getParameters(Bundle bundle) {
int i2 = 2 % 2;
int i3 = i + 11;
h = i3 % 128;
int i4 = i3 % 2;
IParameters a2 = WorkflowActivity.a(bundle, getIntent(), "_com.kofax.mobile.sdk.capture.internal_parameters_");
int i5 = i + 121;
h = i5 % 128;
if (i5 % 2 != 0) {
return a2;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.Activity
public void onResume() {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
k((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 122), 487613388 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 69, (-1939826888) + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
l(View.combineMeasuredStates(0, 0), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.deejung_installment_about).substring(25, 26).length() + 17, (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 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((ViewConfiguration.getScrollDefaultDelay() >> 16) + 492, View.MeasureSpec.getMode(0) + 5, (char) KeyEvent.keyCodeFromString(""))).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(TextUtils.lastIndexOf("", '0', 0) + 488, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 4, (char) Color.green(0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
synchronized (this) {
super.onResume();
this._extractor.setExtractorListener(this);
this._extractor.setCertificateValidatorListener(this.JI);
extract(getImageByBitmapId(this.YL));
}
}
private static void k(short s, int i2, int i3, int i4, byte b2, Object[] objArr) {
int i5;
int length;
byte[] bArr;
int i6;
int i7 = 2;
int i8 = 2 % 2;
DFY dfy = new DFY();
StringBuilder sb = new StringBuilder();
try {
Object[] objArr2 = {Integer.valueOf(i3), Integer.valueOf(c)};
Object obj = xzZ.y.get(-2092856797);
int i9 = -1;
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 337, 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) ExpandableListView.getPackedPositionType(0L));
Object[] objArr3 = new Object[1];
m((byte) (-1), (byte) $$b, (byte) 0, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj);
}
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
int i10 = intValue == -1 ? 1 : 0;
if (i10 != 0) {
byte[] bArr2 = d;
float f2 = BitmapDescriptorFactory.HUE_RED;
if (bArr2 != null) {
int i11 = $11 + 67;
$10 = i11 % 128;
if (i11 % 2 != 0) {
length = bArr2.length;
bArr = new byte[length];
i6 = 1;
} else {
length = bArr2.length;
bArr = new byte[length];
i6 = 0;
}
while (i6 < length) {
int i12 = $10 + 19;
$11 = i12 % 128;
int i13 = i12 % i7;
try {
Object[] objArr4 = {Integer.valueOf(bArr2[i6])};
Object obj2 = xzZ.y.get(-1648115392);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(60 - View.MeasureSpec.getMode(0), 5 - (AudioTrack.getMinVolume() > f2 ? 1 : (AudioTrack.getMinVolume() == f2 ? 0 : -1)), (char) (ImageFormat.getBitsPerPixel(0) + 1));
byte b3 = (byte) i9;
Object[] objArr5 = new Object[1];
m(b3, (byte) (b3 & 10), (byte) 0, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1648115392, obj2);
}
bArr[i6] = ((Byte) ((Method) obj2).invoke(null, objArr4)).byteValue();
i6++;
i7 = 2;
i9 = -1;
f2 = BitmapDescriptorFactory.HUE_RED;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
bArr2 = bArr;
}
if (bArr2 != null) {
byte[] bArr3 = d;
try {
Object[] objArr6 = {Integer.valueOf(i2), Integer.valueOf(b)};
Object obj3 = xzZ.y.get(-2092856797);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(337 - (ViewConfiguration.getScrollBarSize() >> 8), 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
Object[] objArr7 = new Object[1];
m((byte) (-1), (byte) $$b, (byte) 0, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(-2092856797, obj3);
}
intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj3).invoke(null, objArr6)).intValue()] ^ (-7303220121662775787L))) + ((int) (c ^ (-7303220121662775787L))));
i5 = 2;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
intValue = (short) (((short) (e[i2 + ((int) (b ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (c ^ (-7303220121662775787L))));
int i14 = $11 + 93;
$10 = i14 % 128;
i5 = 2;
int i15 = i14 % 2;
}
} else {
i5 = 2;
}
if (intValue > 0) {
dfy.c = ((i2 + intValue) - i5) + ((int) (b ^ (-7303220121662775787L))) + i10;
Object[] objArr8 = {dfy, Integer.valueOf(i4), Integer.valueOf(a), sb};
Object obj4 = xzZ.y.get(1546973421);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(749 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), Drawable.resolveOpacity(0, 0) + 5, (char) Color.alpha(0))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
xzZ.y.put(1546973421, obj4);
}
((StringBuilder) ((Method) obj4).invoke(null, objArr8)).append(dfy.a);
dfy.e = dfy.a;
byte[] bArr4 = d;
if (bArr4 != null) {
int length2 = bArr4.length;
byte[] bArr5 = new byte[length2];
for (int i16 = 0; i16 < length2; i16++) {
bArr5[i16] = (byte) (bArr4[i16] ^ (-7303220121662775787L));
}
bArr4 = bArr5;
}
boolean z = bArr4 != null;
dfy.d = 1;
while (dfy.d < intValue) {
if (z) {
byte[] bArr6 = d;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r7] ^ (-7303220121662775787L))) + s)) ^ b2));
} else {
short[] sArr = e;
dfy.c = dfy.c - 1;
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r7] ^ (-7303220121662775787L))) + s)) ^ b2));
}
sb.append(dfy.a);
dfy.e = dfy.a;
dfy.d++;
}
}
objArr[0] = sb.toString();
} catch (Throwable th3) {
Throwable cause3 = th3.getCause();
if (cause3 == null) {
throw th3;
}
throw cause3;
}
}
public Image getImageByBitmapId(String str) {
int i2 = 2 % 2;
Image image = new Image(this.YK.getImage(str));
Image.ImageMimeType x = this.Yx.x(str);
if (x == Image.ImageMimeType.MIMETYPE_UNKNOWN) {
int i3 = h + 1;
i = i3 % 128;
int i4 = i3 % 2;
x = Image.ImageMimeType.MIMETYPE_TIFF;
}
image.setImageMimeType(x);
image.setImageDPI(Math.max(this.Yx.y(str), 96));
image.setImageOutputColor(this.Yx.z(str));
int i5 = h + 77;
i = i5 % 128;
if (i5 % 2 == 0) {
return image;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.Activity
protected void onSaveInstanceState(Bundle bundle) {
int i2 = 2 % 2;
int i3 = i + 65;
h = 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);
bundle.putSerializable("_com.kofax.mobile.sdk.capture._certificate_validator_listener_", this.JI);
int i5 = i + 47;
h = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
protected void extract(Image image) {
int i2 = 2 % 2;
int i3 = i + 91;
h = i3 % 128;
int i4 = i3 % 2;
this._extractor.extract(image);
int i5 = i + 99;
h = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 96 / 0;
}
}
@Override // com.kofax.mobile.sdk.capture.extraction.IExtractorListener
public void onExtractionComplete(T t) {
int i2 = 2 % 2;
Intent intent = new Intent();
intent.putExtra("_com.kofax.mobile.sdk.capture.internal_extraction_result_", t);
setResult(-1, intent);
finish();
int i3 = h + 99;
i = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
@Override // android.app.Activity
public void onPause() {
int i2 = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
k((short) ((-88) - (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))), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.bond_review_additional_info).substring(42, 43).codePointAt(0) + 487613390, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_offline_success_inquiries).substring(61, 65).length() - 39, (-1956604070) - Color.rgb(0, 0, 0), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.manage_email_otp_resend).substring(7, 9).codePointAt(0) - 32, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.transaction_successful).substring(22, 23).length() + 17, (char) View.MeasureSpec.getMode(0), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i3 = h + 3;
i = i3 % 128;
int i4 = i3 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 492, 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (1 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == 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.indexOf("", "", 0, 0) + 487, 5 - Gravity.getAbsoluteGravity(0, 0), (char) Color.blue(0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i5 = h + 15;
i = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
Context context2;
int i2 = 2 % 2;
int i3 = i + 89;
h = i3 % 128;
int i4 = i3 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
k((short) ((KeyEvent.getMaxKeyCode() >> 16) + 82), TextUtils.indexOf("", "") + 487613401, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 44, (-1939826854) - View.MeasureSpec.makeMeasureSpec(0, 0), (byte) View.MeasureSpec.getMode(0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
k((short) (Color.rgb(0, 0, 0) + 16777340), 487613419 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (ViewConfiguration.getMinimumFlingVelocity() >> 16) - 56, ((Process.getThreadPriority(0) + 20) >> 6) - 1939826842, (byte) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i5 = h + 41;
i = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 38 / 0;
if (intValue <= 99999) {
return;
}
} else if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i7 = h + 89;
i = i7 % 128;
if (i7 % 2 != 0) {
context2 = context.getApplicationContext();
int i8 = 75 / 0;
} else {
context2 = context.getApplicationContext();
}
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(493 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), 5 - Color.alpha(0), (char) (ViewConfiguration.getScrollBarSize() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
k((short) ((-45) - (ViewConfiguration.getMinimumFlingVelocity() >> 16)), (ViewConfiguration.getFadingEdgeLength() >> 16) + 487613447, (-13) - (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)), (ViewConfiguration.getKeyRepeatTimeout() >> 16) - 1939826902, (byte) (KeyEvent.getMaxKeyCode() >> 16), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
l((ViewConfiguration.getPressedStateDuration() >> 16) + 18, Color.blue(0) + 64, (char) (57194 - TextUtils.indexOf((CharSequence) "", '0', 0)), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
l(TextUtils.indexOf((CharSequence) "", '0') + 83, (Process.myPid() >> 22) + 64, (char) Color.argb(0, 0, 0, 0), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
k((short) (68 - (ViewConfiguration.getKeyRepeatDelay() >> 16)), (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 487613494, TextUtils.getOffsetAfter("", 0) + 13, (-1939826847) - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (byte) (Process.myPid() >> 22), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
k((short) (69 - View.MeasureSpec.makeMeasureSpec(0, 0)), 487613567 - (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)), (-56) - TextUtils.getOffsetBefore("", 0), TextUtils.getTrimmedLength("") - 1939826894, (byte) (ViewConfiguration.getTouchSlop() >> 8), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
k((short) (((Process.getThreadPriority(0) + 20) >> 6) - 113), TextUtils.getOffsetBefore("", 0) + 487613571, Color.blue(0) - 25, (-1939826851) - ImageFormat.getBitsPerPixel(0), (byte) Color.red(0), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(486 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getLongPressTimeout() >> 16) + 5, (char) (TextUtils.lastIndexOf("", '0', 0) + 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, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
@Override // android.app.Activity
public void onStart() {
int i2 = 2 % 2;
int i3 = i + 23;
h = i3 % 128;
int i4 = i3 % 2;
super.onStart();
if (i4 == 0) {
int i5 = 93 / 0;
}
int i6 = h + 87;
i = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 48 / 0;
}
}
public void setExtract(Extractor extractor) {
int i2 = 2 % 2;
int i3 = h + 59;
i = i3 % 128;
int i4 = i3 % 2;
this._extractor = extractor;
if (i4 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}