220 lines
8.8 KiB
Java
220 lines
8.8 KiB
Java
|
package com.scb.phone.security;
|
||
|
|
||
|
import android.app.admin.DeviceAdminReceiver;
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.media.AudioTrack;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import java.lang.reflect.Method;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
||
|
import o.C14957gcv;
|
||
|
import o.C4593bdB;
|
||
|
import o.guQ;
|
||
|
import o.xzZ;
|
||
|
|
||
|
/* loaded from: classes4.dex */
|
||
|
public final class SCBDeviceAdminReceiver extends DeviceAdminReceiver {
|
||
|
private static final byte[] $$a = {ISOFileInfo.FCI_BYTE, -31, ISO7816.INS_MANAGE_CHANNEL, 54};
|
||
|
private static final int $$b = 53;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int c = 0;
|
||
|
private static int d = 1;
|
||
|
private static long b = 4551529429160472004L;
|
||
|
|
||
|
/* 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: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 e(int r5, byte r6, byte r7, java.lang.Object[] r8) {
|
||
|
/*
|
||
|
int r7 = 78 - r7
|
||
|
int r5 = r5 + 4
|
||
|
int r6 = r6 * 2
|
||
|
int r0 = 1 - r6
|
||
|
byte[] r1 = com.scb.phone.security.SCBDeviceAdminReceiver.$$a
|
||
|
byte[] r0 = new byte[r0]
|
||
|
r2 = 0
|
||
|
int r6 = 0 - r6
|
||
|
if (r1 != 0) goto L14
|
||
|
r4 = r6
|
||
|
r3 = r2
|
||
|
goto L28
|
||
|
L14:
|
||
|
r3 = r2
|
||
|
L15:
|
||
|
byte r4 = (byte) r7
|
||
|
r0[r3] = r4
|
||
|
int r5 = r5 + 1
|
||
|
if (r3 != r6) goto L24
|
||
|
java.lang.String r5 = new java.lang.String
|
||
|
r5.<init>(r0, r2)
|
||
|
r8[r2] = r5
|
||
|
return
|
||
|
L24:
|
||
|
r4 = r1[r5]
|
||
|
int r3 = r3 + 1
|
||
|
L28:
|
||
|
int r7 = r7 + r4
|
||
|
goto L15
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.security.SCBDeviceAdminReceiver.e(int, byte, byte, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
@Override // android.app.admin.DeviceAdminReceiver
|
||
|
public final void onEnabled(Context context, Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 73;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(intent, "");
|
||
|
super.onEnabled(context, intent);
|
||
|
Object[] objArr = new Object[1];
|
||
|
a(new char[]{48710, 39980, 64226, 55434, 14157, 5392, 29664, 20046, 44094, 35532, 59525, 51029, 9638, 904, 24182, 48134, 39632, 63637, 55073, 13815}, 8779 - (ViewConfiguration.getLongPressTimeout() >> 16), objArr);
|
||
|
guQ.d(((String) objArr[0]).intern(), new Object[0]);
|
||
|
int i4 = d + 113;
|
||
|
c = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.admin.DeviceAdminReceiver
|
||
|
public final void onDisabled(Context context, Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 85;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(intent, "");
|
||
|
super.onDisabled(context, intent);
|
||
|
Object[] objArr = new Object[1];
|
||
|
a(new char[]{48710, 50574, 18854, 52688, 20933, 54762, 22868, 56604, 24878, 58718, 26993, 60783, 28878, 62611, 30933, 64726, 243, 33817, 2060, 35884, 4178}, TextUtils.indexOf((CharSequence) "", '0') + 31722, objArr);
|
||
|
guQ.d(((String) objArr[0]).intern(), new Object[0]);
|
||
|
int i4 = c + 101;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.admin.DeviceAdminReceiver
|
||
|
public final CharSequence onDisableRequested(Context context, Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = c + 121;
|
||
|
d = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(intent, "");
|
||
|
Object[] objArr = new Object[1];
|
||
|
a(new char[]{48710, 62532, 10802, 24578, 38637, 52424, 752, 47286, 61310, 9556, 23349, 37357, 51078, 32129, 45953, 59004, 7251, 21043, 34840, 16126, 29854, 43663, 57701, 5974, 19775, 33548, 14847, 28615, 42419, 56209}, 18979 - TextUtils.indexOf("", "", 0, 0), objArr);
|
||
|
guQ.d(((String) objArr[0]).intern(), new Object[0]);
|
||
|
CharSequence onDisableRequested = super.onDisableRequested(context, intent);
|
||
|
int i4 = d + 57;
|
||
|
c = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
return onDisableRequested;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static void a(char[] cArr, int i, Object[] objArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
C4593bdB c4593bdB = new C4593bdB();
|
||
|
c4593bdB.a = i;
|
||
|
int length = cArr.length;
|
||
|
long[] jArr = new long[length];
|
||
|
c4593bdB.e = 0;
|
||
|
while (c4593bdB.e < cArr.length) {
|
||
|
int i3 = c4593bdB.e;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
|
||
|
Object obj = xzZ.y.get(-1229953068);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 402, 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) (View.MeasureSpec.getMode(0) + 21608));
|
||
|
byte b2 = (byte) (-1);
|
||
|
byte b3 = (byte) (b2 + 1);
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
e(b2, b3, (byte) (b3 + 1), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
|
||
|
xzZ.y.put(-1229953068, obj);
|
||
|
}
|
||
|
jArr[i3] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (b ^ (-6958928035870403642L));
|
||
|
Object[] objArr4 = {c4593bdB, c4593bdB};
|
||
|
Object obj2 = xzZ.y.get(-1143917229);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(238 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), (Process.myTid() >> 22) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1));
|
||
|
byte b4 = (byte) (-1);
|
||
|
byte b5 = (byte) (b4 + 1);
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
e(b4, b5, b5, objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1143917229, obj2);
|
||
|
}
|
||
|
((Method) obj2).invoke(null, objArr4);
|
||
|
int i4 = $11 + 63;
|
||
|
$10 = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
char[] cArr2 = new char[length];
|
||
|
c4593bdB.e = 0;
|
||
|
int i6 = $11 + 63;
|
||
|
$10 = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
int i7 = 4 % 5;
|
||
|
}
|
||
|
while (c4593bdB.e < cArr.length) {
|
||
|
int i8 = $11 + 85;
|
||
|
$10 = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
|
||
|
Object[] objArr6 = {c4593bdB, c4593bdB};
|
||
|
Object obj3 = xzZ.y.get(-1143917229);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c(239 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), ExpandableListView.getPackedPositionType(0L) + 5, (char) View.MeasureSpec.getMode(0));
|
||
|
byte b6 = (byte) (-1);
|
||
|
byte b7 = (byte) (b6 + 1);
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
e(b6, b7, b7, objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(-1143917229, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
}
|
||
|
objArr[0] = new String(cArr2);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.admin.DeviceAdminReceiver, android.content.BroadcastReceiver
|
||
|
public final void onReceive(Context context, Intent intent) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 73;
|
||
|
c = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Object obj = null;
|
||
|
super.onReceive(context, intent);
|
||
|
if (i3 != 0) {
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
int i4 = c + 7;
|
||
|
d = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
}
|