490 lines
16 KiB
Java
490 lines
16 KiB
Java
package o;
|
|
|
|
import android.graphics.Color;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import android.view.KeyEvent;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import java.lang.reflect.Method;
|
|
import java.text.MessageFormat;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
|
import o.ZI;
|
|
|
|
/* renamed from: o.czZ, reason: case insensitive filesystem */
|
|
/* loaded from: classes4.dex */
|
|
public final class C8032czZ extends ZI<InterfaceC9599dml> {
|
|
private final String a;
|
|
private HBt b;
|
|
private String c;
|
|
private String d;
|
|
private final C16861rsX e;
|
|
private final CQ h;
|
|
private static final byte[] $$a = {54, 41, ISO7816.INS_GET_RESPONSE, 43};
|
|
private static final int $$b = 198;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private static int f8675o = 0;
|
|
private static int n = 1;
|
|
private static char[] g = {16336};
|
|
private static int i = 1934311311;
|
|
private static boolean m = true;
|
|
private static boolean k = true;
|
|
|
|
/* renamed from: o.czZ$HBt */
|
|
/* loaded from: classes4.dex */
|
|
public enum HBt {
|
|
EASYAPP,
|
|
ADD_DEVICE,
|
|
PIN,
|
|
FORGOTPIN
|
|
}
|
|
|
|
public static /* synthetic */ Object b(Object[] objArr, int i2, int i3, int i4) {
|
|
int i5 = ~i2;
|
|
int i6 = ~i3;
|
|
int i7 = ~(i5 | i6);
|
|
return ((((i2 * (-575)) + (i3 * (-575))) + (((~(i6 | i4)) | i7) * 576)) + (((~(i2 | ((~i4) | i6))) | (~(i3 | i5))) * 576)) + (i7 * 576) != 1 ? e(objArr) : a(objArr);
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> 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 p(short r7, byte r8, int r9, java.lang.Object[] r10) {
|
|
/*
|
|
int r8 = r8 * 3
|
|
int r8 = r8 + 1
|
|
int r7 = r7 * 57
|
|
int r7 = r7 + 65
|
|
int r9 = r9 * 2
|
|
int r9 = 4 - r9
|
|
byte[] r0 = o.C8032czZ.$$a
|
|
byte[] r1 = new byte[r8]
|
|
r2 = 0
|
|
if (r0 != 0) goto L17
|
|
r7 = r8
|
|
r3 = r9
|
|
r5 = r2
|
|
goto L2c
|
|
L17:
|
|
r3 = r2
|
|
L18:
|
|
byte r4 = (byte) r7
|
|
int r5 = r3 + 1
|
|
r1[r3] = r4
|
|
if (r5 != r8) goto L27
|
|
java.lang.String r7 = new java.lang.String
|
|
r7.<init>(r1, r2)
|
|
r10[r2] = r7
|
|
return
|
|
L27:
|
|
r3 = r0[r9]
|
|
r6 = r3
|
|
r3 = r9
|
|
r9 = r6
|
|
L2c:
|
|
int r9 = -r9
|
|
int r7 = r7 + r9
|
|
int r9 = r3 + 1
|
|
r3 = r5
|
|
goto L18
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C8032czZ.p(short, byte, int, java.lang.Object[]):void");
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C8032czZ(C16861rsX c16861rsX, CQ cq, C16903sI c16903sI) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c16861rsX, "");
|
|
C14957gcv.e(cq, "");
|
|
C14957gcv.e(c16903sI, "");
|
|
this.e = c16861rsX;
|
|
this.h = cq;
|
|
Object[] objArr = new Object[1];
|
|
l(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 126, objArr);
|
|
this.a = ((String) objArr[0]).intern();
|
|
this.d = "main_easy_";
|
|
this.c = "";
|
|
this.b = HBt.EASYAPP;
|
|
}
|
|
|
|
public final void b(String str, HBt hBt) {
|
|
int i2 = 2 % 2;
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(hBt, "");
|
|
this.b = hBt;
|
|
this.c = str;
|
|
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cAf
|
|
private C8032czZ d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C8032czZ.b(this.d, (InterfaceC9599dml) obj);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
int i3 = n + 65;
|
|
f8675o = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
ieS.e(this.f);
|
|
int i5 = n + 25;
|
|
f8675o = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
}
|
|
}
|
|
|
|
private static final void e(C8032czZ c8032czZ, InterfaceC9599dml interfaceC9599dml) {
|
|
int i2 = 2 % 2;
|
|
int i3 = n + 21;
|
|
f8675o = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
C14957gcv.e(c8032czZ, "");
|
|
interfaceC9599dml.a(CQ.d(c8032czZ.h, null, c8032czZ.d, null, null, true, false, false, null, null, null, 0, 1992));
|
|
int i5 = n + 95;
|
|
f8675o = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
}
|
|
|
|
public final void b() {
|
|
int i2 = 2 % 2;
|
|
int i3 = f8675o + 15;
|
|
n = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
String format = MessageFormat.format("FastEasyRegisteration_{0}", C2974aoj.b(this.c));
|
|
C16861rsX c16861rsX = this.e;
|
|
c16861rsX.e.c(this.a);
|
|
C14957gcv.c((Object) format, "");
|
|
e(format);
|
|
int i5 = f8675o + 123;
|
|
n = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
return;
|
|
}
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
private final void e(final String str) {
|
|
int i2 = 2 % 2;
|
|
ZI.IeS ieS = new ZI.IeS(this, str) { // from class: o.cAg
|
|
private String c;
|
|
private C8032czZ e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C8032czZ.e(this.e, this.c, (InterfaceC9599dml) obj);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
this.c = str;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
int i3 = f8675o;
|
|
int i4 = i3 + 27;
|
|
n = i4 % 128;
|
|
boolean z = i4 % 2 != 0;
|
|
int i5 = i3 + 93;
|
|
n = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
if (!z) {
|
|
return;
|
|
}
|
|
ieS.e(this.f);
|
|
}
|
|
}
|
|
|
|
private static final void c(C8032czZ c8032czZ, String str, InterfaceC9599dml interfaceC9599dml) {
|
|
int i2 = 2 % 2;
|
|
C14957gcv.e(c8032czZ, "");
|
|
C14957gcv.e(str, "");
|
|
interfaceC9599dml.ar_();
|
|
int i3 = LWm.e[c8032czZ.b.ordinal()];
|
|
if (i3 != 1) {
|
|
int i4 = f8675o;
|
|
int i5 = i4 + 123;
|
|
n = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
if (i3 != 2) {
|
|
int i7 = i4 + 43;
|
|
n = i7 % 128;
|
|
if (i7 % 2 != 0 ? i3 != 3 : i3 != 4) {
|
|
if (i3 == 4) {
|
|
int i8 = i4 + 53;
|
|
n = i8 % 128;
|
|
if (i8 % 2 != 0) {
|
|
interfaceC9599dml.b();
|
|
return;
|
|
} else {
|
|
interfaceC9599dml.b();
|
|
int i9 = 97 / 0;
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
interfaceC9599dml.r_(str);
|
|
}
|
|
|
|
private static /* synthetic */ Object e(Object[] objArr) {
|
|
InterfaceC9599dml interfaceC9599dml = (InterfaceC9599dml) objArr[0];
|
|
int i2 = 2 % 2;
|
|
int i3 = n + 113;
|
|
f8675o = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
Object obj = null;
|
|
interfaceC9599dml.a();
|
|
if (i4 != 0) {
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
int i5 = n + 75;
|
|
f8675o = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
int i6 = 64 / 0;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final void d() {
|
|
boolean z;
|
|
int i2 = 2 % 2;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAh
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C8032czZ.b(new Object[]{(InterfaceC9599dml) obj}, 1080385605, -1080385604, (int) System.currentTimeMillis());
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
int i3 = f8675o + 1;
|
|
n = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
if (!z) {
|
|
return;
|
|
}
|
|
int i5 = f8675o + 59;
|
|
n = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
ieS.e(this.f);
|
|
}
|
|
|
|
private static void l(char[] cArr, byte[] bArr, int[] iArr, int i2, Object[] objArr) {
|
|
char[] cArr2;
|
|
int i3 = 2 % 2;
|
|
C3614bBe c3614bBe = new C3614bBe();
|
|
char[] cArr3 = g;
|
|
if (cArr3 != null) {
|
|
int length = cArr3.length;
|
|
char[] cArr4 = new char[length];
|
|
for (int i4 = 0; i4 < length; i4++) {
|
|
try {
|
|
Object[] objArr2 = {Integer.valueOf(cArr3[i4])};
|
|
Object obj = xzZ.y.get(-950481649);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 337, 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (ViewConfiguration.getPressedStateDuration() >> 16));
|
|
byte b = (byte) 0;
|
|
byte b2 = b;
|
|
Object[] objArr3 = new Object[1];
|
|
p(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();
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
cArr3 = cArr4;
|
|
}
|
|
Object[] objArr4 = {Integer.valueOf(i)};
|
|
Object obj2 = xzZ.y.get(-1521625011);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 284, 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) (39813 - (ViewConfiguration.getScrollDefaultDelay() >> 16)));
|
|
byte b3 = (byte) 1;
|
|
byte b4 = (byte) (b3 - 1);
|
|
Object[] objArr5 = new Object[1];
|
|
p(b3, b4, b4, objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
|
xzZ.y.put(-1521625011, obj2);
|
|
}
|
|
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
|
|
if (k) {
|
|
c3614bBe.c = bArr.length;
|
|
char[] cArr5 = new char[c3614bBe.c];
|
|
c3614bBe.a = 0;
|
|
int i5 = $11 + 99;
|
|
$10 = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
int i6 = 4 % 2;
|
|
}
|
|
while (c3614bBe.a < c3614bBe.c) {
|
|
cArr5[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i2] - intValue);
|
|
Object[] objArr6 = {c3614bBe, c3614bBe};
|
|
Object obj3 = xzZ.y.get(1779759091);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) xzZ.c((ViewConfiguration.getTouchSlop() >> 8) + 40, 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj3);
|
|
}
|
|
((Method) obj3).invoke(null, objArr6);
|
|
int i7 = $11 + 71;
|
|
$10 = i7 % 128;
|
|
if (i7 % 2 != 0) {
|
|
int i8 = 5 / 2;
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr5);
|
|
return;
|
|
}
|
|
if (!m) {
|
|
c3614bBe.c = iArr.length;
|
|
char[] cArr6 = new char[c3614bBe.c];
|
|
c3614bBe.a = 0;
|
|
while (c3614bBe.a < c3614bBe.c) {
|
|
int i9 = $11 + 125;
|
|
$10 = i9 % 128;
|
|
int i10 = i9 % 2;
|
|
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
|
c3614bBe.a++;
|
|
int i11 = $11 + 77;
|
|
$10 = i11 % 128;
|
|
int i12 = i11 % 2;
|
|
}
|
|
objArr[0] = new String(cArr6);
|
|
return;
|
|
}
|
|
int i13 = $11 + 55;
|
|
$10 = i13 % 128;
|
|
if (i13 % 2 != 0) {
|
|
c3614bBe.c = cArr.length;
|
|
cArr2 = new char[c3614bBe.c];
|
|
c3614bBe.a = 1;
|
|
} else {
|
|
c3614bBe.c = cArr.length;
|
|
cArr2 = new char[c3614bBe.c];
|
|
c3614bBe.a = 0;
|
|
}
|
|
while (c3614bBe.a < c3614bBe.c) {
|
|
int i14 = $11 + 11;
|
|
$10 = i14 % 128;
|
|
if (i14 % 2 != 0) {
|
|
cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c + 1) >> c3614bBe.a] % i2] + intValue);
|
|
Object[] objArr7 = {c3614bBe, c3614bBe};
|
|
Object obj4 = xzZ.y.get(1779759091);
|
|
if (obj4 == null) {
|
|
obj4 = ((Class) xzZ.c(40 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), 4 - Process.getGidForName(""), (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj4);
|
|
}
|
|
((Method) obj4).invoke(null, objArr7);
|
|
} else {
|
|
cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i2] - intValue);
|
|
Object[] objArr8 = {c3614bBe, c3614bBe};
|
|
Object obj5 = xzZ.y.get(1779759091);
|
|
if (obj5 == null) {
|
|
obj5 = ((Class) xzZ.c(Color.rgb(0, 0, 0) + 16777256, 4 - TextUtils.lastIndexOf("", '0'), (char) TextUtils.indexOf("", ""))).getMethod("D", Object.class, Object.class);
|
|
xzZ.y.put(1779759091, obj5);
|
|
}
|
|
((Method) obj5).invoke(null, objArr8);
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr2);
|
|
}
|
|
|
|
private static /* synthetic */ Object a(Object[] objArr) {
|
|
InterfaceC9599dml interfaceC9599dml = (InterfaceC9599dml) objArr[0];
|
|
int i2 = 2 % 2;
|
|
int i3 = n + 57;
|
|
f8675o = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
b(new Object[]{interfaceC9599dml}, 1782530574, -1782530574, (int) System.currentTimeMillis());
|
|
int i5 = f8675o + 117;
|
|
n = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
return null;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
private static final void a(InterfaceC9599dml interfaceC9599dml) {
|
|
b(new Object[]{interfaceC9599dml}, 1782530574, -1782530574, (int) System.currentTimeMillis());
|
|
}
|
|
|
|
public static /* synthetic */ void e(C8032czZ c8032czZ, String str, InterfaceC9599dml interfaceC9599dml) {
|
|
int i2 = 2 % 2;
|
|
int i3 = f8675o + 51;
|
|
n = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
c(c8032czZ, str, interfaceC9599dml);
|
|
int i5 = f8675o + 59;
|
|
n = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
return;
|
|
}
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
/* renamed from: o.czZ$LWm */
|
|
/* loaded from: classes4.dex */
|
|
public final /* synthetic */ class LWm {
|
|
public static final int[] e;
|
|
|
|
static {
|
|
int[] iArr = new int[HBt.values().length];
|
|
try {
|
|
iArr[HBt.ADD_DEVICE.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[HBt.PIN.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
iArr[HBt.EASYAPP.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
iArr[HBt.FORGOTPIN.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
e = iArr;
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(C8032czZ c8032czZ, InterfaceC9599dml interfaceC9599dml) {
|
|
int i2 = 2 % 2;
|
|
int i3 = n + 125;
|
|
f8675o = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
e(c8032czZ, interfaceC9599dml);
|
|
int i5 = n + 47;
|
|
f8675o = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
}
|
|
}
|