447 lines
17 KiB
Java
447 lines
17 KiB
Java
package com.facetec.sdk;
|
|
|
|
import android.graphics.PointF;
|
|
import android.media.AudioTrack;
|
|
import android.os.Process;
|
|
import android.text.TextUtils;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import java.lang.reflect.Method;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class u {
|
|
List<List<Integer>> a = new ArrayList();
|
|
int c = 0;
|
|
int e = 0;
|
|
x d = x.NOT_RAN;
|
|
x b = x.NOT_RAN;
|
|
x j = x.NOT_RAN;
|
|
|
|
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
|
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
|
/* loaded from: classes.dex */
|
|
static final class b {
|
|
private static final byte[] $$a = null;
|
|
private static final int $$b = 0;
|
|
private static int $10;
|
|
private static int $11;
|
|
public static final b a;
|
|
public static final b b;
|
|
public static final b c;
|
|
public static final b d;
|
|
public static final b e;
|
|
private static final b[] f;
|
|
public static final b g;
|
|
private static int h;
|
|
private static char[] i;
|
|
private static int n;
|
|
final String j;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0028 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0020 */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0028 -> B:4:0x002a). 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 l(short r6, int r7, short r8, java.lang.Object[] r9) {
|
|
/*
|
|
int r7 = r7 * 3
|
|
int r6 = r6 << 2
|
|
int r6 = r6 + 4
|
|
byte[] r0 = com.facetec.sdk.u.b.$$a
|
|
int r1 = r7 + 1
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
if (r0 != 0) goto L13
|
|
r8 = r6
|
|
r3 = r7
|
|
r4 = r2
|
|
goto L2a
|
|
L13:
|
|
int r8 = 104 - r8
|
|
r3 = r2
|
|
r5 = r8
|
|
r8 = r6
|
|
r6 = r5
|
|
L19:
|
|
byte r4 = (byte) r6
|
|
r1[r3] = r4
|
|
int r4 = r3 + 1
|
|
if (r3 != r7) goto L28
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L28:
|
|
r3 = r0[r8]
|
|
L2a:
|
|
int r6 = r6 - r3
|
|
int r8 = r8 + 1
|
|
r3 = r4
|
|
goto L19
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.u.b.l(short, int, short, java.lang.Object[]):void");
|
|
}
|
|
|
|
private static /* synthetic */ b[] a() {
|
|
int i2 = h;
|
|
n = (i2 + 97) % 128;
|
|
b[] bVarArr = {e, d, b, c, a, g};
|
|
n = (i2 + 23) % 128;
|
|
return bVarArr;
|
|
}
|
|
|
|
public static b valueOf(String str) {
|
|
int i2 = h + 49;
|
|
n = i2 % 128;
|
|
b bVar = (b) Enum.valueOf(b.class, str);
|
|
if (i2 % 2 == 0) {
|
|
throw new ArithmeticException();
|
|
}
|
|
int i3 = n + 43;
|
|
h = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
return bVar;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
public static b[] values() {
|
|
int i2 = h + 9;
|
|
n = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
return (b[]) f.clone();
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
static {
|
|
init$0();
|
|
$10 = 0;
|
|
$11 = 1;
|
|
h = 0;
|
|
n = 1;
|
|
d();
|
|
Object[] objArr = new Object[1];
|
|
k(true, new int[]{0, 2, 0, 0}, "\u0001\u0001", objArr);
|
|
e = new b("HASH_SET", 0, ((String) objArr[0]).intern());
|
|
d = new b("SIZE", 1, "s");
|
|
b = new b("SESSION_COUNT", 2, "sc");
|
|
c = new b("INTRA_SESSION_LOOP_DETECTION_LEVEL", 3, "l1");
|
|
a = new b("INTRA_FACETEC_SESSION_LOOP_DETECTION_LEVEL", 4, "l2");
|
|
g = new b("INTER_FACETEC_SESSION_LOOP_DETECTION_LEVEL", 5, "l3");
|
|
f = a();
|
|
int i2 = n + 31;
|
|
h = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
}
|
|
|
|
private b(String str, int i2, String str2) {
|
|
this.j = str2;
|
|
}
|
|
|
|
private static void k(boolean z, int[] iArr, String str, Object[] objArr) {
|
|
char[] cArr;
|
|
int i2;
|
|
String str2 = str;
|
|
int i3 = $11;
|
|
$10 = (i3 + 81) % 128;
|
|
byte[] bArr = str2;
|
|
if (str2 != null) {
|
|
int i4 = i3 + 59;
|
|
$10 = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
bArr = str2.getBytes(LocalizedMessage.DEFAULT_ENCODING);
|
|
}
|
|
byte[] bArr2 = bArr;
|
|
gp gpVar = new gp();
|
|
char c2 = 0;
|
|
int i5 = iArr[0];
|
|
int i6 = 1;
|
|
int i7 = iArr[1];
|
|
int i8 = iArr[2];
|
|
int i9 = iArr[3];
|
|
char[] cArr2 = i;
|
|
if (cArr2 != null) {
|
|
$11 = ($10 + 13) % 128;
|
|
int length = cArr2.length;
|
|
char[] cArr3 = new char[length];
|
|
int i10 = 0;
|
|
while (i10 < length) {
|
|
try {
|
|
Object[] objArr2 = new Object[i6];
|
|
objArr2[c2] = Integer.valueOf(cArr2[i10]);
|
|
Object obj = bo.s.get(-344240863);
|
|
if (obj == null) {
|
|
Class cls = (Class) bo.e(988 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (char) (ViewConfiguration.getDoubleTapTimeout() >> 16), TextUtils.getTrimmedLength("") + 32);
|
|
byte[] bArr3 = $$a;
|
|
byte b2 = (byte) (bArr3[c2] - 1);
|
|
cArr = cArr2;
|
|
i2 = length;
|
|
Object[] objArr3 = new Object[1];
|
|
l(b2, b2, (byte) bArr3.length, objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
|
bo.s.put(-344240863, obj);
|
|
} else {
|
|
cArr = cArr2;
|
|
i2 = length;
|
|
}
|
|
cArr3[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
i10++;
|
|
cArr2 = cArr;
|
|
length = i2;
|
|
c2 = 0;
|
|
i6 = 1;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
cArr2 = cArr3;
|
|
}
|
|
char[] cArr4 = new char[i7];
|
|
System.arraycopy(cArr2, i5, cArr4, 0, i7);
|
|
if (bArr2 != null) {
|
|
char[] cArr5 = new char[i7];
|
|
gpVar.a = 0;
|
|
$11 = ($10 + 35) % 128;
|
|
char c3 = 0;
|
|
while (gpVar.a < i7) {
|
|
if (bArr2[gpVar.a] == 1) {
|
|
int i11 = gpVar.a;
|
|
try {
|
|
Object[] objArr4 = {Integer.valueOf(cArr4[gpVar.a]), Integer.valueOf(c3)};
|
|
Object obj2 = bo.s.get(69282466);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) bo.e(1570 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), (char) (11060 - (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))), 24 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)));
|
|
byte b3 = (byte) ($$a[0] - 1);
|
|
byte b4 = b3;
|
|
Object[] objArr5 = new Object[1];
|
|
l(b3, b4, (byte) (b4 | 7), objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE);
|
|
bo.s.put(69282466, obj2);
|
|
}
|
|
cArr5[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
|
} catch (Throwable th2) {
|
|
Throwable cause2 = th2.getCause();
|
|
if (cause2 == null) {
|
|
throw th2;
|
|
}
|
|
throw cause2;
|
|
}
|
|
} else {
|
|
int i12 = gpVar.a;
|
|
try {
|
|
Object[] objArr6 = {Integer.valueOf(cArr4[gpVar.a]), Integer.valueOf(c3)};
|
|
Object obj3 = bo.s.get(-1063034112);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) bo.e(1877 - TextUtils.getOffsetBefore("", 0), (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 23951), 23 - View.MeasureSpec.getSize(0))).getMethod("g", Integer.TYPE, Integer.TYPE);
|
|
bo.s.put(-1063034112, obj3);
|
|
}
|
|
cArr5[i12] = ((Character) ((Method) obj3).invoke(null, objArr6)).charValue();
|
|
$11 = ($10 + 103) % 128;
|
|
} catch (Throwable th3) {
|
|
Throwable cause3 = th3.getCause();
|
|
if (cause3 == null) {
|
|
throw th3;
|
|
}
|
|
throw cause3;
|
|
}
|
|
}
|
|
c3 = cArr5[gpVar.a];
|
|
try {
|
|
Object[] objArr7 = {gpVar, gpVar};
|
|
Object obj4 = bo.s.get(1322201006);
|
|
if (obj4 == null) {
|
|
Class cls3 = (Class) bo.e((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 733, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)), 32 - (KeyEvent.getMaxKeyCode() >> 16));
|
|
byte b5 = (byte) ($$a[0] - 1);
|
|
byte b6 = b5;
|
|
Object[] objArr8 = new Object[1];
|
|
l(b5, b6, b6, objArr8);
|
|
obj4 = cls3.getMethod((String) objArr8[0], Object.class, Object.class);
|
|
bo.s.put(1322201006, obj4);
|
|
}
|
|
((Method) obj4).invoke(null, objArr7);
|
|
} catch (Throwable th4) {
|
|
Throwable cause4 = th4.getCause();
|
|
if (cause4 == null) {
|
|
throw th4;
|
|
}
|
|
throw cause4;
|
|
}
|
|
}
|
|
cArr4 = cArr5;
|
|
}
|
|
if (i9 > 0) {
|
|
char[] cArr6 = new char[i7];
|
|
System.arraycopy(cArr4, 0, cArr6, 0, i7);
|
|
int i13 = i7 - i9;
|
|
System.arraycopy(cArr6, 0, cArr4, i13, i9);
|
|
System.arraycopy(cArr6, i9, cArr4, 0, i13);
|
|
}
|
|
if (z) {
|
|
char[] cArr7 = new char[i7];
|
|
int i14 = 0;
|
|
while (true) {
|
|
gpVar.a = i14;
|
|
if (gpVar.a >= i7) {
|
|
break;
|
|
}
|
|
cArr7[gpVar.a] = cArr4[(i7 - gpVar.a) - 1];
|
|
i14 = gpVar.a + 1;
|
|
}
|
|
cArr4 = cArr7;
|
|
}
|
|
if (i8 > 0) {
|
|
$10 = ($11 + 65) % 128;
|
|
int i15 = 0;
|
|
while (true) {
|
|
gpVar.a = i15;
|
|
if (gpVar.a >= i7) {
|
|
break;
|
|
}
|
|
cArr4[gpVar.a] = (char) (cArr4[gpVar.a] - iArr[2]);
|
|
i15 = gpVar.a + 1;
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr4);
|
|
}
|
|
|
|
static void init$0() {
|
|
$$a = new byte[]{1, 15, ISOFileInfo.A5, ISO7816.INS_READ_BINARY2};
|
|
$$b = 237;
|
|
}
|
|
|
|
static void d() {
|
|
i = new char[]{38663, 38739};
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final JSONObject d() {
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
for (b bVar : b.values()) {
|
|
switch (AnonymousClass5.a[bVar.ordinal()]) {
|
|
case 1:
|
|
jSONObject.put(bVar.j, new JSONArray((Collection) this.a));
|
|
break;
|
|
case 2:
|
|
jSONObject.put(bVar.j, this.c);
|
|
break;
|
|
case 3:
|
|
jSONObject.put(bVar.j, this.e);
|
|
break;
|
|
case 4:
|
|
jSONObject.put(bVar.j, this.d.b);
|
|
break;
|
|
case 5:
|
|
jSONObject.put(bVar.j, this.b.b);
|
|
break;
|
|
case 6:
|
|
jSONObject.put(bVar.j, this.j.b);
|
|
break;
|
|
}
|
|
}
|
|
} catch (JSONException unused) {
|
|
}
|
|
return jSONObject;
|
|
}
|
|
|
|
/* renamed from: com.facetec.sdk.u$5, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
static final /* synthetic */ class AnonymousClass5 {
|
|
static final int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[b.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[b.e.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[b.d.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
a[b.b.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
a[b.c.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
try {
|
|
a[b.a.ordinal()] = 5;
|
|
} catch (NoSuchFieldError unused5) {
|
|
}
|
|
try {
|
|
a[b.g.ordinal()] = 6;
|
|
} catch (NoSuchFieldError unused6) {
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static u a(String str) {
|
|
u uVar = new u();
|
|
try {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
JSONArray jSONArray = jSONObject.getJSONArray(b.e.j);
|
|
ArrayList arrayList = new ArrayList();
|
|
for (int i = 0; i < jSONArray.length(); i++) {
|
|
JSONArray jSONArray2 = jSONArray.getJSONArray(i);
|
|
ArrayList arrayList2 = new ArrayList();
|
|
for (int i2 = 0; i2 < jSONArray2.length(); i2++) {
|
|
arrayList2.add(Integer.valueOf(jSONArray2.getInt(i2)));
|
|
}
|
|
arrayList.add(arrayList2);
|
|
}
|
|
for (b bVar : b.values()) {
|
|
switch (AnonymousClass5.a[bVar.ordinal()]) {
|
|
case 1:
|
|
uVar.a = arrayList;
|
|
break;
|
|
case 2:
|
|
uVar.c = jSONObject.getInt(bVar.j);
|
|
break;
|
|
case 3:
|
|
uVar.e = jSONObject.getInt(bVar.j);
|
|
break;
|
|
case 4:
|
|
uVar.d = x.a(jSONObject.getInt(bVar.j));
|
|
break;
|
|
case 5:
|
|
uVar.b = x.a(jSONObject.getInt(bVar.j));
|
|
break;
|
|
case 6:
|
|
uVar.j = x.a(jSONObject.getInt(bVar.j));
|
|
break;
|
|
}
|
|
}
|
|
} catch (Exception unused) {
|
|
}
|
|
return uVar;
|
|
}
|
|
}
|