953 lines
34 KiB
Java
953 lines
34 KiB
Java
|
package com.google.android.gms.internal.gtm;
|
||
|
|
||
|
import android.database.Cursor;
|
||
|
import android.database.sqlite.SQLiteDatabase;
|
||
|
import android.database.sqlite.SQLiteException;
|
||
|
import android.graphics.Color;
|
||
|
import android.os.SystemClock;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.analytics.zzk;
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
import com.google.android.gms.common.util.HttpUtils;
|
||
|
import java.io.Closeable;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.net.URI;
|
||
|
import java.net.URISyntaxException;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
||
|
import o.dQY;
|
||
|
import o.xzZ;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zzay extends zzan implements Closeable {
|
||
|
private static char[] a;
|
||
|
private static int b;
|
||
|
private static long d;
|
||
|
private static final String zzxj;
|
||
|
private static final String zzxk;
|
||
|
private final zzaz zzxl;
|
||
|
private final zzcv zzxm;
|
||
|
private final zzcv zzxn;
|
||
|
private static final byte[] $$a = {ISO7816.INS_CHANGE_CHV, ISOFileInfo.A1, ISO7816.INS_ENVELOPE, -12};
|
||
|
private static final int $$b = 46;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int e = 0;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public zzay(zzap zzapVar) {
|
||
|
super(zzapVar);
|
||
|
this.zzxm = new zzcv(zzcn());
|
||
|
this.zzxn = new zzcv(zzcn());
|
||
|
this.zzxl = new zzaz(this, zzapVar.getContext(), "google_analytics_v4.db");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0023 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001b */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x0027). 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, short r7, java.lang.Object[] r8) {
|
||
|
/*
|
||
|
int r7 = 106 - r7
|
||
|
int r6 = r6 * 3
|
||
|
int r0 = r6 + 1
|
||
|
int r5 = r5 * 2
|
||
|
int r5 = 4 - r5
|
||
|
byte[] r1 = com.google.android.gms.internal.gtm.zzay.$$a
|
||
|
byte[] r0 = new byte[r0]
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L15
|
||
|
r4 = r7
|
||
|
r3 = r2
|
||
|
r7 = r6
|
||
|
goto L27
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
byte r4 = (byte) r7
|
||
|
r0[r3] = r4
|
||
|
if (r3 != r6) goto L23
|
||
|
java.lang.String r5 = new java.lang.String
|
||
|
r5.<init>(r0, r2)
|
||
|
r8[r2] = r5
|
||
|
return
|
||
|
L23:
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r1[r5]
|
||
|
L27:
|
||
|
int r5 = r5 + 1
|
||
|
int r7 = r7 + r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzay.f(short, byte, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
public final void beginTransaction() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 27;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zzdb();
|
||
|
getWritableDatabase().beginTransaction();
|
||
|
int i4 = b + 77;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
|
||
|
public final void setTransactionSuccessful() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 97;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
zzdb();
|
||
|
getWritableDatabase().setTransactionSuccessful();
|
||
|
int i3 = e + 7;
|
||
|
b = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
return;
|
||
|
}
|
||
|
zzdb();
|
||
|
getWritableDatabase().setTransactionSuccessful();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public final void endTransaction() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 85;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
zzdb();
|
||
|
getWritableDatabase().endTransaction();
|
||
|
} else {
|
||
|
zzdb();
|
||
|
getWritableDatabase().endTransaction();
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0061 A[SYNTHETIC] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:19:0x0020 A[SYNTHETIC] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final void zzc(com.google.android.gms.internal.gtm.zzcd r8) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 313
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzay.zzc(com.google.android.gms.internal.gtm.zzcd):void");
|
||
|
}
|
||
|
|
||
|
private final long zzdl() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 17;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zzk.zzav();
|
||
|
zzdb();
|
||
|
long zza = zza("SELECT COUNT(*) FROM hits2", (String[]) null);
|
||
|
int i4 = e + 57;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return zza;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final boolean isEmpty() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 13;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (zzdl() == 0) {
|
||
|
int i4 = e + 49;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
int i6 = e + 35;
|
||
|
b = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0055, code lost:
|
||
|
|
||
|
if (r4.moveToFirst() != false) goto L14;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0057, code lost:
|
||
|
|
||
|
r2.add(java.lang.Long.valueOf(r4.getLong(0)));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0066, code lost:
|
||
|
|
||
|
if (r4.moveToNext() != false) goto L47;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x0068, code lost:
|
||
|
|
||
|
if (r4 == null) goto L22;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x006a, code lost:
|
||
|
|
||
|
r0 = com.google.android.gms.internal.gtm.zzay.b + 27;
|
||
|
com.google.android.gms.internal.gtm.zzay.e = r0 % 128;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:23:0x0073, code lost:
|
||
|
|
||
|
if ((r0 % 2) != 0) goto L20;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x0075, code lost:
|
||
|
|
||
|
r4.close();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x0079, code lost:
|
||
|
|
||
|
r4.close();
|
||
|
r13.hashCode();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x007f, code lost:
|
||
|
|
||
|
throw null;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:40:0x009b */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private final java.util.List<java.lang.Long> zzc(long r15) {
|
||
|
/*
|
||
|
r14 = this;
|
||
|
java.lang.String r0 = "hit_id"
|
||
|
r1 = 2
|
||
|
int r2 = r1 % r1
|
||
|
com.google.android.gms.analytics.zzk.zzav()
|
||
|
r14.zzdb()
|
||
|
r2 = 0
|
||
|
int r2 = (r15 > r2 ? 1 : (r15 == r2 ? 0 : -1))
|
||
|
r3 = 0
|
||
|
if (r2 > 0) goto L2a
|
||
|
int r0 = com.google.android.gms.internal.gtm.zzay.b
|
||
|
int r0 = r0 + 11
|
||
|
int r2 = r0 % 128
|
||
|
com.google.android.gms.internal.gtm.zzay.e = r2
|
||
|
int r0 = r0 % r1
|
||
|
if (r0 == 0) goto L25
|
||
|
java.util.List r0 = java.util.Collections.emptyList()
|
||
|
r1 = 48
|
||
|
int r1 = r1 / r3
|
||
|
return r0
|
||
|
L25:
|
||
|
java.util.List r0 = java.util.Collections.emptyList()
|
||
|
return r0
|
||
|
L2a:
|
||
|
android.database.sqlite.SQLiteDatabase r4 = r14.getWritableDatabase()
|
||
|
java.util.ArrayList r2 = new java.util.ArrayList
|
||
|
r2.<init>()
|
||
|
r5 = 1
|
||
|
r13 = 0
|
||
|
java.lang.String[] r6 = new java.lang.String[r5] // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
r6[r3] = r0 // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
java.lang.Object[] r5 = new java.lang.Object[r5] // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
r5[r3] = r0 // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
java.lang.String r0 = "%s ASC"
|
||
|
java.lang.String r11 = java.lang.String.format(r0, r5) // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
java.lang.String r12 = java.lang.Long.toString(r15) // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
java.lang.String r5 = "hits2"
|
||
|
r7 = 0
|
||
|
r8 = 0
|
||
|
r9 = 0
|
||
|
r10 = 0
|
||
|
android.database.Cursor r4 = r4.query(r5, r6, r7, r8, r9, r10, r11, r12) // Catch: java.lang.Throwable -> L88 android.database.sqlite.SQLiteException -> L8b
|
||
|
boolean r0 = r4.moveToFirst() // Catch: java.lang.Throwable -> L82 android.database.sqlite.SQLiteException -> L85
|
||
|
if (r0 == 0) goto L68
|
||
|
L57:
|
||
|
long r5 = r4.getLong(r3) // Catch: java.lang.Throwable -> L82 android.database.sqlite.SQLiteException -> L85
|
||
|
java.lang.Long r0 = java.lang.Long.valueOf(r5) // Catch: java.lang.Throwable -> L82 android.database.sqlite.SQLiteException -> L85
|
||
|
r2.add(r0) // Catch: java.lang.Throwable -> L82 android.database.sqlite.SQLiteException -> L85
|
||
|
boolean r0 = r4.moveToNext() // Catch: java.lang.Throwable -> L82 android.database.sqlite.SQLiteException -> L85
|
||
|
if (r0 != 0) goto L57
|
||
|
L68:
|
||
|
if (r4 == 0) goto L80
|
||
|
int r0 = com.google.android.gms.internal.gtm.zzay.b
|
||
|
int r0 = r0 + 27
|
||
|
int r3 = r0 % 128
|
||
|
com.google.android.gms.internal.gtm.zzay.e = r3
|
||
|
int r0 = r0 % r1
|
||
|
if (r0 != 0) goto L79
|
||
|
r4.close()
|
||
|
goto L80
|
||
|
L79:
|
||
|
r4.close()
|
||
|
r13.hashCode()
|
||
|
throw r13
|
||
|
L80:
|
||
|
r4 = r14
|
||
|
goto L97
|
||
|
L82:
|
||
|
r0 = move-exception
|
||
|
r13 = r4
|
||
|
goto L89
|
||
|
L85:
|
||
|
r0 = move-exception
|
||
|
r13 = r4
|
||
|
goto L8c
|
||
|
L88:
|
||
|
r0 = move-exception
|
||
|
L89:
|
||
|
r4 = r14
|
||
|
goto L99
|
||
|
L8b:
|
||
|
r0 = move-exception
|
||
|
L8c:
|
||
|
java.lang.String r3 = "Error selecting hit ids"
|
||
|
r4 = r14
|
||
|
r14.zzd(r3, r0) // Catch: java.lang.Throwable -> L98
|
||
|
if (r13 == 0) goto L97
|
||
|
r13.close()
|
||
|
L97:
|
||
|
return r2
|
||
|
L98:
|
||
|
r0 = move-exception
|
||
|
L99:
|
||
|
if (r13 == 0) goto Lb0
|
||
|
int r2 = com.google.android.gms.internal.gtm.zzay.e
|
||
|
int r2 = r2 + 63
|
||
|
int r3 = r2 % 128
|
||
|
com.google.android.gms.internal.gtm.zzay.b = r3
|
||
|
int r2 = r2 % r1
|
||
|
r13.close()
|
||
|
int r2 = com.google.android.gms.internal.gtm.zzay.e
|
||
|
int r2 = r2 + 115
|
||
|
int r3 = r2 % 128
|
||
|
com.google.android.gms.internal.gtm.zzay.b = r3
|
||
|
int r2 = r2 % r1
|
||
|
Lb0:
|
||
|
throw r0
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzay.zzc(long):java.util.List");
|
||
|
}
|
||
|
|
||
|
private static void c(char c, int i, int i2, Object[] objArr) {
|
||
|
int i3 = 2;
|
||
|
int i4 = 2 % 2;
|
||
|
dQY dqy = new dQY();
|
||
|
long[] jArr = new long[i2];
|
||
|
dqy.a = 0;
|
||
|
while (dqy.a < i2) {
|
||
|
int i5 = $11 + 19;
|
||
|
$10 = i5 % 128;
|
||
|
if (i5 % i3 != 0) {
|
||
|
int i6 = dqy.a;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(a[i << dqy.a])};
|
||
|
Object obj = xzZ.y.get(1095064095);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 308, KeyEvent.getDeadChar(0, 0) + 5, (char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 32797));
|
||
|
byte b2 = (byte) 0;
|
||
|
byte b3 = b2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
f(b2, b3, (byte) (b3 | 8), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1095064095, obj);
|
||
|
}
|
||
|
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(d), Integer.valueOf(c)};
|
||
|
Object obj2 = xzZ.y.get(-548438098);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(412 - TextUtils.indexOf("", "", 0), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 5, (char) Color.blue(0));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
f(b4, b5, (byte) (b5 | 7), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(-548438098, obj2);
|
||
|
}
|
||
|
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
|
||
|
Object[] objArr6 = {dqy, dqy};
|
||
|
Object obj3 = xzZ.y.get(1071125919);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 406, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (29233 - ExpandableListView.getPackedPositionChild(0L)));
|
||
|
byte b6 = (byte) 0;
|
||
|
byte b7 = b6;
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
f(b6, b7, b7, objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} else {
|
||
|
int i7 = dqy.a;
|
||
|
Object[] objArr8 = {Integer.valueOf(a[i + dqy.a])};
|
||
|
Object obj4 = xzZ.y.get(1095064095);
|
||
|
if (obj4 == null) {
|
||
|
Class cls4 = (Class) xzZ.c(308 - (ViewConfiguration.getScrollDefaultDelay() >> 16), Color.argb(0, 0, 0, 0) + 5, (char) (32797 - Color.green(0)));
|
||
|
byte b8 = (byte) 0;
|
||
|
byte b9 = b8;
|
||
|
Object[] objArr9 = new Object[1];
|
||
|
f(b8, b9, (byte) (b9 | 8), objArr9);
|
||
|
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
|
||
|
xzZ.y.put(1095064095, obj4);
|
||
|
}
|
||
|
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(d), Integer.valueOf(c)};
|
||
|
Object obj5 = xzZ.y.get(-548438098);
|
||
|
if (obj5 == null) {
|
||
|
Class cls5 = (Class) xzZ.c(KeyEvent.getDeadChar(0, 0) + 412, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1));
|
||
|
byte b10 = (byte) 0;
|
||
|
byte b11 = b10;
|
||
|
Object[] objArr11 = new Object[1];
|
||
|
f(b10, b11, (byte) (b11 | 7), objArr11);
|
||
|
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(-548438098, obj5);
|
||
|
}
|
||
|
jArr[i7] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
|
||
|
Object[] objArr12 = {dqy, dqy};
|
||
|
Object obj6 = xzZ.y.get(1071125919);
|
||
|
if (obj6 == null) {
|
||
|
Class cls6 = (Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 407, 5 - TextUtils.getTrimmedLength(""), (char) (TextUtils.indexOf("", "", 0, 0) + 29234));
|
||
|
byte b12 = (byte) 0;
|
||
|
byte b13 = b12;
|
||
|
Object[] objArr13 = new Object[1];
|
||
|
f(b12, b13, b13, objArr13);
|
||
|
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj6);
|
||
|
}
|
||
|
((Method) obj6).invoke(null, objArr12);
|
||
|
}
|
||
|
i3 = 2;
|
||
|
}
|
||
|
char[] cArr = new char[i2];
|
||
|
dqy.a = 0;
|
||
|
while (dqy.a < i2) {
|
||
|
cArr[dqy.a] = (char) jArr[dqy.a];
|
||
|
try {
|
||
|
Object[] objArr14 = {dqy, dqy};
|
||
|
Object obj7 = xzZ.y.get(1071125919);
|
||
|
if (obj7 == null) {
|
||
|
Class cls7 = (Class) xzZ.c(408 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 5 - View.resolveSizeAndState(0, 0, 0), (char) (29234 - TextUtils.getTrimmedLength("")));
|
||
|
byte b14 = (byte) 0;
|
||
|
byte b15 = b14;
|
||
|
Object[] objArr15 = new Object[1];
|
||
|
f(b14, b15, b15, objArr15);
|
||
|
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1071125919, obj7);
|
||
|
}
|
||
|
((Method) obj7).invoke(null, objArr14);
|
||
|
int i8 = $11 + 11;
|
||
|
$10 = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:33:0x00df */
|
||
|
/* JADX WARN: Type inference failed for: r14v0, types: [android.database.sqlite.SQLiteDatabase] */
|
||
|
/* JADX WARN: Type inference failed for: r14v1 */
|
||
|
/* JADX WARN: Type inference failed for: r14v3, types: [android.database.Cursor] */
|
||
|
/* JADX WARN: Type inference failed for: r24v0, types: [com.google.android.gms.internal.gtm.zzam, com.google.android.gms.internal.gtm.zzan, com.google.android.gms.internal.gtm.zzay] */
|
||
|
/*
|
||
|
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.internal.gtm.zzcd> zzd(long r25) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 239
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzay.zzd(long):java.util.List");
|
||
|
}
|
||
|
|
||
|
public final void zza(List<Long> list) {
|
||
|
int i = 2 % 2;
|
||
|
Preconditions.checkNotNull(list);
|
||
|
zzk.zzav();
|
||
|
zzdb();
|
||
|
if (list.isEmpty()) {
|
||
|
return;
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("hit_id in (");
|
||
|
int i2 = 0;
|
||
|
while (true) {
|
||
|
Object obj = null;
|
||
|
if (i2 >= list.size()) {
|
||
|
sb.append(")");
|
||
|
String sb2 = sb.toString();
|
||
|
try {
|
||
|
SQLiteDatabase writableDatabase = getWritableDatabase();
|
||
|
zza("Deleting dispatched hits. count", Integer.valueOf(list.size()));
|
||
|
int delete = writableDatabase.delete("hits2", sb2, null);
|
||
|
if (delete != list.size()) {
|
||
|
int i3 = e + 111;
|
||
|
b = i3 % 128;
|
||
|
if (i3 % 2 != 0) {
|
||
|
zzb("Deleted fewer hits then expected", Integer.valueOf(list.size()), Integer.valueOf(delete), sb2);
|
||
|
return;
|
||
|
} else {
|
||
|
zzb("Deleted fewer hits then expected", Integer.valueOf(list.size()), Integer.valueOf(delete), sb2);
|
||
|
int i4 = 76 / 0;
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
return;
|
||
|
} catch (SQLiteException e2) {
|
||
|
zze("Error deleting hits", e2);
|
||
|
throw e2;
|
||
|
}
|
||
|
}
|
||
|
int i5 = b + 17;
|
||
|
e = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
list.get(i2);
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
Long l = list.get(i2);
|
||
|
if (l == null || l.longValue() == 0) {
|
||
|
break;
|
||
|
}
|
||
|
if (i2 > 0) {
|
||
|
sb.append(",");
|
||
|
}
|
||
|
sb.append(l);
|
||
|
i2++;
|
||
|
}
|
||
|
throw new SQLiteException("Invalid hit id");
|
||
|
}
|
||
|
|
||
|
public final void zze(long j) {
|
||
|
int i = 2 % 2;
|
||
|
zzk.zzav();
|
||
|
zzdb();
|
||
|
ArrayList arrayList = new ArrayList(1);
|
||
|
arrayList.add(Long.valueOf(j));
|
||
|
zza("Deleting hit, id", Long.valueOf(j));
|
||
|
zza(arrayList);
|
||
|
int i2 = b + 95;
|
||
|
e = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final int zzdr() {
|
||
|
int i = 2 % 2;
|
||
|
zzk.zzav();
|
||
|
zzdb();
|
||
|
if (!(!this.zzxm.zzj(86400000L))) {
|
||
|
this.zzxm.start();
|
||
|
zzq("Deleting stale hits (if any)");
|
||
|
int delete = getWritableDatabase().delete("hits2", "hit_time < ?", new String[]{Long.toString(zzcn().currentTimeMillis() - 2592000000L)});
|
||
|
zza("Deleted stale hits, count", Integer.valueOf(delete));
|
||
|
int i2 = e + 5;
|
||
|
b = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
return delete;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
int i3 = b + 25;
|
||
|
e = i3 % 128;
|
||
|
return i3 % 2 != 0 ? 1 : 0;
|
||
|
}
|
||
|
|
||
|
public final long zzds() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 111;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
zzk.zzav();
|
||
|
zzdb();
|
||
|
return zza(zzxk, (String[]) null, 0L);
|
||
|
}
|
||
|
|
||
|
public final long zza(long j, String str, String str2) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 109;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Preconditions.checkNotEmpty(str);
|
||
|
Preconditions.checkNotEmpty(str2);
|
||
|
zzdb();
|
||
|
zzk.zzav();
|
||
|
long zza = zza("SELECT hits_count FROM properties WHERE app_uid=? AND cid=? AND tid=?", new String[]{String.valueOf(j), str, str2}, 0L);
|
||
|
int i4 = e + 47;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return zza;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0096, code lost:
|
||
|
|
||
|
r7 = r3.getInt(3);
|
||
|
r24 = zzw(r3.getString(4));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x00a7, code lost:
|
||
|
|
||
|
if (android.text.TextUtils.isEmpty(r5) != false) goto L17;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x00ad, code lost:
|
||
|
|
||
|
if (android.text.TextUtils.isEmpty(r6) == false) goto L15;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x00b0, code lost:
|
||
|
|
||
|
r4.add(new com.google.android.gms.internal.gtm.zzas(0, r5, r6, r21, r7, r24));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x00c2, code lost:
|
||
|
|
||
|
r5 = com.google.android.gms.internal.gtm.zzay.e + 77;
|
||
|
com.google.android.gms.internal.gtm.zzay.b = r5 % 128;
|
||
|
r5 = r5 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:18:0x00d5, code lost:
|
||
|
|
||
|
if (r3.moveToNext() != false) goto L47;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:21:0x00cc, code lost:
|
||
|
|
||
|
zzc("Read property with empty client id or tracker id", r5, r6);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0094, code lost:
|
||
|
|
||
|
r21 = false;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:24:0x00db, code lost:
|
||
|
|
||
|
if (r4.size() < r2) goto L23;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x00dd, code lost:
|
||
|
|
||
|
zzt("Sending hits to too many properties. Campaign report might be incorrect");
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:27:0x00e2, code lost:
|
||
|
|
||
|
if (r3 == null) goto L25;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:28:0x00e4, code lost:
|
||
|
|
||
|
r3.close();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:29:0x00e7, code lost:
|
||
|
|
||
|
return r4;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x0078, code lost:
|
||
|
|
||
|
if ((!r3.moveToFirst()) != true) goto L6;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x007a, code lost:
|
||
|
|
||
|
r5 = r3.getString(0);
|
||
|
r6 = r3.getString(1);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0086, code lost:
|
||
|
|
||
|
if (r3.getInt(2) == 0) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0088, code lost:
|
||
|
|
||
|
r7 = com.google.android.gms.internal.gtm.zzay.b + 61;
|
||
|
com.google.android.gms.internal.gtm.zzay.e = r7 % 128;
|
||
|
r7 = r7 % 2;
|
||
|
r21 = true;
|
||
|
*/
|
||
|
/* JADX WARN: Removed duplicated region for block: B:39:0x00fc */
|
||
|
/*
|
||
|
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.internal.gtm.zzas> zzf(long r26) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 256
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzay.zzf(long):java.util.List");
|
||
|
}
|
||
|
|
||
|
@Override // java.io.Closeable, java.lang.AutoCloseable
|
||
|
public final void close() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 75;
|
||
|
e = i2 % 128;
|
||
|
try {
|
||
|
if (i2 % 2 != 0) {
|
||
|
this.zzxl.close();
|
||
|
int i3 = 11 / 0;
|
||
|
} else {
|
||
|
this.zzxl.close();
|
||
|
}
|
||
|
} catch (SQLiteException e2) {
|
||
|
zze("Sql error closing database", e2);
|
||
|
} catch (IllegalStateException e3) {
|
||
|
zze("Error closing database", e3);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final long zza(String str, String[] strArr) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 69;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Cursor cursor = null;
|
||
|
try {
|
||
|
try {
|
||
|
Cursor rawQuery = getWritableDatabase().rawQuery(str, null);
|
||
|
if (rawQuery.moveToFirst()) {
|
||
|
long j = rawQuery.getLong(0);
|
||
|
if (rawQuery != null) {
|
||
|
rawQuery.close();
|
||
|
int i4 = b + 59;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
}
|
||
|
return j;
|
||
|
}
|
||
|
throw new SQLiteException("Database returned empty set");
|
||
|
} catch (SQLiteException e2) {
|
||
|
zzd("Database error", str, e2);
|
||
|
throw e2;
|
||
|
}
|
||
|
} catch (Throwable th) {
|
||
|
if (0 != 0) {
|
||
|
int i6 = e + 69;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
cursor.close();
|
||
|
}
|
||
|
throw th;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final long zza(String str, String[] strArr, long j) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 47;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
Cursor cursor = null;
|
||
|
try {
|
||
|
try {
|
||
|
cursor = getWritableDatabase().rawQuery(str, strArr);
|
||
|
if (cursor.moveToFirst()) {
|
||
|
int i4 = b + 53;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return cursor.getLong(0);
|
||
|
}
|
||
|
if (cursor == null) {
|
||
|
return 0L;
|
||
|
}
|
||
|
int i6 = e + 43;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
cursor.close();
|
||
|
return 0L;
|
||
|
} catch (SQLiteException e2) {
|
||
|
zzd("Database error", str, e2);
|
||
|
throw e2;
|
||
|
}
|
||
|
} finally {
|
||
|
if (cursor != null) {
|
||
|
cursor.close();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final Map<String, String> zzv(String str) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 11;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (TextUtils.isEmpty(str)) {
|
||
|
return new HashMap(0);
|
||
|
}
|
||
|
try {
|
||
|
if (!str.startsWith("?")) {
|
||
|
String valueOf = String.valueOf(str);
|
||
|
str = valueOf.length() != 0 ? "?".concat(valueOf) : new String("?");
|
||
|
}
|
||
|
Map<String, String> parse = HttpUtils.parse(new URI(str), "UTF-8");
|
||
|
int i4 = e + 67;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return parse;
|
||
|
} catch (URISyntaxException e2) {
|
||
|
zze("Error parsing hit parameters", e2);
|
||
|
return new HashMap(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private final Map<String, String> zzw(String str) {
|
||
|
String str2;
|
||
|
int i = 2 % 2;
|
||
|
if (TextUtils.isEmpty(str)) {
|
||
|
HashMap hashMap = new HashMap(0);
|
||
|
int i2 = b + 57;
|
||
|
e = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
return hashMap;
|
||
|
}
|
||
|
try {
|
||
|
String valueOf = String.valueOf(str);
|
||
|
if (valueOf.length() != 0) {
|
||
|
int i4 = b + 41;
|
||
|
e = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
str2 = "?".concat(valueOf);
|
||
|
} else {
|
||
|
str2 = new String("?");
|
||
|
}
|
||
|
return HttpUtils.parse(new URI(str2), "UTF-8");
|
||
|
} catch (URISyntaxException e2) {
|
||
|
zze("Error parsing property parameters", e2);
|
||
|
return new HashMap(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final SQLiteDatabase getWritableDatabase() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 23;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
try {
|
||
|
SQLiteDatabase writableDatabase = this.zzxl.getWritableDatabase();
|
||
|
int i4 = b + 7;
|
||
|
e = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
return writableDatabase;
|
||
|
}
|
||
|
throw null;
|
||
|
} catch (SQLiteException e2) {
|
||
|
zzd("Error opening database", e2);
|
||
|
throw e2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ zzcv zza(zzay zzayVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b;
|
||
|
int i3 = i2 + 69;
|
||
|
e = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
zzcv zzcvVar = zzayVar.zzxn;
|
||
|
int i5 = i2 + 59;
|
||
|
e = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
int i6 = 34 / 0;
|
||
|
}
|
||
|
return zzcvVar;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ String zzb(zzay zzayVar) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 57;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
String zzdt = zzdt();
|
||
|
int i4 = e + 89;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 == 0) {
|
||
|
int i5 = 35 / 0;
|
||
|
}
|
||
|
return zzdt;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
b = 1;
|
||
|
e();
|
||
|
zzxj = String.format("CREATE TABLE IF NOT EXISTS %s ( '%s' INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, '%s' INTEGER NOT NULL, '%s' TEXT NOT NULL, '%s' TEXT NOT NULL, '%s' INTEGER);", "hits2", "hit_id", "hit_time", "hit_url", "hit_string", "hit_app_id");
|
||
|
zzxk = String.format("SELECT MAX(%s) FROM %s WHERE 1;", "hit_time", "hits2");
|
||
|
int i = e + 19;
|
||
|
b = i % 128;
|
||
|
if (i % 2 == 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static void e() {
|
||
|
a = new char[]{36834};
|
||
|
d = -7929315103966345951L;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.internal.gtm.zzan
|
||
|
protected final void zzaw() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 71;
|
||
|
e = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static /* synthetic */ String zzdu() {
|
||
|
String str;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 43;
|
||
|
int i3 = i2 % 128;
|
||
|
e = i3;
|
||
|
if (i2 % 2 != 0) {
|
||
|
str = zzxj;
|
||
|
int i4 = 13 / 0;
|
||
|
} else {
|
||
|
str = zzxj;
|
||
|
}
|
||
|
int i5 = i3 + 69;
|
||
|
b = i5 % 128;
|
||
|
if (i5 % 2 == 0) {
|
||
|
int i6 = 59 / 0;
|
||
|
}
|
||
|
return str;
|
||
|
}
|
||
|
|
||
|
private static String zzdt() {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = e + 61;
|
||
|
int i3 = i2 % 128;
|
||
|
b = i3;
|
||
|
if (i2 % 2 == 0) {
|
||
|
int i4 = 22 / 0;
|
||
|
}
|
||
|
int i5 = i3 + 25;
|
||
|
e = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
int i6 = 92 / 0;
|
||
|
}
|
||
|
return "google_analytics_v4.db";
|
||
|
}
|
||
|
}
|