283 lines
11 KiB
Java
283 lines
11 KiB
Java
package com.facetec.sdk;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Color;
|
|
import android.media.AudioTrack;
|
|
import android.os.Process;
|
|
import android.text.TextUtils;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import java.lang.reflect.Method;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class k {
|
|
private static final byte[] $$a = null;
|
|
private static final int $$b = 0;
|
|
private static int $10;
|
|
private static int $11;
|
|
private static long a;
|
|
private static int b;
|
|
private static int c;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x0028). 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 f(int r6, short r7, int r8, java.lang.Object[] r9) {
|
|
/*
|
|
int r8 = r8 * 3
|
|
int r8 = r8 + 108
|
|
int r6 = r6 << 1
|
|
int r6 = r6 + 1
|
|
byte[] r0 = com.facetec.sdk.k.$$a
|
|
int r7 = r7 << 2
|
|
int r7 = r7 + 4
|
|
byte[] r1 = new byte[r6]
|
|
r2 = 0
|
|
if (r0 != 0) goto L16
|
|
r3 = r6
|
|
r5 = r2
|
|
goto L28
|
|
L16:
|
|
r3 = r2
|
|
L17:
|
|
byte r4 = (byte) r8
|
|
int r5 = r3 + 1
|
|
r1[r3] = r4
|
|
if (r5 != r6) goto L26
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L26:
|
|
r3 = r0[r7]
|
|
L28:
|
|
int r3 = -r3
|
|
int r8 = r8 + r3
|
|
int r7 = r7 + 1
|
|
r3 = r5
|
|
goto L17
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.k.f(int, short, int, java.lang.Object[]):void");
|
|
}
|
|
|
|
k() {
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static void a(Throwable th) {
|
|
Method b2;
|
|
boolean z = false;
|
|
if (bf.c((Context) null) != null) {
|
|
e("荙\ue6b6䢑늽ᓐ縴\ue00b䩪걖ឤ禇\ue3d5", View.MeasureSpec.makeMeasureSpec(0, 0) + 26083, new Object[1]);
|
|
if (!(!r1.startsWith(((String) r5[0]).intern()))) {
|
|
c = (b + 107) % 128;
|
|
z = true;
|
|
}
|
|
}
|
|
if (!(!z) && (b2 = b()) != null) {
|
|
b = (c + 125) % 128;
|
|
try {
|
|
b2.invoke(null, th);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
int i = c + 69;
|
|
b = i % 128;
|
|
if (i % 2 == 0) {
|
|
throw new ArithmeticException();
|
|
}
|
|
}
|
|
|
|
private static Method b() {
|
|
c = (b + 51) % 128;
|
|
try {
|
|
Object[] objArr = new Object[1];
|
|
e("荙醨ꚭ믣좭\uddb9\uf2b5ޢᒺ⦳㺡厑悏疀誟鿇겋솙횔\ueb8f\uf891ඒ⋠㞯䓁姽滩菦郾ꗿ뫥쿭\udcf3\uf1c4ۓ", 4861 - (ViewConfiguration.getTapTimeout() >> 16), objArr);
|
|
Class<?> cls = Class.forName(((String) objArr[0]).intern());
|
|
Object[] objArr2 = new Object[1];
|
|
e("荖焊柣呢䨾㢂ⵥ⏓ᆶ\u0604\uf4e3\ue941", View.getDefaultSize(0, 0) + 62047, objArr2);
|
|
Method method = cls.getMethod(((String) objArr2[0]).intern(), Throwable.class);
|
|
b = (c + 37) % 128;
|
|
return method;
|
|
} catch (ClassNotFoundException | NoSuchMethodException unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
private static void e(String str, int i, Object[] objArr) {
|
|
char[] cArr;
|
|
int i2 = $11;
|
|
int i3 = i2 + 31;
|
|
$10 = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
if (str != null) {
|
|
int i4 = i2 + 109;
|
|
$10 = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
cArr = str.toCharArray();
|
|
} else {
|
|
cArr = str;
|
|
}
|
|
char[] cArr2 = cArr;
|
|
gl glVar = new gl();
|
|
glVar.a = i;
|
|
int length = cArr2.length;
|
|
long[] jArr = new long[length];
|
|
glVar.d = 0;
|
|
while (glVar.d < cArr2.length) {
|
|
int i5 = $10 + 71;
|
|
$11 = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
int i6 = glVar.d;
|
|
try {
|
|
Object[] objArr2 = {Integer.valueOf(cArr2[glVar.d]), glVar, glVar};
|
|
Object obj = bo.s.get(1148652602);
|
|
if (obj == null) {
|
|
obj = ((Class) bo.e((Process.myPid() >> 22) + 100, (char) (ViewConfiguration.getTouchSlop() >> 8), TextUtils.indexOf((CharSequence) "", '0', 0) + 24)).getMethod("m", Integer.TYPE, Object.class, Object.class);
|
|
bo.s.put(1148652602, obj);
|
|
}
|
|
jArr[i6] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() & (a % 7407976259645312022L);
|
|
try {
|
|
Object[] objArr3 = {glVar, glVar};
|
|
Object obj2 = bo.s.get(-1890124950);
|
|
if (obj2 == null) {
|
|
Class cls = (Class) bo.e((ViewConfiguration.getFadingEdgeLength() >> 16) + 766, (char) View.resolveSizeAndState(0, 0, 0), 32 - (ViewConfiguration.getMaximumFlingVelocity() >> 16));
|
|
Object[] objArr4 = new Object[1];
|
|
f(0, (short) 0, 0, objArr4);
|
|
obj2 = cls.getMethod((String) objArr4[0], Object.class, Object.class);
|
|
bo.s.put(-1890124950, obj2);
|
|
}
|
|
((Method) obj2).invoke(null, objArr3);
|
|
} 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;
|
|
}
|
|
} else {
|
|
int i7 = glVar.d;
|
|
try {
|
|
Object[] objArr5 = {Integer.valueOf(cArr2[glVar.d]), glVar, glVar};
|
|
Object obj3 = bo.s.get(1148652602);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) bo.e(View.resolveSizeAndState(0, 0, 0) + 100, (char) TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 22)).getMethod("m", Integer.TYPE, Object.class, Object.class);
|
|
bo.s.put(1148652602, obj3);
|
|
}
|
|
jArr[i7] = ((Long) ((Method) obj3).invoke(null, objArr5)).longValue() ^ (a ^ 7407976259645312022L);
|
|
try {
|
|
Object[] objArr6 = {glVar, glVar};
|
|
Object obj4 = bo.s.get(-1890124950);
|
|
if (obj4 == null) {
|
|
Class cls2 = (Class) bo.e(TextUtils.lastIndexOf("", '0') + 767, (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), View.resolveSizeAndState(0, 0, 0) + 32);
|
|
Object[] objArr7 = new Object[1];
|
|
f(0, (short) 0, 0, objArr7);
|
|
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
|
|
bo.s.put(-1890124950, obj4);
|
|
}
|
|
((Method) obj4).invoke(null, objArr6);
|
|
} catch (Throwable th3) {
|
|
Throwable cause3 = th3.getCause();
|
|
if (cause3 == null) {
|
|
throw th3;
|
|
}
|
|
throw cause3;
|
|
}
|
|
} catch (Throwable th4) {
|
|
Throwable cause4 = th4.getCause();
|
|
if (cause4 == null) {
|
|
throw th4;
|
|
}
|
|
throw cause4;
|
|
}
|
|
}
|
|
}
|
|
char[] cArr3 = new char[length];
|
|
glVar.d = 0;
|
|
while (glVar.d < cArr2.length) {
|
|
int i8 = $11 + 31;
|
|
$10 = i8 % 128;
|
|
if (i8 % 2 != 0) {
|
|
cArr3[glVar.d] = (char) jArr[glVar.d];
|
|
try {
|
|
Object[] objArr8 = {glVar, glVar};
|
|
Object obj5 = bo.s.get(-1890124950);
|
|
if (obj5 == null) {
|
|
Class cls3 = (Class) bo.e((ViewConfiguration.getScrollBarSize() >> 8) + 766, (char) (ViewConfiguration.getJumpTapTimeout() >> 16), 32 - (ViewConfiguration.getMinimumFlingVelocity() >> 16));
|
|
Object[] objArr9 = new Object[1];
|
|
f(0, (short) 0, 0, objArr9);
|
|
obj5 = cls3.getMethod((String) objArr9[0], Object.class, Object.class);
|
|
bo.s.put(-1890124950, obj5);
|
|
}
|
|
((Method) obj5).invoke(null, objArr8);
|
|
throw null;
|
|
} catch (Throwable th5) {
|
|
Throwable cause5 = th5.getCause();
|
|
if (cause5 == null) {
|
|
throw th5;
|
|
}
|
|
throw cause5;
|
|
}
|
|
}
|
|
cArr3[glVar.d] = (char) jArr[glVar.d];
|
|
try {
|
|
Object[] objArr10 = {glVar, glVar};
|
|
Object obj6 = bo.s.get(-1890124950);
|
|
if (obj6 == null) {
|
|
Class cls4 = (Class) bo.e(766 - View.resolveSizeAndState(0, 0, 0), (char) TextUtils.indexOf("", ""), Color.blue(0) + 32);
|
|
Object[] objArr11 = new Object[1];
|
|
f(0, (short) 0, 0, objArr11);
|
|
obj6 = cls4.getMethod((String) objArr11[0], Object.class, Object.class);
|
|
bo.s.put(-1890124950, obj6);
|
|
}
|
|
((Method) obj6).invoke(null, objArr10);
|
|
} catch (Throwable th6) {
|
|
Throwable cause6 = th6.getCause();
|
|
if (cause6 == null) {
|
|
throw th6;
|
|
}
|
|
throw cause6;
|
|
}
|
|
}
|
|
String str2 = new String(cArr3);
|
|
int i9 = $10 + 37;
|
|
$11 = i9 % 128;
|
|
if (i9 % 2 == 0) {
|
|
throw null;
|
|
}
|
|
objArr[0] = str2;
|
|
}
|
|
|
|
static void init$0() {
|
|
$$a = new byte[]{96, ISO7816.INS_DECREASE_STAMPED, 103, ISO7816.INS_DELETE_FILE};
|
|
$$b = 61;
|
|
}
|
|
|
|
static {
|
|
init$0();
|
|
$10 = 0;
|
|
$11 = 1;
|
|
c = 0;
|
|
b = 1;
|
|
a = 7355946164337250092L;
|
|
}
|
|
}
|