what-the-bank/sources/com/google/android/gms/measurement/AppMeasurementService.java

423 lines
18 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement;
import android.app.Service;
import android.app.job.JobParameters;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.media.AudioTrack;
import android.os.IBinder;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.measurement.internal.zzjt;
import com.google.android.gms.measurement.internal.zzju;
import java.lang.reflect.Method;
import o.xzZ;
/* loaded from: classes.dex */
public final class AppMeasurementService extends Service implements zzjt {
private zzju<AppMeasurementService> zza;
private static final byte[] $$a = {63, -89, -19, -14};
private static final int $$b = 83;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int d = 1;
private static char[] b = {35373, 49109, 49030, 49106, 35363, 49116, 49126, 49054, 49094, 35361, 49105, 49026, 49098, 49112, 35371, 49090, 49024, 49035, 49029, 49028, 49110, 49034, 35368, 49053, 49025, 49117, 49118, 35360, 49114, 49052, 49027, 35374, 49123, 49108, 35372, 35370, 49119, 49091, 49031, 49104, 49093, 49088, 49115, 35362, 49089, 49111, 35375, 49033, 49095};
private static char a = 35374;
/* 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: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 f(short r5, byte r6, int r7, java.lang.Object[] r8) {
/*
int r5 = r5 * 2
int r0 = r5 + 1
byte[] r1 = com.google.android.gms.measurement.AppMeasurementService.$$a
int r7 = 120 - r7
int r6 = r6 * 2
int r6 = 3 - r6
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L14
r3 = r5
r4 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r7
r0[r3] = r4
int r6 = r6 + 1
int r4 = r3 + 1
if (r3 != r5) goto L26
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L26:
r3 = r1[r6]
L28:
int r7 = r7 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.AppMeasurementService.f(short, byte, int, java.lang.Object[]):void");
}
private final zzju<AppMeasurementService> zzd() {
int i = 2 % 2;
int i2 = e + 11;
d = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
obj.hashCode();
throw null;
}
if (this.zza == null) {
this.zza = new zzju<>(this);
}
zzju<AppMeasurementService> zzjuVar = this.zza;
int i3 = d + 43;
e = i3 % 128;
if (i3 % 2 == 0) {
return zzjuVar;
}
obj.hashCode();
throw null;
}
@Override // android.app.Service
public final IBinder onBind(Intent intent) {
int i = 2 % 2;
int i2 = d + 47;
e = i2 % 128;
int i3 = i2 % 2;
zzju<AppMeasurementService> zzd = zzd();
if (i3 == 0) {
return zzd.zzb(intent);
}
zzd.zzb(intent);
throw null;
}
@Override // android.app.Service
public final void onRebind(Intent intent) {
int i = 2 % 2;
int i2 = d + 119;
e = i2 % 128;
int i3 = i2 % 2;
zzd().zzg(intent);
int i4 = d + 95;
e = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.app.Service
public final int onStartCommand(Intent intent, int i, int i2) {
int i3 = 2 % 2;
int i4 = e + 69;
d = i4 % 128;
if (i4 % 2 == 0) {
zzd().zza(intent, i, i2);
return 3;
}
zzd().zza(intent, i, i2);
return 2;
}
@Override // android.app.Service
public final boolean onUnbind(Intent intent) {
int i = 2 % 2;
int i2 = e + 13;
d = i2 % 128;
int i3 = i2 % 2;
zzd().zzj(intent);
int i4 = d + 97;
e = i4 % 128;
int i5 = i4 % 2;
return true;
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final void zza(Intent intent) {
int i = 2 % 2;
int i2 = e + 65;
d = i2 % 128;
int i3 = i2 % 2;
AppMeasurementReceiver.completeWakefulIntent(intent);
int i4 = d + 103;
e = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final void zzb(JobParameters jobParameters, boolean z) {
int i = 2 % 2;
throw new UnsupportedOperationException();
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final boolean zzc(int i) {
int i2 = 2 % 2;
int i3 = e + 7;
d = i3 % 128;
int i4 = i3 % 2;
boolean stopSelfResult = stopSelfResult(i);
int i5 = d + 97;
e = i5 % 128;
if (i5 % 2 == 0) {
return stopSelfResult;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.Service
public final void onCreate() {
int i = 2 % 2;
int i2 = d + 17;
e = i2 % 128;
if (i2 % 2 == 0) {
super.onCreate();
zzd().zze();
} else {
super.onCreate();
zzd().zze();
throw null;
}
}
@Override // android.app.Service
public final void onDestroy() {
int i = 2 % 2;
int i2 = e + 13;
d = i2 % 128;
int i3 = i2 % 2;
zzd().zzf();
super.onDestroy();
int i4 = e + 99;
d = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.app.Service, android.content.ContextWrapper
public final void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
c(new char[]{4, 24, '.', '-', 0, '!', ',', 24, 6, '(', 25, 30, '/', 2, ')', 18, 13914, 13914}, (byte) (ImageFormat.getBitsPerPixel(0) + 114), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 17, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
c(new char[]{'!', 19, 0, '\"', 13878}, (byte) (57 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))), 5 - (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i2 = e + 107;
d = i2 % 128;
if (i2 % 2 != 0) {
context2 = context.getApplicationContext();
} else {
context.getApplicationContext();
Object obj = null;
obj.hashCode();
throw null;
}
} else {
context2 = context;
}
if (context2 != null) {
int i3 = e + 21;
d = i3 % 128;
int i4 = i3 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - Color.alpha(0), 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = new Object[1];
c(new char[]{'\f', 18, '-', 17, 18, '%', 2, 4, 7, 24, 31, '\n', 17, '\t', 17, 18, '\t', 17, 31, 24, 17, '%', 0, 24, 4, 15, '%', 4, '#', 25, '.', '\n', '\t', 4, 18, '\n', 6, 15, 13826, 13826, 31, '-', 23, 0, '&', 18, 17, ')'}, (byte) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 10), 48 - (Process.myTid() >> 22), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
c(new char[]{17, '\r', 19, 14, 17, 11, '#', 24, 16, 6, 25, 17, 25, 17, 18, '\f', 17, '\'', '\n', 25, '.', 25, '\n', '-', 17, 19, ' ', '%', 25, 22, 31, 16, 13861, 13861, 3, 4, 3, 16, 13936, 13936, 17, 11, 4, 17, 4, '\t', 17, 11, 3, 24, 5, 15, '&', 18, 3, '\t', 18, '&', '\n', 18, 17, 11, 6, 17}, (byte) (120 - KeyEvent.normalizeMetaState(0)), (ViewConfiguration.getDoubleTapTimeout() >> 16) + 64, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
c(new char[]{'\n', 24, '%', 23, 2, 17, 13871, 13871, 25, 22, 17, 14, 17, '-', 31, 16, '\n', 17, 2, 29, '\t', ' ', 17, 26, '&', 18, 6, 15, 18, 19, 24, '*', '-', 17, 4, 3, 3, 23, 13787, 13787, '\t', '%', '\t', 23, 4, '$', 19, 14, '\r', 17, 31, 24, 14, 25, 29, 2, 31, 2, 2, 4, 3, 16, '(', 18}, (byte) (48 - TextUtils.getCapsMode("", 0, 0)), 63 - ImageFormat.getBitsPerPixel(0), objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
c(new char[]{'+', '*', ',', ')', '(', '0', 13797, 13797, '#', '\"', 5, 24, '(', 4, 13863, 13863, 16, '0', '#', ' ', 1, '&', 17, '\n', 27, 11, 27, ',', '+', '-', 17, 6, '.', ')', 6, '&', ',', 27, 29, '\f', 2, '-', '0', '&', 22, 15, 2, '-', 16, 27, '(', 4, 22, '!', 2, '&', 29, 30, ' ', 21, '\"', 19, '0', 6, '!', '$', 22, 31, 19, ')', 18, 27, 6, '0'}, (byte) ((ViewConfiguration.getEdgeSlop() >> 16) + 48), 74 - View.combineMeasuredStates(0, 0), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
c(new char[]{22, 24, 16, 24, 13741}, (byte) (TextUtils.indexOf("", "") + 3), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
c(new char[]{17, 6, 31, '-', '*', 24, '%', 31, 11, 14, '\"', 16, 11, '\b', '-', 31, 13850, 13850, '\n', 0, '\r', 17, '#', 11, 25, '&', 31, '\n', 20, 14, '%', 4, '%', 3, '\r', 18}, (byte) (111 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 35 - TextUtils.indexOf((CharSequence) "", '0', 0), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj3 = xzZ.y.get(1656189573);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getTouchSlop() >> 8) + 487, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((-16777216) - Color.rgb(0, 0, 0)))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj3);
}
((Method) obj3).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:37:0x012f, code lost:
if (r2.b == r2.c) goto L36;
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x015e, code lost:
r11 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2};
r4 = o.xzZ.y.get(822107368);
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x01ad, code lost:
if (r4 == null) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x0231, code lost:
if (((java.lang.Integer) ((java.lang.reflect.Method) r4).invoke(null, r11)).intValue() != r2.j) goto L57;
*/
/* JADX WARN: Code restructure failed: missing block: B:47:0x0235, code lost:
r10 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, java.lang.Integer.valueOf(r1), r2};
r4 = o.xzZ.y.get(-1152873385);
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x0274, code lost:
if (r4 == null) goto L49;
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x02e2, code lost:
r11 = null;
r4 = ((java.lang.Integer) ((java.lang.reflect.Method) r4).invoke(null, r10)).intValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x02ef, code lost:
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
r4 = com.google.android.gms.measurement.AppMeasurementService.$10 + 59;
com.google.android.gms.measurement.AppMeasurementService.$11 = r4 % 128;
r4 = r4 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x035f, code lost:
r2.e += 2;
r4 = r11;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x0278, code lost:
r4 = (java.lang.Class) o.xzZ.c((android.view.ViewConfiguration.getTouchSlop() >> 8) + 327, 5 - android.graphics.Color.argb(0, 0, 0, 0), (char) android.view.KeyEvent.getDeadChar(0, 0));
r12 = (byte) 0;
r13 = r12;
r15 = new java.lang.Object[1];
f(r12, r13, (byte) (r13 + 2), r15);
r4 = r4.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(-1152873385, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x030d, code lost:
r0 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x030e, code lost:
r1 = r0.getCause();
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x0312, code lost:
if (r1 != null) goto L55;
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x0314, code lost:
throw r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x0315, code lost:
throw r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x0316, code lost:
r11 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x031c, code lost:
if (r2.a != r2.d) goto L60;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x031e, code lost:
r2.f = ((r2.f + r1) - 1) % r1;
r2.j = ((r2.j + r1) - 1) % r1;
r4 = (r2.a * r1) + r2.f;
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x0346, code lost:
r4 = (r2.a * r1) + r2.j;
r10 = (r2.d * r1) + r2.f;
r5[r2.e] = r3[r4];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x01b0, code lost:
r4 = (java.lang.Class) o.xzZ.c(233 - android.graphics.Color.blue(0), 5 - android.text.TextUtils.getTrimmedLength(""), (char) (22024 - android.text.TextUtils.getOffsetAfter("", 0)));
r12 = (byte) 0;
r14 = r12;
r15 = new java.lang.Object[1];
f(r12, r14, r14, r15);
r4 = r4.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(822107368, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:69:0x0145, code lost:
r5[r2.e] = (char) (r2.b - r26);
r5[r2.e + 1] = (char) (r2.c - r26);
r11 = r4;
*/
/* JADX WARN: Code restructure failed: missing block: B:72:0x0143, code lost:
if (r2.b == r2.c) goto L36;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void c(char[] r25, byte r26, int r27, java.lang.Object[] r28) {
/*
Method dump skipped, instructions count: 902
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.AppMeasurementService.c(char[], byte, int, java.lang.Object[]):void");
}
}