313 lines
15 KiB
Java
313 lines
15 KiB
Java
package com.scb.phone.service;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.graphics.Color;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.os.IBinder;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import android.util.TypedValue;
|
|
import android.view.Gravity;
|
|
import android.view.MotionEvent;
|
|
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 o.AbstractServiceC9680doU;
|
|
import o.C15959juR;
|
|
import o.C17519xTA;
|
|
import o.InterfaceC13391fZD;
|
|
import o.guQ;
|
|
import o.jTb;
|
|
import o.xzZ;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class SCBClearAppFromRecentService extends AbstractServiceC9680doU {
|
|
|
|
@InterfaceC13391fZD
|
|
public C17519xTA preloadCheckCache;
|
|
|
|
@InterfaceC13391fZD
|
|
public C15959juR tileCache;
|
|
private static final byte[] $$d = {85, -61, 49, 80};
|
|
private static final int $$e = 52;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int a = 0;
|
|
private static int h = 1;
|
|
private static char d = 19704;
|
|
private static char c = 38831;
|
|
private static char b = 19317;
|
|
private static char e = 65346;
|
|
|
|
/* 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: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 k(byte r6, int r7, short r8, java.lang.Object[] r9) {
|
|
/*
|
|
byte[] r0 = com.scb.phone.service.SCBClearAppFromRecentService.$$d
|
|
int r8 = r8 * 4
|
|
int r8 = 4 - r8
|
|
int r7 = r7 + 66
|
|
int r6 = r6 * 2
|
|
int r1 = r6 + 1
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
if (r0 != 0) goto L15
|
|
r4 = r6
|
|
r7 = r8
|
|
r3 = r2
|
|
goto L2a
|
|
L15:
|
|
r3 = r2
|
|
r5 = r8
|
|
r8 = r7
|
|
r7 = r5
|
|
L19:
|
|
byte r4 = (byte) r8
|
|
r1[r3] = r4
|
|
if (r3 != r6) goto L26
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L26:
|
|
int r3 = r3 + 1
|
|
r4 = r0[r7]
|
|
L2a:
|
|
int r4 = -r4
|
|
int r8 = r8 + r4
|
|
int r7 = r7 + 1
|
|
goto L19
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.service.SCBClearAppFromRecentService.k(byte, int, short, java.lang.Object[]):void");
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
public int onStartCommand(Intent intent, int i, int i2) {
|
|
int i3 = 2 % 2;
|
|
int i4 = h + 29;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
guQ.c("Service Started", new Object[0]);
|
|
int i6 = h + 119;
|
|
a = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
return 2;
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
public void onDestroy() {
|
|
int i = 2 % 2;
|
|
int i2 = h + 47;
|
|
a = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
super.onDestroy();
|
|
guQ.c("Service Destroyed", new Object[0]);
|
|
} else {
|
|
super.onDestroy();
|
|
guQ.c("Service Destroyed", new Object[0]);
|
|
}
|
|
int i3 = a + 71;
|
|
h = i3 % 128;
|
|
if (i3 % 2 == 0) {
|
|
int i4 = 42 / 0;
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
public void onTaskRemoved(Intent intent) {
|
|
int i = 2 % 2;
|
|
int i2 = a + 119;
|
|
h = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
guQ.a("Clear the data", new Object[0]);
|
|
this.preloadCheckCache.c.edit().putString("com.scb.phone.PREK_KEY_APP_CONFIG", null).commit();
|
|
this.tileCache.e.edit().putString("com.scb.phone.PREF_KEY_TILES", null).commit();
|
|
stopSelf();
|
|
int i4 = h + 37;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
private static void j(char[] cArr, int i, Object[] objArr) {
|
|
int i2 = 2 % 2;
|
|
jTb jtb = new jTb();
|
|
char[] cArr2 = new char[cArr.length];
|
|
int i3 = 0;
|
|
jtb.b = 0;
|
|
char[] cArr3 = new char[2];
|
|
while (jtb.b < cArr.length) {
|
|
int i4 = $11 + 43;
|
|
$10 = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
cArr3[i3] = cArr[jtb.b];
|
|
cArr3[1] = cArr[jtb.b + 1];
|
|
int i6 = 58224;
|
|
int i7 = i3;
|
|
while (i7 < 16) {
|
|
char c2 = cArr3[1];
|
|
char c3 = cArr3[i3];
|
|
char[] cArr4 = cArr3;
|
|
try {
|
|
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (b ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(e)};
|
|
Object obj = xzZ.y.get(597144044);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 412, Gravity.getAbsoluteGravity(0, 0) + 5, (char) View.resolveSize(0, 0));
|
|
byte b2 = (byte) 0;
|
|
byte b3 = b2;
|
|
Object[] objArr3 = new Object[1];
|
|
k(b2, b3, b3, objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(597144044, obj);
|
|
}
|
|
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
cArr4[1] = charValue;
|
|
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(c)};
|
|
Object obj2 = xzZ.y.get(597144044);
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 412, 4 - MotionEvent.axisFromString(""), (char) ((-1) - TextUtils.lastIndexOf("", '0', 0)));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = b4;
|
|
Object[] objArr5 = new Object[1];
|
|
k(b4, b5, b5, objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(597144044, obj2);
|
|
}
|
|
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
|
i6 -= 40503;
|
|
i7++;
|
|
cArr3 = cArr4;
|
|
i3 = 0;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
char[] cArr5 = cArr3;
|
|
cArr2[jtb.b] = cArr5[0];
|
|
cArr2[jtb.b + 1] = cArr5[1];
|
|
Object[] objArr6 = {jtb, jtb};
|
|
Object obj3 = xzZ.y.get(943004485);
|
|
if (obj3 == null) {
|
|
Class cls3 = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 98, Drawable.resolveOpacity(0, 0) + 5, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1));
|
|
byte b6 = (byte) 0;
|
|
byte b7 = (byte) (b6 + 1);
|
|
Object[] objArr7 = new Object[1];
|
|
k(b6, b7, (byte) (b7 - 1), objArr7);
|
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
|
xzZ.y.put(943004485, obj3);
|
|
}
|
|
((Method) obj3).invoke(null, objArr6);
|
|
cArr3 = cArr5;
|
|
i3 = 0;
|
|
}
|
|
String str = new String(cArr2, 0, i);
|
|
int i8 = $10 + 27;
|
|
$11 = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
objArr[0] = str;
|
|
}
|
|
|
|
@Override // o.AbstractServiceC9680doU, android.app.Service, android.content.ContextWrapper
|
|
public void attachBaseContext(Context context) {
|
|
int i = 2 % 2;
|
|
int i2 = h + 97;
|
|
a = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.attachBaseContext(context);
|
|
Object[] objArr = new Object[1];
|
|
j(new char[]{10488, 48354, 62369, 4904, 13043, 11020, 41002, 58408, 56673, 38250, 36017, 48599, 9926, 37677, 63441, 15529, 12743, 10321}, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 18, objArr);
|
|
Class<?> cls = Class.forName((String) objArr[0]);
|
|
Object[] objArr2 = new Object[1];
|
|
j(new char[]{28904, 63008, 18209, 53790, 39847, 63306}, 4 - TextUtils.indexOf((CharSequence) "", '0', 0), objArr2);
|
|
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
|
|
if (intValue < 99000 || intValue > 99999) {
|
|
Context applicationContext = context != null ? context.getApplicationContext() : context;
|
|
if (applicationContext != null) {
|
|
int i4 = h + 51;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
try {
|
|
Object obj = xzZ.y.get(125943855);
|
|
if (obj == null) {
|
|
obj = ((Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 491, 5 - TextUtils.getOffsetBefore("", 0), (char) (ViewConfiguration.getEdgeSlop() >> 16))).getMethod("a", null);
|
|
xzZ.y.put(125943855, obj);
|
|
}
|
|
Object invoke = ((Method) obj).invoke(null, null);
|
|
Object[] objArr3 = new Object[1];
|
|
j(new char[]{49001, 20723, 49118, 60970, 63582, 19234, 26595, 11886, 14002, 34867, 53244, 31576, 6540, 41244, 14558, 21214, 65115, 33976, 13254, 60045, 12115, 41538, 39329, 64412, 44592, 63633, 63617, 12485, 47505, 55224, 63673, 64107, 4147, 46774, 56104, 10529, 41093, 53367, 42296, 7529, 58345, 24999, 60183, 62419, 35143, 41044, 3211, 25331}, TextUtils.lastIndexOf("", '0') + 49, objArr3);
|
|
String str = (String) objArr3[0];
|
|
Object[] objArr4 = new Object[1];
|
|
j(new char[]{40463, 11718, 21370, 397, 50512, 62518, 49549, 10226, 15626, 50149, 12273, 33761, 12273, 33761, 45559, 57528, 35184, 38997, 32161, 35960, 61363, 61236, 16515, 52896, 22256, 20210, 50047, 1128, 3833, 40561, 42809, 39617, 45589, 15874, 43494, 52218, 10253, 23473, 42296, 7529, 50512, 62518, 54616, 41345, 47220, 4547, 50512, 62518, 46381, 16050, 28308, 27705, 35143, 41044, 44749, 24555, 681, 40811, 16058, 47210, 50512, 62518, 48595, 25992}, 65 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), objArr4);
|
|
String str2 = (String) objArr4[0];
|
|
Object[] objArr5 = new Object[1];
|
|
j(new char[]{9630, 8551, 20511, 58310, ' ', 37045, 13907, 63810, 3833, 40561, 31979, 41721, 25950, 17659, 42809, 39617, 24670, 50259, 31519, 28840, 630, 6532, 29541, 52043, 35143, 41044, 41093, 53367, 24070, 10875, 48180, 42643, 49118, 60970, 62976, 3526, 32764, 58159, 44637, 7470, 57335, 42242, 29245, 27241, 1089, 40897, 21370, 397, 21630, 5426, 13254, 60045, 28523, 20811, 29104, 56098, 16602, 32536, 26595, 11886, 10253, 23473, 1930, 42104}, 64 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr5);
|
|
String str3 = (String) objArr5[0];
|
|
Object[] objArr6 = new Object[1];
|
|
j(new char[]{62190, 26153, 45862, 20161, 26914, 7476, 63412, 19110, 59004, 32771, 1334, 50754, 56551, 16843, 13243, 36742, 44668, 20401, 56992, 61851, 61103, 1568, 27137, 27482, 28760, 12087, 10288, 4906, 16689, 13015, 35871, 10716, 20310, 11980, 60553, 56378, 64106, 10471, 61236, 65416, 33987, 65526, 32017, 58142, 6236, 42047, 33987, 65526, 42308, 25064, 56551, 16843, 27175, 3765, 7304, 13393, 47995, 3125, 19395, 46761, 7211, 64024, 61530, 41660, 1605, 27604, 36725, 57528, 35688, 13201, 59201, 21500, 4659, 24494}, 73 - TextUtils.lastIndexOf("", '0', 0), objArr6);
|
|
String str4 = (String) objArr6[0];
|
|
Object[] objArr7 = new Object[1];
|
|
j(new char[]{5899, 64803, 36623, 23083, 14169, 32182}, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, objArr7);
|
|
String str5 = (String) objArr7[0];
|
|
Object[] objArr8 = new Object[1];
|
|
j(new char[]{35871, 10716, 58345, 24999, 62794, 49890, 23417, 36747, 64804, 32618, 27122, 35326, 43287, 12168, 25798, 37722, 44637, 7470, 56393, 2229, 21630, 5426, 39763, 21078, 42356, 36129, 53244, 31576, 62780, 23555, 63617, 12485, 49335, 28348, 32025, 9331}, 36 - Color.red(0), objArr8);
|
|
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
|
|
Object obj2 = xzZ.y.get(1656189573);
|
|
if (obj2 == null) {
|
|
obj2 = ((Class) xzZ.c(Color.alpha(0) + 487, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) (ExpandableListView.getPackedPositionChild(0L) + 1))).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;
|
|
}
|
|
}
|
|
}
|
|
int i6 = h + 19;
|
|
a = i6 % 128;
|
|
if (i6 % 2 != 0) {
|
|
int i7 = 13 / 0;
|
|
}
|
|
}
|
|
|
|
@Override // o.AbstractServiceC9680doU, android.app.Service
|
|
public void onCreate() {
|
|
int i = 2 % 2;
|
|
int i2 = a + 43;
|
|
h = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
super.onCreate();
|
|
int i4 = h + 37;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
|
|
@Override // android.app.Service
|
|
public IBinder onBind(Intent intent) {
|
|
int i = 2 % 2;
|
|
int i2 = h;
|
|
int i3 = i2 + 123;
|
|
a = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
int i5 = i2 + 119;
|
|
a = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return null;
|
|
}
|
|
}
|