1874 lines
78 KiB
Java
1874 lines
78 KiB
Java
package io.beid.beidk.activity;
|
|
|
|
import android.animation.ObjectAnimator;
|
|
import android.app.PendingIntent;
|
|
import android.content.ComponentName;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.ServiceConnection;
|
|
import android.graphics.Color;
|
|
import android.graphics.ImageFormat;
|
|
import android.graphics.PointF;
|
|
import android.nfc.NfcAdapter;
|
|
import android.nfc.Tag;
|
|
import android.nfc.tech.IsoDep;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
import android.os.IBinder;
|
|
import android.os.Looper;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.telephony.cdma.CdmaCellLocation;
|
|
import android.text.TextUtils;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.ProgressBar;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.TextView;
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
import com.google.android.gms.common.GoogleApiAvailability;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.google.android.material.snackbar.Snackbar;
|
|
import com.google.common.base.Ascii;
|
|
import com.huawei.hms.api.ConnectionResult;
|
|
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
|
|
import com.scb.phone.R;
|
|
import io.beid.beidk.BEIDConfigurationFactory;
|
|
import io.beid.beidk.PassportManager;
|
|
import io.beid.beidk.definitions.BeIDParams;
|
|
import io.beid.beidk.definitions.PassportErrorCode;
|
|
import io.beid.beidk.definitions.SCBHeader;
|
|
import io.beid.beidk.definitions.TransactionUploadFileType;
|
|
import io.beid.beidk.messages.transaction.PassportVerifyForm;
|
|
import io.beid.beidk.messages.transaction.PassportVerifyResult;
|
|
import io.beid.beidk.parcelable.PassportDataParcelable;
|
|
import io.beid.beidk.services.TransactionService;
|
|
import io.beid.beidk.ui.camera.CameraSourcePreview;
|
|
import io.beid.beidk.ui.camera.GraphicOverlay;
|
|
import io.beid.beidk.view.JHSquareMaskView;
|
|
import io.flutter.plugin.platform.PlatformPlugin;
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
import io.reactivex.functions.Consumer;
|
|
import io.reactivex.schedulers.Schedulers;
|
|
import java.io.ByteArrayInputStream;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.lang.reflect.Method;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
|
import o.AsyncTaskC13119fRa;
|
|
import o.C13084fQQ;
|
|
import o.C13086fQZ;
|
|
import o.C13110fQx;
|
|
import o.C13120fRb;
|
|
import o.DFY;
|
|
import o.GuL;
|
|
import o.InterfaceC13081fQA;
|
|
import o.fQX;
|
|
import o.xzZ;
|
|
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
import org.jmrtd.BACKey;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ScanPassportActivity extends AppCompatActivity implements InterfaceC13081fQA {
|
|
private static long J;
|
|
private static int O;
|
|
private static int P;
|
|
private static byte[] Q;
|
|
private static int R;
|
|
private static short[] S;
|
|
private static int V;
|
|
private static BEIDConfigurationFactory b;
|
|
private static fQX c;
|
|
private static ServiceConnection d;
|
|
private static final AtomicBoolean e;
|
|
private int B;
|
|
private int D;
|
|
private CameraSourcePreview E;
|
|
private GraphicOverlay<Object> F;
|
|
private RelativeLayout G;
|
|
private JHSquareMaskView H;
|
|
private C13120fRb I;
|
|
private String K;
|
|
private String L;
|
|
private TextView M;
|
|
private String N;
|
|
private String f;
|
|
private InterfaceC13081fQA g;
|
|
private TransactionService h;
|
|
private String i;
|
|
private String j;
|
|
private String k;
|
|
private LinearLayout q;
|
|
private ProgressBar r;
|
|
private String s;
|
|
private Handler t;
|
|
private View u;
|
|
private ObjectAnimator v;
|
|
private View w;
|
|
private Handler x;
|
|
private View y;
|
|
private Runnable z;
|
|
private static final byte[] $$a = {104, 69, 71, -100};
|
|
private static final int $$b = 33;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int U = 0;
|
|
private Integer p = 0;
|
|
private final Object C = new Object();
|
|
private Boolean A = Boolean.FALSE;
|
|
private IeS a = IeS.GET_BAC;
|
|
private boolean l = false;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private List<String> f8090o = new ArrayList();
|
|
private final Handler m = new Handler(Looper.getMainLooper());
|
|
private final Runnable n = new Runnable(this) { // from class: io.beid.beidk.activity.ScanPassportActivity.13
|
|
private ScanPassportActivity e;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
if (ScanPassportActivity.a().get()) {
|
|
return;
|
|
}
|
|
ScanPassportActivity.c(this.e, "error", PassportErrorCode.CANNOT_DETECT_CHIP, "Unable to detect chip");
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
};
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes5.dex */
|
|
public enum IeS {
|
|
GET_BAC,
|
|
GET_CHIP_DATA
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0029 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0021 */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x002f). 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 X(byte r6, int r7, short r8, java.lang.Object[] r9) {
|
|
/*
|
|
byte[] r0 = io.beid.beidk.activity.ScanPassportActivity.$$a
|
|
int r7 = r7 + 4
|
|
int r8 = 121 - r8
|
|
int r6 = r6 * 3
|
|
int r1 = 1 - r6
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
int r6 = 0 - r6
|
|
r3 = -1
|
|
if (r0 != 0) goto L15
|
|
r4 = r3
|
|
r3 = r7
|
|
goto L2f
|
|
L15:
|
|
r5 = r8
|
|
r8 = r7
|
|
r7 = r5
|
|
L18:
|
|
int r3 = r3 + 1
|
|
byte r4 = (byte) r7
|
|
int r8 = r8 + 1
|
|
r1[r3] = r4
|
|
if (r3 != r6) goto L29
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L29:
|
|
r4 = r0[r8]
|
|
r5 = r3
|
|
r3 = r8
|
|
r8 = r4
|
|
r4 = r5
|
|
L2f:
|
|
int r7 = r7 + r8
|
|
r8 = r3
|
|
r3 = r4
|
|
goto L18
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.ScanPassportActivity.X(byte, int, short, java.lang.Object[]):void");
|
|
}
|
|
|
|
private static void T(char[] cArr, int i, Object[] objArr) {
|
|
int i2 = 2 % 2;
|
|
GuL guL = new GuL();
|
|
char[] a = GuL.a(J ^ (-7538262848231253921L), cArr, i);
|
|
int i3 = 4;
|
|
guL.a = 4;
|
|
while (guL.a < a.length) {
|
|
int i4 = $10 + 107;
|
|
$11 = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
guL.c = guL.a - i3;
|
|
int i6 = guL.a;
|
|
try {
|
|
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(J)};
|
|
Object obj = xzZ.y.get(428080616);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(208 - (Process.myPid() >> 22), 5 - View.resolveSize(0, 0), (char) (TextUtils.indexOf("", "", 0) + 1706));
|
|
byte b2 = (byte) 0;
|
|
byte b3 = (byte) (b2 - 1);
|
|
Object[] objArr3 = new Object[1];
|
|
X(b2, b3, (byte) (b3 + 3), objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
|
|
xzZ.y.put(428080616, obj);
|
|
}
|
|
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
Object[] objArr4 = {guL, guL};
|
|
Object obj2 = xzZ.y.get(-1875914398);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c(391 - ImageFormat.getBitsPerPixel(0), (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 5, (char) ((-1) - TextUtils.lastIndexOf("", '0', 0, 0)));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = (byte) (b4 - 1);
|
|
Object[] objArr5 = new Object[1];
|
|
X(b4, b5, (byte) (b5 + 1), objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
|
xzZ.y.put(-1875914398, obj2);
|
|
}
|
|
((Method) obj2).invoke(null, objArr4);
|
|
i3 = 4;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
String str = new String(a, 4, a.length - 4);
|
|
int i7 = $11 + 53;
|
|
$10 = i7 % 128;
|
|
if (i7 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
objArr[0] = str;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x0103, code lost:
|
|
|
|
if (r3 > 99999) goto L11;
|
|
*/
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public void onCreate(android.os.Bundle r29) {
|
|
/*
|
|
Method dump skipped, instructions count: 2016
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.ScanPassportActivity.onCreate(android.os.Bundle):void");
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
public void onPause() {
|
|
int i = 2 % 2;
|
|
Context baseContext = getBaseContext();
|
|
if (baseContext == null) {
|
|
int i2 = U + 73;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
Object[] objArr = new Object[1];
|
|
W((short) (118 - TextUtils.getOffsetAfter("", 0)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.billpayment_bnpl_coin_more_detail_header_1).substring(0, 20).codePointAt(6) + 1077118259, (-18) - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.mw_landing_add_shop_cover).substring(18, 19).codePointAt(0) + 391626919, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.add_account_info_title).substring(11, 12).length() - 1), objArr);
|
|
Class<?> cls = Class.forName((String) objArr[0]);
|
|
Object[] objArr2 = new Object[1];
|
|
W((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(4) - 126), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 1077121903, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 32, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 391626919, (byte) ((Process.getThreadPriority(0) + 20) >> 6), objArr2);
|
|
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
|
|
}
|
|
if (baseContext != null) {
|
|
int i4 = V + 73;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
baseContext = baseContext.getApplicationContext();
|
|
}
|
|
if (baseContext != null) {
|
|
try {
|
|
Object obj = xzZ.y.get(125943855);
|
|
if (obj == null) {
|
|
obj = ((Class) xzZ.c(Color.green(0) + 492, ExpandableListView.getPackedPositionType(0L) + 5, (char) KeyEvent.getDeadChar(0, 0))).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 - TextUtils.getCapsMode("", 0, 0), 5 - Color.argb(0, 0, 0, 0), (char) (TextUtils.lastIndexOf("", '0') + 1))).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();
|
|
j();
|
|
NfcAdapter defaultAdapter = NfcAdapter.getDefaultAdapter(this);
|
|
if (defaultAdapter != null) {
|
|
defaultAdapter.disableForegroundDispatch(this);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
public void onResume() {
|
|
int i = 2 % 2;
|
|
Context baseContext = getBaseContext();
|
|
if (baseContext == null) {
|
|
int i2 = U + 17;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
Object[] objArr = new Object[1];
|
|
W((short) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.juristic_request_form_account_info_description).substring(0, 3).length() + 115), 1077121898 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length(), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 20, 391626952 + TextUtils.lastIndexOf("", '0'), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.delete_message_own_device).substring(2, 3).length() - 1), objArr);
|
|
Class<?> cls = Class.forName((String) objArr[0]);
|
|
Object[] objArr2 = new Object[1];
|
|
W((short) ((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)) - 11), 1077121825 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 32, 391626907 + ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(7), (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hml_summary_repayment_about_intro).substring(151, CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA).codePointAt(0) - 32), objArr2);
|
|
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
|
|
}
|
|
if (baseContext != null) {
|
|
int i4 = V + 75;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
baseContext = baseContext.getApplicationContext();
|
|
}
|
|
if (baseContext != null) {
|
|
try {
|
|
Object obj = xzZ.y.get(125943855);
|
|
if (obj == null) {
|
|
obj = ((Class) xzZ.c(492 - View.MeasureSpec.getMode(0), 5 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (char) ExpandableListView.getPackedPositionGroup(0L))).getMethod("a", null);
|
|
xzZ.y.put(125943855, obj);
|
|
}
|
|
Object invoke = ((Method) obj).invoke(null, null);
|
|
Object[] objArr3 = {baseContext};
|
|
Object obj2 = xzZ.y.get(1378719468);
|
|
if (obj2 == null) {
|
|
obj2 = ((Class) xzZ.c(487 - KeyEvent.normalizeMetaState(0), 5 - KeyEvent.getDeadChar(0, 0), (char) View.combineMeasuredStates(0, 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;
|
|
}
|
|
}
|
|
super.onResume();
|
|
if (!this.A.booleanValue()) {
|
|
g();
|
|
int i6 = U + 17;
|
|
V = i6 % 128;
|
|
if (i6 % 2 == 0) {
|
|
int i7 = 4 / 5;
|
|
}
|
|
}
|
|
try {
|
|
NfcAdapter defaultAdapter = NfcAdapter.getDefaultAdapter(this);
|
|
if (defaultAdapter == null) {
|
|
throw new HBt(this);
|
|
}
|
|
Intent intent = new Intent(getApplicationContext(), getClass());
|
|
intent.setFlags(PKIFailureInfo.duplicateCertReq);
|
|
defaultAdapter.enableForegroundDispatch(this, PendingIntent.getActivity(this, 0, intent, 134217728), null, new String[][]{new String[]{"android.nfc.tech.IsoDep"}});
|
|
} catch (HBt unused) {
|
|
}
|
|
}
|
|
|
|
private static void W(short s, int i, int i2, int i3, byte b2, Object[] objArr) {
|
|
boolean z;
|
|
int i4;
|
|
int i5 = 2;
|
|
int i6 = 2 % 2;
|
|
DFY dfy = new DFY();
|
|
StringBuilder sb = new StringBuilder();
|
|
try {
|
|
int i7 = 1;
|
|
Object[] objArr2 = {Integer.valueOf(i2), Integer.valueOf(R)};
|
|
Object obj = xzZ.y.get(-2092856797);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(337 - View.combineMeasuredStates(0, 0), 4 - ((byte) KeyEvent.getModifierMetaStateMask()), (char) (KeyEvent.getMaxKeyCode() >> 16));
|
|
byte b3 = (byte) 0;
|
|
byte b4 = (byte) (b3 - 1);
|
|
Object[] objArr3 = new Object[1];
|
|
X(b3, b4, (byte) (b4 & 11), objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(-2092856797, obj);
|
|
}
|
|
Object obj2 = null;
|
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
|
int i8 = intValue == -1 ? 1 : 0;
|
|
long j = 0;
|
|
float f = BitmapDescriptorFactory.HUE_RED;
|
|
if (i8 != 0) {
|
|
int i9 = $11;
|
|
int i10 = i9 + 23;
|
|
$10 = i10 % 128;
|
|
if (i10 % 2 != 0) {
|
|
obj2.hashCode();
|
|
throw null;
|
|
}
|
|
byte[] bArr = Q;
|
|
if (bArr != null) {
|
|
int i11 = i9 + 93;
|
|
$10 = i11 % 128;
|
|
int i12 = i11 % 2;
|
|
int length = bArr.length;
|
|
byte[] bArr2 = new byte[length];
|
|
int i13 = 0;
|
|
while (i13 < length) {
|
|
int i14 = $10 + 37;
|
|
$11 = i14 % 128;
|
|
if (i14 % i5 == 0) {
|
|
Object[] objArr4 = new Object[i7];
|
|
objArr4[0] = Integer.valueOf(bArr[i13]);
|
|
Object obj3 = xzZ.y.get(-1648115392);
|
|
if (obj3 == null) {
|
|
Class cls2 = (Class) xzZ.c((PointF.length(f, f) > f ? 1 : (PointF.length(f, f) == f ? 0 : -1)) + 60, (ExpandableListView.getPackedPositionForGroup(0) > j ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == j ? 0 : -1)) + 5, (char) ((-1) - ExpandableListView.getPackedPositionChild(j)));
|
|
byte b5 = (byte) 0;
|
|
byte b6 = (byte) (b5 - 1);
|
|
Object[] objArr5 = new Object[1];
|
|
X(b5, b6, (byte) (b6 & 13), objArr5);
|
|
obj3 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
|
xzZ.y.put(-1648115392, obj3);
|
|
}
|
|
bArr2[i13] = ((Byte) ((Method) obj3).invoke(null, objArr4)).byteValue();
|
|
} else {
|
|
try {
|
|
Object[] objArr6 = {Integer.valueOf(bArr[i13])};
|
|
Object obj4 = xzZ.y.get(-1648115392);
|
|
if (obj4 == null) {
|
|
Class cls3 = (Class) xzZ.c(60 - ExpandableListView.getPackedPositionType(0L), 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) View.resolveSizeAndState(0, 0, 0));
|
|
byte b7 = (byte) 0;
|
|
byte b8 = (byte) (b7 - 1);
|
|
Object[] objArr7 = new Object[1];
|
|
X(b7, b8, (byte) (b8 & 13), objArr7);
|
|
obj4 = cls3.getMethod((String) objArr7[0], Integer.TYPE);
|
|
xzZ.y.put(-1648115392, obj4);
|
|
}
|
|
bArr2[i13] = ((Byte) ((Method) obj4).invoke(null, objArr6)).byteValue();
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
i13++;
|
|
i5 = 2;
|
|
i7 = 1;
|
|
j = 0;
|
|
f = BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
bArr = bArr2;
|
|
}
|
|
if (bArr != null) {
|
|
byte[] bArr3 = Q;
|
|
try {
|
|
Object[] objArr8 = {Integer.valueOf(i), Integer.valueOf(O)};
|
|
Object obj5 = xzZ.y.get(-2092856797);
|
|
if (obj5 == null) {
|
|
Class cls4 = (Class) xzZ.c(337 - TextUtils.getOffsetBefore("", 0), 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) ((-1) - ImageFormat.getBitsPerPixel(0)));
|
|
byte b9 = (byte) 0;
|
|
byte b10 = (byte) (b9 - 1);
|
|
Object[] objArr9 = new Object[1];
|
|
X(b9, b10, (byte) (b10 & 11), objArr9);
|
|
obj5 = cls4.getMethod((String) objArr9[0], Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(-2092856797, obj5);
|
|
}
|
|
intValue = (byte) (((byte) (bArr3[((Integer) ((Method) obj5).invoke(null, objArr8)).intValue()] ^ (-7303220121662775787L))) + ((int) (R ^ (-7303220121662775787L))));
|
|
} catch (Throwable th2) {
|
|
Throwable cause2 = th2.getCause();
|
|
if (cause2 == null) {
|
|
throw th2;
|
|
}
|
|
throw cause2;
|
|
}
|
|
} else {
|
|
intValue = (short) (((short) (S[i + ((int) (O ^ (-7303220121662775787L)))] ^ (-7303220121662775787L))) + ((int) (R ^ (-7303220121662775787L))));
|
|
}
|
|
}
|
|
if (intValue > 0) {
|
|
dfy.c = ((i + intValue) - 2) + ((int) (O ^ (-7303220121662775787L))) + i8;
|
|
Object[] objArr10 = {dfy, Integer.valueOf(i3), Integer.valueOf(P), sb};
|
|
Object obj6 = xzZ.y.get(1546973421);
|
|
if (obj6 == null) {
|
|
obj6 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 749, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1))).getMethod("q", Object.class, Integer.TYPE, Integer.TYPE, Object.class);
|
|
xzZ.y.put(1546973421, obj6);
|
|
}
|
|
((StringBuilder) ((Method) obj6).invoke(null, objArr10)).append(dfy.a);
|
|
dfy.e = dfy.a;
|
|
byte[] bArr4 = Q;
|
|
if (bArr4 != null) {
|
|
int length2 = bArr4.length;
|
|
byte[] bArr5 = new byte[length2];
|
|
for (int i15 = 0; i15 < length2; i15++) {
|
|
bArr5[i15] = (byte) (bArr4[i15] ^ (-7303220121662775787L));
|
|
}
|
|
bArr4 = bArr5;
|
|
}
|
|
if (bArr4 != null) {
|
|
i4 = 1;
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
i4 = 1;
|
|
}
|
|
while (true) {
|
|
dfy.d = i4;
|
|
if (dfy.d >= intValue) {
|
|
break;
|
|
}
|
|
int i16 = $11 + 71;
|
|
$10 = i16 % 128;
|
|
if (i16 % 2 != 0) {
|
|
Object obj7 = null;
|
|
obj7.hashCode();
|
|
throw null;
|
|
}
|
|
if (z) {
|
|
byte[] bArr6 = Q;
|
|
dfy.c = dfy.c - 1;
|
|
dfy.a = (char) (dfy.e + (((byte) (((byte) (bArr6[r5] ^ (-7303220121662775787L))) + s)) ^ b2));
|
|
} else {
|
|
short[] sArr = S;
|
|
dfy.c = dfy.c - 1;
|
|
dfy.a = (char) (dfy.e + (((short) (((short) (sArr[r5] ^ (-7303220121662775787L))) + s)) ^ b2));
|
|
}
|
|
sb.append(dfy.a);
|
|
dfy.e = dfy.a;
|
|
i4 = dfy.d + 1;
|
|
}
|
|
}
|
|
objArr[0] = sb.toString();
|
|
} catch (Throwable th3) {
|
|
Throwable cause3 = th3.getCause();
|
|
if (cause3 == null) {
|
|
throw th3;
|
|
}
|
|
throw cause3;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
|
|
public void attachBaseContext(Context context) {
|
|
int i = 2 % 2;
|
|
int i2 = U + 51;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.attachBaseContext(context);
|
|
Object[] objArr = new Object[1];
|
|
T(new char[]{36941, 26958, 36908, 15731, 60062, 16988, 37876, 28543, 49518, 52408, 4872, 56735, 12986, 40918, 41358, 3125, 25563, 8470, 30327, 25420, 54542, 61630}, KeyEvent.getDeadChar(0, 0) + 1, objArr);
|
|
Class<?> cls = Class.forName((String) objArr[0]);
|
|
Object[] objArr2 = new Object[1];
|
|
W((short) (View.resolveSizeAndState(0, 0, 0) + 23), 1077121906 - ((Process.getThreadPriority(0) + 20) >> 6), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 20, 391626963 + (ViewConfiguration.getKeyRepeatDelay() >> 16), (byte) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1), 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 applicationContext = context != null ? context.getApplicationContext() : context;
|
|
if (applicationContext != null) {
|
|
int i4 = U + 11;
|
|
V = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
try {
|
|
Object obj = xzZ.y.get(125943855);
|
|
if (obj == null) {
|
|
obj = ((Class) xzZ.c((ViewConfiguration.getPressedStateDuration() >> 16) + 492, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).getMethod("a", null);
|
|
xzZ.y.put(125943855, obj);
|
|
}
|
|
Object invoke = ((Method) obj).invoke(null, null);
|
|
Object[] objArr3 = new Object[1];
|
|
T(new char[]{32267, 60569, 32314, 47357, 29387, 55897, 37981, 26822, 12148, 18789, 35679, 55929, 56561, 6731, 14791, 2989, 36316, 42188, 61042, 25784, 15193, 29993, 40751, 54860, 59460, 1634, 19848, 1809, 39333, 53428, 58054, 28841, 18300, 25031, 37653, 41569, 62554, 12831, 16885, 4917, 42433, 49923, 63227, 19610, 21185, 28134, 42860, 48537, ',', 15926, 21572, 61268}, TextUtils.getCapsMode("", 0, 0) + 1, objArr3);
|
|
String str = (String) objArr3[0];
|
|
Object[] objArr4 = new Object[1];
|
|
T(new char[]{19899, 2827, 19934, 24378, 3390, 42414, 27018, 38166, 7361, 44790, 62712, 10230, 61254, 64981, 17970, 63021, 48749, 17162, 37251, 39270, 2237, 37564, 57561, 11153, 56228, 57842, 12925, 64203, 43584, 14118, 40288, 36136, 29853, 34389, 60596, 24511, 51180, 54671, 15885, 61106, 38434, 9420, 35086, 45389, 24949, 35362, 55489, 16461, 13258, 55725, 11234, 4821, 33359, 10448, 30062, 42292, 27908, 32284, 50313, 29757, 16299, 52499, 6081, 1683, 36601, 7342, 24901, 43394}, 1 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), objArr4);
|
|
String str2 = (String) objArr4[0];
|
|
Object[] objArr5 = new Object[1];
|
|
T(new char[]{37580, 2612, 37549, 24159, 46334, 7272, 43556, 22254, 50145, 44952, 19817, 58372, 12390, 64742, 65523, 13776, 24906, 16951, 10308, 23233, 55197, 37845, 22862, 59453, 1153, 57547, 35819, 14691, 30055, 13847, 9462, 20096, 44000, 34661, 21885, 40013, 6296, 54501, 34713, 11592, 18773, 9721, 12445, 29360, 48641, 35663, 24917, 33766, 60654, 55488, 37410, 53628, 23870, 10674, 52474, 26261, 45606, 32546, 32076, 46999, 57556, 52270, 44630, 50532, 20877, 7627, 55431, 27262}, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), objArr5);
|
|
String str3 = (String) objArr5[0];
|
|
Object[] objArr6 = new Object[1];
|
|
T(new char[]{25981, 37021, 25877, 50362, 27127, 49445, 46999, 19230, 13378, 13624, 36906, 63997, 51094, 26143, 8872, 10347, 38650, 55493, 62736, 18215, 8232, 2412, 33858, 62935, 62304, 31294, 22199, 9347, 33499, 44269, 63927, 21282, 23553, 7560, 34856, 33275, 61289, 20045, 23184, 12477, 48805, 48972, 60866, 28487, 18916, 4516, 48141, 40469, 6984, 17023, 20348, 52440, 43656, 45904, 4514, 31601, 17868, 58781, 40980, 43570, 5948, 22217, 29520, 55512, 42606, 34623, 1438, 30606, 29074, 63992, 54435, 42497, 788, 10932, 26400, 54524, 53841, 39749}, 1 - (ViewConfiguration.getPressedStateDuration() >> 16), objArr6);
|
|
String str4 = (String) objArr6[0];
|
|
Object[] objArr7 = new Object[1];
|
|
W((short) (93 - TextUtils.getOffsetBefore("", 0)), (ViewConfiguration.getKeyRepeatDelay() >> 16) + 1077121955, (-19) - (ViewConfiguration.getTapTimeout() >> 16), Color.red(0) + 391626911, (byte) View.combineMeasuredStates(0, 0), objArr7);
|
|
String str5 = (String) objArr7[0];
|
|
Object[] objArr8 = new Object[1];
|
|
T(new char[]{49763, 44811, 49670, 64313, 25582, 52090, 30331, 35510, 37707, 2733, 39464, 14350, 24790, 22998, 10464, 59791, 12773, 59153, 65360, 34452, 34658, 14009, 36373, 13363, 21629, 17825, 23727, 58659, 9625, 37747, 62386, 37595, 64320, 8713, 33335, 16451, 18487, 29069, 20697, 61767}, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), objArr8);
|
|
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
|
|
Object obj2 = xzZ.y.get(1656189573);
|
|
if (obj2 == null) {
|
|
obj2 = ((Class) xzZ.c(487 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), 5 - (ViewConfiguration.getJumpTapTimeout() >> 16), (char) (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 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);
|
|
int i6 = U + 57;
|
|
V = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void a(ScanPassportActivity scanPassportActivity, PassportDataParcelable passportDataParcelable, Map map) {
|
|
int i = 2 % 2;
|
|
Intent intent = new Intent();
|
|
scanPassportActivity.i().verifyPassport(new PassportVerifyForm().setTransactionId(scanPassportActivity.k).setDg1(passportDataParcelable.dg1).setDg2(passportDataParcelable.dg2).setDg13(passportDataParcelable.dg13).setSod(passportDataParcelable.sod), map).observeOn(AndroidSchedulers.mainThread()).subscribeOn(Schedulers.io()).subscribe(new Consumer<PassportVerifyResult>(scanPassportActivity, passportDataParcelable, intent) { // from class: io.beid.beidk.activity.ScanPassportActivity.7
|
|
private ScanPassportActivity a;
|
|
private PassportDataParcelable b;
|
|
private Intent e;
|
|
|
|
{
|
|
this.a = scanPassportActivity;
|
|
this.b = passportDataParcelable;
|
|
this.e = intent;
|
|
}
|
|
}, new Consumer<Throwable>(scanPassportActivity, intent, passportDataParcelable) { // from class: io.beid.beidk.activity.ScanPassportActivity.8
|
|
private ScanPassportActivity a;
|
|
private Intent c;
|
|
private PassportDataParcelable d;
|
|
|
|
{
|
|
this.a = scanPassportActivity;
|
|
this.c = intent;
|
|
this.d = passportDataParcelable;
|
|
}
|
|
});
|
|
int i2 = V + 43;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0039, code lost:
|
|
|
|
if (r1 == 0) goto L12;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x003b, code lost:
|
|
|
|
if (r1 != 2) goto L13;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x003f, code lost:
|
|
|
|
if (r1 == 1) goto L16;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0041, code lost:
|
|
|
|
r7 = io.beid.beidk.activity.ScanPassportActivity.V + 123;
|
|
io.beid.beidk.activity.ScanPassportActivity.U = r7 % 128;
|
|
r7 = r7 % 2;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x004a, code lost:
|
|
|
|
if (r1 != 3) goto L17;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x004e, code lost:
|
|
|
|
if (r1 == 0) goto L34;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0050, code lost:
|
|
|
|
if (r1 == 1) goto L33;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x0052, code lost:
|
|
|
|
if (r1 == 2) goto L31;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x0054, code lost:
|
|
|
|
if (r1 == 3) goto L32;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x0056, code lost:
|
|
|
|
r9.getLocalClassName();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0059, code lost:
|
|
|
|
r1 = io.beid.beidk.activity.ScanPassportActivity.U + 59;
|
|
io.beid.beidk.activity.ScanPassportActivity.V = r1 % 128;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0062, code lost:
|
|
|
|
if ((r1 % 2) != 0) goto L34;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0064, code lost:
|
|
|
|
r1 = 2 / 3;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x007f, code lost:
|
|
|
|
r2 = '\t';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x007c, code lost:
|
|
|
|
r2 = '\b';
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x0082, code lost:
|
|
|
|
r2 = 1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x0083, code lost:
|
|
|
|
if (r2 != 0) goto L37;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x0085, code lost:
|
|
|
|
r0 = o.C13110fQx.d;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x0095, code lost:
|
|
|
|
r9.D = r0;
|
|
new java.lang.Thread(new io.beid.beidk.activity.ScanPassportActivity.AnonymousClass3(r9, r10)).start();
|
|
r9.runOnUiThread(new io.beid.beidk.activity.ScanPassportActivity.AnonymousClass1(r9));
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:30:0x00ac, code lost:
|
|
|
|
return;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x0088, code lost:
|
|
|
|
if (r2 != 1) goto L35;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:32:0x008a, code lost:
|
|
|
|
r1 = io.beid.beidk.activity.ScanPassportActivity.V + 97;
|
|
io.beid.beidk.activity.ScanPassportActivity.U = r1 % 128;
|
|
r1 = r1 % 2;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x0093, code lost:
|
|
|
|
r0 = o.C13110fQx.a;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:34:0x004c, code lost:
|
|
|
|
if (r5 > r4) goto L25;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:35:0x0067, code lost:
|
|
|
|
if (r1 == 0) goto L33;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:36:0x0069, code lost:
|
|
|
|
if (r1 == 1) goto L34;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:37:0x006b, code lost:
|
|
|
|
if (r1 == 2) goto L32;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:38:0x006d, code lost:
|
|
|
|
r2 = io.beid.beidk.activity.ScanPassportActivity.U + 19;
|
|
io.beid.beidk.activity.ScanPassportActivity.V = r2 % 128;
|
|
r2 = r2 % 2;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:39:0x0076, code lost:
|
|
|
|
if (r1 == 3) goto L31;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:40:0x0078, code lost:
|
|
|
|
r9.getLocalClassName();
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:41:0x003d, code lost:
|
|
|
|
if (r4 > r5) goto L25;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:42:0x0016, code lost:
|
|
|
|
if (r10 != null) goto L8;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:5:0x0013, code lost:
|
|
|
|
if (r10 != null) goto L8;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x00b4, code lost:
|
|
|
|
throw new java.lang.Exception("Picture taken failure. This might caused by OutOfMemory.");
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0018, code lost:
|
|
|
|
r1 = r9.getWindowManager().getDefaultDisplay().getRotation();
|
|
r4 = new android.util.DisplayMetrics();
|
|
r9.getWindowManager().getDefaultDisplay().getMetrics(r4);
|
|
r5 = r4.widthPixels;
|
|
r4 = r4.heightPixels;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
static /* synthetic */ void d(io.beid.beidk.activity.ScanPassportActivity r9, java.io.InputStream r10) throws java.io.IOException {
|
|
/*
|
|
Method dump skipped, instructions count: 219
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.ScanPassportActivity.d(io.beid.beidk.activity.ScanPassportActivity, java.io.InputStream):void");
|
|
}
|
|
|
|
static /* synthetic */ void c(ScanPassportActivity scanPassportActivity, Integer num) {
|
|
synchronized (scanPassportActivity) {
|
|
scanPassportActivity.runOnUiThread(new AnonymousClass6(scanPassportActivity, num));
|
|
}
|
|
}
|
|
|
|
private static /* synthetic */ Object c(Object[] objArr) {
|
|
ScanPassportActivity scanPassportActivity = (ScanPassportActivity) objArr[0];
|
|
int i = 2 % 2;
|
|
Context applicationContext = scanPassportActivity.getApplicationContext();
|
|
C13086fQZ c13086fQZ = new C13086fQZ(scanPassportActivity.F);
|
|
c13086fQZ.c = scanPassportActivity.g;
|
|
C13084fQQ c13084fQQ = new C13084fQQ.RVV(applicationContext).a;
|
|
c13084fQQ.c = c13086fQZ;
|
|
C13120fRb.LWm c2 = new C13120fRb.LWm(scanPassportActivity.getApplicationContext(), c13084fQQ).c(0).b(PlatformPlugin.DEFAULT_SYSTEM_UI, 1024).c(2.0f);
|
|
c2.a.j = "continuous-picture";
|
|
c2.a.f9108o = new C13120fRb.Sts(c2.a, c2.e);
|
|
scanPassportActivity.I = c2.a;
|
|
int i2 = V + 45;
|
|
U = i2 % 128;
|
|
Object obj = null;
|
|
if (i2 % 2 == 0) {
|
|
return null;
|
|
}
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
static /* synthetic */ void c(ScanPassportActivity scanPassportActivity) {
|
|
C13120fRb c13120fRb;
|
|
int i = 2 % 2;
|
|
int i2 = V + 95;
|
|
U = i2 % 128;
|
|
if (i2 % 2 == 0) {
|
|
C13120fRb c13120fRb2 = scanPassportActivity.I;
|
|
if (c13120fRb2 != null) {
|
|
c13120fRb2.a();
|
|
}
|
|
CameraSourcePreview cameraSourcePreview = scanPassportActivity.E;
|
|
if (cameraSourcePreview != null && (c13120fRb = cameraSourcePreview.d) != null) {
|
|
c13120fRb.a();
|
|
}
|
|
int i3 = U + 67;
|
|
V = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
throw null;
|
|
}
|
|
return;
|
|
}
|
|
C13120fRb c13120fRb3 = scanPassportActivity.I;
|
|
throw null;
|
|
}
|
|
|
|
private void j() {
|
|
C13120fRb c13120fRb;
|
|
int i = 2 % 2;
|
|
int i2 = U + 95;
|
|
V = i2 % 128;
|
|
if (i2 % 2 == 0) {
|
|
throw null;
|
|
}
|
|
C13120fRb c13120fRb2 = this.I;
|
|
if (c13120fRb2 != null) {
|
|
c13120fRb2.a();
|
|
}
|
|
CameraSourcePreview cameraSourcePreview = this.E;
|
|
if (cameraSourcePreview != null && (c13120fRb = cameraSourcePreview.d) != null) {
|
|
int i3 = V + 103;
|
|
U = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
c13120fRb.a();
|
|
throw null;
|
|
}
|
|
c13120fRb.a();
|
|
}
|
|
int i4 = U + 5;
|
|
V = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
private static /* synthetic */ Object a(Object[] objArr) {
|
|
ScanPassportActivity scanPassportActivity = (ScanPassportActivity) objArr[0];
|
|
AsyncTaskC13119fRa.RVV rvv = (AsyncTaskC13119fRa.RVV) objArr[1];
|
|
synchronized (scanPassportActivity) {
|
|
scanPassportActivity.m.removeCallbacks(scanPassportActivity.n);
|
|
e.set(true);
|
|
}
|
|
if (rvv.i != null) {
|
|
synchronized (scanPassportActivity) {
|
|
scanPassportActivity.runOnUiThread(new Runnable(scanPassportActivity) { // from class: io.beid.beidk.activity.ScanPassportActivity.12
|
|
private ScanPassportActivity c;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ScanPassportActivity.m(this.c).setVisibility(8);
|
|
((View) ScanPassportActivity.c(new Object[]{this.c}, 386240616, -386240614, (int) System.currentTimeMillis())).setVisibility(0);
|
|
}
|
|
|
|
{
|
|
this.c = scanPassportActivity;
|
|
}
|
|
});
|
|
}
|
|
return null;
|
|
}
|
|
if (rvv.c.intValue() <= 1) {
|
|
return null;
|
|
}
|
|
Integer valueOf = Integer.valueOf((int) Math.round((rvv.e.intValue() / rvv.c.intValue()) * 100.0d));
|
|
synchronized (scanPassportActivity) {
|
|
scanPassportActivity.runOnUiThread(new AnonymousClass6(scanPassportActivity, valueOf));
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // o.InterfaceC13081fQA
|
|
public final void e(String str, String str2, String str3) {
|
|
synchronized (this.C) {
|
|
if (this.A.booleanValue()) {
|
|
return;
|
|
}
|
|
this.A = Boolean.TRUE;
|
|
this.K = str;
|
|
this.N = str2;
|
|
this.L = str3;
|
|
this.a = IeS.GET_CHIP_DATA;
|
|
C13120fRb c13120fRb = this.I;
|
|
C13120fRb.RVV rvv = new C13120fRb.RVV(this) { // from class: io.beid.beidk.activity.ScanPassportActivity.4
|
|
private ScanPassportActivity a;
|
|
|
|
@Override // o.C13120fRb.RVV
|
|
public final void e(InputStream inputStream) {
|
|
try {
|
|
ScanPassportActivity.d(this.a, inputStream);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
};
|
|
synchronized (c13120fRb.d) {
|
|
if (c13120fRb.a != null) {
|
|
C13120fRb.jbe jbeVar = new C13120fRb.jbe(c13120fRb, (byte) 0);
|
|
jbeVar.e = null;
|
|
C13120fRb.HBt hBt = new C13120fRb.HBt(c13120fRb, (byte) 0);
|
|
hBt.b = rvv;
|
|
c13120fRb.a.takePicture(jbeVar, null, null, hBt);
|
|
}
|
|
}
|
|
this.m.postDelayed(this.n, 30000L);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13081fQA
|
|
public final void d() {
|
|
synchronized (this) {
|
|
this.m.removeCallbacks(this.n);
|
|
e.set(true);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
public void onDestroy() {
|
|
int i = 2 % 2;
|
|
int i2 = V + 9;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.onDestroy();
|
|
C13120fRb c13120fRb = this.I;
|
|
if (c13120fRb != null) {
|
|
c13120fRb.b();
|
|
this.I = null;
|
|
}
|
|
CameraSourcePreview cameraSourcePreview = this.E;
|
|
if (cameraSourcePreview != null) {
|
|
C13120fRb c13120fRb2 = cameraSourcePreview.d;
|
|
if (c13120fRb2 != null) {
|
|
int i4 = U + 51;
|
|
V = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
c13120fRb2.b();
|
|
cameraSourcePreview.d = null;
|
|
}
|
|
this.E = null;
|
|
}
|
|
Runtime.getRuntime().gc();
|
|
try {
|
|
unbindService(d);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentActivity, android.app.Activity
|
|
public void onNewIntent(Intent intent) {
|
|
int i = 2 % 2;
|
|
int i2 = U + 19;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (this.a != IeS.GET_CHIP_DATA || !"android.nfc.action.TECH_DISCOVERED".equals(intent.getAction())) {
|
|
super.onNewIntent(intent);
|
|
return;
|
|
}
|
|
int i4 = V + 37;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
this.l = true;
|
|
Tag tag = (Tag) intent.getExtras().getParcelable("android.nfc.extra.TAG");
|
|
if (Arrays.asList(tag.getTechList()).contains("android.nfc.tech.IsoDep")) {
|
|
new AsyncTaskC13119fRa(getApplicationContext(), IsoDep.get(tag), new BACKey(this.K, this.N, this.L), this.g).execute(new Void[0]);
|
|
} else {
|
|
Snackbar.a(this.F, "Cannot read passport data properly. Please try again.", 0).h();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
|
|
int i4 = ~i2;
|
|
int i5 = ~i3;
|
|
switch ((i * 50) + (i2 * (-97)) + (((~(i4 | i5)) | (~(i4 | i))) * 98) + (((~(i5 | (~i))) | i4 | (~(i | i3))) * (-49)) + (((~(i | i2)) | (~(i3 | i4))) * 49)) {
|
|
case 1:
|
|
return a(objArr);
|
|
case 2:
|
|
return b(objArr);
|
|
case 3:
|
|
return d(objArr);
|
|
case 4:
|
|
return e(objArr);
|
|
case 5:
|
|
return c(objArr);
|
|
case 6:
|
|
ScanPassportActivity scanPassportActivity = (ScanPassportActivity) objArr[0];
|
|
PassportDataParcelable passportDataParcelable = (PassportDataParcelable) objArr[1];
|
|
int i6 = 2 % 2;
|
|
HashMap hashMap = new HashMap();
|
|
hashMap.put(SCBHeader.SCB_REQ_HEADER_API_AUTH, scanPassportActivity.j);
|
|
hashMap.put(SCBHeader.SCB_REQ_HEADER_ACCEPT_LANGUAGE, scanPassportActivity.f);
|
|
hashMap.put(SCBHeader.SCB_REQ_HEADER_REQUEST_ID, UUID.randomUUID().toString());
|
|
hashMap.put(SCBHeader.SCB_REQ_HEADER_SESSION_ID, scanPassportActivity.i);
|
|
C13110fQx c13110fQx = new C13110fQx();
|
|
c13110fQx.b = 900;
|
|
c13110fQx.c = scanPassportActivity.D;
|
|
new Thread(new AnonymousClass10(scanPassportActivity, c13110fQx, hashMap, passportDataParcelable)).start();
|
|
int i7 = U + 33;
|
|
V = i7 % 128;
|
|
int i8 = i7 % 2;
|
|
return null;
|
|
default:
|
|
ScanPassportActivity scanPassportActivity2 = (ScanPassportActivity) objArr[0];
|
|
int i9 = 2 % 2;
|
|
int i10 = U + 81;
|
|
int i11 = i10 % 128;
|
|
V = i11;
|
|
int i12 = i10 % 2;
|
|
int i13 = scanPassportActivity2.B;
|
|
int i14 = i11 + 107;
|
|
U = i14 % 128;
|
|
int i15 = i14 % 2;
|
|
return Integer.valueOf(i13);
|
|
}
|
|
}
|
|
|
|
private static /* synthetic */ Object e(Object[] objArr) {
|
|
ScanPassportActivity scanPassportActivity = (ScanPassportActivity) objArr[0];
|
|
int i = 2 % 2;
|
|
int i2 = V + 49;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
TransactionService i4 = scanPassportActivity.i();
|
|
int i5 = U + 49;
|
|
V = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
return i4;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
private static /* synthetic */ Object d(Object[] objArr) {
|
|
fQX fqx;
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 75;
|
|
U = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
fqx = c;
|
|
int i4 = 45 / 0;
|
|
} else {
|
|
fqx = c;
|
|
}
|
|
int i5 = i2 + 37;
|
|
U = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
return fqx;
|
|
}
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
private static /* synthetic */ Object b(Object[] objArr) {
|
|
ScanPassportActivity scanPassportActivity = (ScanPassportActivity) objArr[0];
|
|
int i = 2 % 2;
|
|
int i2 = U + 125;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
View view = scanPassportActivity.y;
|
|
if (i3 != 0) {
|
|
return view;
|
|
}
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
static void c() {
|
|
J = -4326090001033163764L;
|
|
O = -335383909;
|
|
R = 1406017031;
|
|
P = -1150934641;
|
|
Q = new byte[]{-26, -15, -24, ISO7816.INS_WRITE_BINARY, ISO7816.INS_CREATE_FILE, 29, -104, -109, 104, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_EXP, ISO7816.INS_MANAGE_CHANNEL, -102, Byte.MIN_VALUE, 104, -126, 106, ISOFileInfo.CHANNEL_SECURITY, -71, -120, 93, -97, ISOFileInfo.SECURITY_ATTR_COMPACT, -88, 65, -112, -111, -110, ISOFileInfo.ENV_TEMP_EF, -107, -126, Ascii.NAK, Ascii.US, 4, Ascii.NAK, 11, 28, 16, 29, Ascii.DC2, 30, 47, -51, 4, 1, -21, 30, 29, 8, -26, ISO7816.INS_READ_BINARY, ISOFileInfo.SECURITY_ATTR_COMPACT, -72, ISOFileInfo.ENV_TEMP_EF};
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
public void onStart() {
|
|
int i = 2 % 2;
|
|
int i2 = V + 9;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.onStart();
|
|
int i4 = V + 125;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
public void onSaveInstanceState(Bundle bundle) {
|
|
int i = 2 % 2;
|
|
int i2 = U + 47;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.onSaveInstanceState(bundle);
|
|
bundle.putInt("activityState", this.a.ordinal());
|
|
bundle.putString("passportNumber", this.K);
|
|
bundle.putString("dateOfBirth", this.N);
|
|
bundle.putString("dateOfExpiry", this.L);
|
|
bundle.putBoolean("foundBacState", this.A.booleanValue());
|
|
bundle.putString(SCBHeader.SCB_REQ_HEADER_API_AUTH, this.j);
|
|
bundle.putString(SCBHeader.SCB_REQ_HEADER_ACCEPT_LANGUAGE, this.f);
|
|
bundle.putString(SCBHeader.SCB_REQ_HEADER_SESSION_ID, this.i);
|
|
bundle.putString(BeIDParams.BEID_TRANSACTION_ID, this.k);
|
|
bundle.putString(BeIDParams.BEID_BASE_URL, this.s);
|
|
bundle.putInt("passportSnapshotOrientation", this.D);
|
|
bundle.putInt("passportSnapshotStreamId", this.B);
|
|
f();
|
|
int i4 = V + 73;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
protected void onRestoreInstanceState(Bundle bundle) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 73;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.onRestoreInstanceState(bundle);
|
|
this.a = IeS.values()[bundle.getInt("activityState")];
|
|
this.K = bundle.getString("passportNumber");
|
|
this.N = bundle.getString("dateOfBirth");
|
|
this.L = bundle.getString("dateOfExpiry");
|
|
this.A = Boolean.valueOf(bundle.getBoolean("foundBacState"));
|
|
this.D = bundle.getInt("passportSnapshotOrientation");
|
|
this.B = bundle.getInt("passportSnapshotStreamId");
|
|
f();
|
|
int i4 = U + 77;
|
|
V = i4 % 128;
|
|
if (i4 % 2 == 0) {
|
|
int i5 = 88 / 0;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
|
|
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
|
|
int i2 = 2 % 2;
|
|
int i3 = U + 55;
|
|
int i4 = i3 % 128;
|
|
V = i4;
|
|
Object obj = null;
|
|
if (i3 % 2 != 0 ? i == 2 : i == 5) {
|
|
int i5 = i4 + 115;
|
|
U = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
c(new Object[]{this}, 107387850, -107387845, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.e_document_description_mcmc).substring(49, 50).length() + 478399422);
|
|
g();
|
|
}
|
|
super.onRequestPermissionsResult(i, strArr, iArr);
|
|
int i7 = V + 15;
|
|
U = i7 % 128;
|
|
if (i7 % 2 == 0) {
|
|
return;
|
|
}
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0017, code lost:
|
|
|
|
if (r6 != null) goto L10;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0019, code lost:
|
|
|
|
return;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0015, code lost:
|
|
|
|
if (r5 == null) goto L8;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost:
|
|
|
|
if (r5 == null) goto L8;
|
|
*/
|
|
@Override // o.InterfaceC13081fQA
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void a(java.lang.Exception r5, io.beid.beidk.parcelable.PassportDataParcelable r6) throws java.io.IOException {
|
|
/*
|
|
r4 = this;
|
|
r0 = 2
|
|
int r1 = r0 % r0
|
|
int r1 = io.beid.beidk.activity.ScanPassportActivity.U
|
|
int r2 = r1 + 41
|
|
int r3 = r2 % 128
|
|
io.beid.beidk.activity.ScanPassportActivity.V = r3
|
|
int r2 = r2 % r0
|
|
if (r2 != 0) goto L15
|
|
r2 = 64
|
|
int r2 = r2 / 0
|
|
if (r5 != 0) goto L1a
|
|
goto L17
|
|
L15:
|
|
if (r5 != 0) goto L1a
|
|
L17:
|
|
if (r6 != 0) goto L1a
|
|
return
|
|
L1a:
|
|
if (r5 == 0) goto L3d
|
|
boolean r5 = r5 instanceof io.beid.beidk.c
|
|
if (r5 == 0) goto L33
|
|
int r1 = r1 + 101
|
|
int r5 = r1 % 128
|
|
io.beid.beidk.activity.ScanPassportActivity.V = r5
|
|
int r1 = r1 % r0
|
|
if (r1 == 0) goto L2e
|
|
java.lang.String r5 = "2003"
|
|
java.lang.String r6 = "Invalid BAC"
|
|
goto L37
|
|
L2e:
|
|
r5 = 0
|
|
r5.hashCode()
|
|
throw r5
|
|
L33:
|
|
java.lang.String r5 = "2002"
|
|
java.lang.String r6 = "Read Uncompleted"
|
|
L37:
|
|
java.lang.String r0 = "error"
|
|
r4.b(r0, r5, r6)
|
|
return
|
|
L3d:
|
|
if (r6 == 0) goto L4c
|
|
java.lang.Thread r5 = new java.lang.Thread
|
|
io.beid.beidk.activity.ScanPassportActivity$15 r0 = new io.beid.beidk.activity.ScanPassportActivity$15
|
|
r0.<init>(r4, r6)
|
|
r5.<init>(r0)
|
|
r5.start()
|
|
L4c:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.ScanPassportActivity.a(java.lang.Exception, io.beid.beidk.parcelable.PassportDataParcelable):void");
|
|
}
|
|
|
|
@Override // o.InterfaceC13081fQA
|
|
public final void b(AsyncTaskC13119fRa.RVV rvv) {
|
|
c(new Object[]{this, rvv}, 1108345827, -1108345826, System.identityHashCode(this));
|
|
}
|
|
|
|
private void f() {
|
|
int i = 2 % 2;
|
|
int i2 = V + 57;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
int i4 = AnonymousClass11.c[this.a.ordinal()];
|
|
if (i4 == 1) {
|
|
this.q.setVisibility(4);
|
|
this.G.setVisibility(0);
|
|
return;
|
|
}
|
|
int i5 = U + 13;
|
|
V = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
if (i4 != 3) {
|
|
return;
|
|
}
|
|
} else if (i4 != 2) {
|
|
return;
|
|
}
|
|
j();
|
|
this.q.setVisibility(0);
|
|
this.G.setVisibility(4);
|
|
}
|
|
|
|
static /* synthetic */ ObjectAnimator aCa_(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = U;
|
|
int i3 = i2 + 21;
|
|
V = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
ObjectAnimator objectAnimator = scanPassportActivity.v;
|
|
if (i4 == 0) {
|
|
throw null;
|
|
}
|
|
int i5 = i2 + 13;
|
|
V = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return objectAnimator;
|
|
}
|
|
|
|
static /* synthetic */ ProgressBar aBZ_(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 79;
|
|
U = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
ProgressBar progressBar = scanPassportActivity.r;
|
|
if (i4 != 0) {
|
|
throw null;
|
|
}
|
|
int i5 = i2 + 109;
|
|
U = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return progressBar;
|
|
}
|
|
|
|
static /* synthetic */ Integer l(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 41;
|
|
U = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
Object obj = null;
|
|
Integer num = scanPassportActivity.p;
|
|
if (i4 != 0) {
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
int i5 = i2 + 45;
|
|
U = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
return num;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
static /* synthetic */ View n(ScanPassportActivity scanPassportActivity) {
|
|
return (View) c(new Object[]{scanPassportActivity}, 386240616, -386240614, (int) System.currentTimeMillis());
|
|
}
|
|
|
|
private void g() throws SecurityException {
|
|
int i = 2 % 2;
|
|
int i2 = U + 53;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
try {
|
|
int isGooglePlayServicesAvailable = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(getApplicationContext());
|
|
if (isGooglePlayServicesAvailable != 0) {
|
|
int i4 = V + 95;
|
|
U = i4 % 128;
|
|
(i4 % 2 != 0 ? GoogleApiAvailability.getInstance().getErrorDialog(this, isGooglePlayServicesAvailable, 4929) : GoogleApiAvailability.getInstance().getErrorDialog(this, isGooglePlayServicesAvailable, ConnectionResult.RESOLUTION_REQUIRED)).show();
|
|
}
|
|
C13120fRb c13120fRb = this.I;
|
|
if (c13120fRb != null) {
|
|
int i5 = V + 93;
|
|
U = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
try {
|
|
this.E.e(c13120fRb, this.F);
|
|
} catch (IOException unused) {
|
|
this.I.b();
|
|
this.I = null;
|
|
} catch (Exception unused2) {
|
|
}
|
|
}
|
|
} catch (OutOfMemoryError e2) {
|
|
Intent intent = new Intent();
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_DATA, new PassportDataParcelable());
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_EXIT_CODE, 1);
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_EXCEPTION_MESSAGE, e2.getMessage());
|
|
setResult(-1, intent);
|
|
finish();
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ View m(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 11;
|
|
U = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
View view = scanPassportActivity.w;
|
|
if (i4 != 0) {
|
|
throw null;
|
|
}
|
|
int i5 = i2 + 39;
|
|
U = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return view;
|
|
}
|
|
|
|
static /* synthetic */ TransactionService k(ScanPassportActivity scanPassportActivity) {
|
|
return (TransactionService) c(new Object[]{scanPassportActivity}, -1447298201, 1447298205, (int) System.currentTimeMillis());
|
|
}
|
|
|
|
static /* synthetic */ String h(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 61;
|
|
int i3 = i2 % 128;
|
|
U = i3;
|
|
int i4 = i2 % 2;
|
|
String str = scanPassportActivity.k;
|
|
int i5 = i3 + 81;
|
|
V = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return str;
|
|
}
|
|
|
|
static /* synthetic */ Handler aBY_(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 17;
|
|
U = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
Handler handler = scanPassportActivity.x;
|
|
int i5 = i2 + 49;
|
|
U = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
int i6 = 95 / 0;
|
|
}
|
|
return handler;
|
|
}
|
|
|
|
static /* synthetic */ Runnable j(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = U;
|
|
int i3 = i2 + 19;
|
|
V = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
Runnable runnable = scanPassportActivity.z;
|
|
int i5 = i2 + 65;
|
|
V = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return runnable;
|
|
}
|
|
|
|
private TransactionService i() {
|
|
String str;
|
|
int i = 2 % 2;
|
|
int i2 = U + 23;
|
|
V = i2 % 128;
|
|
Object obj = null;
|
|
if (i2 % 2 == 0) {
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
BEIDConfigurationFactory bEIDConfigurationFactory = b;
|
|
if (bEIDConfigurationFactory != null && (str = this.s) != null) {
|
|
bEIDConfigurationFactory.setBaseUrl(str);
|
|
TransactionService transactionService = new TransactionService(bEIDConfigurationFactory);
|
|
int i3 = V + 51;
|
|
U = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
return transactionService;
|
|
}
|
|
throw null;
|
|
}
|
|
if (bEIDConfigurationFactory == null) {
|
|
String str2 = this.s;
|
|
return str2 != null ? new TransactionService(str2) : new TransactionService("http://api.beid.io");
|
|
}
|
|
TransactionService transactionService2 = new TransactionService(bEIDConfigurationFactory);
|
|
int i4 = U + 7;
|
|
V = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
return transactionService2;
|
|
}
|
|
|
|
static /* synthetic */ View i(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = U;
|
|
int i3 = i2 + 121;
|
|
V = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
View view = scanPassportActivity.u;
|
|
int i5 = i2 + 71;
|
|
V = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
int i6 = 29 / 0;
|
|
}
|
|
return view;
|
|
}
|
|
|
|
static /* synthetic */ fQX e() {
|
|
return (fQX) c(new Object[0], -649500989, 649500992, (int) System.currentTimeMillis());
|
|
}
|
|
|
|
static /* synthetic */ RelativeLayout aBX_(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = U + 19;
|
|
int i3 = i2 % 128;
|
|
V = i3;
|
|
int i4 = i2 % 2;
|
|
RelativeLayout relativeLayout = scanPassportActivity.G;
|
|
int i5 = i3 + 111;
|
|
U = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
return relativeLayout;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
static /* synthetic */ AtomicBoolean a() {
|
|
int i = 2 % 2;
|
|
int i2 = U + 13;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
AtomicBoolean atomicBoolean = e;
|
|
if (i3 == 0) {
|
|
int i4 = 70 / 0;
|
|
}
|
|
return atomicBoolean;
|
|
}
|
|
|
|
static /* synthetic */ LinearLayout aBW_(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = U;
|
|
int i3 = i2 + 59;
|
|
V = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
LinearLayout linearLayout = scanPassportActivity.q;
|
|
int i5 = i2 + 119;
|
|
V = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return linearLayout;
|
|
}
|
|
|
|
private void b(String str, String str2, String str3) {
|
|
int i = 2 % 2;
|
|
PassportDataParcelable passportDataParcelable = new PassportDataParcelable();
|
|
passportDataParcelable.result = str;
|
|
passportDataParcelable.errorCode = str2;
|
|
passportDataParcelable.error = str3;
|
|
Intent intent = new Intent();
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_DATA, passportDataParcelable);
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_EXIT_CODE, 2);
|
|
setResult(-1, intent);
|
|
finish();
|
|
int i2 = U + 73;
|
|
V = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
}
|
|
|
|
static /* synthetic */ Integer d(ScanPassportActivity scanPassportActivity, Integer num) {
|
|
int i = 2 % 2;
|
|
int i2 = V;
|
|
int i3 = i2 + 27;
|
|
U = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
scanPassportActivity.p = num;
|
|
int i5 = i2 + 23;
|
|
U = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return num;
|
|
}
|
|
|
|
private void b() {
|
|
c(new Object[]{this}, 107387850, -107387845, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.e_document_description_mcmc).substring(49, 50).length() + 478399422);
|
|
}
|
|
|
|
static /* synthetic */ void d(ScanPassportActivity scanPassportActivity) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 35;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
c(new Object[]{scanPassportActivity}, 107387850, -107387845, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.e_document_description_mcmc).substring(49, 50).length() + 478399422);
|
|
int i4 = V + 77;
|
|
U = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
int i5 = 5 / 0;
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void c(ScanPassportActivity scanPassportActivity, String str, String str2, String str3) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 23;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
scanPassportActivity.b(str, str2, str3);
|
|
if (i3 != 0) {
|
|
throw null;
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void b(ScanPassportActivity scanPassportActivity) throws SecurityException {
|
|
int i = 2 % 2;
|
|
int i2 = V + 47;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
scanPassportActivity.g();
|
|
if (i3 != 0) {
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
int i4 = V + 115;
|
|
U = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
static /* synthetic */ fQX e(fQX fqx) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 23;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
c = fqx;
|
|
if (i3 == 0) {
|
|
return fqx;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
static /* synthetic */ ObjectAnimator aBV_(ScanPassportActivity scanPassportActivity, ObjectAnimator objectAnimator) {
|
|
int i = 2 % 2;
|
|
int i2 = V + 21;
|
|
U = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
scanPassportActivity.v = objectAnimator;
|
|
if (i3 != 0) {
|
|
int i4 = 50 / 0;
|
|
}
|
|
return objectAnimator;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: io.beid.beidk.activity.ScanPassportActivity$10, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
public final class AnonymousClass10 implements Runnable {
|
|
private Map a;
|
|
private C13110fQx c;
|
|
private PassportDataParcelable d;
|
|
final ScanPassportActivity e;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
try {
|
|
if (!((TransactionService) ScanPassportActivity.c(new Object[]{this.e}, -1447298201, 1447298205, (int) System.currentTimeMillis())).uploadDocumentSync(ScanPassportActivity.h(this.e), TransactionUploadFileType.EPASSPORT, new ByteArrayInputStream(((fQX) ScanPassportActivity.c(new Object[0], -649500989, 649500992, (int) System.currentTimeMillis())).d(((Integer) ScanPassportActivity.c(new Object[]{this.e}, 1155734086, -1155734086, (int) System.currentTimeMillis())).intValue(), this.c)), "", this.a)) {
|
|
throw new Exception("Unable to upload evidence");
|
|
}
|
|
this.e.runOnUiThread(new Runnable(this) { // from class: io.beid.beidk.activity.ScanPassportActivity.10.3
|
|
private AnonymousClass10 e;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ScanPassportActivity.c(this.e.e, (Integer) 90);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
});
|
|
ScanPassportActivity.a(this.e, this.d, this.a);
|
|
} catch (Exception e) {
|
|
Intent intent = new Intent();
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_DATA, this.d);
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_EXIT_CODE, 1);
|
|
intent.putExtra(PassportManager.KEY_PASSPORT_EXCEPTION_MESSAGE, e.getMessage());
|
|
this.e.setResult(-1, intent);
|
|
this.e.finish();
|
|
}
|
|
}
|
|
|
|
AnonymousClass10(ScanPassportActivity scanPassportActivity, C13110fQx c13110fQx, Map map, PassportDataParcelable passportDataParcelable) {
|
|
this.e = scanPassportActivity;
|
|
this.c = c13110fQx;
|
|
this.a = map;
|
|
this.d = passportDataParcelable;
|
|
}
|
|
}
|
|
|
|
/* renamed from: io.beid.beidk.activity.ScanPassportActivity$2, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
final class AnonymousClass2 implements Runnable {
|
|
final ScanPassportActivity d;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Handler aBY_;
|
|
Runnable j;
|
|
long j2;
|
|
if (ScanPassportActivity.i(this.d).getVisibility() == 0) {
|
|
this.d.runOnUiThread(new Runnable(this) { // from class: io.beid.beidk.activity.ScanPassportActivity.2.4
|
|
private AnonymousClass2 b;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ScanPassportActivity.i(this.b.d).setVisibility(4);
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
});
|
|
aBY_ = ScanPassportActivity.aBY_(this.d);
|
|
j = ScanPassportActivity.j(this.d);
|
|
j2 = 500;
|
|
} else {
|
|
this.d.runOnUiThread(new Runnable(this) { // from class: io.beid.beidk.activity.ScanPassportActivity.2.3
|
|
private AnonymousClass2 b;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ScanPassportActivity.i(this.b.d).setVisibility(0);
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
});
|
|
aBY_ = ScanPassportActivity.aBY_(this.d);
|
|
j = ScanPassportActivity.j(this.d);
|
|
j2 = 1000;
|
|
}
|
|
aBY_.postDelayed(j, j2);
|
|
}
|
|
|
|
AnonymousClass2(ScanPassportActivity scanPassportActivity) {
|
|
this.d = scanPassportActivity;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: io.beid.beidk.activity.ScanPassportActivity$6, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
public final class AnonymousClass6 implements Runnable {
|
|
private ScanPassportActivity a;
|
|
private Integer e;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
ScanPassportActivity.m(this.a).setVisibility(0);
|
|
((View) ScanPassportActivity.c(new Object[]{this.a}, 386240616, -386240614, (int) System.currentTimeMillis())).setVisibility(8);
|
|
if (this.e.intValue() > ScanPassportActivity.l(this.a).intValue()) {
|
|
ScanPassportActivity scanPassportActivity = this.a;
|
|
ScanPassportActivity.aBV_(scanPassportActivity, ObjectAnimator.ofInt(ScanPassportActivity.aBZ_(scanPassportActivity), "progress", ScanPassportActivity.l(this.a).intValue(), this.e.intValue()));
|
|
ScanPassportActivity.aCa_(this.a).setDuration(500L);
|
|
ScanPassportActivity.aCa_(this.a).start();
|
|
ScanPassportActivity.d(this.a, this.e);
|
|
}
|
|
}
|
|
|
|
AnonymousClass6(ScanPassportActivity scanPassportActivity, Integer num) {
|
|
this.a = scanPassportActivity;
|
|
this.e = num;
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ int e(ScanPassportActivity scanPassportActivity, int i) {
|
|
int i2 = 2 % 2;
|
|
int i3 = U + 109;
|
|
V = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
scanPassportActivity.B = i;
|
|
if (i4 == 0) {
|
|
int i5 = 51 / 0;
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: io.beid.beidk.activity.ScanPassportActivity$11, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
public static /* synthetic */ class AnonymousClass11 {
|
|
static final int[] c;
|
|
|
|
static {
|
|
int[] iArr = new int[IeS.values().length];
|
|
c = iArr;
|
|
try {
|
|
iArr[IeS.GET_BAC.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
c[IeS.GET_CHIP_DATA.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
class HBt extends Exception {
|
|
private ScanPassportActivity e;
|
|
|
|
public HBt(ScanPassportActivity scanPassportActivity) {
|
|
this.e = scanPassportActivity;
|
|
}
|
|
}
|
|
|
|
static {
|
|
V = 1;
|
|
c();
|
|
e = new AtomicBoolean(false);
|
|
b = new BEIDConfigurationFactory("http://api.beid.io", "", "", Boolean.FALSE, 30, null, "");
|
|
c = null;
|
|
d = new ServiceConnection() { // from class: io.beid.beidk.activity.ScanPassportActivity.5
|
|
@Override // android.content.ServiceConnection
|
|
public final void onServiceDisconnected(ComponentName componentName) {
|
|
ScanPassportActivity.e((fQX) null);
|
|
}
|
|
|
|
@Override // android.content.ServiceConnection
|
|
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
|
|
ScanPassportActivity.e(fQX.RVV.aCu_(iBinder));
|
|
}
|
|
};
|
|
int i = U + 79;
|
|
V = i % 128;
|
|
if (i % 2 == 0) {
|
|
throw null;
|
|
}
|
|
}
|
|
}
|