what-the-bank/sources/com/google/android/gms/analytics/CampaignTrackingService.java

341 lines
17 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.analytics;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.media.AudioTrack;
import android.os.IBinder;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.KeyEvent;
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.IRS;
import o.xzZ;
import org.jnbis.internal.NistHelper;
@Deprecated
/* loaded from: classes.dex */
public class CampaignTrackingService extends Service {
private static final byte[] $$a = {104, 69, 71, -100};
private static final int $$b = 245;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private static int c = 1;
private static char[] d = {35360, 49033, 49091, 49115, 35370, 49090, 49118, 49093, 49111, 49112, 49025, 49034, 49104, 35361, 49052, 49105, 35372, 35362, 35368, 35363, 49117, 49024, 49110, 49106, 49028, 49026, 49108, 49027, 49030, 49053, 49089, 49035, 49054, 49088, 49114, 49031, 49109, 49123, 35375, 49116, 49119, 49126, 35371, 49094, 49095, 35373, 49098, 35374, 49029};
private static char e = 35374;
/* 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:0x002e). 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 g(short r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r7 = r7 * 4
int r0 = r7 + 1
byte[] r1 = com.google.android.gms.analytics.CampaignTrackingService.$$a
int r8 = r8 + 117
int r6 = r6 * 2
int r6 = 3 - r6
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L2e
L15:
r3 = r2
L16:
byte r4 = (byte) r8
r0[r3] = r4
int r6 = r6 + 1
if (r3 != r7) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r1[r6]
r5 = r8
r8 = r6
r6 = r4
r4 = r3
r3 = r5
L2e:
int r6 = r6 + r3
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.CampaignTrackingService.g(short, int, short, java.lang.Object[]):void");
}
@Override // android.app.Service, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = a + 61;
c = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
f(new char[]{27, 16, '\t', 29, ')', ' ', 15, '$', '(', ' ', 30, '$', ' ', '%', '\b', 26, 13901, 13901}, (byte) (TextUtils.indexOf("", "", 0) + 100), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 17, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(new char[]{4, '0', '0', ')', 13884}, (byte) (62 - View.MeasureSpec.makeMeasureSpec(0, 0)), 5 - View.resolveSize(0, 0), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i4 = c + 71;
a = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
if (intValue <= 99999) {
return;
}
}
if (context != null) {
int i5 = a + 65;
c = i5 % 128;
int i6 = i5 % 2;
context = context.getApplicationContext();
}
if (context != null) {
int i7 = a + 97;
c = i7 % 128;
int i8 = i7 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (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)), 4 - TextUtils.indexOf((CharSequence) "", '0'), (char) KeyEvent.normalizeMetaState(0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
f(new char[]{26, 25, '$', 14, 26, 7, '%', 22, 18, '\b', '\t', 24, 22, 14, 24, NistHelper.SEP_FS, 14, 22, 17, '&', NistHelper.SEP_FS, '*', 25, '\t', ')', '+', 7, '!', '\r', '\f', 11, 22, 21, ' ', ' ', 24, '+', 29, 13832, 13832, 7, '&', 7, ' ', '\n', '!', 21, '$'}, (byte) (16 - Color.green(0)), 48 - TextUtils.getCapsMode("", 0, 0), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
f(new char[]{29, 22, '+', 27, '+', 20, '\'', 7, 21, 29, '\r', '-', '\r', '-', 25, 26, '*', ')', 24, 11, '\r', '/', 21, '%', 27, '*', 26, '\r', 11, '\f', 24, '\"', 13835, 13835, 30, 21, 29, ' ', 13910, 13910, '+', 20, 27, ',', ' ', 21, '+', 20, '\n', 29, '&', 22, '\n', '!', 29, 14, '!', '\n', 24, ' ', '+', 20, 24, 23}, (byte) ((ViewConfiguration.getKeyRepeatDelay() >> 16) + 94), 63 - MotionEvent.axisFromString(""), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
f(new char[]{24, 30, 21, 22, 24, 22, 13906, 13906, 11, '\f', 22, 23, 14, '$', 24, '\"', 22, 16, ')', 22, 26, 21, 31, 17, '\n', '!', '+', 29, '\"', '-', '\f', '\t', '$', 14, 21, 30, 31, 7, 13822, 13822, '\"', 21, '#', NistHelper.SEP_FS, '(', '\b', '+', 27, 22, 29, 17, '&', '.', '\r', 22, ')', 21, 24, '%', 22, 29, ' ', '\n', 26}, (byte) (82 - TextUtils.lastIndexOf("", '0')), ExpandableListView.getPackedPositionGroup(0L) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(new char[]{2, '-', 2, '\t', 29, 5, 13789, 13789, '\"', NistHelper.SEP_FS, 27, 2, 11, '(', 13855, 13855, 23, 29, '\r', '!', 26, '%', 16, 22, 16, '\r', 30, '+', 2, 31, 23, 24, '/', '\t', 26, 30, '+', 30, 22, '/', 30, '%', '\f', 29, 1, '/', 30, '%', 29, '$', 11, '(', 0, 20, 30, '\t', NistHelper.SEP_FS, 20, ')', 27, 27, 23, 30, '/', 21, 14, 7, 17, 21, '\b', 27, 15, '/', 30}, (byte) (40 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24)), (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 74, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(new char[]{'\b', ' ', ' ', 30, 13741}, (byte) (TextUtils.getOffsetAfter("", 0) + 3), 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(new char[]{23, 24, 7, '&', '\t', '\f', ')', 21, '\"', '.', 21, 23, 18, 29, '&', 7, 13766, 13766, 30, 25, 22, 29, 11, '!', 11, '\r', '\t', 24, 25, 23, 7, '!', '*', '#', 26, 23}, (byte) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 27), (ViewConfiguration.getFadingEdgeLength() >> 16) + 36, objArr8);
Object[] objArr9 = {context, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getTouchSlop() >> 8) + 487, ImageFormat.getBitsPerPixel(0) + 6, (char) ((-1) - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -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;
}
}
}
private static void f(char[] cArr, byte b, int i, Object[] objArr) {
int i2;
int length;
char[] cArr2;
int i3;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr3 = d;
long j = 0;
char c2 = '0';
int i5 = 1;
if (cArr3 != null) {
int i6 = $11 + 75;
$10 = i6 % 128;
if (i6 % 2 != 0) {
length = cArr3.length;
cArr2 = new char[length];
i3 = 1;
} else {
length = cArr3.length;
cArr2 = new char[length];
i3 = 0;
}
while (i3 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[0] = Integer.valueOf(cArr3[i3]);
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", c2) + 299, 4 - TextUtils.lastIndexOf("", c2, 0, 0), (char) ((-1) - ExpandableListView.getPackedPositionChild(j)));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
g(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr2[i3] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i3++;
int i7 = $11 + 101;
$10 = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 4 % 3;
}
j = 0;
c2 = '0';
i5 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i9 = $11 + 123;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr3 = cArr2;
}
Object[] objArr4 = {Integer.valueOf(e)};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(298 - KeyEvent.normalizeMetaState(0), View.resolveSize(0, 0) + 5, (char) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
} else {
i2 = i;
}
if (i2 > 1) {
int i11 = $10 + 105;
$11 = i11 % 128;
int i12 = i11 % 2;
irs.e = 0;
while (irs.e < i2) {
int i13 = $10 + 79;
$11 = i13 % 128;
int i14 = i13 % 2;
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
} else {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(232 - ImageFormat.getBitsPerPixel(0), 5 - (ViewConfiguration.getTouchSlop() >> 8), (char) (22072 - AndroidCharacter.getMirror('0')));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, (byte) (b7 + 3), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(327 - KeyEvent.getDeadChar(0, 0), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (ViewConfiguration.getDoubleTapTimeout() >> 16));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr9 = new Object[1];
g(b8, b9, (byte) (b9 + 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i15 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[intValue];
cArr4[irs.e + 1] = cArr3[i15];
} else if (irs.a == irs.d) {
int i16 = $11 + 119;
$10 = i16 % 128;
int i17 = i16 % 2;
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i18 = (irs.a * charValue) + irs.f;
int i19 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr3[i18];
cArr4[irs.e + 1] = cArr3[i19];
} else {
int i20 = (irs.a * charValue) + irs.j;
int i21 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr3[i20];
cArr4[irs.e + 1] = cArr3[i21];
}
}
irs.e += 2;
}
}
for (int i22 = 0; i22 < i; i22++) {
cArr4[i22] = (char) (cArr4[i22] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // android.app.Service
public void onCreate() {
int i = 2 % 2;
int i2 = c + 41;
a = i2 % 128;
int i3 = i2 % 2;
super.onCreate();
int i4 = c + 27;
a = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.Service
public IBinder onBind(Intent intent) {
int i = 2 % 2;
int i2 = c + 17;
int i3 = i2 % 128;
a = i3;
int i4 = i2 % 2;
int i5 = i3 + 71;
c = i5 % 128;
int i6 = i5 % 2;
return null;
}
}