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

450 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.net.Uri;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.gtm.zzam;
import com.google.android.gms.internal.gtm.zzao;
import com.google.android.gms.internal.gtm.zzap;
import com.google.android.gms.internal.gtm.zzas;
import com.google.android.gms.internal.gtm.zzcd;
import com.google.android.gms.internal.gtm.zzcz;
import com.google.android.gms.internal.gtm.zzq;
import com.google.android.gms.internal.gtm.zzz;
import com.huawei.hms.framework.common.ContainerUtils;
import com.huawei.hms.support.feature.result.CommonConstant;
import java.lang.reflect.Method;
import java.text.DecimalFormat;
import java.util.HashMap;
import java.util.Map;
import o.jTb;
import o.xzZ;
/* loaded from: classes.dex */
public final class zzb extends zzam implements zzo {
private static DecimalFormat zzrf;
private final zzap zzrb;
private final String zzrg;
private final Uri zzrh;
private static final byte[] $$a = {60, -87, -31, 8};
private static final int $$b = 134;
private static int $10 = 0;
private static int $11 = 1;
private static int c = 0;
private static int i = 1;
private static char d = 30865;
private static char e = 17926;
private static char b = 4154;
private static char a = 8976;
public zzb(zzap zzapVar, String str) {
this(zzapVar, str, true, false);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x002d). 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(int r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r6 = 67 - r6
int r8 = r8 * 4
int r0 = r8 + 1
byte[] r1 = com.google.android.gms.analytics.zzb.$$a
int r7 = r7 * 4
int r7 = 3 - r7
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L14
r3 = r7
r4 = r2
goto L2d
L14:
r3 = r2
L15:
int r7 = r7 + 1
byte r4 = (byte) r6
r0[r3] = r4
if (r3 != r8) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L24:
int r3 = r3 + 1
r4 = r1[r7]
r5 = r7
r7 = r6
r6 = r4
r4 = r3
r3 = r5
L2d:
int r6 = -r6
int r6 = r6 + r7
r7 = r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.zzb.g(int, int, short, java.lang.Object[]):void");
}
private zzb(zzap zzapVar, String str, boolean z, boolean z2) {
super(zzapVar);
Preconditions.checkNotEmpty(str);
this.zzrb = zzapVar;
this.zzrg = str;
this.zzrh = zzb(str);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Uri zzb(String str) {
int i2 = 2 % 2;
Preconditions.checkNotEmpty(str);
Uri.Builder builder = new Uri.Builder();
builder.scheme("uri");
builder.authority("google-analytics.com");
builder.path(str);
Uri build = builder.build();
int i3 = c + 101;
i = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 27 / 0;
}
return build;
}
@Override // com.google.android.gms.analytics.zzo
public final void zzb(zzg zzgVar) {
int i2 = 2 % 2;
Preconditions.checkNotNull(zzgVar);
Preconditions.checkArgument(zzgVar.zzan(), "Can't deliver not submitted measurement");
Preconditions.checkNotMainThread("deliver should be called on worker thread");
zzg zzai = zzgVar.zzai();
zzz zzzVar = (zzz) zzai.zzb(zzz.class);
if (!(!TextUtils.isEmpty(zzzVar.zzbs()))) {
int i3 = i + 63;
c = i3 % 128;
int i4 = i3 % 2;
zzco().zza(zzc(zzai), "Ignoring measurement without type");
int i5 = c + 23;
i = i5 % 128;
int i6 = i5 % 2;
return;
}
if (TextUtils.isEmpty(zzzVar.zzbt())) {
zzco().zza(zzc(zzai), "Ignoring measurement without client id");
int i7 = c + 53;
i = i7 % 128;
int i8 = i7 % 2;
return;
}
if (this.zzrb.zzde().getAppOptOut()) {
return;
}
double zzbz = zzzVar.zzbz();
if (!(!zzcz.zza(zzbz, zzzVar.zzbt()))) {
zzb("Sampling enabled. Hit sampled out. sampling rate", Double.valueOf(zzbz));
int i9 = c + 85;
i = i9 % 128;
int i10 = i9 % 2;
return;
}
Map<String, String> zzc = zzc(zzai);
Object[] objArr = new Object[1];
f(new char[]{19846, 64691}, 1 - (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr);
zzc.put("v", ((String) objArr[0]).intern());
zzc.put("_v", zzao.zzwe);
zzc.put("tid", this.zzrg);
if (this.zzrb.zzde().isDryRunEnabled()) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, String> entry : zzc.entrySet()) {
if (sb.length() != 0) {
sb.append(", ");
}
sb.append(entry.getKey());
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
sb.append(entry.getValue());
}
zzc("Dry run is enabled. GoogleAnalytics would have sent", sb.toString());
return;
}
HashMap hashMap = new HashMap();
zzcz.zzb(hashMap, CommonConstant.KEY_UID, zzzVar.zzbu());
zzq zzqVar = (zzq) zzgVar.zza(zzq.class);
if (zzqVar != null) {
zzcz.zzb(hashMap, "an", zzqVar.zzaz());
zzcz.zzb(hashMap, "aid", zzqVar.zzbb());
zzcz.zzb(hashMap, "av", zzqVar.zzba());
zzcz.zzb(hashMap, "aiid", zzqVar.zzbc());
}
zzc.put("_s", String.valueOf(zzcs().zza(new zzas(0L, zzzVar.zzbt(), this.zzrg, !TextUtils.isEmpty(zzzVar.zzbv()), 0L, hashMap))));
zzcs().zza(new zzcd(zzco(), zzc, zzgVar.zzal(), true));
}
private static void f(char[] cArr, int i2, Object[] objArr) {
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i4 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
cArr3[i4] = cArr[jtb.b];
int i5 = 1;
cArr3[1] = cArr[jtb.b + 1];
int i6 = 58224;
int i7 = i4;
while (i7 < 16) {
int i8 = $11 + 121;
$10 = i8 % 128;
int i9 = i8 % 2;
char c2 = cArr3[i5];
char c3 = cArr3[i4];
char[] cArr4 = cArr3;
int i10 = (c3 + i6) ^ ((c3 << 4) + ((char) (b ^ 41718355337583039L)));
int i11 = c3 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(a);
objArr2[2] = Integer.valueOf(i11);
objArr2[i5] = Integer.valueOf(i10);
objArr2[0] = Integer.valueOf(c2);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(412 - (ViewConfiguration.getJumpTapTimeout() >> 16), MotionEvent.axisFromString("") + 6, (char) (TextUtils.indexOf((CharSequence) "", '0', 0, 0) + i5));
byte b2 = (byte) i5;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[i5];
g(b2, b3, b3, objArr3);
String str = (String) objArr3[0];
Class<?>[] clsArr = new Class[4];
clsArr[0] = Integer.TYPE;
clsArr[i5] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[i5] = charValue;
int i12 = i7;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(e)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(413 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), 6 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), (char) (ViewConfiguration.getScrollBarFadeDuration() >> 16));
byte b4 = (byte) 1;
byte b5 = (byte) (b4 - 1);
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
i7 = i12 + 1;
cArr3 = cArr4;
i4 = 0;
i5 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 98, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) View.getDefaultSize(0, 0));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i4 = 0;
}
String str2 = new String(cArr2, 0, i2);
int i13 = $11 + 101;
$10 = i13 % 128;
int i14 = i13 % 2;
objArr[0] = str2;
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x0048, code lost:
if (android.text.TextUtils.isEmpty(r6) == false) goto L32;
*/
/* JADX WARN: Removed duplicated region for block: B:15:0x00af A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:25:0x002b A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static java.util.Map<java.lang.String, java.lang.String> zzc(com.google.android.gms.analytics.zzg r14) {
/*
Method dump skipped, instructions count: 1204
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.zzb.zzc(com.google.android.gms.analytics.zzg):java.util.Map");
}
private static void zza(Map<String, String> map, String str, String str2) {
int i2 = 2 % 2;
int i3 = i + 85;
c = i3 % 128;
int i4 = i3 % 2;
if (TextUtils.isEmpty(str2)) {
return;
}
int i5 = i + 23;
c = i5 % 128;
int i6 = i5 % 2;
map.put(str, str2);
if (i6 != 0) {
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0019, code lost:
if (com.google.android.gms.analytics.zzb.zzrf == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (com.google.android.gms.analytics.zzb.zzrf == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x001b, code lost:
com.google.android.gms.analytics.zzb.zzrf = new java.text.DecimalFormat("0.######");
r1 = com.google.android.gms.analytics.zzb.i + 23;
com.google.android.gms.analytics.zzb.c = r1 % 128;
r1 = r1 % 2;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static java.lang.String zza(double r3) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.analytics.zzb.c
int r1 = r1 + 101
int r2 = r1 % 128
com.google.android.gms.analytics.zzb.i = r2
int r1 = r1 % r0
if (r1 != 0) goto L17
java.text.DecimalFormat r1 = com.google.android.gms.analytics.zzb.zzrf
r2 = 29
int r2 = r2 / 0
if (r1 != 0) goto L2d
goto L1b
L17:
java.text.DecimalFormat r1 = com.google.android.gms.analytics.zzb.zzrf
if (r1 != 0) goto L2d
L1b:
java.text.DecimalFormat r1 = new java.text.DecimalFormat
java.lang.String r2 = "0.######"
r1.<init>(r2)
com.google.android.gms.analytics.zzb.zzrf = r1
int r1 = com.google.android.gms.analytics.zzb.i
int r1 = r1 + 23
int r2 = r1 % 128
com.google.android.gms.analytics.zzb.c = r2
int r1 = r1 % r0
L2d:
java.text.DecimalFormat r0 = com.google.android.gms.analytics.zzb.zzrf
java.lang.String r3 = r0.format(r3)
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.analytics.zzb.zza(double):java.lang.String");
}
private static void zza(Map<String, String> map, String str, double d2) {
int i2 = 2 % 2;
int i3 = i + 55;
c = i3 % 128;
if (i3 % 2 != 0) {
if (d2 == 0.0d) {
return;
}
} else if (d2 == 0.0d) {
return;
}
map.put(str, zza(d2));
int i4 = i + 117;
c = i4 % 128;
int i5 = i4 % 2;
}
private static void zza(Map<String, String> map, String str, boolean z) {
int i2 = 2 % 2;
int i3 = i + 33;
c = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
if (z) {
Object[] objArr = new Object[1];
f(new char[]{19846, 64691}, 1 - KeyEvent.normalizeMetaState(0), objArr);
map.put(str, ((String) objArr[0]).intern());
}
int i4 = c + 29;
i = i4 % 128;
int i5 = i4 % 2;
}
private static void zza(Map<String, String> map, String str, int i2, int i3) {
int i4 = 2 % 2;
int i5 = i + 63;
c = i5 % 128;
int i6 = i5 % 2;
if (i2 > 0 && i3 > 0) {
StringBuilder sb = new StringBuilder(23);
sb.append(i2);
sb.append("x");
sb.append(i3);
map.put(str, sb.toString());
}
int i7 = i + 49;
c = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 33 / 0;
}
}
@Override // com.google.android.gms.analytics.zzo
public final Uri zzae() {
int i2 = 2 % 2;
int i3 = c + 63;
int i4 = i3 % 128;
i = i4;
if (i3 % 2 == 0) {
throw null;
}
Uri uri = this.zzrh;
int i5 = i4 + 9;
c = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 10 / 0;
}
return uri;
}
}