what-the-bank/sources/io/beid/beidk/activity/FaceCaptureActivity.java

1722 lines
80 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.beid.beidk.activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.media.AudioTrack;
import android.media.ExifInterface;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.ParcelFileDescriptor;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.SparseArray;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.WindowManager;
import android.widget.ExpandableListView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import io.beid.beidk.BEIDConfigurationFactory;
import io.beid.beidk.c.a;
import io.beid.beidk.c.b;
import io.beid.beidk.definitions.LivenessStatus;
import io.beid.beidk.definitions.TransactionUploadFileType;
import io.beid.beidk.messages.transaction.MatchingForm;
import io.beid.beidk.messages.transaction.MatchingResult;
import io.beid.beidk.processor.FaceProcessor;
import io.beid.beidk.services.TransactionService;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.security.Security;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Locale;
import java.util.Queue;
import java.util.Random;
import java.util.UUID;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C13096fQj;
import o.C13105fQs;
import o.C13110fQx;
import o.C15185gjf;
import o.C3614bBe;
import o.InterfaceC13104fQr;
import o.InterfaceC13107fQu;
import o.dQY;
import o.fPZ;
import o.fQP;
import o.fQT;
import o.fQX;
import o.gqX;
import o.nMh;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public class FaceCaptureActivity extends AppCompatActivity implements LocationListener, Handler.Callback, InterfaceC13107fQu, InterfaceC13104fQr {
private static char[] T;
private static int U;
private static boolean V;
private static int Y;
private static boolean Z;
private static char[] ab;
private static long ac;
public static Sts c;
private static BEIDConfigurationFactory e;
private String C;
private String D;
private String E;
private String F;
private String G;
private String H;
private byte[] I;
private boolean J;
private String L;
private boolean M;
private String N;
private boolean O;
private boolean P;
private boolean Q;
private boolean R;
private boolean S;
private byte[] W;
private int X;
public a a;
public b b;
public IeS d;
private int h;
private int i;
private boolean j;
private Bundle k;
private String l;
private String m;
private boolean n;
/* renamed from: o, reason: collision with root package name */
private HashMap<String, String> f8089o;
private Integer p;
private LocationManager q;
private Integer r;
private fQX s;
private Rect u;
private boolean v;
private String z;
private static final byte[] $$a = {83, -27, -97, -69};
private static final int $$b = 199;
private static int $10 = 0;
private static int $11 = 1;
private static int aa = 0;
private int K = 90;
private String A = "";
private String B = null;
private Intent f = new Intent();
private Handler g = new Handler(this);
private final String[] t = {"android.permission.CAMERA", "android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"};
private ArrayList<Integer> x = new ArrayList<>();
private ServiceConnection y = new ServiceConnection(this) { // from class: io.beid.beidk.activity.FaceCaptureActivity.1
private FaceCaptureActivity e;
@Override // android.content.ServiceConnection
public final void onServiceDisconnected(ComponentName componentName) {
}
@Override // android.content.ServiceConnection
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
}
{
this.e = this;
}
};
private int w = 1;
/* loaded from: classes5.dex */
public enum IeS {
CAPTURE,
CONFIRM,
ID,
RESULT,
UPDATE
}
/* loaded from: classes5.dex */
public enum Sts {
ORIENTATION_0,
ORIENTATION_90,
ORIENTATION_270
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x002c). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void af(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
/*
int r7 = r7 + 65
byte[] r0 = io.beid.beidk.activity.FaceCaptureActivity.$$a
int r6 = r6 * 2
int r1 = 1 - r6
int r8 = r8 * 4
int r8 = 4 - r8
byte[] r1 = new byte[r1]
r2 = 0
int r6 = 0 - r6
if (r0 != 0) goto L16
r3 = r8
r4 = r2
goto L2c
L16:
r3 = r2
L17:
byte r4 = (byte) r7
r1[r3] = r4
if (r3 != r6) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L24:
int r3 = r3 + 1
r4 = r0[r8]
r5 = r3
r3 = r7
r7 = r4
r4 = r5
L2c:
int r8 = r8 + 1
int r7 = r7 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.FaceCaptureActivity.af(byte, byte, byte, java.lang.Object[]):void");
}
public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i2;
int i5 = ~i3;
int i6 = ~(i4 | i5);
int i7 = ~i;
return ((((i * (-958)) + (i2 * (-958))) + (((i6 | (~(i7 | i3))) | (~(i5 | i))) * 959)) + ((~(i2 | i)) * (-959))) + (((~(i | i3)) | ((~(i7 | i5)) | (~(i4 | i3)))) * 959) != 1 ? a(objArr) : d(objArr);
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int i = 2 % 2;
int i2 = Y + 65;
aa = i2 % 128;
int i3 = i2 % 2;
int i4 = 0;
Object[] objArr = new Object[1];
ad(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{-120, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, ISOFileInfo.PROP_INFO, -124, -119, ISOFileInfo.FCI_EXT, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.account_management_product_type).substring(10, 11).codePointAt(0) - 32, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.capture_document_instructions).substring(13, 14).length() + 4, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 50197), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
int i5 = Y + 45;
aa = i5 % 128;
int i6 = i5 % 2;
Object[] objArr3 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(4) - 110, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 8, (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_black).substring(0, 2).length() - 2), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.single_form_omnibus_select_account_deposit_disclaimer).substring(103, 104).codePointAt(0) - 1, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.add_account_title_selector).substring(31, 32).length() + 17, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.isprint_force_set_new_pin_message).substring(22, 23).codePointAt(0) + 26048), objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i7 = aa + 73;
Y = i7 % 128;
int i8 = i7 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), 5 - View.MeasureSpec.getMode(0), (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.hms_bindfaildlg_message).substring(0, 5).length() + 44, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.friend_get_friends_regis_successful_success_cc_activation_register).substring(17, 18).length() + 47, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_single_form_terms_and_conditions_innovestx_only_check_box_title).substring(73, 74).length() - 1), objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ad(null, null, 127 - (ViewConfiguration.getTouchSlop() >> 8), new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -106, -109, ISOFileInfo.LCS_BYTE, -106, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, -106, ISOFileInfo.LCS_BYTE, -110, -105, -106, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -109, -112, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_COMPACT, -106, -112, ISOFileInfo.DATA_BYTES2, -112, -110, -110, -106, -107, -113, -111, ISOFileInfo.LCS_BYTE, -107, ISOFileInfo.ENV_TEMP_EF, -108, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.DATA_BYTES2, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.LCS_BYTE, -111, -109, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, -109, -110, ISOFileInfo.ENV_TEMP_EF, -111, ISOFileInfo.ENV_TEMP_EF, -111, -112, ISOFileInfo.SECURITY_ATTR_EXP, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_EXP}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.fixed_transfer_successful_transfer).substring(13, 14).codePointAt(0) + 65, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_mcmc_feature_information_increase_loan_limit).substring(23, 24).codePointAt(0) + 32, (char) Color.alpha(0), objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.landing_page_scb).substring(0, 3).length() + 158, 74 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
ad(null, null, TextUtils.lastIndexOf("", '0', 0, 0) + 128, new byte[]{-107, ISOFileInfo.FCI_EXT, -106, ISOFileInfo.FCI_EXT, -113}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 201, View.MeasureSpec.getMode(0) + 36, (char) (29144 - AndroidCharacter.getMirror('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(486 - TextUtils.lastIndexOf("", '0', 0, 0), (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
Security.insertProviderAt(new gqX(), 1);
Intent intent = getIntent();
e = (BEIDConfigurationFactory) intent.getParcelableExtra("_config");
String stringExtra = intent.getStringExtra("language");
this.l = stringExtra;
if (!"en".equals(stringExtra)) {
int i9 = aa + 35;
Y = i9 % 128;
if (i9 % 2 == 0) {
this.l = "th";
int i10 = 94 / 0;
} else {
this.l = "th";
}
}
Resources resources = getResources();
DisplayMetrics displayMetrics = resources.getDisplayMetrics();
Configuration configuration = resources.getConfiguration();
configuration.locale = new Locale(this.l);
resources.updateConfiguration(configuration, displayMetrics);
Intent intent2 = new Intent(this, (Class<?>) fQT.class);
intent2.setAction(fQX.class.getName());
startService(intent2);
bindService(intent2, this.y, 1);
super.onCreate(bundle);
setContentView(fPZ.HBt.activity_face_capture);
this.k = bundle;
String[] strArr = this.t;
int length = strArr.length;
while (i4 < length) {
if (nMh.checkSelfPermission(this, strArr[i4]) != 0) {
ActivityCompat.lM_(this, this.t, 2);
return;
}
i4++;
int i11 = aa + 41;
Y = i11 % 128;
int i12 = i11 % 2;
}
aBS_(this.k);
}
private static void ae(int i, int i2, char c2, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
int i4 = $11 + 35;
$10 = i4 % 128;
int i5 = i4 % 2;
while (dqy.a < i2) {
int i6 = $10 + 61;
$11 = i6 % 128;
int i7 = i6 % 2;
int i8 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(ab[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatDelay() >> 16) + 308, Color.rgb(0, 0, 0) + 16777221, (char) (ExpandableListView.getPackedPositionChild(0L) + 32798));
byte b = (byte) 0;
Object[] objArr3 = new Object[1];
af(b, (byte) (b | 33), b, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
try {
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(ac), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getScrollBarSize() >> 8), ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)));
byte b2 = (byte) 0;
Object[] objArr5 = new Object[1];
af(b2, (byte) (b2 | ISO7816.INS_MSE), b2, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i8] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
try {
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(407 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 29235));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
af(b3, (byte) (b3 | 41), b3, 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;
}
} 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;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 407, 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (29234 - Color.argb(0, 0, 0, 0)));
byte b4 = (byte) 0;
Object[] objArr9 = new Object[1];
af(b4, (byte) (b4 | 41), b4, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
int i9 = $10 + 23;
$11 = i9 % 128;
int i10 = i9 % 2;
} catch (Throwable th4) {
Throwable cause4 = th4.getCause();
if (cause4 == null) {
throw th4;
}
throw cause4;
}
}
objArr[0] = new String(cArr);
}
@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) {
Object[] objArr = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.single_form_mf_and_om_open_scbs_header).substring(27, 28).length() + 4, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ccr_search_not_found_2).substring(0, 1).length() + 25, (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.settings_label_scb_connect).substring(5, 17).codePointAt(3) - 66), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) - 80, 17 - ImageFormat.getBitsPerPixel(0), (char) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 26046), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 492, 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - (Process.myTid() >> 22), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0)))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i2 = aa + 57;
Y = i2 % 128;
int i3 = i2 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
int i4 = Y + 115;
aa = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
}
@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 = aa + 9;
Y = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
ae(View.combineMeasuredStates(0, 0) + 5, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, (char) View.getDefaultSize(0, 0), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ae(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.permission_storage_title).substring(10, 11).codePointAt(0) - 84, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.transfer_payment_amount_hint).substring(0, 4).length() + 14, (char) (26080 - (ViewConfiguration.getWindowTouchSlop() >> 8)), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = Y + 63;
aa = i4 % 128;
try {
if (i4 % 2 != 0) {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 492, 4 - TextUtils.indexOf((CharSequence) "", '0'), (char) ((-1) - Process.getGidForName("")))).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), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
throw null;
}
Object obj3 = xzZ.y.get(125943855);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 492, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) View.resolveSize(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj3);
}
Object invoke2 = ((Method) obj3).invoke(null, null);
Object[] objArr4 = {baseContext};
Object obj4 = xzZ.y.get(1633456013);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(487 - (ViewConfiguration.getWindowTouchSlop() >> 8), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) View.MeasureSpec.getMode(0))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj4);
}
((Method) obj4).invoke(invoke2, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
private static void ad(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
char[] cArr2;
int i2 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = T;
int i3 = 0;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i4 = 0;
while (i4 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i3] = Integer.valueOf(cArr3[i4]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - (Process.myTid() >> 22), 5 - ((Process.getThreadPriority(i3) + 20) >> 6), (char) (TextUtils.lastIndexOf("", '0', i3) + 1));
byte b = (byte) i3;
byte b2 = b;
Object[] objArr3 = new Object[1];
af(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr4[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i4++;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr4;
}
try {
Object[] objArr4 = {Integer.valueOf(U)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 282, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (Color.argb(0, 0, 0, 0) + 39813));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
af(b3, (byte) (b3 | 57), b3, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (Z) {
int i5 = $11 + 97;
$10 = i5 % 128;
if (i5 % 2 != 0) {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 1;
} else {
c3614bBe.c = bArr.length;
cArr2 = new char[c3614bBe.c];
c3614bBe.a = 0;
}
while (c3614bBe.a < c3614bBe.c) {
cArr2[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(40 - Drawable.resolveOpacity(0, 0), 5 - TextUtils.getTrimmedLength(""), (char) Color.green(0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr2);
return;
}
if (V) {
c3614bBe.c = cArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
cArr5[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 40, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) View.getDefaultSize(0, 0))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
int i6 = $11 + 93;
$10 = i6 % 128;
int i7 = i6 % 2;
}
objArr[0] = new String(cArr5);
return;
}
int i8 = 0;
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
while (true) {
c3614bBe.a = i8;
if (c3614bBe.a >= c3614bBe.c) {
objArr[0] = new String(cArr6);
return;
}
int i9 = $11 + 57;
$10 = i9 % 128;
if (i9 % 2 != 0) {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) % c3614bBe.a] * i] * intValue);
i8 = c3614bBe.a >> 1;
} else {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
i8 = c3614bBe.a + 1;
}
}
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
@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) {
Context context2;
int i = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
ad(null, null, 127 - TextUtils.getTrimmedLength(""), new byte[]{-120, -120, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, ISOFileInfo.PROP_INFO, -124, -119, ISOFileInfo.FCI_EXT, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.FCI_EXT, ISOFileInfo.FILE_IDENTIFIER, -122, ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
ae(1 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), 6 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), (char) (50198 - (ViewConfiguration.getLongPressTimeout() >> 16)), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i2 = Y + 43;
aa = i2 % 128;
int i3 = i2 % 2;
context2 = context.getApplicationContext();
int i4 = aa + 117;
Y = i4 % 128;
int i5 = i4 % 2;
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - KeyEvent.normalizeMetaState(0), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (TextUtils.indexOf((CharSequence) "", '0') + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
ae(AndroidCharacter.getMirror('0') + 1, 49 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) View.combineMeasuredStates(0, 0), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
ad(null, null, (ViewConfiguration.getWindowTouchSlop() >> 8) + 127, new byte[]{ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -106, -109, ISOFileInfo.LCS_BYTE, -106, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, -106, ISOFileInfo.LCS_BYTE, -110, -105, -106, ISOFileInfo.FILE_IDENTIFIER, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -109, -112, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.DATA_BYTES2, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_COMPACT, -106, -112, ISOFileInfo.DATA_BYTES2, -112, -110, -110, -106, -107, -113, -111, ISOFileInfo.LCS_BYTE, -107, ISOFileInfo.ENV_TEMP_EF, -108, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.DATA_BYTES2, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.LCS_BYTE, -111, -109, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, -109, -110, ISOFileInfo.ENV_TEMP_EF, -111, ISOFileInfo.ENV_TEMP_EF, -111, -112, ISOFileInfo.SECURITY_ATTR_EXP, -113, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_EXP}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
ae(97 - (ViewConfiguration.getPressedStateDuration() >> 16), Gravity.getAbsoluteGravity(0, 0) + 64, (char) View.resolveSizeAndState(0, 0, 0), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
ae(TextUtils.getTrimmedLength("") + CipherSuite.TLS_DH_RSA_WITH_AES_256_GCM_SHA384, 74 - TextUtils.indexOf("", ""), (char) ('0' - AndroidCharacter.getMirror('0')), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
ad(null, null, 126 - TextUtils.lastIndexOf("", '0', 0, 0), new byte[]{-107, ISOFileInfo.FCI_EXT, -106, ISOFileInfo.FCI_EXT, -113}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
ae(MotionEvent.axisFromString("") + 236, 36 - Color.alpha(0), (char) (29096 - Color.blue(0)), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 487, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
static /* synthetic */ void d(FaceCaptureActivity faceCaptureActivity) throws IOException {
int i = 2 % 2;
try {
if (faceCaptureActivity.f8089o.containsKey("latitude")) {
faceCaptureActivity.f8089o.remove("latitude");
}
if (faceCaptureActivity.f8089o.containsKey("longitude")) {
int i2 = aa + 5;
Y = i2 % 128;
int i3 = i2 % 2;
faceCaptureActivity.f8089o.remove("longitude");
}
faceCaptureActivity.f8089o.put("latitude", fQP.b().s.toString());
faceCaptureActivity.f8089o.put("longitude", fQP.b().e.toString());
C13110fQx c13110fQx = new C13110fQx();
c13110fQx.b = 900;
int i4 = C13110fQx.a;
c13110fQx.c = 0;
c13110fQx.e = faceCaptureActivity.u;
byte[] d = faceCaptureActivity.s.d(faceCaptureActivity.p.intValue(), c13110fQx);
String d2 = C13096fQj.d(d);
faceCaptureActivity.f.putExtra("imageCapture", d);
MatchingResult matchSync = faceCaptureActivity.f().matchSync(new MatchingForm().setTransactionId(faceCaptureActivity.m).setFaceSelfie(d2), faceCaptureActivity.f8089o);
if (LivenessStatus.ERROR_MATCHING_FAIL.equals(matchSync.error)) {
int i5 = Y + 63;
aa = i5 % 128;
int i6 = i5 % 2;
faceCaptureActivity.f.putExtra("responseStatus", "error");
faceCaptureActivity.f.putExtra("errorCode", LivenessStatus.ERROR_MATCHING_FAIL);
faceCaptureActivity.f.putExtra("errorText", matchSync.error);
faceCaptureActivity.setResult(-1, faceCaptureActivity.f);
faceCaptureActivity.finish();
return;
}
if (matchSync.error != null) {
int i7 = aa + 105;
Y = i7 % 128;
if (i7 % 2 == 0) {
"".equals(matchSync.error);
Object obj = null;
obj.hashCode();
throw null;
}
if (!"".equals(matchSync.error)) {
throw new Exception(matchSync.error);
}
}
faceCaptureActivity.f.putExtra("responseStatus", "ok");
faceCaptureActivity.setResult(-1, faceCaptureActivity.f);
faceCaptureActivity.finish();
} catch (Exception e2) {
faceCaptureActivity.f.putExtra("responseStatus", "error");
faceCaptureActivity.f.putExtra("errorCode", LivenessStatus.ERROR_UNKNOW);
faceCaptureActivity.f.putExtra("errorText", e2.getMessage());
faceCaptureActivity.setResult(-1, faceCaptureActivity.f);
faceCaptureActivity.finish();
}
}
private static /* synthetic */ Object d(Object[] objArr) {
InputStream byteArrayInputStream;
FaceCaptureActivity faceCaptureActivity = (FaceCaptureActivity) objArr[0];
Queue queue = (Queue) objArr[1];
Runnable runnable = (Runnable) objArr[2];
int i = 2 % 2;
int i2 = -1;
Object obj = null;
try {
if (queue.size() == 0) {
int i3 = Y + 115;
aa = i3 % 128;
if (i3 % 2 == 0) {
runnable.run();
return null;
}
runnable.run();
obj.hashCode();
throw null;
}
int intValue = ((Integer) queue.poll()).intValue();
if (faceCaptureActivity.f8089o.containsKey("latitude")) {
int i4 = Y + 91;
aa = i4 % 128;
int i5 = i4 % 2;
faceCaptureActivity.f8089o.remove("latitude");
}
if (faceCaptureActivity.f8089o.containsKey("longitude")) {
int i6 = aa + 97;
Y = i6 % 128;
if (i6 % 2 == 0) {
faceCaptureActivity.f8089o.remove("longitude");
int i7 = 24 / 0;
} else {
faceCaptureActivity.f8089o.remove("longitude");
}
}
faceCaptureActivity.f8089o.put("latitude", fQP.b().s.toString());
faceCaptureActivity.f8089o.put("longitude", fQP.b().e.toString());
Integer e2 = fQP.b().r.get(faceCaptureActivity.w - 1).e();
C13110fQx c13110fQx = new C13110fQx();
c13110fQx.b = 640;
int i8 = C13110fQx.a;
c13110fQx.c = 0;
byte[] d = faceCaptureActivity.s.d(intValue, c13110fQx);
if (e2 == FaceProcessor.LivenessActivity.STRAIGHT) {
ByteArrayInputStream byteArrayInputStream2 = new ByteArrayInputStream(d);
if (C13105fQs.c == null) {
C13105fQs.c = new C13105fQs();
}
byte[] bytes = C15185gjf.c(faceCaptureActivity.m, C15185gjf.c(new Random().nextInt(5) + 8, new SecureRandom())).getBytes();
File createTempFile = File.createTempFile(UUID.randomUUID().toString(), ".tmp");
FileOutputStream fileOutputStream = new FileOutputStream(createTempFile);
byte[] bArr = new byte[4096];
while (true) {
int read = byteArrayInputStream2.read(bArr);
if (read == i2) {
break;
}
int i9 = Y + 55;
aa = i9 % 128;
int i10 = i9 % 2;
fileOutputStream.write(bArr, 0, read);
i2 = -1;
}
fileOutputStream.close();
ExifInterface exifInterface = new ExifInterface(createTempFile.getAbsolutePath());
exifInterface.setAttribute("Make", new String(bytes, StandardCharsets.UTF_8));
exifInterface.saveAttributes();
createTempFile.deleteOnExit();
byteArrayInputStream = new FileInputStream(createTempFile);
} else {
byteArrayInputStream = new ByteArrayInputStream(d);
}
InputStream inputStream = byteArrayInputStream;
Intent intent = faceCaptureActivity.f;
StringBuilder sb = new StringBuilder("livenessImage_");
sb.append(faceCaptureActivity.w - 1);
intent.putExtra(sb.toString(), d);
TransactionService f = faceCaptureActivity.f();
String str = faceCaptureActivity.m;
TransactionUploadFileType selfieType = TransactionUploadFileType.getSelfieType(faceCaptureActivity.w);
StringBuilder sb2 = new StringBuilder("ACTIVITY=");
sb2.append(e2);
if (!f.uploadDocumentSync(str, selfieType, inputStream, sb2.toString(), faceCaptureActivity.f8089o)) {
throw new Exception("Unable to upload evidence");
}
faceCaptureActivity.w++;
e(new Object[]{faceCaptureActivity, queue, runnable}, -1669075077, 1669075078, System.identityHashCode(faceCaptureActivity));
return null;
} catch (Exception e3) {
faceCaptureActivity.f.putExtra("responseStatus", "error");
faceCaptureActivity.f.putExtra("errorCode", LivenessStatus.ERROR_UNKNOW);
faceCaptureActivity.f.putExtra("errorText", e3.getMessage());
faceCaptureActivity.setResult(-1, faceCaptureActivity.f);
faceCaptureActivity.finish();
return null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:34:0x01fd, code lost:
if (r8 == io.beid.beidk.processor.FaceProcessor.LivenessActivity.SMILE.intValue()) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x022b, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.BLINK.intValue()) goto L42;
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x022d, code lost:
r8 = o.fQP.b().r;
r9 = new o.C13109fQw(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x0338, code lost:
r8.add(r9);
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x033b, code lost:
r7 = r7 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:42:0x024e, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.TILT_HEAD_LEFT.intValue()) goto L45;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x0250, code lost:
r8 = o.fQP.b().r;
r9 = new o.fQL(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x0271, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.TILT_HEAD_RIGHT.intValue()) goto L48;
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x0273, code lost:
r8 = o.fQP.b().r;
r9 = new o.fQK(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x0294, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.CLOSE_LEFT_EYE.intValue()) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0296, code lost:
r8 = o.fQP.b().r;
r9 = new o.C13112fQz(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x02b7, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.CLOSE_RIGHT_EYE.intValue()) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x02b9, code lost:
r8 = o.fQP.b().r;
r9 = new o.C13111fQy(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x02d9, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.TURN_FACE_LEFT.intValue()) goto L57;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x02db, code lost:
r8 = o.fQP.b().r;
r9 = new o.C13083fQJ(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x02fb, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.TURN_FACE_RIGHT.intValue()) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x02fd, code lost:
r8 = o.fQP.b().r;
r9 = new o.fQM(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x031d, code lost:
if (r8 != io.beid.beidk.processor.FaceProcessor.LivenessActivity.STRAIGHT.intValue()) goto L100;
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x031f, code lost:
r8 = o.fQP.b().r;
r9 = new o.C13082fQF(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x020a, code lost:
r8 = o.fQP.b().r;
r9 = new o.fQI(java.lang.Integer.valueOf(r12.h), java.lang.Integer.valueOf(r12.i * 1000));
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x0208, code lost:
if (r8 == io.beid.beidk.processor.FaceProcessor.LivenessActivity.SMILE.intValue()) goto L38;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void aBS_(android.os.Bundle r13) {
/*
Method dump skipped, instructions count: 1120
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.FaceCaptureActivity.aBS_(android.os.Bundle):void");
}
@Override // o.InterfaceC13104fQr
public final void aCj_(SparseArray<ParcelFileDescriptor> sparseArray) {
int i = 2 % 2;
try {
sparseArray.size();
if (sparseArray.size() > 0) {
int i2 = Y + 81;
aa = i2 % 128;
int i3 = i2 % 2;
fQP.b().f9105o.size();
int i4 = Y + 93;
aa = i4 % 128;
int i5 = i4 % 2;
}
new Thread(new Runnable(this) { // from class: io.beid.beidk.activity.FaceCaptureActivity.3
private FaceCaptureActivity e;
@Override // java.lang.Runnable
public final void run() {
try {
FaceCaptureActivity.a(this.e);
} catch (Exception unused) {
}
}
{
this.e = this;
}
}).start();
} catch (Exception e2) {
this.B = e2.toString();
this.g.sendEmptyMessage(1);
}
}
/* JADX WARN: Code restructure failed: missing block: B:14:0x002c, code lost:
if (o.fQP.b().m == o.fQP.Sts.face_first) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x004e, code lost:
r6 = r5.f;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x0041, code lost:
if (o.fQP.b().b == false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0043, code lost:
r6 = io.beid.beidk.activity.FaceCaptureActivity.aa + 89;
io.beid.beidk.activity.FaceCaptureActivity.Y = r6 % 128;
r6 = r6 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0039, code lost:
if (o.fQP.b().m == o.fQP.Sts.face_first) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x0074, code lost:
if (o.fQP.b().b != false) goto L37;
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x0081, code lost:
r6 = io.beid.beidk.activity.FaceCaptureActivity.aa + 55;
io.beid.beidk.activity.FaceCaptureActivity.Y = r6 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x008a, code lost:
if ((r6 % 2) == 0) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x008c, code lost:
r6 = r5.f;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x0093, code lost:
r5.f.putExtra("error", r5.B);
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x009b, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x007f, code lost:
if (o.fQP.b().b != false) goto L37;
*/
@Override // android.os.Handler.Callback
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean handleMessage(android.os.Message r6) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = io.beid.beidk.activity.FaceCaptureActivity.aa
int r1 = r1 + 65
int r2 = r1 % 128
io.beid.beidk.activity.FaceCaptureActivity.Y = r2
int r1 = r1 % r0
r1 = 0
int r6 = r6.what // Catch: java.lang.Exception -> Lc1
java.lang.String r2 = "error"
if (r6 == 0) goto L56
r3 = 1
if (r6 != r3) goto Lc1
int r6 = io.beid.beidk.activity.FaceCaptureActivity.aa
int r6 = r6 + 27
int r3 = r6 % 128
io.beid.beidk.activity.FaceCaptureActivity.Y = r3
int r6 = r6 % r0
if (r6 != 0) goto L31
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r6 = r6.m // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r3 = o.fQP.Sts.face_first // Catch: java.lang.Exception -> Lc1
r4 = 12
int r4 = r4 / r1
if (r6 != r3) goto L4e
goto L3b
L2f:
r6 = move-exception
throw r6
L31:
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r6 = r6.m // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r3 = o.fQP.Sts.face_first // Catch: java.lang.Exception -> Lc1
if (r6 != r3) goto L4e
L3b:
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
boolean r6 = r6.b // Catch: java.lang.Exception -> Lc1
if (r6 == 0) goto L4e
int r6 = io.beid.beidk.activity.FaceCaptureActivity.aa
int r6 = r6 + 89
int r2 = r6 % 128
io.beid.beidk.activity.FaceCaptureActivity.Y = r2
int r6 = r6 % r0
goto Lc1
L4e:
android.content.Intent r6 = r5.f // Catch: java.lang.Exception -> Lc1
L50:
java.lang.String r0 = r5.B // Catch: java.lang.Exception -> Lc1
r6.putExtra(r2, r0) // Catch: java.lang.Exception -> Lc1
goto L8f
L56:
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r6 = r6.m // Catch: java.lang.Exception -> Lc1
o.fQP$Sts r3 = o.fQP.Sts.face_first // Catch: java.lang.Exception -> Lc1
if (r6 != r3) goto L9e
int r6 = io.beid.beidk.activity.FaceCaptureActivity.aa
int r6 = r6 + 55
int r3 = r6 % 128
io.beid.beidk.activity.FaceCaptureActivity.Y = r3
int r6 = r6 % r0
if (r6 != 0) goto L79
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
boolean r6 = r6.b // Catch: java.lang.Exception -> Lc1
r3 = 68
int r3 = r3 / r1
if (r6 == 0) goto L9e
goto L81
L77:
r6 = move-exception
throw r6
L79:
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
boolean r6 = r6.b // Catch: java.lang.Exception -> Lc1
if (r6 == 0) goto L9e
L81:
int r6 = io.beid.beidk.activity.FaceCaptureActivity.aa
int r6 = r6 + 55
int r3 = r6 % 128
io.beid.beidk.activity.FaceCaptureActivity.Y = r3
int r6 = r6 % r0
if (r6 == 0) goto L93
android.content.Intent r6 = r5.f // Catch: java.lang.Exception -> Lc1
goto L50
L8f:
r5.d(r1) // Catch: java.lang.Exception -> Lc1
goto Lc1
L93:
android.content.Intent r6 = r5.f // Catch: java.lang.Exception -> Lc1
java.lang.String r0 = r5.B // Catch: java.lang.Exception -> Lc1
r6.putExtra(r2, r0) // Catch: java.lang.Exception -> Lc1
r6 = 0
throw r6 // Catch: java.lang.Throwable -> L9c java.lang.Exception -> Lc1
L9c:
r6 = move-exception
throw r6
L9e:
o.fQP r6 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
boolean r6 = r6.f // Catch: java.lang.Exception -> Lc1
if (r6 == 0) goto Lb4
android.content.Intent r6 = r5.f // Catch: java.lang.Exception -> Lc1
java.lang.String r0 = "captureOnlyImage"
o.fQP r2 = o.fQP.b() // Catch: java.lang.Exception -> Lc1
byte[] r2 = r2.a // Catch: java.lang.Exception -> Lc1
r6.putExtra(r0, r2) // Catch: java.lang.Exception -> Lc1
goto Lbd
Lb4:
java.lang.String r6 = r5.A // Catch: java.lang.Exception -> Lc1
android.content.Intent r0 = r5.f // Catch: java.lang.Exception -> Lc1
java.lang.String r2 = "result"
r0.putExtra(r2, r6) // Catch: java.lang.Exception -> Lc1
Lbd:
r6 = -1
r5.d(r6) // Catch: java.lang.Exception -> Lc1
Lc1:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.FaceCaptureActivity.handleMessage(android.os.Message):boolean");
}
@Override // androidx.activity.ComponentActivity, android.app.Activity
public void onBackPressed() {
int i = 2 % 2;
int i2 = aa + 11;
Y = i2 % 128;
int i3 = i2 % 2;
fQP.b();
boolean z = fQP.b().g;
if (this.d == IeS.CONFIRM || this.d != IeS.ID) {
super.onBackPressed();
return;
}
int i4 = aa + 103;
Y = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.location.LocationListener
public void onLocationChanged(Location location) {
int i = 2 % 2;
int i2 = aa + 73;
Y = i2 % 128;
int i3 = i2 % 2;
fQP.b().s = Double.valueOf(location.getLatitude());
fQP.b().e = Double.valueOf(location.getLongitude());
int i4 = Y + 57;
aa = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.app.Activity, android.content.ComponentCallbacks
public void onLowMemory() {
int i = 2 % 2;
int i2 = aa + 105;
Y = i2 % 128;
int i3 = i2 % 2;
super.onLowMemory();
Runtime.getRuntime().gc();
int i4 = Y + 17;
aa = i4 % 128;
int i5 = i4 % 2;
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public void onStop() {
int i = 2 % 2;
int i2 = Y + 17;
aa = i2 % 128;
int i3 = i2 % 2;
fQP.b().k.clear();
fQP.b().r.clear();
fQP.b().f9105o.clear();
super.onStop();
int i4 = aa + 63;
Y = i4 % 128;
if (i4 % 2 == 0) {
int i5 = 59 / 0;
}
}
private static /* synthetic */ Object a(Object[] objArr) {
FaceCaptureActivity faceCaptureActivity = (FaceCaptureActivity) objArr[0];
fQX fqx = (fQX) objArr[1];
int i = 2 % 2;
int i2 = Y + 123;
int i3 = i2 % 128;
aa = i3;
int i4 = i2 % 2;
faceCaptureActivity.s = fqx;
if (i4 != 0) {
int i5 = 88 / 0;
}
int i6 = i3 + 75;
Y = i6 % 128;
int i7 = i6 % 2;
return fqx;
}
static void e() {
T = new char[]{16147, 16128, 16150, 16132, 16129, 16139, 16320, 16133, 16354, 16149, 16151, 16148, 16376, 16326, 16379, 16327, 16324, 16377, 16323, 16325, 16322, 16378, 16136};
U = 1934311346;
V = true;
Z = true;
ab = new char[]{19369, 36996, 64995, 55814, 10052, 36787, 21637, 14788, 7691, 58201, 51110, 44256, 29043, 22139, 15011, 8088, 58511, 51519, 44628, 29368, 22508, 15412, 370, 58788, 51856, 45042, 29719, 22854, 15784, 747, 59175, 59985, 12670, 23602, 31723, 34483, 41537, 51472, 5372, 13194, 24387, 31332, 33064, 44285, 52150, 5976, 12812, 22989, 25749, 36835, 21724, 14740, 7707, 58117, 51116, 44258, 28988, 22136, 15082, 8154, 58560, 51533, 44629, 29439, 22461, 15392, 296, 58850, 51921, 44949, 29771, 22869, 15860, 748, 59253, 52347, 37092, 30093, 23198, 16152, 1028, 59587, 52670, 37496, 30504, 23472, 8330, 1478, 59935, 53000, 37831, 30897, 23924, 8829, 1775, 60297, 45201, 36787, 21715, 14736, 7754, 58199, 51196, 44257, 28984, 22056, 15082, 8155, 58564, 51484, 44547, 29436, 22461, 15395, 377, 58806, 51929, 44951, 29775, 22787, 15871, 745, 59259, 52350, 37044, 30166, 23185, 16197, 1105, 59590, 52713, 37409, 30508, 23523, 8413, 1429, 59980, 53007, 37827, 30909, 23922, 8824, 1716, 60378, 45248, 38144, 31326, 24258, 9137, 2160, 60710, 45540, 38539, 31642, 16386, 9566, 2448, 61115, 45951, 39039, 31970, 36794, 21663, 14804, 7689, 58181, 51189, 44203, 29042, 22121, 15034, 8073, 58572, 51485, 44632, 29345, 22504, 15399, 361, 58803, 51840, 44999, 29715, 22870, 15788, 740, 59176, 52278, 37029, 30086, 23253, 16153, 1108, 59526, 52712, 37409, 30570, 23458, 8385, 1475, 59912, 53083, 37761, 30956, 23858, 8815, 1698, 60301, 45271, 38151, 31253, 24211, 9190, 2091, 60720, 45493, 38557, 31683, 16460, 9553, 2463, 61161, 45858, 39023, 31905, 16829, 9949, 2898, 53270, 46227, 39417, 32289, 17267, 10158, 3296, 65055, 9506, 18490, 28645, 37626, 46686, 56600, 197, 10143, 19277, 28272, 38252, 47284, 57266, 848, 9759, 19931, 28802, 37973, 47904, 56940, 1458, 10495, 19528, 29456, 38536, 48514, 57624, 1137, 11114, 20151, 30120, 39278, 48150, 58329, 1748};
ac = -4500095909487946517L;
}
@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 = aa + 77;
Y = i2 % 128;
int i3 = i2 % 2;
super.onStart();
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.location.LocationListener
public void onStatusChanged(String str, int i, Bundle bundle) {
int i2 = 2 % 2;
int i3 = Y + 37;
aa = i3 % 128;
if (i3 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onSaveInstanceState(Bundle bundle) {
int i = 2 % 2;
int i2 = Y + 79;
aa = i2 % 128;
int i3 = i2 % 2;
super.onSaveInstanceState(bundle);
IeS ieS = this.d;
if (ieS != null) {
int i4 = Y + 67;
aa = i4 % 128;
if (i4 % 2 != 0) {
bundle.putInt("currentScreen", ieS.ordinal());
Object obj = null;
obj.hashCode();
throw null;
}
bundle.putInt("currentScreen", ieS.ordinal());
int i5 = aa + 115;
Y = i5 % 128;
int i6 = i5 % 2;
}
}
@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 = aa + 61;
Y = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
aBS_(this.k);
super.onRequestPermissionsResult(i, strArr, iArr);
obj.hashCode();
throw null;
}
aBS_(this.k);
super.onRequestPermissionsResult(i, strArr, iArr);
int i4 = aa + 27;
Y = i4 % 128;
if (i4 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // android.location.LocationListener
public void onProviderEnabled(String str) {
int i = 2 % 2;
int i2 = Y + 57;
aa = i2 % 128;
int i3 = i2 % 2;
}
@Override // android.location.LocationListener
public void onProviderDisabled(String str) {
int i = 2 % 2;
int i2 = Y + 59;
aa = i2 % 128;
int i3 = i2 % 2;
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public void onDestroy() {
int i = 2 % 2;
int i2 = Y + 41;
aa = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
super.onDestroy();
try {
if (i3 != 0) {
unbindService(this.y);
obj.hashCode();
throw null;
}
unbindService(this.y);
int i4 = aa + 57;
Y = i4 % 128;
if (i4 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
} catch (Exception unused) {
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.activity.ComponentActivity, android.app.Activity, android.content.ComponentCallbacks
public void onConfigurationChanged(Configuration configuration) {
Sts sts;
int i = 2 % 2;
int i2 = Y + 93;
aa = i2 % 128;
int i3 = i2 % 2;
super.onConfigurationChanged(configuration);
int rotation = ((WindowManager) getSystemService("window")).getDefaultDisplay().getRotation();
if (i3 == 0 ? rotation == 1 : rotation == 1) {
sts = Sts.ORIENTATION_90;
} else if (rotation != 3) {
int i4 = aa + 95;
Y = i4 % 128;
if (i4 % 2 == 0) {
sts = Sts.ORIENTATION_0;
int i5 = 26 / 0;
} else {
sts = Sts.ORIENTATION_0;
}
} else {
sts = Sts.ORIENTATION_270;
}
c = sts;
}
@Override // android.app.Activity
public Intent getIntent() {
int i = 2 % 2;
int i2 = aa + 47;
Y = i2 % 128;
int i3 = i2 % 2;
Intent intent = super.getIntent();
int i4 = Y + 43;
aa = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 70 / 0;
}
return intent;
}
@Override // o.InterfaceC13107fQu
public final void d() {
int i = 2 % 2;
int i2 = Y + 33;
aa = i2 % 128;
int i3 = i2 % 2;
this.f.putExtra("responseStatus", "error");
this.f.putExtra("errorCode", "1003");
this.f.putExtra("errorText", "Eye detect failed");
setResult(-1, this.f);
finish();
int i4 = Y + 29;
aa = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC13107fQu
public final void b() {
int i = 2 % 2;
int i2 = Y + 65;
aa = i2 % 128;
int i3 = i2 % 2;
this.f.putExtra("responseStatus", "error");
this.f.putExtra("errorCode", "1002");
this.f.putExtra("errorText", "Multiple face detected");
setResult(-1, this.f);
finish();
int i4 = Y + 47;
aa = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 87 / 0;
}
}
@Override // o.InterfaceC13107fQu
public final void c() {
int i = 2 % 2;
int i2 = Y + 35;
aa = i2 % 128;
int i3 = i2 % 2;
this.f.putExtra("responseStatus", "error");
this.f.putExtra("errorCode", "1001");
this.f.putExtra("errorText", "Unable to detect face");
setResult(-1, this.f);
finish();
int i4 = aa + 123;
Y = i4 % 128;
int i5 = i4 % 2;
}
public static void a() {
int i = 2 % 2;
int i2 = Y + 9;
aa = i2 % 128;
int i3 = i2 % 2;
fQP.b();
if (i3 != 0) {
throw null;
}
}
@Override // o.InterfaceC13104fQr
public final void e(int i) {
int i2 = 2 % 2;
int i3 = Y + 15;
aa = i3 % 128;
int i4 = i3 % 2;
this.x.add(Integer.valueOf(i));
int i5 = Y + 79;
aa = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
@Override // o.InterfaceC13104fQr
public final void aCi_(int i, Rect rect) {
int i2 = 2 % 2;
int i3 = Y + 75;
aa = i3 % 128;
int i4 = i3 % 2;
this.p = Integer.valueOf(i);
if (i4 == 0) {
this.u = rect;
} else {
this.u = rect;
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x001d, code lost:
if (r2 != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0018, code lost:
if (r2 != null) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x001f, code lost:
r1.setBaseUrl(r2);
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0027, code lost:
return new io.beid.beidk.services.TransactionService(r1);
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private io.beid.beidk.services.TransactionService f() {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
io.beid.beidk.BEIDConfigurationFactory r1 = io.beid.beidk.activity.FaceCaptureActivity.e
if (r1 == 0) goto L28
int r2 = io.beid.beidk.activity.FaceCaptureActivity.Y
int r2 = r2 + 85
int r3 = r2 % 128
io.beid.beidk.activity.FaceCaptureActivity.aa = r3
int r2 = r2 % r0
if (r2 == 0) goto L1b
java.lang.String r2 = r4.E
r3 = 35
int r3 = r3 / 0
if (r2 == 0) goto L28
goto L1f
L1b:
java.lang.String r2 = r4.E
if (r2 == 0) goto L28
L1f:
r1.setBaseUrl(r2)
io.beid.beidk.services.TransactionService r0 = new io.beid.beidk.services.TransactionService
r0.<init>(r1)
return r0
L28:
if (r1 == 0) goto L30
io.beid.beidk.services.TransactionService r0 = new io.beid.beidk.services.TransactionService
r0.<init>(r1)
return r0
L30:
java.lang.String r1 = r4.E
if (r1 == 0) goto L3a
io.beid.beidk.services.TransactionService r0 = new io.beid.beidk.services.TransactionService
r0.<init>(r1)
return r0
L3a:
io.beid.beidk.services.TransactionService r1 = new io.beid.beidk.services.TransactionService
java.lang.String r2 = "http://api.beid.io"
r1.<init>(r2)
int r2 = io.beid.beidk.activity.FaceCaptureActivity.Y
int r2 = r2 + 35
int r3 = r2 % 128
io.beid.beidk.activity.FaceCaptureActivity.aa = r3
int r2 = r2 % r0
if (r2 == 0) goto L50
r0 = 16
int r0 = r0 / 0
L50:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: io.beid.beidk.activity.FaceCaptureActivity.f():io.beid.beidk.services.TransactionService");
}
private void d(int i) throws IOException {
int i2 = 2 % 2;
int i3 = Y + 13;
aa = i3 % 128;
int i4 = i3 % 2;
if (i == 0) {
this.f.putExtra("responseStatus", "error");
this.f.putExtra("errorCode", LivenessStatus.ERROR_UNKNOW);
this.f.putExtra("errorText", "Liveness failed");
setResult(-1, this.f);
finish();
return;
}
if (this.x.size() < this.r.intValue()) {
this.f.putExtra("responseStatus", "error");
this.f.putExtra("errorCode", "1004");
this.f.putExtra("errorText", "Liveness failed");
setResult(-1, this.f);
finish();
return;
}
LinkedList linkedList = new LinkedList(this.x);
this.f.putExtra("livenessImageSize", this.x.size());
e(new Object[]{this, linkedList, new Runnable(this) { // from class: io.beid.beidk.activity.FaceCaptureActivity.2
private FaceCaptureActivity a;
@Override // java.lang.Runnable
public final void run() {
try {
FaceCaptureActivity.d(this.a);
} catch (Exception unused) {
}
}
{
this.a = this;
}
}}, -1669075077, 1669075078, System.identityHashCode(this));
int i5 = Y + 15;
aa = i5 % 128;
int i6 = i5 % 2;
}
private void c(Queue<Integer> queue, Runnable runnable) throws IOException {
e(new Object[]{this, queue, runnable}, -1669075077, 1669075078, System.identityHashCode(this));
}
static /* synthetic */ void a(FaceCaptureActivity faceCaptureActivity) throws IOException {
int i = 2 % 2;
int i2 = Y + 11;
aa = i2 % 128;
int i3 = i2 % 2;
faceCaptureActivity.d(-1);
if (i3 != 0) {
int i4 = 48 / 0;
}
int i5 = Y + 87;
aa = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 42 / 0;
}
}
static /* synthetic */ fQX a(FaceCaptureActivity faceCaptureActivity, fQX fqx) {
return (fQX) e(new Object[]{faceCaptureActivity, fqx}, 1506281329, -1506281329, (int) System.currentTimeMillis());
}
static {
Y = 1;
e();
c = Sts.ORIENTATION_0;
int i = aa + 123;
Y = i % 128;
if (i % 2 == 0) {
int i2 = 50 / 0;
}
}
}