1140 lines
53 KiB
Java
1140 lines
53 KiB
Java
|
package com.kofax.mobile.sdk.capture;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.database.Cursor;
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.graphics.BitmapFactory;
|
||
|
import android.graphics.Color;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.media.AudioTrack;
|
||
|
import android.net.Uri;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.provider.MediaStore;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.AndroidCharacter;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.MotionEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.view.WindowManager;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.RelativeLayout;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.kofax.kmc.ken.engines.data.Image;
|
||
|
import com.kofax.kmc.kui.uicontrols.CameraInitializationEvent;
|
||
|
import com.kofax.kmc.kui.uicontrols.CameraInitializationFailedEvent;
|
||
|
import com.kofax.kmc.kui.uicontrols.CameraInitializationFailedListener;
|
||
|
import com.kofax.kmc.kui.uicontrols.CameraInitializationListener;
|
||
|
import com.kofax.kmc.kui.uicontrols.ImageCapturedEvent;
|
||
|
import com.kofax.kmc.kui.uicontrols.ImageCapturedListener;
|
||
|
import com.kofax.kmc.kui.uicontrols.data.Flash;
|
||
|
import com.kofax.mobile.sdk._internal.camera.f;
|
||
|
import com.kofax.mobile.sdk._internal.capture.CaptureCriteria;
|
||
|
import com.kofax.mobile.sdk._internal.capture.c;
|
||
|
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.view.ICaptureMenuListener;
|
||
|
import com.kofax.mobile.sdk._internal.view.IOverlayView;
|
||
|
import com.kofax.mobile.sdk.ai.b;
|
||
|
import com.kofax.mobile.sdk.capture.parameter.IParameters;
|
||
|
import com.kofax.mobile.sdk.capture.parameter.LookAndFeelParameters;
|
||
|
import com.scb.phone.R;
|
||
|
import java.lang.reflect.Method;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.TVH;
|
||
|
import o.dQY;
|
||
|
import o.xzZ;
|
||
|
import okhttp3.internal.http2.Http2Connection;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public abstract class CaptureActivity extends Activity implements ICaptureMenuListener {
|
||
|
public static final int IMAGE_CAPTURED = -42;
|
||
|
public static final int NO_IMAGE_CAPTURED = -1;
|
||
|
public static final String RESULT_CODE = "__result_code__";
|
||
|
private static final int Yu = 33;
|
||
|
private static final String Yv = "com.kofax.mobile.sdk.capture/CaptureActivity.STATE_IS_TORCH_BUTTON_CHECKED";
|
||
|
private IParameters YA;
|
||
|
private ViewGroup YB;
|
||
|
private static final byte[] $$a = {102, 118, 67, -58};
|
||
|
private static final int $$b = 126;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int d = 0;
|
||
|
private static int b = 1;
|
||
|
private static char[] e = {39996, 40034, 40047, 40039, 40056, 40033, 40044, 40034, 40032, 40059, 40039, 40045, 40002, 40005, 40058, 40027, 39988, 40042, 39993, 40045, 40020, 40044, 40056, 39953, 40007, 40005, 40006, 40007, 39996, 39997, 39992, 40001, 40041, 40040, 40046, 40000, 39999, 39997, 39992, 39994, 40001, 40005, 40005, 40007, 40007, 40007, 40005, 40004, 40006, 40001, 39992, 39998, 39998, 39993, 40001, 40006, 39998, 40001, 40001, 40001, 40002, 39998, 40006, 40042, 40040, 40047, 40000, 40001, 40000, 39998, 39999, 40002, 40091, 40069, 40050, 40047, 40042, 40060, 40049, 40049, 40051, 40040, 40049, 40049, 40048, 40055, 40048, 40091, 40050, 40043, 40043, 40041, 40051, 40069, 40050, 40050, 40068, 40049, 40040, 40051, 40051, 40040, 40047, 40047, 40042, 40042, 40041, 40060, 40061, 40043, 40042, 40043, 40060, 40051, 40050, 40060, 40021, 40020, 40041, 40043, 40042, 40040, 40042, 40042, 40042, 40043, 40049, 40055, 40040, 40051, 40050, 40049, 40049, 40050, 40091, 39952, 40006, 40006, 39997, 40000, 40040, 40040, 40003, 40000, 40000, 39999, 39996, 39996, 39998, 40000, 40040, 40040, 40006, 40007, 40047, 40007, 39999, 39993, 39993, 39992, 39994, 39994, 39992, 39998, 40000, 40042, 40000, 40007, 40005, 39996, 39996, 40005, 40046, 40004, 40006, 40001, 39999, 39992, 39995, 39995, 40000, 40047, 40042, 40007, 39999, 39993, 40000, 40040, 40007, 39997, 39998, 40000, 40046, 40007, 40001, 40001, 39994, 39999, 40007, 40061, 40166, 40160, 40168, 40172, 40172, 40143, 40097, 40133, 40135, 40128, 40166, 40173, 40171, 40175, 40174, 40141, 40141, 40173, 40169, 40137, 40131, 40163, 40168, 40137, 40136, 40174, 40168, 40174, 40166, 40167, 40174, 40174, 40168, 40174, 40163, 40143, 40128, 40166, 40175, 40151, 40174, 40175, 40150, 40174, 40172, 40163, 40128, 40141, 40173, 40170, 40144, 40170, 40171, 40148, 40171, 40175, 40174, 40168, 40172, 40163, 40168, 40169, 40170, 40148, 40163, 40128, 40098, 40101, 40155, 40160, 40167, 40165, 40163, 40005, 40014, 40008, 40006, 40008, 40035, 40124, 40084, 40107, 40107, 40115, 40155, 40113, 40115, 40126, 40125, 40125, 40080, 40127, 40155, 40132, 40134, 40120, 40080, 40086, 40086, 40084, 40087, 40120, 40132, 40125, 40084, 40086, 40081, 40085, 40105, 40113, 40115, 40084, 40126, 40132};
|
||
|
private static char[] a = {12667, 51636, 49406, 56104, 53877, 60083, 58878, 64628, 63355, 36778, 34538, 33140, 39003, 37049, 44014, 41523, 48492, 46515, 19694, 18211, 24142, 22194, 20968, 26687, 25467, 31678, 36785, 30567, 32288, 26080, 27831, 21628, 23334, 17107, 18850, 12642, 14398, 16379, 9905, 11891, 5414, 7419, 957, 2940};
|
||
|
private static long c = -6274768117745748206L;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
b Ub = null;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
IImageStorage Yw = null;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
e Yx = null;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
com.kofax.mobile.sdk._internal.capture.a _captureController = null;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
com.kofax.mobile.sdk._internal.view.b Yy = null;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
h Yz = null;
|
||
|
|
||
|
/* 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:0x002e). 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(int r6, short r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r6 = 106 - r6
|
||
|
byte[] r0 = com.kofax.mobile.sdk.capture.CaptureActivity.$$a
|
||
|
int r7 = r7 * 4
|
||
|
int r7 = 3 - r7
|
||
|
int r8 = r8 * 4
|
||
|
int r1 = 1 - r8
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
int r8 = 0 - r8
|
||
|
if (r0 != 0) goto L16
|
||
|
r3 = r7
|
||
|
r4 = r2
|
||
|
goto L2e
|
||
|
L16:
|
||
|
r3 = r2
|
||
|
L17:
|
||
|
byte r4 = (byte) r6
|
||
|
int r7 = r7 + 1
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r8) goto L26
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L26:
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r0[r7]
|
||
|
r5 = r3
|
||
|
r3 = r7
|
||
|
r7 = r4
|
||
|
r4 = r5
|
||
|
L2e:
|
||
|
int r7 = -r7
|
||
|
int r6 = r6 + r7
|
||
|
r7 = r3
|
||
|
r3 = r4
|
||
|
goto L17
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.kofax.mobile.sdk.capture.CaptureActivity.m(int, short, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ IParameters a(CaptureActivity captureActivity) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b;
|
||
|
int i3 = i2 + 43;
|
||
|
d = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
IParameters iParameters = captureActivity.YA;
|
||
|
if (i4 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
int i5 = i2 + 21;
|
||
|
d = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return iParameters;
|
||
|
}
|
||
|
|
||
|
private static void l(int i, int i2, char c2, Object[] objArr) {
|
||
|
int i3 = 2;
|
||
|
int i4 = 2 % 2;
|
||
|
dQY dqy = new dQY();
|
||
|
long[] jArr = new long[i2];
|
||
|
dqy.a = 0;
|
||
|
while (dqy.a < i2) {
|
||
|
int i5 = $10 + 31;
|
||
|
$11 = i5 % 128;
|
||
|
if (i5 % i3 == 0) {
|
||
|
int i6 = dqy.a;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(a[i % dqy.a])};
|
||
|
Object obj = xzZ.y.get(1095064095);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c((AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 308, View.getDefaultSize(0, 0) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 32796));
|
||
|
byte b2 = (byte) 0;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
m((byte) ($$b & 8), b2, b2, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1095064095, obj);
|
||
|
}
|
||
|
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
|
||
|
Object obj2 = xzZ.y.get(-548438098);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c((ViewConfiguration.getLongPressTimeout() >> 16) + 412, Color.argb(0, 0, 0, 0) + 5, (char) (Color.rgb(0, 0, 0) + Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE));
|
||
|
byte b3 = (byte) 0;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
m((byte) 7, b3, b3, objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(-548438098, obj2);
|
||
|
}
|
||
|
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
|
||
|
Object[] objArr6 = {dqy, dqy};
|
||
|
Object obj3 = xzZ.y.get(1071125919);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 406, TextUtils.lastIndexOf("", '0') + 6, (char) (TextUtils.getOffsetAfter("", 0) + 29234));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
m(b4, b5, b5, 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;
|
||
|
}
|
||
|
} else {
|
||
|
int i7 = dqy.a;
|
||
|
try {
|
||
|
Object[] objArr8 = {Integer.valueOf(a[i + dqy.a])};
|
||
|
Object obj4 = xzZ.y.get(1095064095);
|
||
|
if (obj4 == null) {
|
||
|
Class cls4 = (Class) xzZ.c(Drawable.resolveOpacity(0, 0) + 308, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (32798 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
|
||
|
byte b6 = (byte) 0;
|
||
|
Object[] objArr9 = new Object[1];
|
||
|
m((byte) ($$b & 8), b6, b6, objArr9);
|
||
|
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
|
||
|
xzZ.y.put(1095064095, obj4);
|
||
|
}
|
||
|
try {
|
||
|
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
|
||
|
Object obj5 = xzZ.y.get(-548438098);
|
||
|
if (obj5 == null) {
|
||
|
Class cls5 = (Class) xzZ.c(412 - View.MeasureSpec.makeMeasureSpec(0, 0), 5 - TextUtils.getTrimmedLength(""), (char) (1 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))));
|
||
|
byte b7 = (byte) 0;
|
||
|
Object[] objArr11 = new Object[1];
|
||
|
m((byte) 7, b7, b7, objArr11);
|
||
|
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(-548438098, obj5);
|
||
|
}
|
||
|
jArr[i7] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
|
||
|
try {
|
||
|
Object[] objArr12 = {dqy, dqy};
|
||
|
Object obj6 = xzZ.y.get(1071125919);
|
||
|
if (obj6 == null) {
|
||
|
Class cls6 = (Class) xzZ.c(Color.alpha(0) + 407, 5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) (29234 - (ViewConfiguration.getJumpTapTimeout() >> 16)));
|
||
|
byte b8 = (byte) 0;
|
||
|
byte b9 = b8;
|
||
|
Object[] objArr13 = new Object[1];
|
||
|
m(b8, b9, b9, objArr13);
|
||
|
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj6);
|
||
|
}
|
||
|
((Method) obj6).invoke(null, objArr12);
|
||
|
} 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;
|
||
|
}
|
||
|
} catch (Throwable th4) {
|
||
|
Throwable cause4 = th4.getCause();
|
||
|
if (cause4 == null) {
|
||
|
throw th4;
|
||
|
}
|
||
|
throw cause4;
|
||
|
}
|
||
|
}
|
||
|
i3 = 2;
|
||
|
}
|
||
|
char[] cArr = new char[i2];
|
||
|
dqy.a = 0;
|
||
|
while (dqy.a < i2) {
|
||
|
cArr[dqy.a] = (char) jArr[dqy.a];
|
||
|
Object[] objArr14 = {dqy, dqy};
|
||
|
Object obj7 = xzZ.y.get(1071125919);
|
||
|
if (obj7 == null) {
|
||
|
Class cls7 = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 407, 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) ((ViewConfiguration.getPressedStateDuration() >> 16) + 29234));
|
||
|
byte b10 = (byte) 0;
|
||
|
byte b11 = b10;
|
||
|
Object[] objArr15 = new Object[1];
|
||
|
m(b10, b11, b11, objArr15);
|
||
|
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj7);
|
||
|
}
|
||
|
((Method) obj7).invoke(null, objArr14);
|
||
|
}
|
||
|
String str = new String(cArr);
|
||
|
int i8 = $11 + 43;
|
||
|
$10 = i8 % 128;
|
||
|
if (i8 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
objArr[0] = str;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onCreate(Bundle bundle) {
|
||
|
boolean z;
|
||
|
int i = 2 % 2;
|
||
|
Object[] objArr = new Object[1];
|
||
|
k(new int[]{0, 18, 0, 5}, false, new byte[]{1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0}, objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
k(new int[]{18, 5, 0, 0}, true, new byte[]{0, 1, 0, 0, 0}, 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];
|
||
|
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 34, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.greater_than_fullpay_message).substring(11, 12).length() + 25, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.limit_sample_value).substring(0, 7).codePointAt(0) + 48791), objArr3);
|
||
|
Class<?> cls2 = Class.forName((String) objArr3[0]);
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.open_now_gift_msg).substring(4, 5).length() + 25, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.error_ekyc_passport_1002_text).substring(76, 77).length() + 17, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_kofax_camera_tutorial_no_certificate).substring(0, 2).codePointAt(0) - 8226), objArr4);
|
||
|
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
int i2 = d + 27;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
baseContext.getApplicationContext();
|
||
|
throw null;
|
||
|
}
|
||
|
baseContext = baseContext.getApplicationContext();
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c((Process.myTid() >> 22) + 492, 5 - TextUtils.getOffsetAfter("", 0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj);
|
||
|
}
|
||
|
Object invoke = ((Method) obj).invoke(null, null);
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
k(new int[]{23, 48, 0, 0}, true, new byte[]{0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0}, objArr5);
|
||
|
String str = (String) objArr5[0];
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
k(new int[]{71, 64, 45, 0}, true, new byte[]{0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr6);
|
||
|
String str2 = (String) objArr6[0];
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
k(new int[]{135, 64, 0, 0}, true, new byte[]{1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1}, objArr7);
|
||
|
String str3 = (String) objArr7[0];
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
k(new int[]{199, 74, 122, 0}, true, new byte[]{1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, objArr8);
|
||
|
String str4 = (String) objArr8[0];
|
||
|
Object[] objArr9 = new Object[1];
|
||
|
k(new int[]{273, 5, 21, 1}, true, null, objArr9);
|
||
|
String str5 = (String) objArr9[0];
|
||
|
Object[] objArr10 = new Object[1];
|
||
|
k(new int[]{278, 36, 108, 0}, true, new byte[]{1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0}, 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 - View.MeasureSpec.makeMeasureSpec(0, 0), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.lastIndexOf("", '0', 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, objArr11);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
tA();
|
||
|
super.onCreate(bundle);
|
||
|
this.YA = getParameters(bundle);
|
||
|
tC();
|
||
|
LookAndFeelParameters lookAndFeelParameters = this.YA.getLookAndFeelParameters();
|
||
|
this.Yy.a(lookAndFeelParameters.forceCaptureEnabled, lookAndFeelParameters.manualCaptureTimer);
|
||
|
this.Yy.setExitButtonEnabled(lookAndFeelParameters.exitEnabled);
|
||
|
this.Yy.setGalleryButtonEnabled(tB());
|
||
|
LookAndFeelParameters.TorchMode torchMode = lookAndFeelParameters.torch;
|
||
|
com.kofax.mobile.sdk._internal.view.b bVar = this.Yy;
|
||
|
if (torchMode != LookAndFeelParameters.TorchMode.AUTO) {
|
||
|
int i3 = b + 9;
|
||
|
d = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
z = true;
|
||
|
} else {
|
||
|
z = false;
|
||
|
}
|
||
|
bVar.setTorchButtonEnabled(z);
|
||
|
if (bundle == null) {
|
||
|
this.Yy.setTorchButtonChecked(torchMode == LookAndFeelParameters.TorchMode.ON);
|
||
|
int i5 = b + 51;
|
||
|
d = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
} else {
|
||
|
this.Yy.setTorchButtonChecked(bundle.getBoolean(Yv));
|
||
|
}
|
||
|
this.Yy.setListener(this);
|
||
|
setCaptureCriteria(new CaptureCriteria());
|
||
|
this._captureController.addOnImageCapturedListener(new ImageCapturedListener(this) { // from class: com.kofax.mobile.sdk.capture.CaptureActivity.1
|
||
|
final CaptureActivity YC;
|
||
|
|
||
|
{
|
||
|
this.YC = this;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.ImageCapturedListener
|
||
|
public void onImageCaptured(ImageCapturedEvent imageCapturedEvent) {
|
||
|
this.YC.saveResultAndFinish(imageCapturedEvent.getImage(), null);
|
||
|
}
|
||
|
});
|
||
|
this._captureController.d(false);
|
||
|
setResult(-1);
|
||
|
}
|
||
|
|
||
|
public void setCaptureCriteria(CaptureCriteria captureCriteria) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 69;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
this._captureController.setCaptureCriteria(captureCriteria);
|
||
|
return;
|
||
|
}
|
||
|
this._captureController.setCaptureCriteria(captureCriteria);
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public <T extends IParameters> T getParameters(Bundle bundle) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 109;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
T t = (T) WorkflowActivity.a(bundle, getIntent(), "_com.kofax.mobile.sdk.capture.internal_parameters_");
|
||
|
int i4 = b + 45;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
private static void k(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
|
||
|
int i;
|
||
|
char[] cArr;
|
||
|
char[] cArr2;
|
||
|
int i2 = 2;
|
||
|
int i3 = 2 % 2;
|
||
|
TVH tvh = new TVH();
|
||
|
int i4 = 0;
|
||
|
int i5 = iArr[0];
|
||
|
int i6 = iArr[1];
|
||
|
int i7 = iArr[2];
|
||
|
int i8 = iArr[3];
|
||
|
char[] cArr3 = e;
|
||
|
char c2 = '0';
|
||
|
if (cArr3 != null) {
|
||
|
int length = cArr3.length;
|
||
|
char[] cArr4 = new char[length];
|
||
|
int i9 = 0;
|
||
|
while (i9 < length) {
|
||
|
int i10 = $10 + 91;
|
||
|
$11 = i10 % 128;
|
||
|
int i11 = i10 % i2;
|
||
|
try {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
objArr2[i4] = Integer.valueOf(cArr3[i9]);
|
||
|
Object obj = xzZ.y.get(1645349359);
|
||
|
if (obj != null) {
|
||
|
cArr2 = cArr3;
|
||
|
} else {
|
||
|
Class cls = (Class) xzZ.c(223 - Color.blue(i4), 6 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (char) (TextUtils.lastIndexOf("", c2, i4) + 41978));
|
||
|
byte b2 = (byte) i4;
|
||
|
cArr2 = cArr3;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
m((byte) 35, b2, b2, objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1645349359, obj);
|
||
|
}
|
||
|
cArr4[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
i9++;
|
||
|
cArr3 = cArr2;
|
||
|
i2 = 2;
|
||
|
i4 = 0;
|
||
|
c2 = '0';
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
int i12 = $10 + 113;
|
||
|
$11 = i12 % 128;
|
||
|
int i13 = i12 % 2;
|
||
|
cArr3 = cArr4;
|
||
|
}
|
||
|
char[] cArr5 = new char[i6];
|
||
|
System.arraycopy(cArr3, i5, cArr5, 0, i6);
|
||
|
if (bArr != null) {
|
||
|
char[] cArr6 = new char[i6];
|
||
|
tvh.c = 0;
|
||
|
char c3 = 0;
|
||
|
while (tvh.c < i6) {
|
||
|
if (bArr[tvh.c] == 1) {
|
||
|
int i14 = $10 + 73;
|
||
|
$11 = i14 % 128;
|
||
|
if (i14 % 2 == 0) {
|
||
|
int i15 = tvh.c;
|
||
|
try {
|
||
|
Object[] objArr4 = {Integer.valueOf(cArr5[tvh.c]), Integer.valueOf(c3)};
|
||
|
Object obj2 = xzZ.y.get(850398076);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c(502 - (ViewConfiguration.getFadingEdgeLength() >> 16), Process.getGidForName("") + 6, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 55))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(850398076, obj2);
|
||
|
}
|
||
|
cArr6[i15] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
||
|
throw null;
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
}
|
||
|
int i16 = tvh.c;
|
||
|
Object[] objArr5 = {Integer.valueOf(cArr5[tvh.c]), Integer.valueOf(c3)};
|
||
|
Object obj3 = xzZ.y.get(850398076);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(MotionEvent.axisFromString("") + 503, 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(850398076, obj3);
|
||
|
}
|
||
|
cArr6[i16] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
|
||
|
} else {
|
||
|
int i17 = tvh.c;
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr5[tvh.c]), Integer.valueOf(c3)};
|
||
|
Object obj4 = xzZ.y.get(1084521042);
|
||
|
if (obj4 == null) {
|
||
|
obj4 = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 15, (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) (58133 - TextUtils.indexOf((CharSequence) "", '0', 0, 0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1084521042, obj4);
|
||
|
}
|
||
|
cArr6[i17] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
||
|
}
|
||
|
c3 = cArr6[tvh.c];
|
||
|
Object[] objArr7 = {tvh, tvh};
|
||
|
Object obj5 = xzZ.y.get(1698744941);
|
||
|
if (obj5 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(402 - TextUtils.indexOf("", ""), 6 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), (char) ((ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 21608));
|
||
|
byte b3 = (byte) 0;
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
m((byte) 33, b3, b3, objArr8);
|
||
|
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1698744941, obj5);
|
||
|
}
|
||
|
((Method) obj5).invoke(null, objArr7);
|
||
|
}
|
||
|
cArr5 = cArr6;
|
||
|
}
|
||
|
if (i8 > 0) {
|
||
|
int i18 = $11 + 27;
|
||
|
$10 = i18 % 128;
|
||
|
if (i18 % 2 != 0) {
|
||
|
char[] cArr7 = new char[i6];
|
||
|
System.arraycopy(cArr5, 1, cArr7, 0, i6);
|
||
|
System.arraycopy(cArr7, 1, cArr5, i6 << i8, i8);
|
||
|
System.arraycopy(cArr7, i8, cArr5, 1, i6 + i8);
|
||
|
} else {
|
||
|
char[] cArr8 = new char[i6];
|
||
|
System.arraycopy(cArr5, 0, cArr8, 0, i6);
|
||
|
int i19 = i6 - i8;
|
||
|
System.arraycopy(cArr8, 0, cArr5, i19, i8);
|
||
|
System.arraycopy(cArr8, i8, cArr5, 0, i19);
|
||
|
}
|
||
|
}
|
||
|
if (z) {
|
||
|
int i20 = $11 + 45;
|
||
|
$10 = i20 % 128;
|
||
|
if (i20 % 2 != 0) {
|
||
|
cArr = new char[i6];
|
||
|
i = 0;
|
||
|
} else {
|
||
|
i = 0;
|
||
|
cArr = new char[i6];
|
||
|
}
|
||
|
while (true) {
|
||
|
tvh.c = i;
|
||
|
if (tvh.c >= i6) {
|
||
|
break;
|
||
|
}
|
||
|
int i21 = $11 + 35;
|
||
|
$10 = i21 % 128;
|
||
|
int i22 = i21 % 2;
|
||
|
cArr[tvh.c] = cArr5[(i6 - tvh.c) - 1];
|
||
|
i = tvh.c + 1;
|
||
|
}
|
||
|
cArr5 = cArr;
|
||
|
}
|
||
|
if (i7 > 0) {
|
||
|
int i23 = 0;
|
||
|
loop3: while (true) {
|
||
|
tvh.c = i23;
|
||
|
while (tvh.c < i6) {
|
||
|
int i24 = $10 + 47;
|
||
|
$11 = i24 % 128;
|
||
|
if (i24 % 2 == 0) {
|
||
|
cArr5[tvh.c] = (char) (cArr5[tvh.c] >> iArr[4]);
|
||
|
tvh.c <<= 1;
|
||
|
}
|
||
|
}
|
||
|
cArr5[tvh.c] = (char) (cArr5[tvh.c] - iArr[2]);
|
||
|
i23 = tvh.c + 1;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr5);
|
||
|
}
|
||
|
|
||
|
private void tA() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 107;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
requestWindowFeature(1);
|
||
|
getWindow().setFlags(1024, 1024);
|
||
|
getWindow().addFlags(128);
|
||
|
WindowManager.LayoutParams attributes = getWindow().getAttributes();
|
||
|
attributes.screenBrightness = 1.0f;
|
||
|
getWindow().setAttributes(attributes);
|
||
|
int i4 = d + 41;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onResume() {
|
||
|
int i = 2 % 2;
|
||
|
Context baseContext = getBaseContext();
|
||
|
if (baseContext == null) {
|
||
|
int i2 = d + 125;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Object[] objArr = new Object[1];
|
||
|
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(5) - 99, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.membership_already_registered).substring(32, 33).length() + 25, (char) (48840 - TextUtils.getCapsMode("", 0, 0)), objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
l(27 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.debit_card_cvc_title).substring(18, 19).codePointAt(0) - 49, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) - 111), objArr2);
|
||
|
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
|
||
|
int i4 = d + 3;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
baseContext = baseContext.getApplicationContext();
|
||
|
int i6 = b + 45;
|
||
|
d = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
int i7 = 5 / 4;
|
||
|
}
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 491, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (Color.rgb(0, 0, 0) + Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE))).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(486 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) (Process.myTid() >> 22))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
|
||
|
xzZ.y.put(1378719468, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(invoke, objArr3);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
super.onResume();
|
||
|
if (this.Ub.a("android.permission.CAMERA")) {
|
||
|
this.Yy.setGalleryButtonEnabled(tB());
|
||
|
setupCameraView(this.YB);
|
||
|
} else {
|
||
|
Intent intent = new Intent();
|
||
|
intent.putExtra(RESULT_CODE, -1);
|
||
|
setResult(0, intent);
|
||
|
finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onPause() {
|
||
|
int i = 2 % 2;
|
||
|
Context baseContext = getBaseContext();
|
||
|
if (baseContext == null) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
l(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.gift_tap_to_edit).substring(0, 1).length() - 1, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.manage_promptpay_unlink_dialog_message).substring(22, 23).codePointAt(0) - 6, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(9) + 48736), 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.registration_facial_verification_locked_no_card_description).substring(103, 104).length() + 25, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.decline_terms_and_conditions_desc).substring(31, 32).length() + 17, (char) View.getDefaultSize(0, 0), objArr2);
|
||
|
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
int i2 = b + 5;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
baseContext = baseContext.getApplicationContext();
|
||
|
int i4 = b + 93;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 492, 5 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), (char) (ViewConfiguration.getTapTimeout() >> 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(((byte) KeyEvent.getModifierMetaStateMask()) + 488, 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)))).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();
|
||
|
tD();
|
||
|
int i6 = d + 19;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
}
|
||
|
|
||
|
private boolean tB() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 47;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (this.YA.getLookAndFeelParameters().galleryEnabled && this.Ub.a("android.permission.READ_EXTERNAL_STORAGE")) {
|
||
|
return true;
|
||
|
}
|
||
|
int i4 = d + 69;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public f getCameraView() {
|
||
|
f iCameraView;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 37;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
iCameraView = Injector.getInjector(this).getICameraView();
|
||
|
int i3 = 23 / 0;
|
||
|
} else {
|
||
|
iCameraView = Injector.getInjector(this).getICameraView();
|
||
|
}
|
||
|
int i4 = d + 67;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return iCameraView;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static abstract class a implements CameraInitializationFailedListener, CameraInitializationListener {
|
||
|
private f YD;
|
||
|
|
||
|
protected abstract void setup();
|
||
|
|
||
|
private a() {
|
||
|
}
|
||
|
|
||
|
public void c(f fVar) {
|
||
|
if (this.YD != null) {
|
||
|
throw new IllegalStateException("already listening");
|
||
|
}
|
||
|
this.YD = fVar;
|
||
|
fVar.addCameraInitializationListener(this);
|
||
|
this.YD.addCameraInitializationFailedListener(this);
|
||
|
}
|
||
|
|
||
|
public void stopListening() {
|
||
|
f fVar = this.YD;
|
||
|
if (fVar == null) {
|
||
|
throw new IllegalStateException("not listening");
|
||
|
}
|
||
|
fVar.removeCameraInitializationListener(this);
|
||
|
this.YD.removeCameraInitializationFailedListener(this);
|
||
|
this.YD = null;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.CameraInitializationListener
|
||
|
public void onCameraInitialized(CameraInitializationEvent cameraInitializationEvent) {
|
||
|
stopListening();
|
||
|
if (cameraInitializationEvent.getCameraInitStatus() == CameraInitializationEvent.CameraInitStatus.CAMERA_VIEW_CREATED) {
|
||
|
setup();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.CameraInitializationFailedListener
|
||
|
public void onCameraInitializationFailed(CameraInitializationFailedEvent cameraInitializationFailedEvent) {
|
||
|
stopListening();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void tC() {
|
||
|
int i = 2 % 2;
|
||
|
LinearLayout linearLayout = new LinearLayout(this);
|
||
|
linearLayout.setOrientation(0);
|
||
|
ViewGroup.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, -2, 1.0f);
|
||
|
RelativeLayout relativeLayout = new RelativeLayout(this);
|
||
|
this.YB = relativeLayout;
|
||
|
linearLayout.addView(relativeLayout, layoutParams);
|
||
|
setupButtonBarView(linearLayout);
|
||
|
setContentView(linearLayout);
|
||
|
int i2 = b + 47;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
}
|
||
|
|
||
|
protected void setupCameraView(ViewGroup viewGroup) {
|
||
|
int i = 2 % 2;
|
||
|
f cameraView = getCameraView();
|
||
|
new a(this) { // from class: com.kofax.mobile.sdk.capture.CaptureActivity.2
|
||
|
final CaptureActivity YC;
|
||
|
|
||
|
{
|
||
|
this.YC = this;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk.capture.CaptureActivity.a
|
||
|
protected void setup() {
|
||
|
if (CaptureActivity.a(this.YC).getLookAndFeelParameters().torch == LookAndFeelParameters.TorchMode.AUTO) {
|
||
|
this.YC.getCameraView().setFlash(Flash.AUTOTORCH);
|
||
|
} else {
|
||
|
CaptureActivity captureActivity = this.YC;
|
||
|
captureActivity.onTorchChange(captureActivity.Yy.rH());
|
||
|
}
|
||
|
}
|
||
|
}.c(cameraView);
|
||
|
viewGroup.addView(cameraView.getViewGroup());
|
||
|
int i2 = d + 93;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
int i3 = 34 / 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void tD() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 109;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
this.YB.removeAllViews();
|
||
|
int i4 = b + 17;
|
||
|
d = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected void setupButtonBarView(LinearLayout linearLayout) {
|
||
|
int i = 2 % 2;
|
||
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
|
||
|
this.Yy.getView().setLayoutParams(layoutParams);
|
||
|
linearLayout.addView(this.Yy.getView(), layoutParams);
|
||
|
int i2 = d + 25;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onSaveInstanceState(Bundle bundle) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 15;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
super.onSaveInstanceState(bundle);
|
||
|
bundle.putSerializable("_com.kofax.mobile.sdk.capture.internal_parameters_", this.YA);
|
||
|
bundle.putBoolean(Yv, this.Yy.rH());
|
||
|
int i4 = b + 69;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public void initController(IOverlayView iOverlayView, c cVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 75;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
this._captureController.a(cVar, getCameraView(), iOverlayView);
|
||
|
int i4 = b + 95;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
public void saveResultAndFinish(Image image, Bundle bundle) {
|
||
|
int i = 2 % 2;
|
||
|
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());
|
||
|
this.Yx.a(bf, image.getTargetFrame());
|
||
|
Intent intent = new Intent();
|
||
|
if (bundle != null) {
|
||
|
int i2 = b + 111;
|
||
|
d = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
intent.putExtras(bundle);
|
||
|
} else {
|
||
|
intent.putExtras(bundle);
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
intent.putExtra(RESULT_CODE, -42);
|
||
|
intent.putExtra("_com.kofax.mobile.sdk.capture.internal_image_id_", bf);
|
||
|
setResult(-1, intent);
|
||
|
finish();
|
||
|
int i3 = b + 15;
|
||
|
d = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void finish() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 13;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
super.finish();
|
||
|
this._captureController.destroy();
|
||
|
int i4 = d + 113;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
|
||
|
public void onExitButtonClick() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 17;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
finish();
|
||
|
if (i3 == 0) {
|
||
|
int i4 = 67 / 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
|
||
|
public void onForceCaptureButtonClick() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 119;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
getCameraView().forceTakePicture();
|
||
|
int i4 = b + 123;
|
||
|
d = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
int i5 = 55 / 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
|
||
|
public void onGalleryButtonClick() {
|
||
|
int i = 2 % 2;
|
||
|
startActivityForResult(new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI), 33);
|
||
|
int i2 = b + 87;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.view.ICaptureMenuListener
|
||
|
public void onTorchChange(boolean z) {
|
||
|
int i = 2 % 2;
|
||
|
if (!z) {
|
||
|
getCameraView().setFlash(Flash.OFF);
|
||
|
return;
|
||
|
}
|
||
|
int i2 = d + 15;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
getCameraView().setFlash(Flash.TORCH);
|
||
|
int i4 = d + 113;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onActivityResult(int i, int i2, Intent intent) {
|
||
|
int i3 = 2 % 2;
|
||
|
int i4 = d;
|
||
|
int i5 = i4 + 9;
|
||
|
b = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
if (i2 == -1 && i == 33) {
|
||
|
int i7 = i4 + 27;
|
||
|
b = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
Bitmap a2 = a(intent.getData());
|
||
|
if (a2 != null) {
|
||
|
saveResultAndFinish(new Image(a2), null);
|
||
|
return;
|
||
|
}
|
||
|
Intent intent2 = new Intent();
|
||
|
intent2.putExtra(RESULT_CODE, -1);
|
||
|
setResult(0, intent2);
|
||
|
finish();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private Bitmap a(Uri uri) {
|
||
|
Bitmap bitmap;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 41;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
try {
|
||
|
String[] strArr = {"_data"};
|
||
|
Cursor query = getContentResolver().query(uri, strArr, null, null, null);
|
||
|
query.moveToFirst();
|
||
|
String string = query.getString(query.getColumnIndex(strArr[0]));
|
||
|
query.close();
|
||
|
bitmap = BitmapFactory.decodeFile(string);
|
||
|
} catch (Exception unused) {
|
||
|
bitmap = null;
|
||
|
}
|
||
|
int i4 = b + 75;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return bitmap;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
|
||
|
public void attachBaseContext(Context context) {
|
||
|
int i = 2 % 2;
|
||
|
super.attachBaseContext(context);
|
||
|
Object[] objArr = new Object[1];
|
||
|
k(new int[]{0, 18, 0, 5}, false, new byte[]{1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0}, objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
k(new int[]{18, 5, 0, 0}, true, new byte[]{0, 1, 0, 0, 0}, objArr2);
|
||
|
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
|
||
|
if (intValue >= 99000) {
|
||
|
int i2 = b + 59;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (intValue <= 99999) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (context != null) {
|
||
|
context = context.getApplicationContext();
|
||
|
}
|
||
|
if (context != null) {
|
||
|
int i4 = d + 121;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 492, '5' - AndroidCharacter.getMirror('0'), (char) (ViewConfiguration.getTapTimeout() >> 16))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj);
|
||
|
}
|
||
|
Object invoke = ((Method) obj).invoke(null, null);
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
k(new int[]{23, 48, 0, 0}, true, new byte[]{0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0}, objArr3);
|
||
|
String str = (String) objArr3[0];
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
k(new int[]{71, 64, 45, 0}, true, new byte[]{0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
|
||
|
String str2 = (String) objArr4[0];
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
k(new int[]{135, 64, 0, 0}, true, new byte[]{1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1}, objArr5);
|
||
|
String str3 = (String) objArr5[0];
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
k(new int[]{199, 74, 122, 0}, true, new byte[]{1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0}, objArr6);
|
||
|
String str4 = (String) objArr6[0];
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
k(new int[]{273, 5, 21, 1}, true, null, objArr7);
|
||
|
String str5 = (String) objArr7[0];
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
k(new int[]{278, 36, 108, 0}, true, new byte[]{1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0}, objArr8);
|
||
|
Object[] objArr9 = {context, str, str2, str3, str4, true, str5, (String) objArr8[0]};
|
||
|
Object obj2 = xzZ.y.get(1656189573);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 487, 5 - View.MeasureSpec.getMode(0), (char) (ViewConfiguration.getScrollDefaultDelay() >> 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, objArr9);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onStart() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 71;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
super.onStart();
|
||
|
if (i3 == 0) {
|
||
|
return;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|