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

329 lines
15 KiB
Java

package com.google.android.gms.measurement;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
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 com.google.common.base.Ascii;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.jTb;
import o.xzZ;
/* loaded from: classes.dex */
public final class AppMeasurementJobService extends JobService implements zzjt {
private zzju<AppMeasurementJobService> zza;
private static final byte[] $$a = {Ascii.ESC, 74, ISO7816.INS_UPDATE_RECORD, 124};
private static final int $$b = 72;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int i = 1;
private static char e = 50178;
private static char c = 12848;
private static char a = 47113;
private static char b = 41024;
private static void g(short s, short s2, byte b2, Object[] objArr) {
int i2 = s2 + 4;
int i3 = s * 2;
int i4 = 67 - b2;
byte[] bArr = $$a;
byte[] bArr2 = new byte[i3 + 1];
int i5 = -1;
if (bArr == null) {
i4 = (-i4) + i3;
i5 = -1;
}
while (true) {
int i6 = i5 + 1;
bArr2[i6] = (byte) i4;
i2++;
if (i6 == i3) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i4 = (-bArr[i2]) + i4;
i5 = i6;
}
}
}
private final zzju<AppMeasurementJobService> zzd() {
int i2 = 2 % 2;
int i3 = i + 99;
d = i3 % 128;
int i4 = i3 % 2;
if (this.zza == null) {
this.zza = new zzju<>(this);
}
zzju<AppMeasurementJobService> zzjuVar = this.zza;
int i5 = i + 87;
d = i5 % 128;
if (i5 % 2 == 0) {
return zzjuVar;
}
throw null;
}
@Override // android.app.Service
public final void onRebind(Intent intent) {
int i2 = 2 % 2;
int i3 = d + 5;
i = i3 % 128;
int i4 = i3 % 2;
zzd().zzg(intent);
int i5 = d + 35;
i = i5 % 128;
int i6 = i5 % 2;
}
@Override // android.app.job.JobService
public final boolean onStartJob(JobParameters jobParameters) {
int i2 = 2 % 2;
int i3 = d + 123;
i = i3 % 128;
int i4 = i3 % 2;
zzd().zzi(jobParameters);
return true;
}
@Override // android.app.Service
public final boolean onUnbind(Intent intent) {
int i2 = 2 % 2;
int i3 = d + 93;
i = i3 % 128;
int i4 = i3 % 2;
zzd().zzj(intent);
int i5 = i + 29;
d = i5 % 128;
int i6 = i5 % 2;
return true;
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final void zzb(JobParameters jobParameters, boolean z) {
int i2 = 2 % 2;
int i3 = d + 3;
i = i3 % 128;
int i4 = i3 % 2;
jobFinished(jobParameters, false);
int i5 = i + 71;
d = i5 % 128;
if (i5 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final boolean zzc(int i2) {
int i3 = 2 % 2;
throw new UnsupportedOperationException();
}
@Override // android.app.Service
public final void onCreate() {
int i2 = 2 % 2;
int i3 = d + 109;
i = i3 % 128;
int i4 = i3 % 2;
super.onCreate();
zzd().zze();
int i5 = i + 75;
d = i5 % 128;
int i6 = i5 % 2;
}
@Override // android.app.Service
public final void onDestroy() {
int i2 = 2 % 2;
int i3 = d + 93;
i = i3 % 128;
int i4 = i3 % 2;
zzd().zzf();
super.onDestroy();
int i5 = d + 11;
i = i5 % 128;
int i6 = i5 % 2;
}
@Override // android.app.Service, android.content.ContextWrapper
public final void attachBaseContext(Context context) {
int i2 = 2 % 2;
int i3 = i + 27;
d = i3 % 128;
int i4 = i3 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
f(new char[]{19887, 54228, 4650, 65391, 21145, 41446, 58960, 29942, 5644, 2910, 63881, 36479, 37301, 55303, 16941, 45812, 60852, 32574}, 17 - TextUtils.lastIndexOf("", '0'), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(new char[]{24672, 56502, 44328, 55125, 18508, 4477}, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, 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) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - TextUtils.getTrimmedLength(""), View.MeasureSpec.getMode(0) + 5, (char) ((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
f(new char[]{20678, 15668, 47623, 3209, 28958, 45922, 60716, 16323, 2025, 61704, 54071, 47477, 54337, 24865, 53699, 59448, 39454, 3820, 26887, 26617, 65145, 23424, 8508, 6074, 39407, 1611, 20947, 8968, 22672, 6848, 9214, 29955, 62118, 14576, 38764, 11178, 6469, 50888, 28667, 23261, 38053, 51131, 29137, 16144, 18920, 59207, 32283, 58962}, 49 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
f(new char[]{36198, 40941, 53418, 6029, 418, 10309, 65086, 20656, 24644, 1550, 12865, 34511, 12865, 34511, 50089, 25991, 1855, 56275, 19818, 54125, 39248, 52151, 53290, 45616, 62157, 7239, 36315, 48502, 12112, 4997, 10710, 46468, 10229, 63553, 25671, 22636, 58723, 36615, 28667, 23261, 418, 10309, 16468, 3156, 56669, 13764, 418, 10309, 43645, 48376, 53936, 31900, 18920, 59207, 65189, 4341, 42488, 53252, 53333, 10286, 418, 10309, 24852, 51061}, View.combineMeasuredStates(0, 0) + 64, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
f(new char[]{22928, 1404, 37476, 16868, 7126, 5840, 10581, 4131, 12112, 4997, 27023, 34280, 24838, 10828, 10710, 46468, 56930, 61823, 27770, 43532, 34919, 4088, 39905, 62492, 18920, 59207, 6469, 50888, 18486, 26411, 24786, 17176, 47623, 3209, 48107, 63448, 40298, 22262, 5829, 28419, 38763, 40169, 8338, 39702, 40253, 51125, 53418, 6029, 4797, 13668, 26887, 26617, 2361, 58308, 16349, 19068, 16478, 47586, 60716, 16323, 58723, 36615, 12989, 16643}, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 64, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(new char[]{5312, 19878, 42993, 20075, 30523, 14942, 37539, 57105, 9025, 64977, 18170, 49690, 39382, 6923, 31316, 12989, 60190, 13286, 18297, 56371, 37758, 33002, 15532, 21318, 63742, 63884, 8115, 59944, 15080, 41076, 13225, 12048, 48581, 53923, 14019, 23928, 22839, 36550, 20398, 1179, 58479, 29238, 38738, 1347, 60208, 5204, 58479, 29238, 18685, 53492, 39382, 6923, 31818, 30434, 58300, 64060, 25289, 40630, 59328, 12830, 32890, 28773, 13350, 6177, 25664, 56166, 2340, 27251, 31154, 49021, 4120, 19483, 8890, 34608}, 74 - Color.red(0), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(new char[]{34764, 14957, 50362, 17306, 27074, 7127}, 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(new char[]{13225, 12048, 38053, 51131, 35842, 42026, 12226, 26409, 41142, 51377, 31484, 52384, 22552, 35775, 14755, 36598, 5829, 28419, 31645, 33592, 4797, 13668, 63126, 9746, 27903, 55840, 54071, 47477, 29259, 27169, 20947, 8968, 25544, 39334, 13470, 8982}, 36 - KeyEvent.getDeadChar(0, 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(TextUtils.getOffsetAfter("", 0) + 487, (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) Color.alpha(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);
int i5 = i + 11;
d = i5 % 128;
int i6 = i5 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
int i7 = d + 49;
i = i7 % 128;
int i8 = i7 % 2;
}
private static void f(char[] cArr, int i2, Object[] objArr) {
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i4 = $10 + 67;
$11 = i4 % 128;
int i5 = i4 % 2;
cArr3[0] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i6 = 58224;
for (int i7 = 0; i7 < 16; i7++) {
int i8 = $10 + 99;
$11 = i8 % 128;
int i9 = i8 % 2;
char c2 = cArr3[1];
char c3 = cArr3[0];
try {
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (a ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(b)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 411, 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) TextUtils.getTrimmedLength(""));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (-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();
cArr3[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (e ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 412, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 - 1);
Object[] objArr5 = new Object[1];
g(b4, b5, (byte) (-b5), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2[jtb.b] = cArr3[0];
cArr2[jtb.b + 1] = cArr3[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 98, (Process.myPid() >> 22) + 5, (char) ExpandableListView.getPackedPositionGroup(0L));
byte b6 = (byte) 0;
byte b7 = (byte) (b6 - 1);
Object[] objArr7 = new Object[1];
g(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);
}
objArr[0] = new String(cArr2, 0, i2);
}
@Override // com.google.android.gms.measurement.internal.zzjt
public final void zza(Intent intent) {
int i2 = 2 % 2;
int i3 = d + 23;
i = i3 % 128;
if (i3 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // android.app.job.JobService
public final boolean onStopJob(JobParameters jobParameters) {
int i2 = 2 % 2;
int i3 = d + 31;
int i4 = i3 % 128;
i = i4;
int i5 = i3 % 2;
int i6 = i4 + 83;
d = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 82 / 0;
}
return false;
}
}