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

543 lines
21 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Parcel;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.common.base.Ascii;
import java.lang.reflect.Method;
import o.TVH;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes.dex */
public final class zzee extends zzf {
private final zzed zza;
private boolean zzb;
private static final byte[] $$a = {Ascii.ESC, -53, 19, -66};
private static final int $$b = CipherSuite.TLS_DHE_PSK_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int d = 0;
private static int e = 1;
private static char[] a = {39955};
/* JADX INFO: Access modifiers changed from: package-private */
public zzee(zzfv zzfvVar) {
super(zzfvVar);
Context zzau = this.zzs.zzau();
this.zzs.zzf();
this.zza = new zzed(this, zzau, "google_app_measurement_local.db");
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002c). 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(byte r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 2
int r6 = r6 + 4
int r7 = r7 * 2
int r7 = 1 - r7
byte[] r0 = com.google.android.gms.measurement.internal.zzee.$$a
int r8 = r8 * 2
int r8 = r8 + 71
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L17
r8 = r6
r4 = r7
r3 = r2
goto L2c
L17:
r3 = r2
r5 = r8
r8 = r6
r6 = r5
L1b:
byte r4 = (byte) r6
r1[r3] = r4
int r3 = r3 + 1
if (r3 != r7) goto L2a
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L2a:
r4 = r0[r8]
L2c:
int r4 = -r4
int r6 = r6 + r4
int r8 = r8 + 1
goto L1b
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzee.f(byte, int, short, java.lang.Object[]):void");
}
final SQLiteDatabase zzh() throws SQLiteException {
int i = 2 % 2;
int i2 = e + 83;
d = i2 % 128;
Object obj = null;
if (i2 % 2 != 0) {
obj.hashCode();
throw null;
}
if (this.zzb) {
return null;
}
SQLiteDatabase writableDatabase = this.zza.getWritableDatabase();
if (writableDatabase == null) {
this.zzb = true;
return null;
}
int i3 = e + 59;
d = i3 % 128;
if (i3 % 2 == 0) {
return writableDatabase;
}
obj.hashCode();
throw null;
}
public final boolean zzk() {
int i = 2 % 2;
int i2 = e + 3;
d = i2 % 128;
return i2 % 2 != 0 ? zzq(3, new byte[0]) : zzq(3, new byte[0]);
}
final boolean zzl() {
int i = 2 % 2;
int i2 = e + 105;
d = i2 % 128;
int i3 = i2 % 2;
Context zzau = this.zzs.zzau();
this.zzs.zzf();
boolean exists = zzau.getDatabasePath("google_app_measurement_local.db").exists();
int i4 = e + 31;
d = i4 % 128;
if (i4 % 2 == 0) {
return exists;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final void zzj() {
int i = 2 % 2;
int i2 = e + 115;
d = i2 % 128;
int i3 = i2 % 2;
zzg();
try {
SQLiteDatabase zzh = zzh();
if (zzh != null) {
int i4 = d + 49;
e = i4 % 128;
int i5 = i4 % 2;
int delete = zzh.delete("messages", null, null);
if (delete > 0) {
int i6 = e + 43;
d = i6 % 128;
if (i6 % 2 != 0) {
this.zzs.zzay().zzj().zzb("Reset local analytics data. records", Integer.valueOf(delete));
throw null;
}
this.zzs.zzay().zzj().zzb("Reset local analytics data. records", Integer.valueOf(delete));
}
}
int i7 = e + 83;
d = i7 % 128;
int i8 = i7 % 2;
} catch (SQLiteException e2) {
this.zzs.zzay().zzd().zzb("Error resetting local analytics data. error", e2);
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0059, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x002f, code lost:
r6 = com.google.android.gms.measurement.internal.zzee.e + 45;
com.google.android.gms.measurement.internal.zzee.d = r6 % 128;
r6 = r6 % 2;
r5.zzs.zzay().zzh().zza("Conditional user property too long for local database. Sending directly to service");
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0047, code lost:
return false;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x002d, code lost:
if (r6.length > 131072) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001f, code lost:
if (r6.length > 131072) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0048, code lost:
r6 = zzq(2, r6);
r1 = com.google.android.gms.measurement.internal.zzee.d + 9;
com.google.android.gms.measurement.internal.zzee.e = r1 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0055, code lost:
if ((r1 % 2) == 0) goto L14;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0057, code lost:
return r6;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean zzn(com.google.android.gms.measurement.internal.zzab r6) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.measurement.internal.zzee.e
int r1 = r1 + 85
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzee.d = r2
int r1 = r1 % r0
r2 = 0
r3 = 131072(0x20000, float:1.83671E-40)
if (r1 == 0) goto L22
com.google.android.gms.measurement.internal.zzfv r1 = r5.zzs
com.google.android.gms.measurement.internal.zzkz r1 = r1.zzv()
byte[] r6 = r1.zzan(r6)
int r1 = r6.length
r4 = 16
int r4 = r4 / r2
if (r1 <= r3) goto L48
goto L2f
L22:
com.google.android.gms.measurement.internal.zzfv r1 = r5.zzs
com.google.android.gms.measurement.internal.zzkz r1 = r1.zzv()
byte[] r6 = r1.zzan(r6)
int r1 = r6.length
if (r1 <= r3) goto L48
L2f:
int r6 = com.google.android.gms.measurement.internal.zzee.e
int r6 = r6 + 45
int r1 = r6 % 128
com.google.android.gms.measurement.internal.zzee.d = r1
int r6 = r6 % r0
com.google.android.gms.measurement.internal.zzfv r6 = r5.zzs
com.google.android.gms.measurement.internal.zzel r6 = r6.zzay()
com.google.android.gms.measurement.internal.zzej r6 = r6.zzh()
java.lang.String r0 = "Conditional user property too long for local database. Sending directly to service"
r6.zza(r0)
return r2
L48:
boolean r6 = r5.zzq(r0, r6)
int r1 = com.google.android.gms.measurement.internal.zzee.d
int r1 = r1 + 9
int r2 = r1 % 128
com.google.android.gms.measurement.internal.zzee.e = r2
int r1 = r1 % r0
if (r1 == 0) goto L58
return r6
L58:
r6 = 0
throw r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzee.zzn(com.google.android.gms.measurement.internal.zzab):boolean");
}
public final boolean zzo(zzat zzatVar) {
int i = 2 % 2;
Parcel obtain = Parcel.obtain();
zzau.zza(zzatVar, obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length <= 131072) {
return zzq(0, marshall);
}
int i2 = d + 93;
e = i2 % 128;
int i3 = i2 % 2;
this.zzs.zzay().zzh().zza("Event is too long for local database. Sending event directly to service");
int i4 = d + 11;
e = i4 % 128;
if (i4 % 2 != 0) {
return false;
}
throw null;
}
public final boolean zzp(zzkv zzkvVar) {
int i = 2 % 2;
int i2 = e + 73;
d = i2 % 128;
int i3 = i2 % 2;
Parcel obtain = Parcel.obtain();
zzkw.zza(zzkvVar, obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length > 131072) {
int i4 = d + 105;
e = i4 % 128;
int i5 = i4 % 2;
this.zzs.zzay().zzh().zza("User property too long for local database. Sending directly to service");
return false;
}
return zzq(1, marshall);
}
/* JADX WARN: Code restructure failed: missing block: B:51:0x00a1, code lost:
if (0 == 0) goto L41;
*/
/* JADX WARN: Removed duplicated region for block: B:28:0x00bc A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:32:0x0020 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean zzm() {
/*
Method dump skipped, instructions count: 223
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzee.zzm():boolean");
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:17:0x0067 A[Catch: SQLiteException -> 0x0057, SQLiteFullException -> 0x005a, SQLiteDatabaseLockedException -> 0x00bb, all -> 0x010d, TRY_ENTER, TryCatch #7 {all -> 0x010d, blocks: (B:62:0x00e0, B:65:0x00f4, B:70:0x00e8, B:73:0x00ec, B:74:0x00f2, B:82:0x004c, B:84:0x0052, B:17:0x0067, B:19:0x008d, B:20:0x00a9), top: B:61:0x00e0 }] */
/* JADX WARN: Removed duplicated region for block: B:38:0x0154 */
/* JADX WARN: Removed duplicated region for block: B:40:0x0159 */
/* JADX WARN: Removed duplicated region for block: B:42:? A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:78:0x00b4 */
/* JADX WARN: Type inference failed for: r11v0 */
/* JADX WARN: Type inference failed for: r11v1, types: [android.database.Cursor] */
/* JADX WARN: Type inference failed for: r11v2 */
/* JADX WARN: Type inference failed for: r11v3 */
/* JADX WARN: Type inference failed for: r11v5 */
/* JADX WARN: Type inference failed for: r11v7, types: [android.database.Cursor] */
/* JADX WARN: Type inference failed for: r3v0 */
/* JADX WARN: Type inference failed for: r3v1, types: [int, boolean] */
/* JADX WARN: Type inference failed for: r3v10 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final boolean zzq(int r18, byte[] r19) {
/*
Method dump skipped, instructions count: 366
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzee.zzq(int, byte[]):boolean");
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:129:0x02bb */
/* JADX WARN: Removed duplicated region for block: B:134:0x02dd A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:139:0x02d5 */
/* JADX WARN: Removed duplicated region for block: B:141:0x02dd A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:145:0x0271 */
/* JADX WARN: Removed duplicated region for block: B:154:0x02e5 */
/* JADX WARN: Removed duplicated region for block: B:156:0x02ea */
/* JADX WARN: Removed duplicated region for block: B:164:0x02a2 */
/* JADX WARN: Removed duplicated region for block: B:166:0x02dd A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:176:0x024f A[Catch: all -> 0x00a8, SQLiteException -> 0x00ab, SQLiteFullException -> 0x00ae, SQLiteDatabaseLockedException -> 0x025f, TRY_ENTER, TryCatch #16 {SQLiteDatabaseLockedException -> 0x025f, SQLiteFullException -> 0x00ae, SQLiteException -> 0x00ab, all -> 0x00a8, blocks: (B:27:0x009e, B:30:0x00b7, B:32:0x00d3, B:172:0x00a4, B:176:0x024f, B:177:0x0252), top: B:14:0x004d }] */
/* JADX WARN: Type inference failed for: r8v1 */
/* JADX WARN: Type inference failed for: r8v15 */
/* JADX WARN: Type inference failed for: r8v16 */
/* JADX WARN: Type inference failed for: r8v17 */
/* JADX WARN: Type inference failed for: r8v18 */
/* JADX WARN: Type inference failed for: r8v19 */
/* JADX WARN: Type inference failed for: r8v2 */
/* JADX WARN: Type inference failed for: r8v20 */
/* JADX WARN: Type inference failed for: r8v21 */
/* JADX WARN: Type inference failed for: r8v22 */
/* JADX WARN: Type inference failed for: r8v23 */
/* JADX WARN: Type inference failed for: r8v24 */
/* JADX WARN: Type inference failed for: r8v25 */
/* JADX WARN: Type inference failed for: r8v26 */
/* JADX WARN: Type inference failed for: r8v27 */
/* JADX WARN: Type inference failed for: r8v30, types: [android.database.sqlite.SQLiteDatabase] */
/* JADX WARN: Type inference failed for: r8v31 */
/* JADX WARN: Type inference failed for: r8v32 */
/* JADX WARN: Type inference failed for: r8v33 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.util.List<com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable> zzi(int r25) {
/*
Method dump skipped, instructions count: 770
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzee.zzi(int):java.util.List");
}
private static void b(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
int length;
char[] cArr;
int i2;
int i3 = 2 % 2;
TVH tvh = new TVH();
int i4 = 0;
int i5 = iArr[0];
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr2 = a;
if (cArr2 != null) {
int i9 = $11 + 33;
$10 = i9 % 128;
if (i9 % 2 != 0) {
length = cArr2.length;
cArr = new char[length];
i2 = 1;
} else {
length = cArr2.length;
cArr = new char[length];
i2 = 0;
}
while (i2 < length) {
try {
Object[] objArr2 = new Object[1];
objArr2[i4] = Integer.valueOf(cArr2[i2]);
Object obj = xzZ.y.get(1645349359);
if (obj == null) {
Class cls = (Class) xzZ.c(223 - View.MeasureSpec.getMode(i4), View.getDefaultSize(i4, i4) + 5, (char) (41977 - View.MeasureSpec.makeMeasureSpec(i4, i4)));
byte b = (byte) i4;
byte b2 = b;
Object[] objArr3 = new Object[1];
f(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr[i2] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i2++;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr;
}
char[] cArr3 = new char[i6];
System.arraycopy(cArr2, i5, cArr3, 0, i6);
if (bArr != null) {
char[] cArr4 = new char[i6];
tvh.c = 0;
char c = 0;
while (tvh.c < i6) {
int i10 = $10 + 93;
$11 = i10 % 128;
if (i10 % 2 != 0 ? bArr[tvh.c] != 1 : bArr[tvh.c] != 1) {
int i11 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(1084521042);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(14 - TextUtils.indexOf((CharSequence) "", '0'), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 58133))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj2);
}
cArr4[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i12 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr3[tvh.c]), Integer.valueOf(c)};
Object obj3 = xzZ.y.get(850398076);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 503, 4 - MotionEvent.axisFromString(""), (char) (54 - (ViewConfiguration.getScrollBarSize() >> 8)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj3);
}
cArr4[i12] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c = cArr4[tvh.c];
try {
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(402 - TextUtils.indexOf("", "", 0), (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (21608 - View.MeasureSpec.makeMeasureSpec(0, 0)));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr7 = new Object[1];
f(b3, b4, (byte) (b4 + 1), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
int i13 = $11 + 57;
$10 = i13 % 128;
int i14 = i13 % 2;
cArr3 = cArr4;
}
if (i8 > 0) {
char[] cArr5 = new char[i6];
i = 0;
System.arraycopy(cArr3, 0, cArr5, 0, i6);
int i15 = i6 - i8;
System.arraycopy(cArr5, 0, cArr3, i15, i8);
System.arraycopy(cArr5, i8, cArr3, 0, i15);
} else {
i = 0;
}
if (z) {
char[] cArr6 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr6[tvh.c] = cArr3[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr3 = cArr6;
}
if (i7 > 0) {
int i16 = 0;
while (true) {
tvh.c = i16;
if (tvh.c >= i6) {
break;
}
cArr3[tvh.c] = (char) (cArr3[tvh.c] - iArr[2]);
i16 = tvh.c + 1;
}
}
objArr[0] = new String(cArr3);
}
@Override // com.google.android.gms.measurement.internal.zzf
protected final boolean zzf() {
int i = 2 % 2;
int i2 = d + 19;
e = i2 % 128;
return i2 % 2 == 0;
}
}