604 lines
28 KiB
Java
604 lines
28 KiB
Java
|
package com.journeyapps.barcodescanner;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import android.content.IntentFilter;
|
||
|
import android.graphics.Color;
|
||
|
import android.graphics.ImageFormat;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.text.TextUtils;
|
||
|
import android.util.TypedValue;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.MotionEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
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 java.lang.reflect.Method;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
||
|
import o.C12047eqo;
|
||
|
import o.C15906jXf;
|
||
|
import o.C8820dWv;
|
||
|
import o.GuL;
|
||
|
import o.nMh;
|
||
|
import o.xzZ;
|
||
|
import o.zUI;
|
||
|
import org.jnbis.internal.NistHelper;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class CaptureActivity extends Activity {
|
||
|
private C8820dWv a;
|
||
|
private DecoratedBarcodeView c;
|
||
|
private static final byte[] $$a = {76, ISO7816.INS_UPDATE_RECORD, -78, ISOFileInfo.FCI_EXT};
|
||
|
private static final int $$b = 49;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int e = 0;
|
||
|
private static int i = 1;
|
||
|
private static long d = 7064673164779056621L;
|
||
|
private static int b = 2015661682;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0029). 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 h(byte r5, short r6, int r7, java.lang.Object[] r8) {
|
||
|
/*
|
||
|
int r6 = r6 * 4
|
||
|
int r6 = r6 + 4
|
||
|
int r7 = 121 - r7
|
||
|
byte[] r0 = com.journeyapps.barcodescanner.CaptureActivity.$$a
|
||
|
int r5 = r5 * 2
|
||
|
int r1 = 1 - r5
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
int r5 = 0 - r5
|
||
|
if (r0 != 0) goto L17
|
||
|
r4 = r7
|
||
|
r3 = r2
|
||
|
r7 = r5
|
||
|
goto L29
|
||
|
L17:
|
||
|
r3 = r2
|
||
|
L18:
|
||
|
byte r4 = (byte) r7
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r5) goto L25
|
||
|
java.lang.String r5 = new java.lang.String
|
||
|
r5.<init>(r1, r2)
|
||
|
r8[r2] = r5
|
||
|
return
|
||
|
L25:
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r0[r6]
|
||
|
L29:
|
||
|
int r6 = r6 + 1
|
||
|
int r7 = r7 + r4
|
||
|
goto L18
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.journeyapps.barcodescanner.CaptureActivity.h(byte, short, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
private static void f(char[] cArr, int i2, Object[] objArr) {
|
||
|
int i3 = 2 % 2;
|
||
|
GuL guL = new GuL();
|
||
|
char[] a = GuL.a(d ^ (-7538262848231253921L), cArr, i2);
|
||
|
guL.a = 4;
|
||
|
while (guL.a < a.length) {
|
||
|
int i4 = $10 + 79;
|
||
|
$11 = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
guL.c = guL.a - 4;
|
||
|
int i6 = guL.a;
|
||
|
try {
|
||
|
Object[] objArr2 = {Long.valueOf(a[guL.a] ^ a[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(d)};
|
||
|
Object obj = xzZ.y.get(428080616);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(208 - ((Process.getThreadPriority(0) + 20) >> 6), 5 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (View.resolveSizeAndState(0, 0, 0) + 1706));
|
||
|
byte b2 = (byte) 0;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
h(b2, b3, (byte) (b3 + 2), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE);
|
||
|
xzZ.y.put(428080616, obj);
|
||
|
}
|
||
|
a[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
Object[] objArr4 = {guL, guL};
|
||
|
Object obj2 = xzZ.y.get(-1875914398);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 392, 4 - TextUtils.lastIndexOf("", '0', 0), (char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
h(b4, b5, b5, objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1875914398, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(null, objArr4);
|
||
|
int i7 = $10 + 99;
|
||
|
$11 = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(a, 4, a.length - 4);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x03f0 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:8:0x03e5 */
|
||
|
@Override // android.app.Activity
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
protected void onCreate(android.os.Bundle r26) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 1762
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.journeyapps.barcodescanner.CaptureActivity.onCreate(android.os.Bundle):void");
|
||
|
}
|
||
|
|
||
|
private static void g(int i2, char[] cArr, int i3, boolean z, int i4, Object[] objArr) {
|
||
|
char[] cArr2;
|
||
|
int i5 = 2 % 2;
|
||
|
zUI zui = new zUI();
|
||
|
char[] cArr3 = new char[i2];
|
||
|
zui.d = 0;
|
||
|
while (zui.d < i2) {
|
||
|
int i6 = $10 + 7;
|
||
|
$11 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
zui.c = cArr[zui.d];
|
||
|
cArr3[zui.d] = (char) (i3 + zui.c);
|
||
|
int i8 = zui.d;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(cArr3[i8]), Integer.valueOf(b)};
|
||
|
Object obj = xzZ.y.get(880493502);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 142, 6 - TextUtils.lastIndexOf("", '0', 0), (char) (ViewConfiguration.getLongPressTimeout() >> 16));
|
||
|
byte b2 = (byte) 0;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
h(b2, b3, (byte) (b3 | ISO7816.INS_DECREASE_STAMPED), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(880493502, obj);
|
||
|
}
|
||
|
cArr3[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
Object[] objArr4 = {zui, zui};
|
||
|
Object obj2 = xzZ.y.get(1294990079);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(ImageFormat.getBitsPerPixel(0) + 343, 5 - TextUtils.getOffsetAfter("", 0), (char) Drawable.resolveOpacity(0, 0));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
h(b4, b5, (byte) (b5 | 45), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1294990079, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(null, objArr4);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
if (i4 > 0) {
|
||
|
zui.a = i4;
|
||
|
char[] cArr4 = new char[i2];
|
||
|
System.arraycopy(cArr3, 0, cArr4, 0, i2);
|
||
|
System.arraycopy(cArr4, 0, cArr3, i2 - zui.a, zui.a);
|
||
|
System.arraycopy(cArr4, zui.a, cArr3, 0, i2 - zui.a);
|
||
|
}
|
||
|
if (z) {
|
||
|
int i9 = $11 + 29;
|
||
|
$10 = i9 % 128;
|
||
|
if (i9 % 2 != 0) {
|
||
|
cArr2 = new char[i2];
|
||
|
zui.d = 1;
|
||
|
} else {
|
||
|
cArr2 = new char[i2];
|
||
|
zui.d = 0;
|
||
|
}
|
||
|
while (zui.d < i2) {
|
||
|
cArr2[zui.d] = cArr3[(i2 - zui.d) - 1];
|
||
|
try {
|
||
|
Object[] objArr6 = {zui, zui};
|
||
|
Object obj3 = xzZ.y.get(1294990079);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c(342 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), Process.getGidForName("") + 6, (char) (ViewConfiguration.getFadingEdgeLength() >> 16));
|
||
|
byte b6 = (byte) 0;
|
||
|
byte b7 = b6;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
h(b6, b7, (byte) (b7 | 45), objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1294990079, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
}
|
||
|
cArr3 = cArr2;
|
||
|
}
|
||
|
objArr[0] = new String(cArr3);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onResume() {
|
||
|
int i2 = 2 % 2;
|
||
|
Context baseContext = getBaseContext();
|
||
|
Object obj = null;
|
||
|
if (baseContext == null) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
f(new char[]{50672, 50577, 17888, 17301, 28732, 10389, 65413, 24289, 4951, 18931, 477, 34933, 26625, 42706, 23313, 45325, 16873, 65417, 44125, 55938, 40614, 54619, 34149, 970, 62540, 8722, 57003, 11550, 52513, 31718}, View.resolveSizeAndState(0, 0, 0), objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
g(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_commercial_referral_header_info).substring(19, 20).codePointAt(0) - 14, new char[]{65495, '\n', 4, 65531, '\b', '\b', 11, 65529, 4, 5, 65535, '\n', 65527, 65529, 65535, 2, 6, 6}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.review_disclaimer_description_cdx).substring(0, 205).codePointAt(20) - 3427, true, View.MeasureSpec.getSize(0) + 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 i3 = i + 81;
|
||
|
e = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
try {
|
||
|
Object obj2 = xzZ.y.get(125943855);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c((ViewConfiguration.getDoubleTapTimeout() >> 16) + 492, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) TextUtils.getTrimmedLength(""))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj2);
|
||
|
}
|
||
|
Object invoke = ((Method) obj2).invoke(null, null);
|
||
|
Object[] objArr3 = {baseContext};
|
||
|
Object obj3 = xzZ.y.get(1378719468);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(488 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), 5 - TextUtils.indexOf("", ""), (char) View.getDefaultSize(0, 0))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
|
||
|
xzZ.y.put(1378719468, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(invoke, objArr3);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
super.onResume();
|
||
|
C8820dWv c8820dWv = this.a;
|
||
|
if (nMh.checkSelfPermission(c8820dWv.e, "android.permission.CAMERA") == 0) {
|
||
|
int i5 = e + 39;
|
||
|
i = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
c8820dWv.a.d.i();
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
c8820dWv.a.d.i();
|
||
|
} else if (!c8820dWv.b) {
|
||
|
int i6 = e + 41;
|
||
|
i = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
ActivityCompat.lM_(c8820dWv.e, new String[]{"android.permission.CAMERA"}, 250);
|
||
|
c8820dWv.b = true;
|
||
|
}
|
||
|
C15906jXf c15906jXf = c8820dWv.h;
|
||
|
if (!c15906jXf.d) {
|
||
|
c15906jXf.c.registerReceiver(c15906jXf.b, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
|
||
|
c15906jXf.d = true;
|
||
|
}
|
||
|
c15906jXf.e();
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onPause() {
|
||
|
int i2 = 2 % 2;
|
||
|
Context baseContext = getBaseContext();
|
||
|
if (baseContext == null) {
|
||
|
Object[] objArr = new Object[1];
|
||
|
f(new char[]{50672, 50577, 17888, 17301, 28732, 10389, 65413, 24289, 4951, 18931, 477, 34933, 26625, 42706, 23313, 45325, 16873, 65417, 44125, 55938, 40614, 54619, 34149, 970, 62540, 8722, 57003, 11550, 52513, 31718}, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() - 13, objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
g(((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.slip_qr_code_transfer_header).substring(42, 43).length() + 17, new char[]{65495, '\n', 4, 65531, '\b', '\b', 11, 65529, 4, 5, 65535, '\n', 65527, 65529, 65535, 2, 6, 6}, 191 - Color.argb(0, 0, 0, 0), true, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_airtime_dialog_description).substring(84, 85).length() + 7, objArr2);
|
||
|
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
int i3 = i + 5;
|
||
|
e = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
baseContext = baseContext.getApplicationContext();
|
||
|
} else {
|
||
|
baseContext.getApplicationContext();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
if (baseContext != null) {
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c((Process.myPid() >> 22) + 492, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, (char) View.MeasureSpec.getSize(0))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj);
|
||
|
}
|
||
|
Object invoke = ((Method) obj).invoke(null, null);
|
||
|
Object[] objArr3 = {baseContext};
|
||
|
Object obj2 = xzZ.y.get(1633456013);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0') + 488, 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) ((-1) - MotionEvent.axisFromString("")))).getMethod("c", Context.class);
|
||
|
xzZ.y.put(1633456013, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(invoke, objArr3);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
super.onPause();
|
||
|
C8820dWv c8820dWv = this.a;
|
||
|
c8820dWv.h.d();
|
||
|
BarcodeView barcodeView = c8820dWv.a.d;
|
||
|
C12047eqo c12047eqo = barcodeView.a;
|
||
|
barcodeView.e();
|
||
|
long nanoTime = System.nanoTime();
|
||
|
while (c12047eqo != null) {
|
||
|
int i4 = i + 39;
|
||
|
e = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
int i5 = 48 / 0;
|
||
|
if (c12047eqo.d) {
|
||
|
return;
|
||
|
}
|
||
|
} else if (c12047eqo.d) {
|
||
|
return;
|
||
|
}
|
||
|
if (System.nanoTime() - nanoTime > 2000000000) {
|
||
|
return;
|
||
|
}
|
||
|
try {
|
||
|
Thread.sleep(1L);
|
||
|
} catch (InterruptedException unused) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onDestroy() {
|
||
|
C8820dWv c8820dWv;
|
||
|
boolean z;
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = e + 5;
|
||
|
i = i3 % 128;
|
||
|
if (i3 % 2 == 0) {
|
||
|
super.onDestroy();
|
||
|
c8820dWv = this.a;
|
||
|
z = false;
|
||
|
} else {
|
||
|
super.onDestroy();
|
||
|
c8820dWv = this.a;
|
||
|
z = true;
|
||
|
}
|
||
|
c8820dWv.f = z;
|
||
|
c8820dWv.h.d();
|
||
|
c8820dWv.i.removeCallbacksAndMessages(null);
|
||
|
int i4 = e + 15;
|
||
|
i = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
protected void onSaveInstanceState(Bundle bundle) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = i + 45;
|
||
|
e = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
super.onSaveInstanceState(bundle);
|
||
|
bundle.putInt("SAVED_ORIENTATION_LOCK", this.a.m);
|
||
|
int i4 = 47 / 0;
|
||
|
} else {
|
||
|
super.onSaveInstanceState(bundle);
|
||
|
bundle.putInt("SAVED_ORIENTATION_LOCK", this.a.m);
|
||
|
}
|
||
|
int i5 = e + 73;
|
||
|
i = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
int i6 = 24 / 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
|
||
|
int i3 = 2 % 2;
|
||
|
int i4 = i + 17;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
this.a.d(i2, iArr);
|
||
|
int i6 = i + 41;
|
||
|
e = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x002c, code lost:
|
||
|
|
||
|
r6 = com.journeyapps.barcodescanner.CaptureActivity.e + 57;
|
||
|
com.journeyapps.barcodescanner.CaptureActivity.i = r6 % 128;
|
||
|
r6 = r6 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:?, code lost:
|
||
|
|
||
|
return false;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0023, code lost:
|
||
|
|
||
|
if ((!r5.c.onKeyDown(r6, r7)) != true) goto L13;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
|
||
|
|
||
|
if (r5.c.onKeyDown(r6, r7) == false) goto L10;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x002a, code lost:
|
||
|
|
||
|
if (super.onKeyDown(r6, r7) != false) goto L13;
|
||
|
*/
|
||
|
@Override // android.app.Activity, android.view.KeyEvent.Callback
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public boolean onKeyDown(int r6, android.view.KeyEvent r7) {
|
||
|
/*
|
||
|
r5 = this;
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.journeyapps.barcodescanner.CaptureActivity.e
|
||
|
int r1 = r1 + 13
|
||
|
int r2 = r1 % 128
|
||
|
com.journeyapps.barcodescanner.CaptureActivity.i = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
r3 = 1
|
||
|
if (r1 != 0) goto L1c
|
||
|
com.journeyapps.barcodescanner.DecoratedBarcodeView r1 = r5.c
|
||
|
boolean r1 = r1.onKeyDown(r6, r7)
|
||
|
r4 = 45
|
||
|
int r4 = r4 / r2
|
||
|
if (r1 != 0) goto L36
|
||
|
goto L26
|
||
|
L1c:
|
||
|
com.journeyapps.barcodescanner.DecoratedBarcodeView r1 = r5.c
|
||
|
boolean r1 = r1.onKeyDown(r6, r7)
|
||
|
r1 = r1 ^ r3
|
||
|
if (r1 == r3) goto L26
|
||
|
goto L36
|
||
|
L26:
|
||
|
boolean r6 = super.onKeyDown(r6, r7)
|
||
|
if (r6 != 0) goto L36
|
||
|
int r6 = com.journeyapps.barcodescanner.CaptureActivity.e
|
||
|
int r6 = r6 + 57
|
||
|
int r7 = r6 % 128
|
||
|
com.journeyapps.barcodescanner.CaptureActivity.i = r7
|
||
|
int r6 = r6 % r0
|
||
|
goto L37
|
||
|
L36:
|
||
|
r2 = r3
|
||
|
L37:
|
||
|
return r2
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.journeyapps.barcodescanner.CaptureActivity.onKeyDown(int, android.view.KeyEvent):boolean");
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
|
||
|
public void attachBaseContext(Context context) {
|
||
|
Context context2;
|
||
|
int i2 = 2 % 2;
|
||
|
super.attachBaseContext(context);
|
||
|
Object[] objArr = new Object[1];
|
||
|
f(new char[]{39393, 39296, 38878, 52753, 41474, 42257, 36826, 11966, 20294, 39885, 35929, 63530, 13342, 29935, 54987, 49452, 7627, 11707, 8654, 43729, 49842, 1919}, ViewConfiguration.getPressedStateDuration() >> 16, objArr);
|
||
|
Class<?> cls = Class.forName((String) objArr[0]);
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
f(new char[]{61306, 61207, 7903, 42753, 11028, 52272, 45445, 4346, 14806}, KeyEvent.keyCodeFromString(""), objArr2);
|
||
|
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
|
||
|
if (intValue >= 99000) {
|
||
|
int i3 = i + 11;
|
||
|
e = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
int i4 = 94 / 0;
|
||
|
if (intValue <= 99999) {
|
||
|
return;
|
||
|
}
|
||
|
} else if (intValue <= 99999) {
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
if (context != null) {
|
||
|
int i5 = i + 45;
|
||
|
e = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
context2 = context.getApplicationContext();
|
||
|
} else {
|
||
|
context.getApplicationContext();
|
||
|
throw null;
|
||
|
}
|
||
|
} else {
|
||
|
context2 = context;
|
||
|
}
|
||
|
if (context2 != null) {
|
||
|
try {
|
||
|
Object obj = xzZ.y.get(125943855);
|
||
|
if (obj == null) {
|
||
|
obj = ((Class) xzZ.c(492 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), View.MeasureSpec.getMode(0) + 5, (char) Drawable.resolveOpacity(0, 0))).getMethod("a", null);
|
||
|
xzZ.y.put(125943855, obj);
|
||
|
}
|
||
|
Object invoke = ((Method) obj).invoke(null, null);
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
f(new char[]{5720, 5737, 49221, 11792, 62912, 17728, 25852, 50568, 49315, 52316, 27738, 4931, 48042, 9022, 14038, 10811, 37427, 31277, 49567, 16810, 19738, 20644, 59558, 39154, 10115, 42987, 45885, 46651, 7822, 65041, 23143, 52495, 51523, 54614, 25768, 58435, 41001, 11138, 3980, 13211, 39734, 666, 54814, 19072, 30138, 23027, 57629, 24623, 11427, 45111, 35721, 48998}, ((byte) KeyEvent.getModifierMetaStateMask()) + 1, objArr3);
|
||
|
String str = (String) objArr3[0];
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
g(KeyEvent.getDeadChar(0, 0) + 64, new char[]{65520, 65525, '!', 65521, 65518, 65522, 65518, 65522, 65523, 65517, 65522, 65520, 65517, 65518, 31, 65522, 29, 65520, 65519, 65522, 65516, 31, 65518, 65525, 65516, 65524, 65523, 65523, 65521, 29, 65521, 65524, 30, 30, 65522, 30, 29, 65522, 65521, 65517, 65522, 30, ' ', 65524, '\"', 65523, 31, 65524, 65521, 30, 65524, 31, 65517, 65524, 65522, 30, 29, '!', '!', 30, 65522, '!', 65522, 30}, (ViewConfiguration.getPressedStateDuration() >> 16) + 153, false, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 57, objArr4);
|
||
|
String str2 = (String) objArr4[0];
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
f(new char[]{32843, 32810, 29290, 13130, 18400, 22558, 20528, 61717, 22242, 32291, 28931, 10123, 11753, 37137, 11149, 7923, 1137, 51284, 56518, 30054, 56074, 58074, 62888, 44086, 45458, 5568, 44593, 33532, 34968, 19504, 18232, 63891, 24331, 26486, 31151, 53466, 13887, 39418, 4751, 1875, 3446, 45282, 51991, 32287, 58286, 60376, 64587, 21733, 47797, 579, 38528, 35835, 37193, 13597, 20412, 57982, 26709, 28553, 24822, 55656, 16011, 34473, 6520, 12375, 5574, 47416, 12853, 26313}, (-1) - TextUtils.indexOf((CharSequence) "", '0', 0), objArr5);
|
||
|
String str3 = (String) objArr5[0];
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
f(new char[]{21246, 21142, 8949, 38212, 5939, 65108, 2735, 43977, 33861, 11957, 55111, 32094, 65309, 49630, 36305, 17508, 54981, 39056, 31381, 12204, 2491, 45653, 21411, 63216, 25463, 17667, 2154, 55344, 23072, 7420, 57726, 41757, 36334, 14253, 57341, 35392, 58570, 51556, 46209, 23946, 57218, 57441, 27983, 9412, 12623, 47877, 23060, 3642, 26647, 21194, 12505, 53619, 17403, 26057, 59875, 47286, 47803, 16128, 50857, 33761, 60519, 54904, 49017, 27335, 50977, 59898, 37931, 15381, 15953, 32945, 17042, 1814, 4563, 23161, 15245, 61087, 18586, 27972}, TextUtils.getCapsMode("", 0, 0), objArr6);
|
||
|
String str4 = (String) objArr6[0];
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(KeyEvent.keyCodeFromString("") + 5, new char[]{65534, 7, 65532, 6, 65532}, TextUtils.lastIndexOf("", '0', 0, 0) + 136, false, 1 - View.resolveSize(0, 0), objArr7);
|
||
|
String str5 = (String) objArr7[0];
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
g(TextUtils.lastIndexOf("", '0') + 37, new char[]{65517, 65512, 30, ' ', 29, NistHelper.SEP_FS, 65512, 65516, 65516, 65517, 65519, 65512, 29, ' ', 65515, 65521, 65512, 65515, 65519, 65524, 31, 65519, 65517, NistHelper.SEP_FS, ' ', ' ', 65516, 65520, 65519, 65520, 30, ' ', 65522, NistHelper.SEP_FS, 65517, 30}, 153 - MotionEvent.axisFromString(""), true, 25 - ExpandableListView.getPackedPositionType(0L), 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(487 - (ViewConfiguration.getEdgeSlop() >> 16), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 5, (char) TextUtils.indexOf("", "", 0))).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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Activity
|
||
|
public void onStart() {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = e + 21;
|
||
|
i = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
super.onStart();
|
||
|
if (i4 == 0) {
|
||
|
int i5 = 32 / 0;
|
||
|
}
|
||
|
}
|
||
|
}
|