Initial commit
This commit is contained in:
145
sources/com/google/android/gms/measurement/internal/zza.java
Normal file
145
sources/com/google/android/gms/measurement/internal/zza.java
Normal file
@@ -0,0 +1,145 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.collection.ArrayMap;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zza extends zze {
|
||||
private final Map<String, Long> b;
|
||||
private final Map<String, Integer> c;
|
||||
private long d;
|
||||
|
||||
public zza(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.c = new ArrayMap();
|
||||
this.b = new ArrayMap();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void c(String str, long j) {
|
||||
g();
|
||||
f();
|
||||
Preconditions.b(str);
|
||||
if (this.c.isEmpty()) {
|
||||
this.d = j;
|
||||
}
|
||||
Integer num = this.c.get(str);
|
||||
if (num != null) {
|
||||
this.c.put(str, Integer.valueOf(num.intValue() + 1));
|
||||
} else if (this.c.size() >= 100) {
|
||||
e().w().a("Too many ads visible");
|
||||
} else {
|
||||
this.c.put(str, 1);
|
||||
this.b.put(str, Long.valueOf(j));
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void d(String str, long j) {
|
||||
g();
|
||||
f();
|
||||
Preconditions.b(str);
|
||||
Integer num = this.c.get(str);
|
||||
if (num == null) {
|
||||
e().t().a("Call to endAdUnitExposure for unknown ad unit id", str);
|
||||
return;
|
||||
}
|
||||
zzdx B = s().B();
|
||||
int intValue = num.intValue() - 1;
|
||||
if (intValue != 0) {
|
||||
this.c.put(str, Integer.valueOf(intValue));
|
||||
return;
|
||||
}
|
||||
this.c.remove(str);
|
||||
Long l = this.b.get(str);
|
||||
if (l == null) {
|
||||
e().t().a("First ad unit exposure time was never set");
|
||||
} else {
|
||||
long longValue = j - l.longValue();
|
||||
this.b.remove(str);
|
||||
a(str, longValue, B);
|
||||
}
|
||||
if (this.c.isEmpty()) {
|
||||
long j2 = this.d;
|
||||
if (j2 == 0) {
|
||||
e().t().a("First ad exposure time was never set");
|
||||
} else {
|
||||
a(j - j2, B);
|
||||
this.d = 0L;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void a(String str, long j) {
|
||||
if (str == null || str.length() == 0) {
|
||||
e().t().a("Ad unit id must be a non-empty string");
|
||||
} else {
|
||||
a().a(new zzb(this, str, j));
|
||||
}
|
||||
}
|
||||
|
||||
public final void b(String str, long j) {
|
||||
if (str == null || str.length() == 0) {
|
||||
e().t().a("Ad unit id must be a non-empty string");
|
||||
} else {
|
||||
a().a(new zzc(this, str, j));
|
||||
}
|
||||
}
|
||||
|
||||
private final void a(long j, zzdx zzdxVar) {
|
||||
if (zzdxVar == null) {
|
||||
e().B().a("Not logging ad exposure. No active activity");
|
||||
return;
|
||||
}
|
||||
if (j < 1000) {
|
||||
e().B().a("Not logging ad exposure. Less than 1000 ms. exposure", Long.valueOf(j));
|
||||
return;
|
||||
}
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putLong("_xt", j);
|
||||
zzdy.a(zzdxVar, bundle, true);
|
||||
p().b("am", "_xa", bundle);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void b(long j) {
|
||||
Iterator<String> it = this.b.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
this.b.put(it.next(), Long.valueOf(j));
|
||||
}
|
||||
if (this.b.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
this.d = j;
|
||||
}
|
||||
|
||||
private final void a(String str, long j, zzdx zzdxVar) {
|
||||
if (zzdxVar == null) {
|
||||
e().B().a("Not logging ad unit exposure. No active activity");
|
||||
return;
|
||||
}
|
||||
if (j < 1000) {
|
||||
e().B().a("Not logging ad unit exposure. Less than 1000 ms. exposure", Long.valueOf(j));
|
||||
return;
|
||||
}
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("_ai", str);
|
||||
bundle.putLong("_xt", j);
|
||||
zzdy.a(zzdxVar, bundle, true);
|
||||
p().b("am", "_xu", bundle);
|
||||
}
|
||||
|
||||
public final void a(long j) {
|
||||
zzdx B = s().B();
|
||||
for (String str : this.b.keySet()) {
|
||||
a(str, j - this.b.get(str).longValue(), B);
|
||||
}
|
||||
if (!this.b.isEmpty()) {
|
||||
a(j - this.d, B);
|
||||
}
|
||||
b(j);
|
||||
}
|
||||
}
|
@@ -0,0 +1,60 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager;
|
||||
import com.ubtrobot.jimu.robotapi.PeripheralType;
|
||||
import java.util.Calendar;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzaa extends zzcs {
|
||||
private long c;
|
||||
private String d;
|
||||
private Boolean e;
|
||||
|
||||
zzaa(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
}
|
||||
|
||||
public final boolean a(Context context) {
|
||||
if (this.e == null) {
|
||||
c();
|
||||
this.e = false;
|
||||
try {
|
||||
PackageManager packageManager = context.getPackageManager();
|
||||
if (packageManager != null) {
|
||||
packageManager.getPackageInfo("com.google.android.gms", PeripheralType.SERVO);
|
||||
this.e = true;
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException unused) {
|
||||
}
|
||||
}
|
||||
return this.e.booleanValue();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final boolean q() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
this.c = TimeUnit.MINUTES.convert(calendar.get(15) + calendar.get(16), TimeUnit.MILLISECONDS);
|
||||
Locale locale = Locale.getDefault();
|
||||
String lowerCase = locale.getLanguage().toLowerCase(Locale.ENGLISH);
|
||||
String lowerCase2 = locale.getCountry().toLowerCase(Locale.ENGLISH);
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(lowerCase).length() + 1 + String.valueOf(lowerCase2).length());
|
||||
sb.append(lowerCase);
|
||||
sb.append("-");
|
||||
sb.append(lowerCase2);
|
||||
this.d = sb.toString();
|
||||
return false;
|
||||
}
|
||||
|
||||
public final long t() {
|
||||
o();
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public final String u() {
|
||||
o();
|
||||
return this.d;
|
||||
}
|
||||
}
|
@@ -0,0 +1,89 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzab {
|
||||
final String a;
|
||||
final String b;
|
||||
private final String c;
|
||||
final long d;
|
||||
final long e;
|
||||
final zzad f;
|
||||
|
||||
private zzab(zzbw zzbwVar, String str, String str2, String str3, long j, long j2, zzad zzadVar) {
|
||||
Preconditions.b(str2);
|
||||
Preconditions.b(str3);
|
||||
Preconditions.a(zzadVar);
|
||||
this.a = str2;
|
||||
this.b = str3;
|
||||
this.c = TextUtils.isEmpty(str) ? null : str;
|
||||
this.d = j;
|
||||
this.e = j2;
|
||||
long j3 = this.e;
|
||||
if (j3 != 0 && j3 > this.d) {
|
||||
zzbwVar.e().w().a("Event created with reverse previous/current timestamps. appId, name", zzas.a(str2), zzas.a(str3));
|
||||
}
|
||||
this.f = zzadVar;
|
||||
}
|
||||
|
||||
final zzab a(zzbw zzbwVar, long j) {
|
||||
return new zzab(zzbwVar, this.c, this.a, this.b, this.d, j, this.f);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
String str = this.a;
|
||||
String str2 = this.b;
|
||||
String valueOf = String.valueOf(this.f);
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 33 + String.valueOf(str2).length() + String.valueOf(valueOf).length());
|
||||
sb.append("Event{appId='");
|
||||
sb.append(str);
|
||||
sb.append("', name='");
|
||||
sb.append(str2);
|
||||
sb.append("', params=");
|
||||
sb.append(valueOf);
|
||||
sb.append('}');
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
zzab(zzbw zzbwVar, String str, String str2, String str3, long j, long j2, Bundle bundle) {
|
||||
zzad zzadVar;
|
||||
Preconditions.b(str2);
|
||||
Preconditions.b(str3);
|
||||
this.a = str2;
|
||||
this.b = str3;
|
||||
this.c = TextUtils.isEmpty(str) ? null : str;
|
||||
this.d = j;
|
||||
this.e = j2;
|
||||
long j3 = this.e;
|
||||
if (j3 != 0 && j3 > this.d) {
|
||||
zzbwVar.e().w().a("Event created with reverse previous/current timestamps. appId", zzas.a(str2));
|
||||
}
|
||||
if (bundle != null && !bundle.isEmpty()) {
|
||||
Bundle bundle2 = new Bundle(bundle);
|
||||
Iterator<String> it = bundle2.keySet().iterator();
|
||||
while (it.hasNext()) {
|
||||
String next = it.next();
|
||||
if (next == null) {
|
||||
zzbwVar.e().t().a("Param name can't be null");
|
||||
it.remove();
|
||||
} else {
|
||||
Object a = zzbwVar.s().a(next, bundle2.get(next));
|
||||
if (a == null) {
|
||||
zzbwVar.e().w().a("Param value can't be null", zzbwVar.r().b(next));
|
||||
it.remove();
|
||||
} else {
|
||||
zzbwVar.s().a(bundle2, next, a);
|
||||
}
|
||||
}
|
||||
}
|
||||
zzadVar = new zzad(bundle2);
|
||||
} else {
|
||||
zzadVar = new zzad(new Bundle());
|
||||
}
|
||||
this.f = zzadVar;
|
||||
}
|
||||
}
|
@@ -0,0 +1,47 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzac {
|
||||
final String a;
|
||||
final String b;
|
||||
final long c;
|
||||
final long d;
|
||||
final long e;
|
||||
final long f;
|
||||
final Long g;
|
||||
final Long h;
|
||||
final Long i;
|
||||
final Boolean j;
|
||||
|
||||
zzac(String str, String str2, long j, long j2, long j3, long j4, Long l, Long l2, Long l3, Boolean bool) {
|
||||
Preconditions.b(str);
|
||||
Preconditions.b(str2);
|
||||
Preconditions.a(j >= 0);
|
||||
Preconditions.a(j2 >= 0);
|
||||
Preconditions.a(j4 >= 0);
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = j;
|
||||
this.d = j2;
|
||||
this.e = j3;
|
||||
this.f = j4;
|
||||
this.g = l;
|
||||
this.h = l2;
|
||||
this.i = l3;
|
||||
this.j = bool;
|
||||
}
|
||||
|
||||
final zzac a(long j) {
|
||||
return new zzac(this.a, this.b, this.c, this.d, j, this.f, this.g, this.h, this.i, this.j);
|
||||
}
|
||||
|
||||
final zzac a(long j, long j2) {
|
||||
return new zzac(this.a, this.b, this.c, this.d, this.e, j, Long.valueOf(j2), this.h, this.i, this.j);
|
||||
}
|
||||
|
||||
final zzac a(Long l, Long l2, Boolean bool) {
|
||||
return new zzac(this.a, this.b, this.c, this.d, this.e, this.f, this.g, l, l2, (bool == null || bool.booleanValue()) ? bool : null);
|
||||
}
|
||||
}
|
@@ -0,0 +1,58 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzad extends AbstractSafeParcelable implements Iterable<String> {
|
||||
public static final Parcelable.Creator<zzad> CREATOR = new zzaf();
|
||||
private final Bundle zzaid;
|
||||
|
||||
zzad(Bundle bundle) {
|
||||
this.zzaid = bundle;
|
||||
}
|
||||
|
||||
final Object get(String str) {
|
||||
return this.zzaid.get(str);
|
||||
}
|
||||
|
||||
final Long getLong(String str) {
|
||||
return Long.valueOf(this.zzaid.getLong(str));
|
||||
}
|
||||
|
||||
final String getString(String str) {
|
||||
return this.zzaid.getString(str);
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public final Iterator<String> iterator() {
|
||||
return new zzae(this);
|
||||
}
|
||||
|
||||
public final int size() {
|
||||
return this.zzaid.size();
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
return this.zzaid.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int a = SafeParcelWriter.a(parcel);
|
||||
SafeParcelWriter.a(parcel, 2, zziy(), false);
|
||||
SafeParcelWriter.a(parcel, a);
|
||||
}
|
||||
|
||||
final Double zzbr(String str) {
|
||||
return Double.valueOf(this.zzaid.getDouble(str));
|
||||
}
|
||||
|
||||
public final Bundle zziy() {
|
||||
return new Bundle(this.zzaid);
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzae implements Iterator<String> {
|
||||
private Iterator<String> a;
|
||||
private final /* synthetic */ zzad b;
|
||||
|
||||
zzae(zzad zzadVar) {
|
||||
Bundle bundle;
|
||||
this.b = zzadVar;
|
||||
bundle = this.b.zzaid;
|
||||
this.a = bundle.keySet().iterator();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public final boolean hasNext() {
|
||||
return this.a.hasNext();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public final /* synthetic */ String next() {
|
||||
return this.a.next();
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public final void remove() {
|
||||
throw new UnsupportedOperationException("Remove not supported");
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzaf implements Parcelable.Creator<zzad> {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ zzad createFromParcel(Parcel parcel) {
|
||||
int b = SafeParcelReader.b(parcel);
|
||||
Bundle bundle = null;
|
||||
while (parcel.dataPosition() < b) {
|
||||
int a = SafeParcelReader.a(parcel);
|
||||
if (SafeParcelReader.a(a) != 2) {
|
||||
SafeParcelReader.C(parcel, a);
|
||||
} else {
|
||||
bundle = SafeParcelReader.f(parcel, a);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.q(parcel, b);
|
||||
return new zzad(bundle);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ zzad[] newArray(int i) {
|
||||
return new zzad[i];
|
||||
}
|
||||
}
|
@@ -0,0 +1,55 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzag extends AbstractSafeParcelable {
|
||||
public static final Parcelable.Creator<zzag> CREATOR = new zzah();
|
||||
public final String name;
|
||||
public final String origin;
|
||||
public final zzad zzahu;
|
||||
public final long zzaig;
|
||||
|
||||
public zzag(String str, zzad zzadVar, String str2, long j) {
|
||||
this.name = str;
|
||||
this.zzahu = zzadVar;
|
||||
this.origin = str2;
|
||||
this.zzaig = j;
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
String str = this.origin;
|
||||
String str2 = this.name;
|
||||
String valueOf = String.valueOf(this.zzahu);
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 21 + String.valueOf(str2).length() + String.valueOf(valueOf).length());
|
||||
sb.append("origin=");
|
||||
sb.append(str);
|
||||
sb.append(",name=");
|
||||
sb.append(str2);
|
||||
sb.append(",params=");
|
||||
sb.append(valueOf);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
int a = SafeParcelWriter.a(parcel);
|
||||
SafeParcelWriter.a(parcel, 2, this.name, false);
|
||||
SafeParcelWriter.a(parcel, 3, (Parcelable) this.zzahu, i, false);
|
||||
SafeParcelWriter.a(parcel, 4, this.origin, false);
|
||||
SafeParcelWriter.a(parcel, 5, this.zzaig);
|
||||
SafeParcelWriter.a(parcel, a);
|
||||
}
|
||||
|
||||
zzag(zzag zzagVar, long j) {
|
||||
Preconditions.a(zzagVar);
|
||||
this.name = zzagVar.name;
|
||||
this.zzahu = zzagVar.zzahu;
|
||||
this.origin = zzagVar.origin;
|
||||
this.zzaig = j;
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzah implements Parcelable.Creator<zzag> {
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ zzag createFromParcel(Parcel parcel) {
|
||||
int b = SafeParcelReader.b(parcel);
|
||||
String str = null;
|
||||
zzad zzadVar = null;
|
||||
String str2 = null;
|
||||
long j = 0;
|
||||
while (parcel.dataPosition() < b) {
|
||||
int a = SafeParcelReader.a(parcel);
|
||||
int a2 = SafeParcelReader.a(a);
|
||||
if (a2 == 2) {
|
||||
str = SafeParcelReader.n(parcel, a);
|
||||
} else if (a2 == 3) {
|
||||
zzadVar = (zzad) SafeParcelReader.a(parcel, a, zzad.CREATOR);
|
||||
} else if (a2 == 4) {
|
||||
str2 = SafeParcelReader.n(parcel, a);
|
||||
} else if (a2 != 5) {
|
||||
SafeParcelReader.C(parcel, a);
|
||||
} else {
|
||||
j = SafeParcelReader.z(parcel, a);
|
||||
}
|
||||
}
|
||||
SafeParcelReader.q(parcel, b);
|
||||
return new zzag(str, zzadVar, str2, j);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public final /* synthetic */ zzag[] newArray(int i) {
|
||||
return new zzag[i];
|
||||
}
|
||||
}
|
331
sources/com/google/android/gms/measurement/internal/zzai.java
Normal file
331
sources/com/google/android/gms/measurement/internal/zzai.java
Normal file
@@ -0,0 +1,331 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.GoogleApiAvailabilityLight;
|
||||
import com.google.android.gms.common.GooglePlayServicesUtilLight;
|
||||
import com.google.android.gms.internal.measurement.zzrx;
|
||||
import com.google.android.gms.internal.measurement.zzsh;
|
||||
import com.google.android.gms.internal.measurement.zzsi;
|
||||
import com.google.android.gms.internal.measurement.zzso;
|
||||
import com.ubt.jimu.base.mvp.SingleClickListener;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzai {
|
||||
public static zza<String> A;
|
||||
public static zza<Long> B;
|
||||
public static zza<Long> C;
|
||||
public static zza<Long> D;
|
||||
public static zza<Long> E;
|
||||
public static zza<Long> F;
|
||||
public static zza<Long> G;
|
||||
public static zza<Long> H;
|
||||
public static zza<Long> I;
|
||||
public static zza<Long> J;
|
||||
public static zza<Long> K;
|
||||
public static zza<Long> L;
|
||||
public static zza<Integer> M;
|
||||
public static zza<Long> N;
|
||||
public static zza<Integer> O;
|
||||
public static zza<Integer> P;
|
||||
public static zza<Long> Q;
|
||||
public static zza<Integer> R;
|
||||
public static zza<Boolean> S;
|
||||
public static zza<Boolean> T;
|
||||
public static zza<Boolean> U;
|
||||
public static zza<Boolean> V;
|
||||
public static zza<Boolean> W;
|
||||
public static zza<Boolean> X;
|
||||
public static zza<Boolean> Y;
|
||||
public static zza<Boolean> Z;
|
||||
static zzn a;
|
||||
public static zza<Boolean> a0;
|
||||
public static zza<Boolean> b0;
|
||||
public static zza<Boolean> c0;
|
||||
public static zza<Boolean> d0;
|
||||
public static zza<Boolean> e0;
|
||||
public static zza<Boolean> f0;
|
||||
public static zza<Boolean> g0;
|
||||
private static volatile zzbw h;
|
||||
public static zza<Boolean> h0;
|
||||
private static Boolean i;
|
||||
public static zza<Boolean> i0;
|
||||
public static zza<Boolean> j;
|
||||
public static zza<Boolean> j0;
|
||||
public static zza<String> k;
|
||||
public static zza<Boolean> k0;
|
||||
public static zza<Long> l;
|
||||
public static zza<Boolean> l0;
|
||||
public static zza<Long> m;
|
||||
public static zza<Boolean> m0;
|
||||
public static zza<Long> n;
|
||||
public static zza<Boolean> n0;
|
||||
public static zza<String> o;
|
||||
public static zza<Boolean> o0;
|
||||
public static zza<String> p;
|
||||
public static zza<Boolean> p0;
|
||||
public static zza<Integer> q;
|
||||
public static zza<Boolean> q0;
|
||||
public static zza<Integer> r;
|
||||
public static zza<Integer> s;
|
||||
public static zza<Integer> t;
|
||||
public static zza<Integer> u;
|
||||
public static zza<Integer> v;
|
||||
public static zza<Integer> w;
|
||||
public static zza<Integer> x;
|
||||
public static zza<Integer> y;
|
||||
public static zza<Integer> z;
|
||||
static List<zza<Integer>> b = new ArrayList();
|
||||
static List<zza<Long>> c = new ArrayList();
|
||||
static List<zza<Boolean>> d = new ArrayList();
|
||||
static List<zza<String>> e = new ArrayList();
|
||||
static List<zza<Double>> f = new ArrayList();
|
||||
private static final zzso g = new zzso(zzsh.a("com.google.android.gms.measurement"));
|
||||
|
||||
static {
|
||||
zza.a("measurement.log_third_party_store_events_enabled", false, false);
|
||||
zza.a("measurement.log_installs_enabled", false, false);
|
||||
zza.a("measurement.log_upgrades_enabled", false, false);
|
||||
zza.a("measurement.log_androidId_enabled", false, false);
|
||||
j = zza.a("measurement.upload_dsid_enabled", false, false);
|
||||
k = zza.a("measurement.log_tag", "FA", "FA-SVC");
|
||||
l = zza.a("measurement.ad_id_cache_time", 10000L, 10000L);
|
||||
m = zza.a("measurement.monitoring.sample_period_millis", 86400000L, 86400000L);
|
||||
n = zza.a("measurement.config.cache_time", 86400000L, 3600000L);
|
||||
o = zza.a("measurement.config.url_scheme", "https", "https");
|
||||
p = zza.a("measurement.config.url_authority", "app-measurement.com", "app-measurement.com");
|
||||
q = zza.a("measurement.upload.max_bundles", 100, 100);
|
||||
r = zza.a("measurement.upload.max_batch_size", 65536, 65536);
|
||||
s = zza.a("measurement.upload.max_bundle_size", 65536, 65536);
|
||||
t = zza.a("measurement.upload.max_events_per_bundle", 1000, 1000);
|
||||
u = zza.a("measurement.upload.max_events_per_day", 100000, 100000);
|
||||
v = zza.a("measurement.upload.max_error_events_per_day", 1000, 1000);
|
||||
w = zza.a("measurement.upload.max_public_events_per_day", 50000, 50000);
|
||||
x = zza.a("measurement.upload.max_conversions_per_day", SingleClickListener.FAST_CLICK_DELAY_TIME, SingleClickListener.FAST_CLICK_DELAY_TIME);
|
||||
y = zza.a("measurement.upload.max_realtime_events_per_day", 10, 10);
|
||||
z = zza.a("measurement.store.max_stored_events_per_app", 100000, 100000);
|
||||
A = zza.a("measurement.upload.url", "https://app-measurement.com/a", "https://app-measurement.com/a");
|
||||
B = zza.a("measurement.upload.backoff_period", 43200000L, 43200000L);
|
||||
C = zza.a("measurement.upload.window_interval", 3600000L, 3600000L);
|
||||
D = zza.a("measurement.upload.interval", 3600000L, 3600000L);
|
||||
E = zza.a("measurement.upload.realtime_upload_interval", 10000L, 10000L);
|
||||
F = zza.a("measurement.upload.debug_upload_interval", 1000L, 1000L);
|
||||
G = zza.a("measurement.upload.minimum_delay", 500L, 500L);
|
||||
H = zza.a("measurement.alarm_manager.minimum_interval", 60000L, 60000L);
|
||||
I = zza.a("measurement.upload.stale_data_deletion_interval", 86400000L, 86400000L);
|
||||
J = zza.a("measurement.upload.refresh_blacklisted_config_interval", 604800000L, 604800000L);
|
||||
K = zza.a("measurement.upload.initial_upload_delay_time", 15000L, 15000L);
|
||||
L = zza.a("measurement.upload.retry_time", 1800000L, 1800000L);
|
||||
M = zza.a("measurement.upload.retry_count", 6, 6);
|
||||
N = zza.a("measurement.upload.max_queue_time", 2419200000L, 2419200000L);
|
||||
O = zza.a("measurement.lifetimevalue.max_currency_tracked", 4, 4);
|
||||
P = zza.a("measurement.audience.filter_result_max_count", 200, 200);
|
||||
Q = zza.a("measurement.service_client.idle_disconnect_millis", 5000L, 5000L);
|
||||
zza.a("measurement.test.boolean_flag", false, false);
|
||||
zza.a("measurement.test.string_flag", "---", "---");
|
||||
zza.a("measurement.test.long_flag", -1L, -1L);
|
||||
zza.a("measurement.test.int_flag", -2, -2);
|
||||
zza.a("measurement.test.double_flag", -3.0d, -3.0d);
|
||||
R = zza.a("measurement.experiment.max_ids", 50, 50);
|
||||
S = zza.a("measurement.lifetimevalue.user_engagement_tracking_enabled", true, true);
|
||||
T = zza.a("measurement.audience.complex_param_evaluation", true, true);
|
||||
U = zza.a("measurement.validation.internal_limits_internal_event_params", false, false);
|
||||
V = zza.a("measurement.quality.unsuccessful_update_retry_counter", true, true);
|
||||
W = zza.a("measurement.iid.disable_on_collection_disabled", true, true);
|
||||
X = zza.a("measurement.app_launch.call_only_when_enabled", true, true);
|
||||
Y = zza.a("measurement.run_on_worker_inline", true, false);
|
||||
Z = zza.a("measurement.audience.dynamic_filters", true, true);
|
||||
a0 = zza.a("measurement.reset_analytics.persist_time", false, false);
|
||||
b0 = zza.a("measurement.validation.value_and_currency_params", false, false);
|
||||
c0 = zza.a("measurement.sampling.time_zone_offset_enabled", false, false);
|
||||
d0 = zza.a("measurement.referrer.enable_logging_install_referrer_cmp_from_apk", false, false);
|
||||
e0 = zza.a("measurement.fetch_config_with_admob_app_id", true, true);
|
||||
f0 = zza.a("measurement.sessions.session_id_enabled", false, false);
|
||||
g0 = zza.a("measurement.sessions.session_number_enabled", false, false);
|
||||
h0 = zza.a("measurement.sessions.immediate_start_enabled", false, false);
|
||||
i0 = zza.a("measurement.sessions.background_sessions_enabled", false, false);
|
||||
j0 = zza.a("measurement.collection.firebase_global_collection_flag_enabled", true, true);
|
||||
k0 = zza.a("measurement.collection.efficient_engagement_reporting_enabled", false, false);
|
||||
l0 = zza.a("measurement.collection.redundant_engagement_removal_enabled", false, false);
|
||||
zza.a("measurement.remove_app_instance_id_cache_enabled", true, true);
|
||||
m0 = zza.a("measurement.collection.init_params_control_enabled", true, true);
|
||||
n0 = zza.a("measurement.upload.disable_is_uploader", false, false);
|
||||
o0 = zza.a("measurement.experiment.enable_experiment_reporting", false, false);
|
||||
p0 = zza.a("measurement.collection.log_event_and_bundle_v2", true, true);
|
||||
q0 = zza.a("measurement.collection.null_empty_event_name_fix", true, true);
|
||||
}
|
||||
|
||||
public static Map<String, String> a(Context context) {
|
||||
return zzrx.a(context.getContentResolver(), zzsh.a("com.google.android.gms.measurement")).a();
|
||||
}
|
||||
|
||||
public static final class zza<V> {
|
||||
private zzsi<V> a;
|
||||
private final V b;
|
||||
private volatile V c;
|
||||
private final String d;
|
||||
|
||||
private zza(String str, V v, V v2) {
|
||||
this.d = str;
|
||||
this.b = v;
|
||||
}
|
||||
|
||||
static zza<Boolean> a(String str, boolean z, boolean z2) {
|
||||
zza<Boolean> zzaVar = new zza<>(str, Boolean.valueOf(z), Boolean.valueOf(z2));
|
||||
zzai.d.add(zzaVar);
|
||||
return zzaVar;
|
||||
}
|
||||
|
||||
private static void c() {
|
||||
synchronized (zza.class) {
|
||||
if (zzn.a()) {
|
||||
throw new IllegalStateException("Tried to refresh flag cache on main thread or on package side.");
|
||||
}
|
||||
zzn zznVar = zzai.a;
|
||||
try {
|
||||
for (zza<Boolean> zzaVar : zzai.d) {
|
||||
((zza) zzaVar).c = (V) ((zza) zzaVar).a.a();
|
||||
}
|
||||
for (zza<String> zzaVar2 : zzai.e) {
|
||||
((zza) zzaVar2).c = (V) ((zza) zzaVar2).a.a();
|
||||
}
|
||||
for (zza<Long> zzaVar3 : zzai.c) {
|
||||
((zza) zzaVar3).c = (V) ((zza) zzaVar3).a.a();
|
||||
}
|
||||
for (zza<Integer> zzaVar4 : zzai.b) {
|
||||
((zza) zzaVar4).c = (V) ((zza) zzaVar4).a.a();
|
||||
}
|
||||
for (zza<Double> zzaVar5 : zzai.f) {
|
||||
((zza) zzaVar5).c = (V) ((zza) zzaVar5).a.a();
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
zzai.a(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static void e() {
|
||||
synchronized (zza.class) {
|
||||
for (zza<Boolean> zzaVar : zzai.d) {
|
||||
zzso zzsoVar = zzai.g;
|
||||
String str = ((zza) zzaVar).d;
|
||||
zzn zznVar = zzai.a;
|
||||
((zza) zzaVar).a = (zzsi<V>) zzsoVar.a(str, ((zza) zzaVar).b.booleanValue());
|
||||
}
|
||||
for (zza<String> zzaVar2 : zzai.e) {
|
||||
zzso zzsoVar2 = zzai.g;
|
||||
String str2 = ((zza) zzaVar2).d;
|
||||
zzn zznVar2 = zzai.a;
|
||||
((zza) zzaVar2).a = (zzsi<V>) zzsoVar2.a(str2, ((zza) zzaVar2).b);
|
||||
}
|
||||
for (zza<Long> zzaVar3 : zzai.c) {
|
||||
zzso zzsoVar3 = zzai.g;
|
||||
String str3 = ((zza) zzaVar3).d;
|
||||
zzn zznVar3 = zzai.a;
|
||||
((zza) zzaVar3).a = (zzsi<V>) zzsoVar3.a(str3, ((zza) zzaVar3).b.longValue());
|
||||
}
|
||||
for (zza<Integer> zzaVar4 : zzai.b) {
|
||||
zzso zzsoVar4 = zzai.g;
|
||||
String str4 = ((zza) zzaVar4).d;
|
||||
zzn zznVar4 = zzai.a;
|
||||
((zza) zzaVar4).a = (zzsi<V>) zzsoVar4.a(str4, ((zza) zzaVar4).b.intValue());
|
||||
}
|
||||
for (zza<Double> zzaVar5 : zzai.f) {
|
||||
zzso zzsoVar5 = zzai.g;
|
||||
String str5 = ((zza) zzaVar5).d;
|
||||
zzn zznVar5 = zzai.a;
|
||||
((zza) zzaVar5).a = (zzsi<V>) zzsoVar5.a(str5, ((zza) zzaVar5).b.doubleValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final String b() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
static zza<String> a(String str, String str2, String str3) {
|
||||
zza<String> zzaVar = new zza<>(str, str2, str3);
|
||||
zzai.e.add(zzaVar);
|
||||
return zzaVar;
|
||||
}
|
||||
|
||||
static zza<Long> a(String str, long j, long j2) {
|
||||
zza<Long> zzaVar = new zza<>(str, Long.valueOf(j), Long.valueOf(j2));
|
||||
zzai.c.add(zzaVar);
|
||||
return zzaVar;
|
||||
}
|
||||
|
||||
static zza<Integer> a(String str, int i, int i2) {
|
||||
zza<Integer> zzaVar = new zza<>(str, Integer.valueOf(i), Integer.valueOf(i2));
|
||||
zzai.b.add(zzaVar);
|
||||
return zzaVar;
|
||||
}
|
||||
|
||||
static zza<Double> a(String str, double d, double d2) {
|
||||
Double valueOf = Double.valueOf(-3.0d);
|
||||
zza<Double> zzaVar = new zza<>(str, valueOf, valueOf);
|
||||
zzai.f.add(zzaVar);
|
||||
return zzaVar;
|
||||
}
|
||||
|
||||
public final V a() {
|
||||
if (zzai.a == null) {
|
||||
return this.b;
|
||||
}
|
||||
if (zzn.a()) {
|
||||
return this.c == null ? this.b : this.c;
|
||||
}
|
||||
c();
|
||||
try {
|
||||
return this.a.a();
|
||||
} catch (SecurityException e) {
|
||||
zzai.a(e);
|
||||
return this.a.b();
|
||||
}
|
||||
}
|
||||
|
||||
public final V a(V v) {
|
||||
if (v != null) {
|
||||
return v;
|
||||
}
|
||||
if (zzai.a == null) {
|
||||
return this.b;
|
||||
}
|
||||
if (zzn.a()) {
|
||||
return this.c == null ? this.b : this.c;
|
||||
}
|
||||
c();
|
||||
try {
|
||||
return this.a.a();
|
||||
} catch (SecurityException e) {
|
||||
zzai.a(e);
|
||||
return this.a.b();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void a(zzbw zzbwVar) {
|
||||
h = zzbwVar;
|
||||
}
|
||||
|
||||
static void a(Exception exc) {
|
||||
if (h == null) {
|
||||
return;
|
||||
}
|
||||
Context b2 = h.b();
|
||||
if (i == null) {
|
||||
i = Boolean.valueOf(GoogleApiAvailabilityLight.a().a(b2, GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE) == 0);
|
||||
}
|
||||
if (i.booleanValue()) {
|
||||
h.e().t().a("Got Exception on PhenotypeFlag.get on Play device", exc);
|
||||
}
|
||||
}
|
||||
|
||||
static void a(zzn zznVar) {
|
||||
a = zznVar;
|
||||
zza.e();
|
||||
}
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.IInterface;
|
||||
import android.os.RemoteException;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface zzaj extends IInterface {
|
||||
List<zzfv> a(zzk zzkVar, boolean z) throws RemoteException;
|
||||
|
||||
List<zzo> a(String str, String str2, zzk zzkVar) throws RemoteException;
|
||||
|
||||
List<zzo> a(String str, String str2, String str3) throws RemoteException;
|
||||
|
||||
List<zzfv> a(String str, String str2, String str3, boolean z) throws RemoteException;
|
||||
|
||||
List<zzfv> a(String str, String str2, boolean z, zzk zzkVar) throws RemoteException;
|
||||
|
||||
void a(long j, String str, String str2, String str3) throws RemoteException;
|
||||
|
||||
void a(zzag zzagVar, zzk zzkVar) throws RemoteException;
|
||||
|
||||
void a(zzag zzagVar, String str, String str2) throws RemoteException;
|
||||
|
||||
void a(zzfv zzfvVar, zzk zzkVar) throws RemoteException;
|
||||
|
||||
void a(zzk zzkVar) throws RemoteException;
|
||||
|
||||
void a(zzo zzoVar) throws RemoteException;
|
||||
|
||||
void a(zzo zzoVar, zzk zzkVar) throws RemoteException;
|
||||
|
||||
byte[] a(zzag zzagVar, String str) throws RemoteException;
|
||||
|
||||
void b(zzk zzkVar) throws RemoteException;
|
||||
|
||||
void c(zzk zzkVar) throws RemoteException;
|
||||
|
||||
String d(zzk zzkVar) throws RemoteException;
|
||||
}
|
@@ -0,0 +1,93 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class zzak extends com.google.android.gms.internal.measurement.zzr implements zzaj {
|
||||
public zzak() {
|
||||
super("com.google.android.gms.measurement.internal.IMeasurementService");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.internal.measurement.zzr
|
||||
protected final boolean a(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
||||
switch (i) {
|
||||
case 1:
|
||||
a((zzag) com.google.android.gms.internal.measurement.zzs.a(parcel, zzag.CREATOR), (zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 2:
|
||||
a((zzfv) com.google.android.gms.internal.measurement.zzs.a(parcel, zzfv.CREATOR), (zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 3:
|
||||
case 8:
|
||||
default:
|
||||
return false;
|
||||
case 4:
|
||||
a((zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 5:
|
||||
a((zzag) com.google.android.gms.internal.measurement.zzs.a(parcel, zzag.CREATOR), parcel.readString(), parcel.readString());
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 6:
|
||||
c((zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 7:
|
||||
List<zzfv> a = a((zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR), com.google.android.gms.internal.measurement.zzs.a(parcel));
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeTypedList(a);
|
||||
return true;
|
||||
case 9:
|
||||
byte[] a2 = a((zzag) com.google.android.gms.internal.measurement.zzs.a(parcel, zzag.CREATOR), parcel.readString());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeByteArray(a2);
|
||||
return true;
|
||||
case 10:
|
||||
a(parcel.readLong(), parcel.readString(), parcel.readString(), parcel.readString());
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 11:
|
||||
String d = d((zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeString(d);
|
||||
return true;
|
||||
case 12:
|
||||
a((zzo) com.google.android.gms.internal.measurement.zzs.a(parcel, zzo.CREATOR), (zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 13:
|
||||
a((zzo) com.google.android.gms.internal.measurement.zzs.a(parcel, zzo.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
case 14:
|
||||
List<zzfv> a3 = a(parcel.readString(), parcel.readString(), com.google.android.gms.internal.measurement.zzs.a(parcel), (zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeTypedList(a3);
|
||||
return true;
|
||||
case 15:
|
||||
List<zzfv> a4 = a(parcel.readString(), parcel.readString(), parcel.readString(), com.google.android.gms.internal.measurement.zzs.a(parcel));
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeTypedList(a4);
|
||||
return true;
|
||||
case 16:
|
||||
List<zzo> a5 = a(parcel.readString(), parcel.readString(), (zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeTypedList(a5);
|
||||
return true;
|
||||
case 17:
|
||||
List<zzo> a6 = a(parcel.readString(), parcel.readString(), parcel.readString());
|
||||
parcel2.writeNoException();
|
||||
parcel2.writeTypedList(a6);
|
||||
return true;
|
||||
case 18:
|
||||
b((zzk) com.google.android.gms.internal.measurement.zzs.a(parcel, zzk.CREATOR));
|
||||
parcel2.writeNoException();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
138
sources/com/google/android/gms/measurement/internal/zzal.java
Normal file
138
sources/com/google/android/gms/measurement/internal/zzal.java
Normal file
@@ -0,0 +1,138 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzal extends com.google.android.gms.internal.measurement.zzq implements zzaj {
|
||||
zzal(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.measurement.internal.IMeasurementService");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzag zzagVar, zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzagVar);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
b(1, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void c(zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
b(6, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final String d(zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
Parcel a = a(11, i);
|
||||
String readString = a.readString();
|
||||
a.recycle();
|
||||
return readString;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzfv zzfvVar, zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzfvVar);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
b(2, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
b(4, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzag zzagVar, String str, String str2) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzagVar);
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
b(5, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(long j, String str, String str2, String str3) throws RemoteException {
|
||||
Parcel i = i();
|
||||
i.writeLong(j);
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
i.writeString(str3);
|
||||
b(10, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzo zzoVar, zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzoVar);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
b(12, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzo zzoVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzoVar);
|
||||
b(13, i);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzfv> a(String str, String str2, boolean z, zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, z);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
Parcel a = a(14, i);
|
||||
ArrayList createTypedArrayList = a.createTypedArrayList(zzfv.CREATOR);
|
||||
a.recycle();
|
||||
return createTypedArrayList;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzfv> a(String str, String str2, String str3, boolean z) throws RemoteException {
|
||||
Parcel i = i();
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
i.writeString(str3);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, z);
|
||||
Parcel a = a(15, i);
|
||||
ArrayList createTypedArrayList = a.createTypedArrayList(zzfv.CREATOR);
|
||||
a.recycle();
|
||||
return createTypedArrayList;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzo> a(String str, String str2, zzk zzkVar) throws RemoteException {
|
||||
Parcel i = i();
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
com.google.android.gms.internal.measurement.zzs.a(i, zzkVar);
|
||||
Parcel a = a(16, i);
|
||||
ArrayList createTypedArrayList = a.createTypedArrayList(zzo.CREATOR);
|
||||
a.recycle();
|
||||
return createTypedArrayList;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzo> a(String str, String str2, String str3) throws RemoteException {
|
||||
Parcel i = i();
|
||||
i.writeString(str);
|
||||
i.writeString(str2);
|
||||
i.writeString(str3);
|
||||
Parcel a = a(17, i);
|
||||
ArrayList createTypedArrayList = a.createTypedArrayList(zzo.CREATOR);
|
||||
a.recycle();
|
||||
return createTypedArrayList;
|
||||
}
|
||||
}
|
142
sources/com/google/android/gms/measurement/internal/zzam.java
Normal file
142
sources/com/google/android/gms/measurement/internal/zzam.java
Normal file
@@ -0,0 +1,142 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzam extends zzf {
|
||||
private String c;
|
||||
private String d;
|
||||
private int e;
|
||||
private String f;
|
||||
private long g;
|
||||
private long h;
|
||||
private int i;
|
||||
private String j;
|
||||
private String k;
|
||||
|
||||
zzam(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
}
|
||||
|
||||
private final String G() {
|
||||
try {
|
||||
Class<?> loadClass = b().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
|
||||
if (loadClass == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Object invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, b());
|
||||
if (invoke == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return (String) loadClass.getDeclaredMethod("getFirebaseInstanceId", new Class[0]).invoke(invoke, new Object[0]);
|
||||
} catch (Exception unused) {
|
||||
e().y().a("Failed to retrieve Firebase Instance Id");
|
||||
return null;
|
||||
}
|
||||
} catch (Exception unused2) {
|
||||
e().x().a("Failed to obtain Firebase Analytics instance");
|
||||
return null;
|
||||
}
|
||||
} catch (ClassNotFoundException unused3) {
|
||||
}
|
||||
}
|
||||
|
||||
final String B() {
|
||||
w();
|
||||
return this.j;
|
||||
}
|
||||
|
||||
final String C() {
|
||||
w();
|
||||
return this.c;
|
||||
}
|
||||
|
||||
final String D() {
|
||||
w();
|
||||
return this.k;
|
||||
}
|
||||
|
||||
final int E() {
|
||||
w();
|
||||
return this.e;
|
||||
}
|
||||
|
||||
final int F() {
|
||||
w();
|
||||
return this.i;
|
||||
}
|
||||
|
||||
final zzk a(String str) {
|
||||
f();
|
||||
g();
|
||||
String C = C();
|
||||
String B = B();
|
||||
w();
|
||||
String str2 = this.d;
|
||||
long E = E();
|
||||
w();
|
||||
String str3 = this.f;
|
||||
long o = m().o();
|
||||
w();
|
||||
f();
|
||||
if (this.g == 0) {
|
||||
this.g = this.a.s().a(b(), b().getPackageName());
|
||||
}
|
||||
long j = this.g;
|
||||
boolean f = this.a.f();
|
||||
boolean z = !l().u;
|
||||
f();
|
||||
g();
|
||||
String G = (!m().h(this.c) || this.a.f()) ? G() : null;
|
||||
w();
|
||||
long j2 = this.h;
|
||||
long F = this.a.F();
|
||||
int F2 = F();
|
||||
zzq m = m();
|
||||
m.g();
|
||||
Boolean b = m.b("google_analytics_adid_collection_enabled");
|
||||
boolean booleanValue = Boolean.valueOf(b == null || b.booleanValue()).booleanValue();
|
||||
zzq m2 = m();
|
||||
m2.g();
|
||||
Boolean b2 = m2.b("google_analytics_ssaid_collection_enabled");
|
||||
return new zzk(C, B, str2, E, str3, o, j, str, f, z, G, j2, F, F2, booleanValue, Boolean.valueOf(b2 == null || b2.booleanValue()).booleanValue(), l().z(), D());
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
protected final boolean y() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't wrap try/catch for region: R(21:0|1|(1:3)(6:64|65|(1:67)(2:83|(1:85))|68|69|(5:71|(1:73)(1:81)|74|75|76))|4|(1:63)(1:8)|9|(1:62)(1:13)|14|(1:(1:17)(1:18))|(2:20|(2:22|(1:24))(1:(1:(11:35|36|(1:40)|41|42|(1:44)(1:58)|45|(1:47)|(1:49)|51|(2:53|54)(2:56|57))(1:34))(2:28|(1:30))))|61|36|(2:38|40)|41|42|(0)(0)|45|(0)|(0)|51|(0)(0)) */
|
||||
/* JADX WARN: Code restructure failed: missing block: B:59:0x01c4, code lost:
|
||||
|
||||
r1 = move-exception;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:60:0x01c5, code lost:
|
||||
|
||||
e().t().a("getGoogleAppId or isMeasurementEnabled failed with exception. appId", com.google.android.gms.measurement.internal.zzas.a(r0), r1);
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x00cc */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x00f7 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:38:0x0177 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:44:0x0195 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:47:0x019f A[Catch: IllegalStateException -> 0x01c4, TryCatch #3 {IllegalStateException -> 0x01c4, blocks: (B:42:0x018b, B:45:0x0197, B:47:0x019f, B:49:0x01b2), top: B:41:0x018b }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:49:0x01b2 A[Catch: IllegalStateException -> 0x01c4, TRY_LEAVE, TryCatch #3 {IllegalStateException -> 0x01c4, blocks: (B:42:0x018b, B:45:0x0197, B:47:0x019f, B:49:0x01b2), top: B:41:0x018b }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:53:0x01dc */
|
||||
/* JADX WARN: Removed duplicated region for block: B:56:0x01e7 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:58:0x0196 */
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
protected final void z() {
|
||||
/*
|
||||
Method dump skipped, instructions count: 490
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzam.z():void");
|
||||
}
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzan {
|
||||
public final long a;
|
||||
public final long b;
|
||||
public final boolean c;
|
||||
public final String d;
|
||||
public final String e;
|
||||
public final String f;
|
||||
public final Bundle g;
|
||||
|
||||
zzan(long j, long j2, boolean z, String str, String str2, String str3, Bundle bundle) {
|
||||
this.a = j;
|
||||
this.b = j2;
|
||||
this.c = z;
|
||||
this.d = str;
|
||||
this.e = str2;
|
||||
this.f = str3;
|
||||
this.g = bundle;
|
||||
}
|
||||
|
||||
public static final zzan a(Bundle bundle) {
|
||||
return new zzan(0L, 0L, true, null, null, null, bundle);
|
||||
}
|
||||
}
|
131
sources/com/google/android/gms/measurement/internal/zzao.java
Normal file
131
sources/com/google/android/gms/measurement/internal/zzao.java
Normal file
@@ -0,0 +1,131 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzao extends zzf {
|
||||
private final zzap c;
|
||||
private boolean d;
|
||||
|
||||
zzao(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.c = new zzap(this, b(), "google_app_measurement_local.db");
|
||||
}
|
||||
|
||||
private final SQLiteDatabase C() throws SQLiteException {
|
||||
if (this.d) {
|
||||
return null;
|
||||
}
|
||||
SQLiteDatabase writableDatabase = this.c.getWritableDatabase();
|
||||
if (writableDatabase != null) {
|
||||
return writableDatabase;
|
||||
}
|
||||
this.d = true;
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x013a */
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x013f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:30:0x0128 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:32:0x012d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:35:0x0130 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:42:0x00f6 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:44:0x00fb */
|
||||
/* JADX WARN: Removed duplicated region for block: B:46:0x0130 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:47:0x00dd A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||||
/* JADX WARN: Type inference failed for: r13v8 */
|
||||
/* JADX WARN: Type inference failed for: r3v0 */
|
||||
/* JADX WARN: Type inference failed for: r3v1, types: [boolean, int] */
|
||||
/* JADX WARN: Type inference failed for: r3v10 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
private final boolean a(int r18, byte[] r19) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 338
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzao.a(int, byte[]):boolean");
|
||||
}
|
||||
|
||||
public final void B() {
|
||||
g();
|
||||
f();
|
||||
try {
|
||||
int delete = C().delete("messages", null, null) + 0;
|
||||
if (delete > 0) {
|
||||
e().B().a("Reset local analytics data. records", Integer.valueOf(delete));
|
||||
}
|
||||
} catch (SQLiteException e) {
|
||||
e().t().a("Error resetting local analytics data. error", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
protected final boolean y() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean a(zzag zzagVar) {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
zzagVar.writeToParcel(obtain, 0);
|
||||
byte[] marshall = obtain.marshall();
|
||||
obtain.recycle();
|
||||
if (marshall.length > 131072) {
|
||||
e().w().a("Event is too long for local database. Sending event directly to service");
|
||||
return false;
|
||||
}
|
||||
return a(0, marshall);
|
||||
}
|
||||
|
||||
public final boolean a(zzfv zzfvVar) {
|
||||
Parcel obtain = Parcel.obtain();
|
||||
zzfvVar.writeToParcel(obtain, 0);
|
||||
byte[] marshall = obtain.marshall();
|
||||
obtain.recycle();
|
||||
if (marshall.length > 131072) {
|
||||
e().w().a("User property too long for local database. Sending directly to service");
|
||||
return false;
|
||||
}
|
||||
return a(1, marshall);
|
||||
}
|
||||
|
||||
public final boolean a(zzo zzoVar) {
|
||||
k();
|
||||
byte[] a = zzfy.a((Parcelable) zzoVar);
|
||||
if (a.length > 131072) {
|
||||
e().w().a("Conditional user property too long for local database. Sending directly to service");
|
||||
return false;
|
||||
}
|
||||
return a(2, a);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:139:0x01b4 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:141:0x01b9 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:143:0x01d7 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x01cf */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x01d4 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:31:0x01d7 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:37:0x01a1 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:39:0x01a6 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:41:0x01d7 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:42:0x0189 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:48:0x01df */
|
||||
/* JADX WARN: Removed duplicated region for block: B:50:0x01e4 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final java.util.List<com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable> a(int r20) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 502
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzao.a(int):java.util.List");
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteDatabaseLockedException;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
import android.os.Build;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzap extends SQLiteOpenHelper {
|
||||
private final /* synthetic */ zzao a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzap(zzao zzaoVar, Context context, String str) {
|
||||
super(context, str, (SQLiteDatabase.CursorFactory) null, 1);
|
||||
this.a = zzaoVar;
|
||||
}
|
||||
|
||||
@Override // android.database.sqlite.SQLiteOpenHelper
|
||||
public final SQLiteDatabase getWritableDatabase() throws SQLiteException {
|
||||
try {
|
||||
return super.getWritableDatabase();
|
||||
} catch (SQLiteDatabaseLockedException e) {
|
||||
throw e;
|
||||
} catch (SQLiteException unused) {
|
||||
this.a.e().t().a("Opening the local database failed, dropping and recreating it");
|
||||
if (!this.a.b().getDatabasePath("google_app_measurement_local.db").delete()) {
|
||||
this.a.e().t().a("Failed to delete corrupted local db file", "google_app_measurement_local.db");
|
||||
}
|
||||
try {
|
||||
return super.getWritableDatabase();
|
||||
} catch (SQLiteException e2) {
|
||||
this.a.e().t().a("Failed to open local database. Events will bypass local storage", e2);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.database.sqlite.SQLiteOpenHelper
|
||||
public final void onCreate(SQLiteDatabase sQLiteDatabase) {
|
||||
zzx.a(this.a.e(), sQLiteDatabase);
|
||||
}
|
||||
|
||||
@Override // android.database.sqlite.SQLiteOpenHelper
|
||||
public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
||||
}
|
||||
|
||||
@Override // android.database.sqlite.SQLiteOpenHelper
|
||||
public final void onOpen(SQLiteDatabase sQLiteDatabase) {
|
||||
if (Build.VERSION.SDK_INT < 15) {
|
||||
Cursor cursor = null;
|
||||
try {
|
||||
cursor = sQLiteDatabase.rawQuery("PRAGMA journal_mode=memory", null);
|
||||
cursor.moveToFirst();
|
||||
} finally {
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
zzx.a(this.a.e(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null);
|
||||
}
|
||||
|
||||
@Override // android.database.sqlite.SQLiteOpenHelper
|
||||
public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
||||
}
|
||||
}
|
130
sources/com/google/android/gms/measurement/internal/zzaq.java
Normal file
130
sources/com/google/android/gms/measurement/internal/zzaq.java
Normal file
@@ -0,0 +1,130 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzaq extends zzcs {
|
||||
private static final AtomicReference<String[]> c = new AtomicReference<>();
|
||||
private static final AtomicReference<String[]> d = new AtomicReference<>();
|
||||
private static final AtomicReference<String[]> e = new AtomicReference<>();
|
||||
|
||||
zzaq(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
}
|
||||
|
||||
private final boolean t() {
|
||||
c();
|
||||
return this.a.z() && this.a.e().a(3);
|
||||
}
|
||||
|
||||
protected final String a(String str) {
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
return !t() ? str : a(str, zzcu.b, zzcu.a, c);
|
||||
}
|
||||
|
||||
protected final String b(String str) {
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
return !t() ? str : a(str, zzcv.b, zzcv.a, d);
|
||||
}
|
||||
|
||||
protected final String c(String str) {
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
if (!t()) {
|
||||
return str;
|
||||
}
|
||||
if (!str.startsWith("_exp_")) {
|
||||
return a(str, zzcw.b, zzcw.a, e);
|
||||
}
|
||||
return "experiment_id(" + str + ")";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final boolean q() {
|
||||
return false;
|
||||
}
|
||||
|
||||
private static String a(String str, String[] strArr, String[] strArr2, AtomicReference<String[]> atomicReference) {
|
||||
String str2;
|
||||
Preconditions.a(strArr);
|
||||
Preconditions.a(strArr2);
|
||||
Preconditions.a(atomicReference);
|
||||
Preconditions.a(strArr.length == strArr2.length);
|
||||
for (int i = 0; i < strArr.length; i++) {
|
||||
if (zzfy.e(str, strArr[i])) {
|
||||
synchronized (atomicReference) {
|
||||
String[] strArr3 = atomicReference.get();
|
||||
if (strArr3 == null) {
|
||||
strArr3 = new String[strArr2.length];
|
||||
atomicReference.set(strArr3);
|
||||
}
|
||||
if (strArr3[i] == null) {
|
||||
strArr3[i] = strArr2[i] + "(" + strArr[i] + ")";
|
||||
}
|
||||
str2 = strArr3[i];
|
||||
}
|
||||
return str2;
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
protected final String a(zzag zzagVar) {
|
||||
if (zzagVar == null) {
|
||||
return null;
|
||||
}
|
||||
if (!t()) {
|
||||
return zzagVar.toString();
|
||||
}
|
||||
return "origin=" + zzagVar.origin + ",name=" + a(zzagVar.name) + ",params=" + a(zzagVar.zzahu);
|
||||
}
|
||||
|
||||
protected final String a(zzab zzabVar) {
|
||||
if (zzabVar == null) {
|
||||
return null;
|
||||
}
|
||||
if (!t()) {
|
||||
return zzabVar.toString();
|
||||
}
|
||||
return "Event{appId='" + zzabVar.a + "', name='" + a(zzabVar.b) + "', params=" + a(zzabVar.f) + "}";
|
||||
}
|
||||
|
||||
private final String a(zzad zzadVar) {
|
||||
if (zzadVar == null) {
|
||||
return null;
|
||||
}
|
||||
if (!t()) {
|
||||
return zzadVar.toString();
|
||||
}
|
||||
return a(zzadVar.zziy());
|
||||
}
|
||||
|
||||
protected final String a(Bundle bundle) {
|
||||
if (bundle == null) {
|
||||
return null;
|
||||
}
|
||||
if (!t()) {
|
||||
return bundle.toString();
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String str : bundle.keySet()) {
|
||||
if (sb.length() != 0) {
|
||||
sb.append(", ");
|
||||
} else {
|
||||
sb.append("Bundle[{");
|
||||
}
|
||||
sb.append(b(str));
|
||||
sb.append("=");
|
||||
sb.append(bundle.get(str));
|
||||
}
|
||||
sb.append("}]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Looper;
|
||||
import com.google.android.gms.common.GooglePlayServicesUtilLight;
|
||||
import com.google.android.gms.common.internal.BaseGmsClient;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzar extends BaseGmsClient<zzaj> {
|
||||
public zzar(Context context, Looper looper, BaseGmsClient.BaseConnectionCallbacks baseConnectionCallbacks, BaseGmsClient.BaseOnConnectionFailedListener baseOnConnectionFailedListener) {
|
||||
super(context, looper, 93, baseConnectionCallbacks, baseOnConnectionFailedListener, null);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
public final /* synthetic */ zzaj a(IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
return null;
|
||||
}
|
||||
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.measurement.internal.IMeasurementService");
|
||||
return queryLocalInterface instanceof zzaj ? (zzaj) queryLocalInterface : new zzal(iBinder);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
|
||||
public final int g() {
|
||||
return GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
protected final String t() {
|
||||
return "com.google.android.gms.measurement.internal.IMeasurementService";
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.internal.BaseGmsClient
|
||||
protected final String u() {
|
||||
return "com.google.android.gms.measurement.START";
|
||||
}
|
||||
}
|
240
sources/com/google/android/gms/measurement/internal/zzas.java
Normal file
240
sources/com/google/android/gms/measurement/internal/zzas.java
Normal file
@@ -0,0 +1,240 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.measurement.AppMeasurement;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzas extends zzcs {
|
||||
private char c;
|
||||
private long d;
|
||||
private String e;
|
||||
private final zzau f;
|
||||
private final zzau g;
|
||||
private final zzau h;
|
||||
private final zzau i;
|
||||
private final zzau j;
|
||||
private final zzau k;
|
||||
private final zzau l;
|
||||
private final zzau m;
|
||||
private final zzau n;
|
||||
|
||||
zzas(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.c = (char) 0;
|
||||
this.d = -1L;
|
||||
this.f = new zzau(this, 6, false, false);
|
||||
this.g = new zzau(this, 6, true, false);
|
||||
this.h = new zzau(this, 6, false, true);
|
||||
this.i = new zzau(this, 5, false, false);
|
||||
this.j = new zzau(this, 5, true, false);
|
||||
this.k = new zzau(this, 5, false, true);
|
||||
this.l = new zzau(this, 4, false, false);
|
||||
this.m = new zzau(this, 3, false, false);
|
||||
this.n = new zzau(this, 2, false, false);
|
||||
}
|
||||
|
||||
private final String D() {
|
||||
String str;
|
||||
synchronized (this) {
|
||||
if (this.e == null) {
|
||||
if (this.a.C() != null) {
|
||||
this.e = this.a.C();
|
||||
} else {
|
||||
this.e = zzq.t();
|
||||
}
|
||||
}
|
||||
str = this.e;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
protected static Object a(String str) {
|
||||
if (str == null) {
|
||||
return null;
|
||||
}
|
||||
return new zzav(str);
|
||||
}
|
||||
|
||||
private static String b(String str) {
|
||||
if (TextUtils.isEmpty(str)) {
|
||||
return "";
|
||||
}
|
||||
int lastIndexOf = str.lastIndexOf(46);
|
||||
return lastIndexOf == -1 ? str : str.substring(0, lastIndexOf);
|
||||
}
|
||||
|
||||
public final zzau A() {
|
||||
return this.m;
|
||||
}
|
||||
|
||||
public final zzau B() {
|
||||
return this.n;
|
||||
}
|
||||
|
||||
public final String C() {
|
||||
Pair<String, Long> a = l().d.a();
|
||||
if (a == null || a == zzbd.v) {
|
||||
return null;
|
||||
}
|
||||
String valueOf = String.valueOf(a.second);
|
||||
String str = (String) a.first;
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 1 + String.valueOf(str).length());
|
||||
sb.append(valueOf);
|
||||
sb.append(":");
|
||||
sb.append(str);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final boolean q() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final zzau t() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
public final zzau u() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public final zzau v() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public final zzau w() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public final zzau x() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
public final zzau y() {
|
||||
return this.k;
|
||||
}
|
||||
|
||||
public final zzau z() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
protected final void a(int i, boolean z, boolean z2, String str, Object obj, Object obj2, Object obj3) {
|
||||
if (!z && a(i)) {
|
||||
a(i, a(false, str, obj, obj2, obj3));
|
||||
}
|
||||
if (z2 || i < 5) {
|
||||
return;
|
||||
}
|
||||
Preconditions.a(str);
|
||||
zzbr x = this.a.x();
|
||||
if (x == null) {
|
||||
a(6, "Scheduler not set. Not logging error/warn");
|
||||
} else {
|
||||
if (!x.n()) {
|
||||
a(6, "Scheduler not initialized. Not logging error/warn");
|
||||
return;
|
||||
}
|
||||
if (i < 0) {
|
||||
i = 0;
|
||||
}
|
||||
x.a(new zzat(this, i >= 9 ? 8 : i, str, obj, obj2, obj3));
|
||||
}
|
||||
}
|
||||
|
||||
protected final boolean a(int i) {
|
||||
return Log.isLoggable(D(), i);
|
||||
}
|
||||
|
||||
protected final void a(int i, String str) {
|
||||
Log.println(i, D(), str);
|
||||
}
|
||||
|
||||
static String a(boolean z, String str, Object obj, Object obj2, Object obj3) {
|
||||
String str2 = "";
|
||||
if (str == null) {
|
||||
str = "";
|
||||
}
|
||||
String a = a(z, obj);
|
||||
String a2 = a(z, obj2);
|
||||
String a3 = a(z, obj3);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!TextUtils.isEmpty(str)) {
|
||||
sb.append(str);
|
||||
str2 = ": ";
|
||||
}
|
||||
if (!TextUtils.isEmpty(a)) {
|
||||
sb.append(str2);
|
||||
sb.append(a);
|
||||
str2 = ", ";
|
||||
}
|
||||
if (!TextUtils.isEmpty(a2)) {
|
||||
sb.append(str2);
|
||||
sb.append(a2);
|
||||
str2 = ", ";
|
||||
}
|
||||
if (!TextUtils.isEmpty(a3)) {
|
||||
sb.append(str2);
|
||||
sb.append(a3);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
private static String a(boolean z, Object obj) {
|
||||
String str;
|
||||
String className;
|
||||
if (obj == null) {
|
||||
return "";
|
||||
}
|
||||
if (obj instanceof Integer) {
|
||||
obj = Long.valueOf(((Integer) obj).intValue());
|
||||
}
|
||||
if (obj instanceof Long) {
|
||||
if (!z) {
|
||||
return String.valueOf(obj);
|
||||
}
|
||||
Long l = (Long) obj;
|
||||
if (Math.abs(l.longValue()) < 100) {
|
||||
return String.valueOf(obj);
|
||||
}
|
||||
String str2 = String.valueOf(obj).charAt(0) == '-' ? "-" : "";
|
||||
String valueOf = String.valueOf(Math.abs(l.longValue()));
|
||||
long round = Math.round(Math.pow(10.0d, valueOf.length() - 1));
|
||||
long round2 = Math.round(Math.pow(10.0d, valueOf.length()) - 1.0d);
|
||||
StringBuilder sb = new StringBuilder(str2.length() + 43 + str2.length());
|
||||
sb.append(str2);
|
||||
sb.append(round);
|
||||
sb.append("...");
|
||||
sb.append(str2);
|
||||
sb.append(round2);
|
||||
return sb.toString();
|
||||
}
|
||||
if (obj instanceof Boolean) {
|
||||
return String.valueOf(obj);
|
||||
}
|
||||
if (obj instanceof Throwable) {
|
||||
Throwable th = (Throwable) obj;
|
||||
StringBuilder sb2 = new StringBuilder(z ? th.getClass().getName() : th.toString());
|
||||
String b = b(AppMeasurement.class.getCanonicalName());
|
||||
String b2 = b(zzbw.class.getCanonicalName());
|
||||
for (StackTraceElement stackTraceElement : th.getStackTrace()) {
|
||||
if (!stackTraceElement.isNativeMethod() && (className = stackTraceElement.getClassName()) != null) {
|
||||
String b3 = b(className);
|
||||
if (b3.equals(b) || b3.equals(b2)) {
|
||||
sb2.append(": ");
|
||||
sb2.append(stackTraceElement);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb2.toString();
|
||||
}
|
||||
if (!(obj instanceof zzav)) {
|
||||
return z ? "-" : String.valueOf(obj);
|
||||
}
|
||||
str = ((zzav) obj).a;
|
||||
return str;
|
||||
}
|
||||
}
|
@@ -0,0 +1,68 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.ijm.dataencryption.de.DataDecryptTool;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzat implements Runnable {
|
||||
private final /* synthetic */ int a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ Object c;
|
||||
private final /* synthetic */ Object d;
|
||||
private final /* synthetic */ Object e;
|
||||
private final /* synthetic */ zzas f;
|
||||
|
||||
zzat(zzas zzasVar, int i, String str, Object obj, Object obj2, Object obj3) {
|
||||
this.f = zzasVar;
|
||||
this.a = i;
|
||||
this.b = str;
|
||||
this.c = obj;
|
||||
this.d = obj2;
|
||||
this.e = obj3;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
char c;
|
||||
long j;
|
||||
char c2;
|
||||
long j2;
|
||||
zzbd t = this.f.a.t();
|
||||
if (!t.n()) {
|
||||
this.f.a(6, "Persisted config not initialized. Not logging error/warn");
|
||||
return;
|
||||
}
|
||||
c = this.f.c;
|
||||
if (c == 0) {
|
||||
if (this.f.m().n()) {
|
||||
zzas zzasVar = this.f;
|
||||
zzasVar.c();
|
||||
zzasVar.c = 'C';
|
||||
} else {
|
||||
zzas zzasVar2 = this.f;
|
||||
zzasVar2.c();
|
||||
zzasVar2.c = 'c';
|
||||
}
|
||||
}
|
||||
j = this.f.d;
|
||||
if (j < 0) {
|
||||
zzas zzasVar3 = this.f;
|
||||
zzasVar3.d = zzasVar3.m().o();
|
||||
}
|
||||
char charAt = "01VDIWEA?".charAt(this.a);
|
||||
c2 = this.f.c;
|
||||
j2 = this.f.d;
|
||||
String a = zzas.a(true, this.b, this.c, this.d, this.e);
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(a).length() + 24);
|
||||
sb.append("2");
|
||||
sb.append(charAt);
|
||||
sb.append(c2);
|
||||
sb.append(j2);
|
||||
sb.append(":");
|
||||
sb.append(a);
|
||||
String sb2 = sb.toString();
|
||||
if (sb2.length() > 1024) {
|
||||
sb2 = this.b.substring(0, DataDecryptTool.DECRYPT_SP_FILE);
|
||||
}
|
||||
t.d.a(sb2, 1L);
|
||||
}
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzau {
|
||||
private final int a;
|
||||
private final boolean b;
|
||||
private final boolean c;
|
||||
private final /* synthetic */ zzas d;
|
||||
|
||||
zzau(zzas zzasVar, int i, boolean z, boolean z2) {
|
||||
this.d = zzasVar;
|
||||
this.a = i;
|
||||
this.b = z;
|
||||
this.c = z2;
|
||||
}
|
||||
|
||||
public final void a(String str) {
|
||||
this.d.a(this.a, this.b, this.c, str, null, null, null);
|
||||
}
|
||||
|
||||
public final void a(String str, Object obj) {
|
||||
this.d.a(this.a, this.b, this.c, str, obj, null, null);
|
||||
}
|
||||
|
||||
public final void a(String str, Object obj, Object obj2) {
|
||||
this.d.a(this.a, this.b, this.c, str, obj, obj2, null);
|
||||
}
|
||||
|
||||
public final void a(String str, Object obj, Object obj2, Object obj3) {
|
||||
this.d.a(this.a, this.b, this.c, str, obj, obj2, obj3);
|
||||
}
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzav {
|
||||
private final String a;
|
||||
|
||||
public zzav(String str) {
|
||||
this.a = str;
|
||||
}
|
||||
}
|
@@ -0,0 +1,80 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.NetworkInfo;
|
||||
import android.os.Build;
|
||||
import com.ijm.dataencryption.de.DataDecryptTool;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzaw extends zzfn {
|
||||
private final SSLSocketFactory d;
|
||||
|
||||
public zzaw(zzfo zzfoVar) {
|
||||
super(zzfoVar);
|
||||
this.d = Build.VERSION.SDK_INT < 19 ? new zzfz() : null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static byte[] a(HttpURLConnection httpURLConnection) throws IOException {
|
||||
InputStream inputStream = null;
|
||||
try {
|
||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||
inputStream = httpURLConnection.getInputStream();
|
||||
byte[] bArr = new byte[DataDecryptTool.DECRYPT_SP_FILE];
|
||||
while (true) {
|
||||
int read = inputStream.read(bArr);
|
||||
if (read <= 0) {
|
||||
break;
|
||||
}
|
||||
byteArrayOutputStream.write(bArr, 0, read);
|
||||
}
|
||||
return byteArrayOutputStream.toByteArray();
|
||||
} finally {
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzfn
|
||||
protected final boolean s() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean u() {
|
||||
NetworkInfo networkInfo;
|
||||
r();
|
||||
try {
|
||||
networkInfo = ((ConnectivityManager) b().getSystemService("connectivity")).getActiveNetworkInfo();
|
||||
} catch (SecurityException unused) {
|
||||
networkInfo = null;
|
||||
}
|
||||
return networkInfo != null && networkInfo.isConnected();
|
||||
}
|
||||
|
||||
protected final HttpURLConnection a(URL url) throws IOException {
|
||||
URLConnection openConnection = url.openConnection();
|
||||
if (openConnection instanceof HttpURLConnection) {
|
||||
SSLSocketFactory sSLSocketFactory = this.d;
|
||||
if (sSLSocketFactory != null && (openConnection instanceof HttpsURLConnection)) {
|
||||
((HttpsURLConnection) openConnection).setSSLSocketFactory(sSLSocketFactory);
|
||||
}
|
||||
HttpURLConnection httpURLConnection = (HttpURLConnection) openConnection;
|
||||
httpURLConnection.setDefaultUseCaches(false);
|
||||
httpURLConnection.setConnectTimeout(60000);
|
||||
httpURLConnection.setReadTimeout(61000);
|
||||
httpURLConnection.setInstanceFollowRedirects(false);
|
||||
httpURLConnection.setDoInput(true);
|
||||
return httpURLConnection;
|
||||
}
|
||||
throw new IOException("Failed to obtain HTTP connection");
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
interface zzay {
|
||||
void a(String str, int i, Throwable th, byte[] bArr, Map<String, List<String>> map);
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzaz implements Runnable {
|
||||
private final zzay a;
|
||||
private final int b;
|
||||
private final Throwable c;
|
||||
private final byte[] d;
|
||||
private final String e;
|
||||
private final Map<String, List<String>> f;
|
||||
|
||||
private zzaz(String str, zzay zzayVar, int i, Throwable th, byte[] bArr, Map<String, List<String>> map) {
|
||||
Preconditions.a(zzayVar);
|
||||
this.a = zzayVar;
|
||||
this.b = i;
|
||||
this.c = th;
|
||||
this.d = bArr;
|
||||
this.e = str;
|
||||
this.f = map;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.a.a(this.e, this.b, this.c, this.d, this.f);
|
||||
}
|
||||
}
|
19
sources/com/google/android/gms/measurement/internal/zzb.java
Normal file
19
sources/com/google/android/gms/measurement/internal/zzb.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzb implements Runnable {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ long b;
|
||||
private final /* synthetic */ zza c;
|
||||
|
||||
zzb(zza zzaVar, String str, long j) {
|
||||
this.c = zzaVar;
|
||||
this.a = str;
|
||||
this.b = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.c.c(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,88 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzba implements Runnable {
|
||||
private final URL a;
|
||||
private final byte[] b;
|
||||
private final zzay c;
|
||||
private final String d;
|
||||
private final Map<String, String> e;
|
||||
private final /* synthetic */ zzaw f;
|
||||
|
||||
public zzba(zzaw zzawVar, String str, URL url, byte[] bArr, Map<String, String> map, zzay zzayVar) {
|
||||
this.f = zzawVar;
|
||||
Preconditions.b(str);
|
||||
Preconditions.a(url);
|
||||
Preconditions.a(zzayVar);
|
||||
this.a = url;
|
||||
this.b = bArr;
|
||||
this.c = zzayVar;
|
||||
this.d = str;
|
||||
this.e = map;
|
||||
}
|
||||
|
||||
/* JADX ERROR: JadxRuntimeException in pass: ProcessVariables
|
||||
jadx.core.utils.exceptions.JadxRuntimeException: Method arg registers not loaded: com.google.android.gms.measurement.internal.zzaz.<init>(java.lang.String, com.google.android.gms.measurement.internal.zzay, int, java.lang.Throwable, byte[], java.util.Map, com.google.android.gms.measurement.internal.zzax):void, class status: GENERATED_AND_UNLOADED
|
||||
at jadx.core.dex.nodes.MethodNode.getArgRegs(MethodNode.java:290)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables$1.isArgUnused(ProcessVariables.java:146)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables$1.lambda$isVarUnused$0(ProcessVariables.java:131)
|
||||
at jadx.core.utils.ListUtils.allMatch(ListUtils.java:193)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables$1.isVarUnused(ProcessVariables.java:131)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables$1.processBlock(ProcessVariables.java:82)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:64)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1117)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.lambda$traverseInternal$0(DepthRegionTraversal.java:68)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverseInternal(DepthRegionTraversal.java:68)
|
||||
at jadx.core.dex.visitors.regions.DepthRegionTraversal.traverse(DepthRegionTraversal.java:19)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables.removeUnusedResults(ProcessVariables.java:73)
|
||||
at jadx.core.dex.visitors.regions.variables.ProcessVariables.visit(ProcessVariables.java:48)
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:24:0x011b */
|
||||
/* JADX WARN: Removed duplicated region for block: B:28:0x0101 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:38:0x00e0 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:41:0x00c6 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||||
@Override // java.lang.Runnable
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final void run() {
|
||||
/*
|
||||
Method dump skipped, instructions count: 308
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzba.run():void");
|
||||
}
|
||||
}
|
@@ -0,0 +1,63 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class zzbb extends BroadcastReceiver {
|
||||
private final zzfo a;
|
||||
private boolean b;
|
||||
private boolean c;
|
||||
|
||||
zzbb(zzfo zzfoVar) {
|
||||
Preconditions.a(zzfoVar);
|
||||
this.a = zzfoVar;
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
this.a.o();
|
||||
this.a.a().f();
|
||||
this.a.a().f();
|
||||
if (this.b) {
|
||||
this.a.e().B().a("Unregistering connectivity change receiver");
|
||||
this.b = false;
|
||||
this.c = false;
|
||||
try {
|
||||
this.a.b().unregisterReceiver(this);
|
||||
} catch (IllegalArgumentException e) {
|
||||
this.a.e().t().a("Failed to unregister the network broadcast receiver", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
this.a.o();
|
||||
this.a.a().f();
|
||||
if (this.b) {
|
||||
return;
|
||||
}
|
||||
this.a.b().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
|
||||
this.c = this.a.m().u();
|
||||
this.a.e().B().a("Registering connectivity change receiver. Network connected", Boolean.valueOf(this.c));
|
||||
this.b = true;
|
||||
}
|
||||
|
||||
@Override // android.content.BroadcastReceiver
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
this.a.o();
|
||||
String action = intent.getAction();
|
||||
this.a.e().B().a("NetworkBroadcastReceiver received action", action);
|
||||
if (!"android.net.conn.CONNECTIVITY_CHANGE".equals(action)) {
|
||||
this.a.e().w().a("NetworkBroadcastReceiver received unknown action", action);
|
||||
return;
|
||||
}
|
||||
boolean u = this.a.m().u();
|
||||
if (this.c != u) {
|
||||
this.c = u;
|
||||
this.a.a().a(new zzbc(this, u));
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbc implements Runnable {
|
||||
private final /* synthetic */ boolean a;
|
||||
private final /* synthetic */ zzbb b;
|
||||
|
||||
zzbc(zzbb zzbbVar, boolean z) {
|
||||
this.b = zzbbVar;
|
||||
this.a = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.a(this.a);
|
||||
}
|
||||
}
|
230
sources/com/google/android/gms/measurement/internal/zzbd.java
Normal file
230
sources/com/google/android/gms/measurement/internal/zzbd.java
Normal file
@@ -0,0 +1,230 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Build;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Pair;
|
||||
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
|
||||
import java.math.BigInteger;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.Locale;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbd extends zzcs {
|
||||
static final Pair<String, Long> v = new Pair<>("", 0L);
|
||||
private SharedPreferences c;
|
||||
public zzbh d;
|
||||
public final zzbg e;
|
||||
public final zzbg f;
|
||||
public final zzbg g;
|
||||
public final zzbg h;
|
||||
public final zzbg i;
|
||||
public final zzbg j;
|
||||
public final zzbg k;
|
||||
public final zzbi l;
|
||||
private String m;
|
||||
private boolean n;
|
||||
private long o;
|
||||
public final zzbg p;
|
||||
public final zzbg q;
|
||||
public final zzbf r;
|
||||
public final zzbg s;
|
||||
public final zzbg t;
|
||||
public boolean u;
|
||||
|
||||
zzbd(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.e = new zzbg(this, "last_upload", 0L);
|
||||
this.f = new zzbg(this, "last_upload_attempt", 0L);
|
||||
this.g = new zzbg(this, "backoff", 0L);
|
||||
this.h = new zzbg(this, "last_delete_stale", 0L);
|
||||
this.p = new zzbg(this, "time_before_start", 10000L);
|
||||
this.q = new zzbg(this, "session_timeout", 1800000L);
|
||||
this.r = new zzbf(this, "start_new_session", true);
|
||||
this.s = new zzbg(this, "last_pause_time", 0L);
|
||||
this.t = new zzbg(this, "time_active", 0L);
|
||||
this.i = new zzbg(this, "midnight_offset", 0L);
|
||||
this.j = new zzbg(this, "first_open_time", 0L);
|
||||
this.k = new zzbg(this, "app_install_time", 0L);
|
||||
this.l = new zzbi(this, "app_instance_id", null);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final SharedPreferences B() {
|
||||
f();
|
||||
o();
|
||||
return this.c;
|
||||
}
|
||||
|
||||
final boolean A() {
|
||||
return this.c.contains("deferred_analytics_collection");
|
||||
}
|
||||
|
||||
final Pair<String, Boolean> a(String str) {
|
||||
f();
|
||||
long b = d().b();
|
||||
String str2 = this.m;
|
||||
if (str2 != null && b < this.o) {
|
||||
return new Pair<>(str2, Boolean.valueOf(this.n));
|
||||
}
|
||||
this.o = b + m().a(str, zzai.l);
|
||||
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true);
|
||||
try {
|
||||
AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(b());
|
||||
if (advertisingIdInfo != null) {
|
||||
this.m = advertisingIdInfo.getId();
|
||||
this.n = advertisingIdInfo.isLimitAdTrackingEnabled();
|
||||
}
|
||||
if (this.m == null) {
|
||||
this.m = "";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e().A().a("Unable to get advertising id", e);
|
||||
this.m = "";
|
||||
}
|
||||
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false);
|
||||
return new Pair<>(this.m, Boolean.valueOf(this.n));
|
||||
}
|
||||
|
||||
final String b(String str) {
|
||||
f();
|
||||
String str2 = (String) a(str).first;
|
||||
MessageDigest x = zzfy.x();
|
||||
if (x == null) {
|
||||
return null;
|
||||
}
|
||||
return String.format(Locale.US, "%032X", new BigInteger(1, x.digest(str2.getBytes())));
|
||||
}
|
||||
|
||||
final void c(String str) {
|
||||
f();
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putString("gmp_app_id", str);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
final void d(String str) {
|
||||
f();
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putString("admob_app_id", str);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final boolean q() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final void r() {
|
||||
this.c = b().getSharedPreferences("com.google.android.gms.measurement.prefs", 0);
|
||||
this.u = this.c.getBoolean("has_been_opened", false);
|
||||
if (!this.u) {
|
||||
SharedPreferences.Editor edit = this.c.edit();
|
||||
edit.putBoolean("has_been_opened", true);
|
||||
edit.apply();
|
||||
}
|
||||
this.d = new zzbh(this, "health_monitor", Math.max(0L, zzai.m.a().longValue()));
|
||||
}
|
||||
|
||||
final String t() {
|
||||
f();
|
||||
return B().getString("gmp_app_id", null);
|
||||
}
|
||||
|
||||
final String u() {
|
||||
f();
|
||||
return B().getString("admob_app_id", null);
|
||||
}
|
||||
|
||||
final Boolean v() {
|
||||
f();
|
||||
if (B().contains("use_service")) {
|
||||
return Boolean.valueOf(B().getBoolean("use_service", false));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
final void w() {
|
||||
f();
|
||||
e().B().a("Clearing collection preferences.");
|
||||
if (m().a(zzai.m0)) {
|
||||
Boolean x = x();
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.clear();
|
||||
edit.apply();
|
||||
if (x != null) {
|
||||
a(x.booleanValue());
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
boolean contains = B().contains("measurement_enabled");
|
||||
boolean c = contains ? c(true) : true;
|
||||
SharedPreferences.Editor edit2 = B().edit();
|
||||
edit2.clear();
|
||||
edit2.apply();
|
||||
if (contains) {
|
||||
a(c);
|
||||
}
|
||||
}
|
||||
|
||||
final Boolean x() {
|
||||
f();
|
||||
if (B().contains("measurement_enabled")) {
|
||||
return Boolean.valueOf(B().getBoolean("measurement_enabled", true));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
protected final String y() {
|
||||
f();
|
||||
String string = B().getString("previous_os_version", null);
|
||||
i().o();
|
||||
String str = Build.VERSION.RELEASE;
|
||||
if (!TextUtils.isEmpty(str) && !str.equals(string)) {
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putString("previous_os_version", str);
|
||||
edit.apply();
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
final boolean z() {
|
||||
f();
|
||||
return B().getBoolean("deferred_analytics_collection", false);
|
||||
}
|
||||
|
||||
final void b(boolean z) {
|
||||
f();
|
||||
e().B().a("Setting useService", Boolean.valueOf(z));
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putBoolean("use_service", z);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
final boolean c(boolean z) {
|
||||
f();
|
||||
return B().getBoolean("measurement_enabled", z);
|
||||
}
|
||||
|
||||
final void d(boolean z) {
|
||||
f();
|
||||
e().B().a("Updating deferred analytics collection", Boolean.valueOf(z));
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putBoolean("deferred_analytics_collection", z);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
final void a(boolean z) {
|
||||
f();
|
||||
e().B().a("Setting measurementEnabled", Boolean.valueOf(z));
|
||||
SharedPreferences.Editor edit = B().edit();
|
||||
edit.putBoolean("measurement_enabled", z);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
final boolean a(long j) {
|
||||
return j - this.q.a() > this.s.a();
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbf {
|
||||
private final String a;
|
||||
private final boolean b;
|
||||
private boolean c;
|
||||
private boolean d;
|
||||
private final /* synthetic */ zzbd e;
|
||||
|
||||
public zzbf(zzbd zzbdVar, String str, boolean z) {
|
||||
this.e = zzbdVar;
|
||||
Preconditions.b(str);
|
||||
this.a = str;
|
||||
this.b = true;
|
||||
}
|
||||
|
||||
public final boolean a() {
|
||||
SharedPreferences B;
|
||||
if (!this.c) {
|
||||
this.c = true;
|
||||
B = this.e.B();
|
||||
this.d = B.getBoolean(this.a, this.b);
|
||||
}
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public final void a(boolean z) {
|
||||
SharedPreferences B;
|
||||
B = this.e.B();
|
||||
SharedPreferences.Editor edit = B.edit();
|
||||
edit.putBoolean(this.a, z);
|
||||
edit.apply();
|
||||
this.d = z;
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbg {
|
||||
private final String a;
|
||||
private final long b;
|
||||
private boolean c;
|
||||
private long d;
|
||||
private final /* synthetic */ zzbd e;
|
||||
|
||||
public zzbg(zzbd zzbdVar, String str, long j) {
|
||||
this.e = zzbdVar;
|
||||
Preconditions.b(str);
|
||||
this.a = str;
|
||||
this.b = j;
|
||||
}
|
||||
|
||||
public final long a() {
|
||||
SharedPreferences B;
|
||||
if (!this.c) {
|
||||
this.c = true;
|
||||
B = this.e.B();
|
||||
this.d = B.getLong(this.a, this.b);
|
||||
}
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public final void a(long j) {
|
||||
SharedPreferences B;
|
||||
B = this.e.B();
|
||||
SharedPreferences.Editor edit = B.edit();
|
||||
edit.putLong(this.a, j);
|
||||
edit.apply();
|
||||
this.d = j;
|
||||
}
|
||||
}
|
106
sources/com/google/android/gms/measurement/internal/zzbh.java
Normal file
106
sources/com/google/android/gms/measurement/internal/zzbh.java
Normal file
@@ -0,0 +1,106 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import android.util.Pair;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbh {
|
||||
private final String a;
|
||||
private final String b;
|
||||
private final String c;
|
||||
private final long d;
|
||||
private final /* synthetic */ zzbd e;
|
||||
|
||||
private zzbh(zzbd zzbdVar, String str, long j) {
|
||||
this.e = zzbdVar;
|
||||
Preconditions.b(str);
|
||||
Preconditions.a(j > 0);
|
||||
this.a = String.valueOf(str).concat(":start");
|
||||
this.b = String.valueOf(str).concat(":count");
|
||||
this.c = String.valueOf(str).concat(":value");
|
||||
this.d = j;
|
||||
}
|
||||
|
||||
private final void b() {
|
||||
SharedPreferences B;
|
||||
this.e.f();
|
||||
long a = this.e.d().a();
|
||||
B = this.e.B();
|
||||
SharedPreferences.Editor edit = B.edit();
|
||||
edit.remove(this.b);
|
||||
edit.remove(this.c);
|
||||
edit.putLong(this.a, a);
|
||||
edit.apply();
|
||||
}
|
||||
|
||||
private final long c() {
|
||||
SharedPreferences B;
|
||||
B = this.e.B();
|
||||
return B.getLong(this.a, 0L);
|
||||
}
|
||||
|
||||
public final void a(String str, long j) {
|
||||
SharedPreferences B;
|
||||
SharedPreferences B2;
|
||||
SharedPreferences B3;
|
||||
this.e.f();
|
||||
if (c() == 0) {
|
||||
b();
|
||||
}
|
||||
if (str == null) {
|
||||
str = "";
|
||||
}
|
||||
B = this.e.B();
|
||||
long j2 = B.getLong(this.b, 0L);
|
||||
if (j2 <= 0) {
|
||||
B3 = this.e.B();
|
||||
SharedPreferences.Editor edit = B3.edit();
|
||||
edit.putString(this.c, str);
|
||||
edit.putLong(this.b, 1L);
|
||||
edit.apply();
|
||||
return;
|
||||
}
|
||||
long j3 = j2 + 1;
|
||||
boolean z = (this.e.k().u().nextLong() & Long.MAX_VALUE) < Long.MAX_VALUE / j3;
|
||||
B2 = this.e.B();
|
||||
SharedPreferences.Editor edit2 = B2.edit();
|
||||
if (z) {
|
||||
edit2.putString(this.c, str);
|
||||
}
|
||||
edit2.putLong(this.b, j3);
|
||||
edit2.apply();
|
||||
}
|
||||
|
||||
public final Pair<String, Long> a() {
|
||||
long abs;
|
||||
SharedPreferences B;
|
||||
SharedPreferences B2;
|
||||
this.e.f();
|
||||
this.e.f();
|
||||
long c = c();
|
||||
if (c == 0) {
|
||||
b();
|
||||
abs = 0;
|
||||
} else {
|
||||
abs = Math.abs(c - this.e.d().a());
|
||||
}
|
||||
long j = this.d;
|
||||
if (abs < j) {
|
||||
return null;
|
||||
}
|
||||
if (abs > (j << 1)) {
|
||||
b();
|
||||
return null;
|
||||
}
|
||||
B = this.e.B();
|
||||
String string = B.getString(this.c, null);
|
||||
B2 = this.e.B();
|
||||
long j2 = B2.getLong(this.b, 0L);
|
||||
b();
|
||||
if (string != null && j2 > 0) {
|
||||
return new Pair<>(string, Long.valueOf(j2));
|
||||
}
|
||||
return zzbd.v;
|
||||
}
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.SharedPreferences;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbi {
|
||||
private final String a;
|
||||
private boolean b;
|
||||
private String c;
|
||||
private final /* synthetic */ zzbd d;
|
||||
|
||||
public zzbi(zzbd zzbdVar, String str, String str2) {
|
||||
this.d = zzbdVar;
|
||||
Preconditions.b(str);
|
||||
this.a = str;
|
||||
}
|
||||
|
||||
public final String a() {
|
||||
SharedPreferences B;
|
||||
if (!this.b) {
|
||||
this.b = true;
|
||||
B = this.d.B();
|
||||
this.c = B.getString(this.a, null);
|
||||
}
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public final void a(String str) {
|
||||
SharedPreferences B;
|
||||
if (zzfy.e(str, this.c)) {
|
||||
return;
|
||||
}
|
||||
B = this.d.B();
|
||||
SharedPreferences.Editor edit = B.edit();
|
||||
edit.putString(this.a, str);
|
||||
edit.apply();
|
||||
this.c = str;
|
||||
}
|
||||
}
|
@@ -0,0 +1,98 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.content.pm.ServiceInfo;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.stats.ConnectionTracker;
|
||||
import com.google.android.gms.common.wrappers.PackageManagerWrapper;
|
||||
import com.google.android.gms.common.wrappers.Wrappers;
|
||||
import com.ubtrobot.jimu.robotapi.PeripheralType;
|
||||
import java.util.List;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbj {
|
||||
final zzbw a;
|
||||
|
||||
zzbj(zzbw zzbwVar) {
|
||||
this.a = zzbwVar;
|
||||
}
|
||||
|
||||
protected final void a(String str) {
|
||||
if (str == null || str.isEmpty()) {
|
||||
this.a.e().z().a("Install Referrer Reporter was called with invalid app package name");
|
||||
return;
|
||||
}
|
||||
this.a.a().f();
|
||||
if (!a()) {
|
||||
this.a.e().z().a("Install Referrer Reporter is not available");
|
||||
return;
|
||||
}
|
||||
this.a.e().z().a("Install Referrer Reporter is initializing");
|
||||
zzbk zzbkVar = new zzbk(this, str);
|
||||
this.a.a().f();
|
||||
Intent intent = new Intent("com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICE");
|
||||
intent.setComponent(new ComponentName("com.android.vending", "com.google.android.finsky.externalreferrer.GetInstallReferrerService"));
|
||||
PackageManager packageManager = this.a.b().getPackageManager();
|
||||
if (packageManager == null) {
|
||||
this.a.e().w().a("Failed to obtain Package Manager to verify binding conditions");
|
||||
return;
|
||||
}
|
||||
List<ResolveInfo> queryIntentServices = packageManager.queryIntentServices(intent, 0);
|
||||
if (queryIntentServices == null || queryIntentServices.isEmpty()) {
|
||||
this.a.e().z().a("Play Service for fetching Install Referrer is unavailable on device");
|
||||
return;
|
||||
}
|
||||
ResolveInfo resolveInfo = queryIntentServices.get(0);
|
||||
ServiceInfo serviceInfo = resolveInfo.serviceInfo;
|
||||
if (serviceInfo != null) {
|
||||
String str2 = serviceInfo.packageName;
|
||||
if (resolveInfo.serviceInfo.name == null || !"com.android.vending".equals(str2) || !a()) {
|
||||
this.a.e().z().a("Play Store missing or incompatible. Version 8.3.73 or later required");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.a.e().z().a("Install Referrer Service is", ConnectionTracker.a().a(this.a.b(), new Intent(intent), zzbkVar, 1) ? "available" : "not available");
|
||||
} catch (Exception e) {
|
||||
this.a.e().t().a("Exception occurred while binding to Install Referrer Service", e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final boolean a() {
|
||||
try {
|
||||
PackageManagerWrapper a = Wrappers.a(this.a.b());
|
||||
if (a != null) {
|
||||
return a.b("com.android.vending", PeripheralType.SERVO).versionCode >= 80837300;
|
||||
}
|
||||
this.a.e().z().a("Failed to retrieve Package Manager to check Play Store compatibility");
|
||||
return false;
|
||||
} catch (Exception e) {
|
||||
this.a.e().z().a("Failed to retrieve Play Store version", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
final Bundle a(String str, com.google.android.gms.internal.measurement.zzu zzuVar) {
|
||||
this.a.a().f();
|
||||
if (zzuVar == null) {
|
||||
this.a.e().w().a("Attempting to use Install Referrer Service while it is not initialized");
|
||||
return null;
|
||||
}
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("package_name", str);
|
||||
try {
|
||||
Bundle c = zzuVar.c(bundle);
|
||||
if (c != null) {
|
||||
return c;
|
||||
}
|
||||
this.a.e().t().a("Install Referrer Service returned a null response");
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
this.a.e().t().a("Exception occurred while retrieving the Install Referrer", e.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,40 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.ServiceConnection;
|
||||
import android.os.IBinder;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbk implements ServiceConnection {
|
||||
private final String a;
|
||||
final /* synthetic */ zzbj b;
|
||||
|
||||
zzbk(zzbj zzbjVar, String str) {
|
||||
this.b = zzbjVar;
|
||||
this.a = str;
|
||||
}
|
||||
|
||||
@Override // android.content.ServiceConnection
|
||||
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
|
||||
if (iBinder == null) {
|
||||
this.b.a.e().w().a("Install Referrer connection returned with null binder");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
com.google.android.gms.internal.measurement.zzu a = com.google.android.gms.internal.measurement.zzv.a(iBinder);
|
||||
if (a == null) {
|
||||
this.b.a.e().w().a("Install Referrer Service implementation was not found");
|
||||
} else {
|
||||
this.b.a.e().z().a("Install Referrer Service connected");
|
||||
this.b.a.a().a(new zzbl(this, a, this));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
this.b.a.e().w().a("Exception occurred while calling Install Referrer API", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.content.ServiceConnection
|
||||
public final void onServiceDisconnected(ComponentName componentName) {
|
||||
this.b.a.e().z().a("Install Referrer Service disconnected");
|
||||
}
|
||||
}
|
@@ -0,0 +1,73 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.ServiceConnection;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.stats.ConnectionTracker;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbl implements Runnable {
|
||||
private final /* synthetic */ com.google.android.gms.internal.measurement.zzu a;
|
||||
private final /* synthetic */ ServiceConnection b;
|
||||
private final /* synthetic */ zzbk c;
|
||||
|
||||
zzbl(zzbk zzbkVar, com.google.android.gms.internal.measurement.zzu zzuVar, ServiceConnection serviceConnection) {
|
||||
this.c = zzbkVar;
|
||||
this.a = zzuVar;
|
||||
this.b = serviceConnection;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
String str;
|
||||
zzbk zzbkVar = this.c;
|
||||
zzbj zzbjVar = zzbkVar.b;
|
||||
str = zzbkVar.a;
|
||||
com.google.android.gms.internal.measurement.zzu zzuVar = this.a;
|
||||
ServiceConnection serviceConnection = this.b;
|
||||
Bundle a = zzbjVar.a(str, zzuVar);
|
||||
zzbjVar.a.a().f();
|
||||
if (a != null) {
|
||||
long j = a.getLong("install_begin_timestamp_seconds", 0L) * 1000;
|
||||
if (j == 0) {
|
||||
zzbjVar.a.e().t().a("Service response is missing Install Referrer install timestamp");
|
||||
} else {
|
||||
String string = a.getString("install_referrer");
|
||||
if (string == null || string.isEmpty()) {
|
||||
zzbjVar.a.e().t().a("No referrer defined in install referrer response");
|
||||
} else {
|
||||
zzbjVar.a.e().B().a("InstallReferrer API result", string);
|
||||
zzfy s = zzbjVar.a.s();
|
||||
String valueOf = String.valueOf(string);
|
||||
Bundle a2 = s.a(Uri.parse(valueOf.length() != 0 ? "?".concat(valueOf) : new String("?")));
|
||||
if (a2 == null) {
|
||||
zzbjVar.a.e().t().a("No campaign params defined in install referrer result");
|
||||
} else {
|
||||
String string2 = a2.getString("medium");
|
||||
if ((string2 == null || "(not set)".equalsIgnoreCase(string2) || "organic".equalsIgnoreCase(string2)) ? false : true) {
|
||||
long j2 = a.getLong("referrer_click_timestamp_seconds", 0L) * 1000;
|
||||
if (j2 == 0) {
|
||||
zzbjVar.a.e().t().a("Install Referrer is missing click timestamp for ad campaign");
|
||||
} else {
|
||||
a2.putLong("click_timestamp", j2);
|
||||
}
|
||||
}
|
||||
if (j == zzbjVar.a.t().k.a()) {
|
||||
zzbjVar.a.c();
|
||||
zzbjVar.a.e().B().a("Campaign has already been logged");
|
||||
} else {
|
||||
zzbjVar.a.t().k.a(j);
|
||||
zzbjVar.a.c();
|
||||
zzbjVar.a.e().B().a("Logging Install Referrer campaign from sdk with ", "referrer API");
|
||||
a2.putString("_cis", "referrer API");
|
||||
zzbjVar.a.k().b("auto", "_cmp", a2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (serviceConnection != null) {
|
||||
ConnectionTracker.a().a(zzbjVar.a.b(), serviceConnection);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,91 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbm {
|
||||
private final zzbp a;
|
||||
|
||||
public zzbm(zzbp zzbpVar) {
|
||||
Preconditions.a(zzbpVar);
|
||||
this.a = zzbpVar;
|
||||
}
|
||||
|
||||
public static boolean a(Context context) {
|
||||
ActivityInfo receiverInfo;
|
||||
Preconditions.a(context);
|
||||
try {
|
||||
PackageManager packageManager = context.getPackageManager();
|
||||
if (packageManager != null && (receiverInfo = packageManager.getReceiverInfo(new ComponentName(context, "com.google.android.gms.measurement.AppMeasurementReceiver"), 0)) != null) {
|
||||
if (receiverInfo.enabled) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException unused) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public final void a(Context context, Intent intent) {
|
||||
zzbw a = zzbw.a(context, (zzan) null);
|
||||
zzas e = a.e();
|
||||
if (intent == null) {
|
||||
e.w().a("Receiver called with null intent");
|
||||
return;
|
||||
}
|
||||
a.c();
|
||||
String action = intent.getAction();
|
||||
e.B().a("Local receiver got", action);
|
||||
if ("com.google.android.gms.measurement.UPLOAD".equals(action)) {
|
||||
Intent className = new Intent().setClassName(context, "com.google.android.gms.measurement.AppMeasurementService");
|
||||
className.setAction("com.google.android.gms.measurement.UPLOAD");
|
||||
e.B().a("Starting wakeful intent.");
|
||||
this.a.a(context, className);
|
||||
return;
|
||||
}
|
||||
if ("com.android.vending.INSTALL_REFERRER".equals(action)) {
|
||||
try {
|
||||
a.a().a(new zzbn(this, a, e));
|
||||
} catch (Exception e2) {
|
||||
e.w().a("Install Referrer Reporter encountered a problem", e2);
|
||||
}
|
||||
BroadcastReceiver.PendingResult a2 = this.a.a();
|
||||
String stringExtra = intent.getStringExtra("referrer");
|
||||
if (stringExtra == null) {
|
||||
e.B().a("Install referrer extras are null");
|
||||
if (a2 != null) {
|
||||
a2.finish();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
e.z().a("Install referrer extras are", stringExtra);
|
||||
if (!stringExtra.contains("?")) {
|
||||
String valueOf = String.valueOf(stringExtra);
|
||||
stringExtra = valueOf.length() != 0 ? "?".concat(valueOf) : new String("?");
|
||||
}
|
||||
Bundle a3 = a.s().a(Uri.parse(stringExtra));
|
||||
if (a3 == null) {
|
||||
e.B().a("No campaign defined in install referrer broadcast");
|
||||
if (a2 != null) {
|
||||
a2.finish();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
long longExtra = intent.getLongExtra("referrer_timestamp_seconds", 0L) * 1000;
|
||||
if (longExtra == 0) {
|
||||
e.w().a("Install referrer is missing timestamp");
|
||||
}
|
||||
a.a().a(new zzbo(this, a, longExtra, a3, context, e, a2));
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbn implements Runnable {
|
||||
private final /* synthetic */ zzbw a;
|
||||
private final /* synthetic */ zzas b;
|
||||
|
||||
zzbn(zzbm zzbmVar, zzbw zzbwVar, zzas zzasVar) {
|
||||
this.a = zzbwVar;
|
||||
this.b = zzasVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
if (this.a.w() == null) {
|
||||
this.b.t().a("Install Referrer Reporter is null");
|
||||
return;
|
||||
}
|
||||
zzbj w = this.a.w();
|
||||
w.a.i();
|
||||
w.a(w.a.b().getPackageName());
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbo implements Runnable {
|
||||
private final /* synthetic */ zzbw a;
|
||||
private final /* synthetic */ long b;
|
||||
private final /* synthetic */ Bundle c;
|
||||
private final /* synthetic */ Context d;
|
||||
private final /* synthetic */ zzas e;
|
||||
private final /* synthetic */ BroadcastReceiver.PendingResult f;
|
||||
|
||||
zzbo(zzbm zzbmVar, zzbw zzbwVar, long j, Bundle bundle, Context context, zzas zzasVar, BroadcastReceiver.PendingResult pendingResult) {
|
||||
this.a = zzbwVar;
|
||||
this.b = j;
|
||||
this.c = bundle;
|
||||
this.d = context;
|
||||
this.e = zzasVar;
|
||||
this.f = pendingResult;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
long a = this.a.t().j.a();
|
||||
long j = this.b;
|
||||
if (a > 0 && (j >= a || j <= 0)) {
|
||||
j = a - 1;
|
||||
}
|
||||
if (j > 0) {
|
||||
this.c.putLong("click_timestamp", j);
|
||||
}
|
||||
this.c.putString("_cis", "referrer broadcast");
|
||||
zzbw.a(this.d, (zzan) null).k().b("auto", "_cmp", this.c);
|
||||
this.e.B().a("Install campaign recorded");
|
||||
BroadcastReceiver.PendingResult pendingResult = this.f;
|
||||
if (pendingResult != null) {
|
||||
pendingResult.finish();
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface zzbp {
|
||||
BroadcastReceiver.PendingResult a();
|
||||
|
||||
void a(Context context, Intent intent);
|
||||
}
|
279
sources/com/google/android/gms/measurement/internal/zzbq.java
Normal file
279
sources/com/google/android/gms/measurement/internal/zzbq.java
Normal file
@@ -0,0 +1,279 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.text.TextUtils;
|
||||
import androidx.collection.ArrayMap;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.internal.measurement.zzxz;
|
||||
import com.google.android.gms.internal.measurement.zzya;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbq extends zzfn implements zzs {
|
||||
private static int j = 65535;
|
||||
private static int k = 2;
|
||||
private final Map<String, Map<String, String>> d;
|
||||
private final Map<String, Map<String, Boolean>> e;
|
||||
private final Map<String, Map<String, Boolean>> f;
|
||||
private final Map<String, com.google.android.gms.internal.measurement.zzfp> g;
|
||||
private final Map<String, Map<String, Integer>> h;
|
||||
private final Map<String, String> i;
|
||||
|
||||
zzbq(zzfo zzfoVar) {
|
||||
super(zzfoVar);
|
||||
this.d = new ArrayMap();
|
||||
this.e = new ArrayMap();
|
||||
this.f = new ArrayMap();
|
||||
this.g = new ArrayMap();
|
||||
this.i = new ArrayMap();
|
||||
this.h = new ArrayMap();
|
||||
}
|
||||
|
||||
private final void h(String str) {
|
||||
r();
|
||||
f();
|
||||
Preconditions.b(str);
|
||||
if (this.g.get(str) == null) {
|
||||
byte[] d = p().d(str);
|
||||
if (d != null) {
|
||||
com.google.android.gms.internal.measurement.zzfp a = a(str, d);
|
||||
this.d.put(str, a(a));
|
||||
a(str, a);
|
||||
this.g.put(str, a);
|
||||
this.i.put(str, null);
|
||||
return;
|
||||
}
|
||||
this.d.put(str, null);
|
||||
this.e.put(str, null);
|
||||
this.f.put(str, null);
|
||||
this.g.put(str, null);
|
||||
this.i.put(str, null);
|
||||
this.h.put(str, null);
|
||||
}
|
||||
}
|
||||
|
||||
protected final com.google.android.gms.internal.measurement.zzfp a(String str) {
|
||||
r();
|
||||
f();
|
||||
Preconditions.b(str);
|
||||
h(str);
|
||||
return this.g.get(str);
|
||||
}
|
||||
|
||||
protected final String b(String str) {
|
||||
f();
|
||||
return this.i.get(str);
|
||||
}
|
||||
|
||||
protected final void c(String str) {
|
||||
f();
|
||||
this.i.put(str, null);
|
||||
}
|
||||
|
||||
final void d(String str) {
|
||||
f();
|
||||
this.g.remove(str);
|
||||
}
|
||||
|
||||
final long e(String str) {
|
||||
String a = a(str, "measurement.account.time_zone_offset_minutes");
|
||||
if (TextUtils.isEmpty(a)) {
|
||||
return 0L;
|
||||
}
|
||||
try {
|
||||
return Long.parseLong(a);
|
||||
} catch (NumberFormatException e) {
|
||||
e().w().a("Unable to parse timezone offset. appId", zzas.a(str), e);
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
|
||||
final boolean f(String str) {
|
||||
return "1".equals(a(str, "measurement.upload.blacklist_internal"));
|
||||
}
|
||||
|
||||
final boolean g(String str) {
|
||||
return "1".equals(a(str, "measurement.upload.blacklist_public"));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzfn
|
||||
protected final boolean s() {
|
||||
return false;
|
||||
}
|
||||
|
||||
final boolean b(String str, String str2) {
|
||||
Boolean bool;
|
||||
f();
|
||||
h(str);
|
||||
if (f(str) && zzfy.h(str2)) {
|
||||
return true;
|
||||
}
|
||||
if (g(str) && zzfy.e(str2)) {
|
||||
return true;
|
||||
}
|
||||
Map<String, Boolean> map = this.e.get(str);
|
||||
if (map == null || (bool = map.get(str2)) == null) {
|
||||
return false;
|
||||
}
|
||||
return bool.booleanValue();
|
||||
}
|
||||
|
||||
final boolean c(String str, String str2) {
|
||||
Boolean bool;
|
||||
f();
|
||||
h(str);
|
||||
if ("ecommerce_purchase".equals(str2)) {
|
||||
return true;
|
||||
}
|
||||
Map<String, Boolean> map = this.f.get(str);
|
||||
if (map == null || (bool = map.get(str2)) == null) {
|
||||
return false;
|
||||
}
|
||||
return bool.booleanValue();
|
||||
}
|
||||
|
||||
final int d(String str, String str2) {
|
||||
Integer num;
|
||||
f();
|
||||
h(str);
|
||||
Map<String, Integer> map = this.h.get(str);
|
||||
if (map == null || (num = map.get(str2)) == null) {
|
||||
return 1;
|
||||
}
|
||||
return num.intValue();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzs
|
||||
public final String a(String str, String str2) {
|
||||
f();
|
||||
h(str);
|
||||
Map<String, String> map = this.d.get(str);
|
||||
if (map != null) {
|
||||
return map.get(str2);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static Map<String, String> a(com.google.android.gms.internal.measurement.zzfp zzfpVar) {
|
||||
com.google.android.gms.internal.measurement.zzfq[] zzfqVarArr;
|
||||
ArrayMap arrayMap = new ArrayMap();
|
||||
if (zzfpVar != null && (zzfqVarArr = zzfpVar.f) != null) {
|
||||
for (com.google.android.gms.internal.measurement.zzfq zzfqVar : zzfqVarArr) {
|
||||
if (zzfqVar != null) {
|
||||
arrayMap.put(zzfqVar.c, zzfqVar.d);
|
||||
}
|
||||
}
|
||||
}
|
||||
return arrayMap;
|
||||
}
|
||||
|
||||
private final void a(String str, com.google.android.gms.internal.measurement.zzfp zzfpVar) {
|
||||
com.google.android.gms.internal.measurement.zzfo[] zzfoVarArr;
|
||||
ArrayMap arrayMap = new ArrayMap();
|
||||
ArrayMap arrayMap2 = new ArrayMap();
|
||||
ArrayMap arrayMap3 = new ArrayMap();
|
||||
if (zzfpVar != null && (zzfoVarArr = zzfpVar.g) != null) {
|
||||
for (com.google.android.gms.internal.measurement.zzfo zzfoVar : zzfoVarArr) {
|
||||
if (TextUtils.isEmpty(zzfoVar.c)) {
|
||||
e().w().a("EventConfig contained null event name");
|
||||
} else {
|
||||
String a = zzcu.a(zzfoVar.c);
|
||||
if (!TextUtils.isEmpty(a)) {
|
||||
zzfoVar.c = a;
|
||||
}
|
||||
arrayMap.put(zzfoVar.c, zzfoVar.d);
|
||||
arrayMap2.put(zzfoVar.c, zzfoVar.e);
|
||||
Integer num = zzfoVar.f;
|
||||
if (num != null) {
|
||||
if (num.intValue() >= k && zzfoVar.f.intValue() <= j) {
|
||||
arrayMap3.put(zzfoVar.c, zzfoVar.f);
|
||||
} else {
|
||||
e().w().a("Invalid sampling rate. Event name, sample rate", zzfoVar.c, zzfoVar.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.e.put(str, arrayMap);
|
||||
this.f.put(str, arrayMap2);
|
||||
this.h.put(str, arrayMap3);
|
||||
}
|
||||
|
||||
protected final boolean a(String str, byte[] bArr, String str2) {
|
||||
byte[] bArr2;
|
||||
r();
|
||||
f();
|
||||
Preconditions.b(str);
|
||||
com.google.android.gms.internal.measurement.zzfp a = a(str, bArr);
|
||||
if (a == null) {
|
||||
return false;
|
||||
}
|
||||
a(str, a);
|
||||
this.g.put(str, a);
|
||||
this.i.put(str, str2);
|
||||
this.d.put(str, a(a));
|
||||
zzm o = o();
|
||||
com.google.android.gms.internal.measurement.zzfi[] zzfiVarArr = a.h;
|
||||
Preconditions.a(zzfiVarArr);
|
||||
for (com.google.android.gms.internal.measurement.zzfi zzfiVar : zzfiVarArr) {
|
||||
for (com.google.android.gms.internal.measurement.zzfj zzfjVar : zzfiVar.e) {
|
||||
String a2 = zzcu.a(zzfjVar.d);
|
||||
if (a2 != null) {
|
||||
zzfjVar.d = a2;
|
||||
}
|
||||
for (com.google.android.gms.internal.measurement.zzfk zzfkVar : zzfjVar.e) {
|
||||
String a3 = zzcv.a(zzfkVar.f);
|
||||
if (a3 != null) {
|
||||
zzfkVar.f = a3;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (com.google.android.gms.internal.measurement.zzfm zzfmVar : zzfiVar.d) {
|
||||
String a4 = zzcw.a(zzfmVar.d);
|
||||
if (a4 != null) {
|
||||
zzfmVar.d = a4;
|
||||
}
|
||||
}
|
||||
}
|
||||
o.p().a(str, zzfiVarArr);
|
||||
try {
|
||||
a.h = null;
|
||||
bArr2 = new byte[a.b()];
|
||||
a.a(zzya.a(bArr2, 0, bArr2.length));
|
||||
} catch (IOException e) {
|
||||
e().w().a("Unable to serialize reduced-size config. Storing full config instead. appId", zzas.a(str), e);
|
||||
bArr2 = bArr;
|
||||
}
|
||||
zzt p = p();
|
||||
Preconditions.b(str);
|
||||
p.f();
|
||||
p.r();
|
||||
new ContentValues().put("remote_config", bArr2);
|
||||
try {
|
||||
if (p.w().update("apps", r0, "app_id = ?", new String[]{str}) == 0) {
|
||||
p.e().t().a("Failed to update remote config (got 0). appId", zzas.a(str));
|
||||
}
|
||||
} catch (SQLiteException e2) {
|
||||
p.e().t().a("Error storing remote config. appId", zzas.a(str), e2);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private final com.google.android.gms.internal.measurement.zzfp a(String str, byte[] bArr) {
|
||||
if (bArr == null) {
|
||||
return new com.google.android.gms.internal.measurement.zzfp();
|
||||
}
|
||||
zzxz a = zzxz.a(bArr, 0, bArr.length);
|
||||
com.google.android.gms.internal.measurement.zzfp zzfpVar = new com.google.android.gms.internal.measurement.zzfp();
|
||||
try {
|
||||
zzfpVar.a(a);
|
||||
e().B().a("Parsed config. version, gmp_app_id", zzfpVar.c, zzfpVar.d);
|
||||
return zzfpVar;
|
||||
} catch (IOException e) {
|
||||
e().w().a("Unable to merge remote config. appId", zzas.a(str), e);
|
||||
return new com.google.android.gms.internal.measurement.zzfp();
|
||||
}
|
||||
}
|
||||
}
|
130
sources/com/google/android/gms/measurement/internal/zzbr.java
Normal file
130
sources/com/google/android/gms/measurement/internal/zzbr.java
Normal file
@@ -0,0 +1,130 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.lang.Thread;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.PriorityBlockingQueue;
|
||||
import java.util.concurrent.Semaphore;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzbr extends zzcs {
|
||||
private static final AtomicLong l = new AtomicLong(Long.MIN_VALUE);
|
||||
private zzbv c;
|
||||
private zzbv d;
|
||||
private final PriorityBlockingQueue<zzbu<?>> e;
|
||||
private final BlockingQueue<zzbu<?>> f;
|
||||
private final Thread.UncaughtExceptionHandler g;
|
||||
private final Thread.UncaughtExceptionHandler h;
|
||||
private final Object i;
|
||||
private final Semaphore j;
|
||||
private volatile boolean k;
|
||||
|
||||
zzbr(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.i = new Object();
|
||||
this.j = new Semaphore(2);
|
||||
this.e = new PriorityBlockingQueue<>();
|
||||
this.f = new LinkedBlockingQueue();
|
||||
this.g = new zzbt(this, "Thread death: Uncaught exception on worker thread");
|
||||
this.h = new zzbt(this, "Thread death: Uncaught exception on network thread");
|
||||
}
|
||||
|
||||
public final <V> Future<V> a(Callable<V> callable) throws IllegalStateException {
|
||||
o();
|
||||
Preconditions.a(callable);
|
||||
zzbu<?> zzbuVar = new zzbu<>(this, (Callable<?>) callable, false, "Task exception on worker thread");
|
||||
if (Thread.currentThread() == this.c) {
|
||||
if (!this.e.isEmpty()) {
|
||||
e().w().a("Callable skipped the worker queue.");
|
||||
}
|
||||
zzbuVar.run();
|
||||
} else {
|
||||
a(zzbuVar);
|
||||
}
|
||||
return zzbuVar;
|
||||
}
|
||||
|
||||
public final <V> Future<V> b(Callable<V> callable) throws IllegalStateException {
|
||||
o();
|
||||
Preconditions.a(callable);
|
||||
zzbu<?> zzbuVar = new zzbu<>(this, (Callable<?>) callable, true, "Task exception on worker thread");
|
||||
if (Thread.currentThread() == this.c) {
|
||||
zzbuVar.run();
|
||||
} else {
|
||||
a(zzbuVar);
|
||||
}
|
||||
return zzbuVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcr
|
||||
public final void f() {
|
||||
if (Thread.currentThread() != this.c) {
|
||||
throw new IllegalStateException("Call expected from worker thread");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcr
|
||||
public final void h() {
|
||||
if (Thread.currentThread() != this.d) {
|
||||
throw new IllegalStateException("Call expected from network thread");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcs
|
||||
protected final boolean q() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean t() {
|
||||
return Thread.currentThread() == this.c;
|
||||
}
|
||||
|
||||
public final void b(Runnable runnable) throws IllegalStateException {
|
||||
o();
|
||||
Preconditions.a(runnable);
|
||||
zzbu<?> zzbuVar = new zzbu<>(this, runnable, false, "Task exception on network thread");
|
||||
synchronized (this.i) {
|
||||
this.f.add(zzbuVar);
|
||||
if (this.d == null) {
|
||||
this.d = new zzbv(this, "Measurement Network", this.f);
|
||||
this.d.setUncaughtExceptionHandler(this.h);
|
||||
this.d.start();
|
||||
} else {
|
||||
this.d.a();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public final void a(Runnable runnable) throws IllegalStateException {
|
||||
o();
|
||||
Preconditions.a(runnable);
|
||||
a(new zzbu<>(this, runnable, false, "Task exception on worker thread"));
|
||||
}
|
||||
|
||||
private final void a(zzbu<?> zzbuVar) {
|
||||
synchronized (this.i) {
|
||||
this.e.add(zzbuVar);
|
||||
if (this.c == null) {
|
||||
this.c = new zzbv(this, "Measurement Worker", this.e);
|
||||
this.c.setUncaughtExceptionHandler(this.g);
|
||||
this.c.start();
|
||||
} else {
|
||||
this.c.a();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static /* synthetic */ zzbv b(zzbr zzbrVar, zzbv zzbvVar) {
|
||||
zzbrVar.d = null;
|
||||
return null;
|
||||
}
|
||||
|
||||
static /* synthetic */ zzbv a(zzbr zzbrVar, zzbv zzbvVar) {
|
||||
zzbrVar.c = null;
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.lang.Thread;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbt implements Thread.UncaughtExceptionHandler {
|
||||
private final String a;
|
||||
private final /* synthetic */ zzbr b;
|
||||
|
||||
public zzbt(zzbr zzbrVar, String str) {
|
||||
this.b = zzbrVar;
|
||||
Preconditions.a(str);
|
||||
this.a = str;
|
||||
}
|
||||
|
||||
@Override // java.lang.Thread.UncaughtExceptionHandler
|
||||
public final synchronized void uncaughtException(Thread thread, Throwable th) {
|
||||
this.b.e().t().a(this.a, th);
|
||||
}
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.FutureTask;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbu<V> extends FutureTask<V> implements Comparable<zzbu> {
|
||||
private final long a;
|
||||
final boolean b;
|
||||
private final String c;
|
||||
private final /* synthetic */ zzbr d;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzbu(zzbr zzbrVar, Callable<V> callable, boolean z, String str) {
|
||||
super(callable);
|
||||
AtomicLong atomicLong;
|
||||
this.d = zzbrVar;
|
||||
Preconditions.a(str);
|
||||
atomicLong = zzbr.l;
|
||||
this.a = atomicLong.getAndIncrement();
|
||||
this.c = str;
|
||||
this.b = z;
|
||||
if (this.a == Long.MAX_VALUE) {
|
||||
zzbrVar.e().t().a("Tasks index overflow");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // java.lang.Comparable
|
||||
public final /* synthetic */ int compareTo(zzbu zzbuVar) {
|
||||
zzbu zzbuVar2 = zzbuVar;
|
||||
boolean z = this.b;
|
||||
if (z != zzbuVar2.b) {
|
||||
return z ? -1 : 1;
|
||||
}
|
||||
long j = this.a;
|
||||
long j2 = zzbuVar2.a;
|
||||
if (j < j2) {
|
||||
return -1;
|
||||
}
|
||||
if (j > j2) {
|
||||
return 1;
|
||||
}
|
||||
this.d.e().u().a("Two tasks share the same index. index", Long.valueOf(this.a));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.FutureTask
|
||||
protected final void setException(Throwable th) {
|
||||
this.d.e().t().a(this.c, th);
|
||||
super.setException(th);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzbu(zzbr zzbrVar, Runnable runnable, boolean z, String str) {
|
||||
super(runnable, null);
|
||||
AtomicLong atomicLong;
|
||||
this.d = zzbrVar;
|
||||
Preconditions.a(str);
|
||||
atomicLong = zzbr.l;
|
||||
this.a = atomicLong.getAndIncrement();
|
||||
this.c = str;
|
||||
this.b = false;
|
||||
if (this.a == Long.MAX_VALUE) {
|
||||
zzbrVar.e().t().a("Tasks index overflow");
|
||||
}
|
||||
}
|
||||
}
|
126
sources/com/google/android/gms/measurement/internal/zzbv.java
Normal file
126
sources/com/google/android/gms/measurement/internal/zzbv.java
Normal file
@@ -0,0 +1,126 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Process;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.Semaphore;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbv extends Thread {
|
||||
private final Object a;
|
||||
private final BlockingQueue<zzbu<?>> b;
|
||||
private final /* synthetic */ zzbr c;
|
||||
|
||||
public zzbv(zzbr zzbrVar, String str, BlockingQueue<zzbu<?>> blockingQueue) {
|
||||
this.c = zzbrVar;
|
||||
Preconditions.a(str);
|
||||
Preconditions.a(blockingQueue);
|
||||
this.a = new Object();
|
||||
this.b = blockingQueue;
|
||||
setName(str);
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
synchronized (this.a) {
|
||||
this.a.notifyAll();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // java.lang.Thread, java.lang.Runnable
|
||||
public final void run() {
|
||||
Object obj;
|
||||
Semaphore semaphore;
|
||||
Object obj2;
|
||||
zzbv zzbvVar;
|
||||
zzbv zzbvVar2;
|
||||
Object obj3;
|
||||
Object obj4;
|
||||
Semaphore semaphore2;
|
||||
Object obj5;
|
||||
zzbv zzbvVar3;
|
||||
zzbv zzbvVar4;
|
||||
boolean z;
|
||||
Semaphore semaphore3;
|
||||
boolean z2 = false;
|
||||
while (!z2) {
|
||||
try {
|
||||
semaphore3 = this.c.j;
|
||||
semaphore3.acquire();
|
||||
z2 = true;
|
||||
} catch (InterruptedException e) {
|
||||
a(e);
|
||||
}
|
||||
}
|
||||
try {
|
||||
int threadPriority = Process.getThreadPriority(Process.myTid());
|
||||
while (true) {
|
||||
zzbu<?> poll = this.b.poll();
|
||||
if (poll == null) {
|
||||
synchronized (this.a) {
|
||||
if (this.b.peek() == null) {
|
||||
z = this.c.k;
|
||||
if (!z) {
|
||||
try {
|
||||
this.a.wait(30000L);
|
||||
} catch (InterruptedException e2) {
|
||||
a(e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
obj3 = this.c.i;
|
||||
synchronized (obj3) {
|
||||
if (this.b.peek() == null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Process.setThreadPriority(poll.b ? threadPriority : 10);
|
||||
poll.run();
|
||||
}
|
||||
}
|
||||
obj4 = this.c.i;
|
||||
synchronized (obj4) {
|
||||
semaphore2 = this.c.j;
|
||||
semaphore2.release();
|
||||
obj5 = this.c.i;
|
||||
obj5.notifyAll();
|
||||
zzbvVar3 = this.c.c;
|
||||
if (this == zzbvVar3) {
|
||||
zzbr.a(this.c, null);
|
||||
} else {
|
||||
zzbvVar4 = this.c.d;
|
||||
if (this == zzbvVar4) {
|
||||
zzbr.b(this.c, null);
|
||||
} else {
|
||||
this.c.e().t().a("Current scheduler thread is neither worker nor network");
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
obj = this.c.i;
|
||||
synchronized (obj) {
|
||||
semaphore = this.c.j;
|
||||
semaphore.release();
|
||||
obj2 = this.c.i;
|
||||
obj2.notifyAll();
|
||||
zzbvVar = this.c.c;
|
||||
if (this != zzbvVar) {
|
||||
zzbvVar2 = this.c.d;
|
||||
if (this == zzbvVar2) {
|
||||
zzbr.b(this.c, null);
|
||||
} else {
|
||||
this.c.e().t().a("Current scheduler thread is neither worker nor network");
|
||||
}
|
||||
} else {
|
||||
zzbr.a(this.c, null);
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final void a(InterruptedException interruptedException) {
|
||||
this.c.e().w().a(String.valueOf(getName()).concat(" was interrupted"), interruptedException);
|
||||
}
|
||||
}
|
510
sources/com/google/android/gms/measurement/internal/zzbw.java
Normal file
510
sources/com/google/android/gms/measurement/internal/zzbw.java
Normal file
@@ -0,0 +1,510 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import com.google.android.gms.common.api.internal.GoogleServices;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.Clock;
|
||||
import com.google.android.gms.common.util.DefaultClock;
|
||||
import com.google.android.gms.common.wrappers.Wrappers;
|
||||
import com.google.android.gms.internal.measurement.zzsi;
|
||||
import com.google.android.gms.measurement.AppMeasurement;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzbw implements zzct {
|
||||
private static volatile zzbw G;
|
||||
private volatile Boolean A;
|
||||
private Boolean B;
|
||||
private Boolean C;
|
||||
private int D;
|
||||
private final long F;
|
||||
private final Context a;
|
||||
private final String b;
|
||||
private final String c;
|
||||
private final String d;
|
||||
private final boolean e;
|
||||
private final zzn f;
|
||||
private final zzq g;
|
||||
private final zzbd h;
|
||||
private final zzas i;
|
||||
private final zzbr j;
|
||||
private final zzfd k;
|
||||
private final AppMeasurement l;
|
||||
private final zzfy m;
|
||||
private final zzaq n;
|
||||
private final Clock o;
|
||||
private final zzdy p;
|
||||
private final zzda q;
|
||||
private final zza r;
|
||||
private zzao s;
|
||||
private zzeb t;
|
||||
private zzaa u;
|
||||
private zzam v;
|
||||
private zzbj w;
|
||||
private Boolean y;
|
||||
private long z;
|
||||
private boolean x = false;
|
||||
private AtomicInteger E = new AtomicInteger(0);
|
||||
|
||||
private zzbw(zzcz zzczVar) {
|
||||
Bundle bundle;
|
||||
Preconditions.a(zzczVar);
|
||||
this.f = new zzn(zzczVar.a);
|
||||
zzai.a(this.f);
|
||||
this.a = zzczVar.a;
|
||||
this.b = zzczVar.b;
|
||||
this.c = zzczVar.c;
|
||||
this.d = zzczVar.d;
|
||||
this.e = zzczVar.e;
|
||||
this.A = zzczVar.f;
|
||||
zzan zzanVar = zzczVar.g;
|
||||
if (zzanVar != null && (bundle = zzanVar.g) != null) {
|
||||
Object obj = bundle.get("measurementEnabled");
|
||||
if (obj instanceof Boolean) {
|
||||
this.B = (Boolean) obj;
|
||||
}
|
||||
Object obj2 = zzanVar.g.get("measurementDeactivated");
|
||||
if (obj2 instanceof Boolean) {
|
||||
this.C = (Boolean) obj2;
|
||||
}
|
||||
}
|
||||
zzsi.a(this.a);
|
||||
this.o = DefaultClock.d();
|
||||
this.F = this.o.a();
|
||||
this.g = new zzq(this);
|
||||
zzbd zzbdVar = new zzbd(this);
|
||||
zzbdVar.s();
|
||||
this.h = zzbdVar;
|
||||
zzas zzasVar = new zzas(this);
|
||||
zzasVar.s();
|
||||
this.i = zzasVar;
|
||||
zzfy zzfyVar = new zzfy(this);
|
||||
zzfyVar.s();
|
||||
this.m = zzfyVar;
|
||||
zzaq zzaqVar = new zzaq(this);
|
||||
zzaqVar.s();
|
||||
this.n = zzaqVar;
|
||||
this.r = new zza(this);
|
||||
zzdy zzdyVar = new zzdy(this);
|
||||
zzdyVar.A();
|
||||
this.p = zzdyVar;
|
||||
zzda zzdaVar = new zzda(this);
|
||||
zzdaVar.A();
|
||||
this.q = zzdaVar;
|
||||
this.l = new AppMeasurement(this);
|
||||
zzfd zzfdVar = new zzfd(this);
|
||||
zzfdVar.A();
|
||||
this.k = zzfdVar;
|
||||
zzbr zzbrVar = new zzbr(this);
|
||||
zzbrVar.s();
|
||||
this.j = zzbrVar;
|
||||
if (this.a.getApplicationContext() instanceof Application) {
|
||||
zzda k = k();
|
||||
if (k.b().getApplicationContext() instanceof Application) {
|
||||
Application application = (Application) k.b().getApplicationContext();
|
||||
if (k.c == null) {
|
||||
k.c = new zzdu(k, null);
|
||||
}
|
||||
application.unregisterActivityLifecycleCallbacks(k.c);
|
||||
application.registerActivityLifecycleCallbacks(k.c);
|
||||
k.e().B().a("Registered activity lifecycle callback");
|
||||
}
|
||||
} else {
|
||||
e().w().a("Application context is not an Application");
|
||||
}
|
||||
this.j.a(new zzbx(this, zzczVar));
|
||||
}
|
||||
|
||||
private final void I() {
|
||||
if (!this.x) {
|
||||
throw new IllegalStateException("AppMeasurement is not initialized");
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void a(zzcz zzczVar) {
|
||||
zzau z;
|
||||
String concat;
|
||||
a().f();
|
||||
zzq.t();
|
||||
zzaa zzaaVar = new zzaa(this);
|
||||
zzaaVar.s();
|
||||
this.u = zzaaVar;
|
||||
zzam zzamVar = new zzam(this);
|
||||
zzamVar.A();
|
||||
this.v = zzamVar;
|
||||
zzao zzaoVar = new zzao(this);
|
||||
zzaoVar.A();
|
||||
this.s = zzaoVar;
|
||||
zzeb zzebVar = new zzeb(this);
|
||||
zzebVar.A();
|
||||
this.t = zzebVar;
|
||||
this.m.p();
|
||||
this.h.p();
|
||||
this.w = new zzbj(this);
|
||||
this.v.x();
|
||||
e().z().a("App measurement is starting up, version", Long.valueOf(this.g.o()));
|
||||
e().z().a("To enable debug logging run: adb shell setprop log.tag.FA VERBOSE");
|
||||
String C = zzamVar.C();
|
||||
if (TextUtils.isEmpty(this.b)) {
|
||||
if (s().c(C)) {
|
||||
z = e().z();
|
||||
concat = "Faster debug mode event logging enabled. To disable, run:\n adb shell setprop debug.firebase.analytics.app .none.";
|
||||
} else {
|
||||
z = e().z();
|
||||
String valueOf = String.valueOf(C);
|
||||
concat = valueOf.length() != 0 ? "To enable faster debug mode event logging run:\n adb shell setprop debug.firebase.analytics.app ".concat(valueOf) : new String("To enable faster debug mode event logging run:\n adb shell setprop debug.firebase.analytics.app ");
|
||||
}
|
||||
z.a(concat);
|
||||
}
|
||||
e().A().a("Debug-level message logging enabled");
|
||||
if (this.D != this.E.get()) {
|
||||
e().t().a("Not all components initialized", Integer.valueOf(this.D), Integer.valueOf(this.E.get()));
|
||||
}
|
||||
this.x = true;
|
||||
}
|
||||
|
||||
public final String A() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
public final String B() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public final String C() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public final boolean D() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
public final boolean E() {
|
||||
return this.A != null && this.A.booleanValue();
|
||||
}
|
||||
|
||||
final long F() {
|
||||
Long valueOf = Long.valueOf(t().j.a());
|
||||
return valueOf.longValue() == 0 ? this.F : Math.min(this.F, valueOf.longValue());
|
||||
}
|
||||
|
||||
final void G() {
|
||||
this.E.incrementAndGet();
|
||||
}
|
||||
|
||||
protected final boolean H() {
|
||||
I();
|
||||
a().f();
|
||||
Boolean bool = this.y;
|
||||
if (bool == null || this.z == 0 || (bool != null && !bool.booleanValue() && Math.abs(this.o.b() - this.z) > 1000)) {
|
||||
this.z = this.o.b();
|
||||
boolean z = true;
|
||||
this.y = Boolean.valueOf(s().d("android.permission.INTERNET") && s().d("android.permission.ACCESS_NETWORK_STATE") && (Wrappers.a(this.a).a() || this.g.s() || (zzbm.a(this.a) && zzfy.a(this.a, false))));
|
||||
if (this.y.booleanValue()) {
|
||||
if (!s().c(l().B(), l().D()) && TextUtils.isEmpty(l().D())) {
|
||||
z = false;
|
||||
}
|
||||
this.y = Boolean.valueOf(z);
|
||||
}
|
||||
}
|
||||
return this.y.booleanValue();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public final Context b() {
|
||||
return this.a;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public final zzn c() {
|
||||
return this.f;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public final Clock d() {
|
||||
return this.o;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public final zzas e() {
|
||||
b(this.i);
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public final boolean f() {
|
||||
boolean z;
|
||||
a().f();
|
||||
I();
|
||||
if (!this.g.a(zzai.m0)) {
|
||||
if (this.g.p()) {
|
||||
return false;
|
||||
}
|
||||
Boolean q = this.g.q();
|
||||
if (q != null) {
|
||||
z = q.booleanValue();
|
||||
} else {
|
||||
z = !GoogleServices.b();
|
||||
if (z && this.A != null && zzai.j0.a().booleanValue()) {
|
||||
z = this.A.booleanValue();
|
||||
}
|
||||
}
|
||||
return t().c(z);
|
||||
}
|
||||
if (this.g.p()) {
|
||||
return false;
|
||||
}
|
||||
Boolean bool = this.C;
|
||||
if (bool != null && bool.booleanValue()) {
|
||||
return false;
|
||||
}
|
||||
Boolean x = t().x();
|
||||
if (x != null) {
|
||||
return x.booleanValue();
|
||||
}
|
||||
Boolean q2 = this.g.q();
|
||||
if (q2 != null) {
|
||||
return q2.booleanValue();
|
||||
}
|
||||
Boolean bool2 = this.B;
|
||||
if (bool2 != null) {
|
||||
return bool2.booleanValue();
|
||||
}
|
||||
if (GoogleServices.b()) {
|
||||
return false;
|
||||
}
|
||||
if (!this.g.a(zzai.j0) || this.A == null) {
|
||||
return true;
|
||||
}
|
||||
return this.A.booleanValue();
|
||||
}
|
||||
|
||||
protected final void g() {
|
||||
a().f();
|
||||
if (t().e.a() == 0) {
|
||||
t().e.a(this.o.a());
|
||||
}
|
||||
if (Long.valueOf(t().j.a()).longValue() == 0) {
|
||||
e().B().a("Persisting first open", Long.valueOf(this.F));
|
||||
t().j.a(this.F);
|
||||
}
|
||||
if (!H()) {
|
||||
if (f()) {
|
||||
if (!s().d("android.permission.INTERNET")) {
|
||||
e().t().a("App is missing INTERNET permission");
|
||||
}
|
||||
if (!s().d("android.permission.ACCESS_NETWORK_STATE")) {
|
||||
e().t().a("App is missing ACCESS_NETWORK_STATE permission");
|
||||
}
|
||||
if (!Wrappers.a(this.a).a() && !this.g.s()) {
|
||||
if (!zzbm.a(this.a)) {
|
||||
e().t().a("AppMeasurementReceiver not registered/enabled");
|
||||
}
|
||||
if (!zzfy.a(this.a, false)) {
|
||||
e().t().a("AppMeasurementService not registered/enabled");
|
||||
}
|
||||
}
|
||||
e().t().a("Uploading is not possible. App measurement disabled");
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!TextUtils.isEmpty(l().B()) || !TextUtils.isEmpty(l().D())) {
|
||||
s();
|
||||
if (zzfy.a(l().B(), t().t(), l().D(), t().u())) {
|
||||
e().z().a("Rechecking which service to use due to a GMP App Id change");
|
||||
t().w();
|
||||
o().B();
|
||||
this.t.B();
|
||||
this.t.D();
|
||||
t().j.a(this.F);
|
||||
t().l.a(null);
|
||||
}
|
||||
t().c(l().B());
|
||||
t().d(l().D());
|
||||
if (this.g.q(l().C())) {
|
||||
this.k.a(this.F);
|
||||
}
|
||||
}
|
||||
k().a(t().l.a());
|
||||
if (TextUtils.isEmpty(l().B()) && TextUtils.isEmpty(l().D())) {
|
||||
return;
|
||||
}
|
||||
boolean f = f();
|
||||
if (!t().A() && !this.g.p()) {
|
||||
t().d(!f);
|
||||
}
|
||||
if (!this.g.i(l().C()) || f) {
|
||||
k().F();
|
||||
}
|
||||
m().a(new AtomicReference<>());
|
||||
}
|
||||
|
||||
final void h() {
|
||||
throw new IllegalStateException("Unexpected call on client side");
|
||||
}
|
||||
|
||||
final void i() {
|
||||
}
|
||||
|
||||
public final zza j() {
|
||||
zza zzaVar = this.r;
|
||||
if (zzaVar != null) {
|
||||
return zzaVar;
|
||||
}
|
||||
throw new IllegalStateException("Component not created");
|
||||
}
|
||||
|
||||
public final zzda k() {
|
||||
b(this.q);
|
||||
return this.q;
|
||||
}
|
||||
|
||||
public final zzam l() {
|
||||
b(this.v);
|
||||
return this.v;
|
||||
}
|
||||
|
||||
public final zzeb m() {
|
||||
b(this.t);
|
||||
return this.t;
|
||||
}
|
||||
|
||||
public final zzdy n() {
|
||||
b(this.p);
|
||||
return this.p;
|
||||
}
|
||||
|
||||
public final zzao o() {
|
||||
b(this.s);
|
||||
return this.s;
|
||||
}
|
||||
|
||||
public final zzfd p() {
|
||||
b(this.k);
|
||||
return this.k;
|
||||
}
|
||||
|
||||
public final zzaa q() {
|
||||
b(this.u);
|
||||
return this.u;
|
||||
}
|
||||
|
||||
public final zzaq r() {
|
||||
a((zzcr) this.n);
|
||||
return this.n;
|
||||
}
|
||||
|
||||
public final zzfy s() {
|
||||
a((zzcr) this.m);
|
||||
return this.m;
|
||||
}
|
||||
|
||||
public final zzbd t() {
|
||||
a((zzcr) this.h);
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public final zzq u() {
|
||||
return this.g;
|
||||
}
|
||||
|
||||
public final zzas v() {
|
||||
zzas zzasVar = this.i;
|
||||
if (zzasVar == null || !zzasVar.n()) {
|
||||
return null;
|
||||
}
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public final zzbj w() {
|
||||
return this.w;
|
||||
}
|
||||
|
||||
final zzbr x() {
|
||||
return this.j;
|
||||
}
|
||||
|
||||
public final AppMeasurement y() {
|
||||
return this.l;
|
||||
}
|
||||
|
||||
public final boolean z() {
|
||||
return TextUtils.isEmpty(this.b);
|
||||
}
|
||||
|
||||
private static void b(zzcs zzcsVar) {
|
||||
if (zzcsVar == null) {
|
||||
throw new IllegalStateException("Component not created");
|
||||
}
|
||||
if (zzcsVar.n()) {
|
||||
return;
|
||||
}
|
||||
String valueOf = String.valueOf(zzcsVar.getClass());
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 27);
|
||||
sb.append("Component not initialized: ");
|
||||
sb.append(valueOf);
|
||||
throw new IllegalStateException(sb.toString());
|
||||
}
|
||||
|
||||
private static void b(zzf zzfVar) {
|
||||
if (zzfVar != null) {
|
||||
if (zzfVar.v()) {
|
||||
return;
|
||||
}
|
||||
String valueOf = String.valueOf(zzfVar.getClass());
|
||||
StringBuilder sb = new StringBuilder(String.valueOf(valueOf).length() + 27);
|
||||
sb.append("Component not initialized: ");
|
||||
sb.append(valueOf);
|
||||
throw new IllegalStateException(sb.toString());
|
||||
}
|
||||
throw new IllegalStateException("Component not created");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public final zzbr a() {
|
||||
b(this.j);
|
||||
return this.j;
|
||||
}
|
||||
|
||||
public static zzbw a(Context context, zzan zzanVar) {
|
||||
Bundle bundle;
|
||||
if (zzanVar != null && (zzanVar.e == null || zzanVar.f == null)) {
|
||||
zzanVar = new zzan(zzanVar.a, zzanVar.b, zzanVar.c, zzanVar.d, null, null, zzanVar.g);
|
||||
}
|
||||
Preconditions.a(context);
|
||||
Preconditions.a(context.getApplicationContext());
|
||||
if (G == null) {
|
||||
synchronized (zzbw.class) {
|
||||
if (G == null) {
|
||||
G = new zzbw(new zzcz(context, zzanVar));
|
||||
}
|
||||
}
|
||||
} else if (zzanVar != null && (bundle = zzanVar.g) != null && bundle.containsKey("dataCollectionDefaultEnabled")) {
|
||||
G.a(zzanVar.g.getBoolean("dataCollectionDefaultEnabled"));
|
||||
}
|
||||
return G;
|
||||
}
|
||||
|
||||
private static void a(zzcr zzcrVar) {
|
||||
if (zzcrVar == null) {
|
||||
throw new IllegalStateException("Component not created");
|
||||
}
|
||||
}
|
||||
|
||||
final void a(boolean z) {
|
||||
this.A = Boolean.valueOf(z);
|
||||
}
|
||||
|
||||
final void a(zzcs zzcsVar) {
|
||||
this.D++;
|
||||
}
|
||||
|
||||
final void a(zzf zzfVar) {
|
||||
this.D++;
|
||||
}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbx implements Runnable {
|
||||
private final /* synthetic */ zzcz a;
|
||||
private final /* synthetic */ zzbw b;
|
||||
|
||||
zzbx(zzbw zzbwVar, zzcz zzczVar) {
|
||||
this.b = zzbwVar;
|
||||
this.a = zzczVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.a(this.a);
|
||||
this.b.g();
|
||||
}
|
||||
}
|
273
sources/com/google/android/gms/measurement/internal/zzby.java
Normal file
273
sources/com/google/android/gms/measurement/internal/zzby.java
Normal file
@@ -0,0 +1,273 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Binder;
|
||||
import android.text.TextUtils;
|
||||
import com.google.android.gms.common.GooglePlayServicesUtilLight;
|
||||
import com.google.android.gms.common.GoogleSignatureVerifier;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.UidVerifier;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzby extends zzak {
|
||||
private final zzfo a;
|
||||
private Boolean b;
|
||||
private String c;
|
||||
|
||||
public zzby(zzfo zzfoVar) {
|
||||
this(zzfoVar, null);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzag zzagVar, zzk zzkVar) {
|
||||
Preconditions.a(zzagVar);
|
||||
b(zzkVar, false);
|
||||
a(new zzcj(this, zzagVar, zzkVar));
|
||||
}
|
||||
|
||||
final zzag b(zzag zzagVar, zzk zzkVar) {
|
||||
zzad zzadVar;
|
||||
boolean z = false;
|
||||
if ("_cmp".equals(zzagVar.name) && (zzadVar = zzagVar.zzahu) != null && zzadVar.size() != 0) {
|
||||
String string = zzagVar.zzahu.getString("_cis");
|
||||
if (!TextUtils.isEmpty(string) && (("referrer broadcast".equals(string) || "referrer API".equals(string)) && this.a.i().m(zzkVar.packageName))) {
|
||||
z = true;
|
||||
}
|
||||
}
|
||||
if (!z) {
|
||||
return zzagVar;
|
||||
}
|
||||
this.a.e().z().a("Event has been filtered ", zzagVar.toString());
|
||||
return new zzag("_cmpx", zzagVar.zzahu, zzagVar.origin, zzagVar.zzaig);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void c(zzk zzkVar) {
|
||||
b(zzkVar, false);
|
||||
a(new zzbz(this, zzkVar));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final String d(zzk zzkVar) {
|
||||
b(zzkVar, false);
|
||||
return this.a.d(zzkVar);
|
||||
}
|
||||
|
||||
private zzby(zzfo zzfoVar, String str) {
|
||||
Preconditions.a(zzfoVar);
|
||||
this.a = zzfoVar;
|
||||
this.c = null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzag zzagVar, String str, String str2) {
|
||||
Preconditions.a(zzagVar);
|
||||
Preconditions.b(str);
|
||||
a(str, true);
|
||||
a(new zzck(this, zzagVar, str));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final byte[] a(zzag zzagVar, String str) {
|
||||
Preconditions.b(str);
|
||||
Preconditions.a(zzagVar);
|
||||
a(str, true);
|
||||
this.a.e().A().a("Log and bundle. event", this.a.g().a(zzagVar.name));
|
||||
long c = this.a.d().c() / 1000000;
|
||||
try {
|
||||
byte[] bArr = (byte[]) this.a.a().b(new zzcl(this, zzagVar, str)).get();
|
||||
if (bArr == null) {
|
||||
this.a.e().t().a("Log and bundle returned null. appId", zzas.a(str));
|
||||
bArr = new byte[0];
|
||||
}
|
||||
this.a.e().A().a("Log and bundle processed. event, size, time_ms", this.a.g().a(zzagVar.name), Integer.valueOf(bArr.length), Long.valueOf((this.a.d().c() / 1000000) - c));
|
||||
return bArr;
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to log and bundle. appId, event, error", zzas.a(str), this.a.g().a(zzagVar.name), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private final void b(zzk zzkVar, boolean z) {
|
||||
Preconditions.a(zzkVar);
|
||||
a(zzkVar.packageName, false);
|
||||
this.a.h().c(zzkVar.zzafi, zzkVar.zzafv);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void b(zzk zzkVar) {
|
||||
a(zzkVar.packageName, false);
|
||||
a(new zzci(this, zzkVar));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzfv zzfvVar, zzk zzkVar) {
|
||||
Preconditions.a(zzfvVar);
|
||||
b(zzkVar, false);
|
||||
if (zzfvVar.getValue() == null) {
|
||||
a(new zzcm(this, zzfvVar, zzkVar));
|
||||
} else {
|
||||
a(new zzcn(this, zzfvVar, zzkVar));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzfv> a(zzk zzkVar, boolean z) {
|
||||
b(zzkVar, false);
|
||||
try {
|
||||
List<zzfx> list = (List) this.a.a().a(new zzco(this, zzkVar)).get();
|
||||
ArrayList arrayList = new ArrayList(list.size());
|
||||
for (zzfx zzfxVar : list) {
|
||||
if (z || !zzfy.h(zzfxVar.c)) {
|
||||
arrayList.add(new zzfv(zzfxVar));
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to get user attributes. appId", zzas.a(zzkVar.packageName), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzk zzkVar) {
|
||||
b(zzkVar, false);
|
||||
a(new zzcp(this, zzkVar));
|
||||
}
|
||||
|
||||
private final void a(String str, boolean z) {
|
||||
boolean z2;
|
||||
if (!TextUtils.isEmpty(str)) {
|
||||
if (z) {
|
||||
try {
|
||||
if (this.b == null) {
|
||||
if (!"com.google.android.gms".equals(this.c) && !UidVerifier.a(this.a.b(), Binder.getCallingUid()) && !GoogleSignatureVerifier.a(this.a.b()).a(Binder.getCallingUid())) {
|
||||
z2 = false;
|
||||
this.b = Boolean.valueOf(z2);
|
||||
}
|
||||
z2 = true;
|
||||
this.b = Boolean.valueOf(z2);
|
||||
}
|
||||
if (this.b.booleanValue()) {
|
||||
return;
|
||||
}
|
||||
} catch (SecurityException e) {
|
||||
this.a.e().t().a("Measurement Service called with invalid calling package. appId", zzas.a(str));
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
if (this.c == null && GooglePlayServicesUtilLight.uidHasPackageName(this.a.b(), Binder.getCallingUid(), str)) {
|
||||
this.c = str;
|
||||
}
|
||||
if (str.equals(this.c)) {
|
||||
return;
|
||||
} else {
|
||||
throw new SecurityException(String.format("Unknown calling package name '%s'.", str));
|
||||
}
|
||||
}
|
||||
this.a.e().t().a("Measurement Service called without app package");
|
||||
throw new SecurityException("Measurement Service called without app package");
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(long j, String str, String str2, String str3) {
|
||||
a(new zzcq(this, str2, str3, str, j));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzo zzoVar, zzk zzkVar) {
|
||||
Preconditions.a(zzoVar);
|
||||
Preconditions.a(zzoVar.zzags);
|
||||
b(zzkVar, false);
|
||||
zzo zzoVar2 = new zzo(zzoVar);
|
||||
zzoVar2.packageName = zzkVar.packageName;
|
||||
if (zzoVar.zzags.getValue() == null) {
|
||||
a(new zzca(this, zzoVar2, zzkVar));
|
||||
} else {
|
||||
a(new zzcb(this, zzoVar2, zzkVar));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final void a(zzo zzoVar) {
|
||||
Preconditions.a(zzoVar);
|
||||
Preconditions.a(zzoVar.zzags);
|
||||
a(zzoVar.packageName, true);
|
||||
zzo zzoVar2 = new zzo(zzoVar);
|
||||
if (zzoVar.zzags.getValue() == null) {
|
||||
a(new zzcc(this, zzoVar2));
|
||||
} else {
|
||||
a(new zzcd(this, zzoVar2));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzfv> a(String str, String str2, boolean z, zzk zzkVar) {
|
||||
b(zzkVar, false);
|
||||
try {
|
||||
List<zzfx> list = (List) this.a.a().a(new zzce(this, zzkVar, str, str2)).get();
|
||||
ArrayList arrayList = new ArrayList(list.size());
|
||||
for (zzfx zzfxVar : list) {
|
||||
if (z || !zzfy.h(zzfxVar.c)) {
|
||||
arrayList.add(new zzfv(zzfxVar));
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to get user attributes. appId", zzas.a(zzkVar.packageName), e);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzfv> a(String str, String str2, String str3, boolean z) {
|
||||
a(str, true);
|
||||
try {
|
||||
List<zzfx> list = (List) this.a.a().a(new zzcf(this, str, str2, str3)).get();
|
||||
ArrayList arrayList = new ArrayList(list.size());
|
||||
for (zzfx zzfxVar : list) {
|
||||
if (z || !zzfy.h(zzfxVar.c)) {
|
||||
arrayList.add(new zzfv(zzfxVar));
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to get user attributes. appId", zzas.a(str), e);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzo> a(String str, String str2, zzk zzkVar) {
|
||||
b(zzkVar, false);
|
||||
try {
|
||||
return (List) this.a.a().a(new zzcg(this, zzkVar, str, str2)).get();
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to get conditional user properties", e);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzaj
|
||||
public final List<zzo> a(String str, String str2, String str3) {
|
||||
a(str, true);
|
||||
try {
|
||||
return (List) this.a.a().a(new zzch(this, str, str2, str3)).get();
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
this.a.e().t().a("Failed to get conditional user properties", e);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
private final void a(Runnable runnable) {
|
||||
Preconditions.a(runnable);
|
||||
if (zzai.Y.a().booleanValue() && this.a.a().t()) {
|
||||
runnable.run();
|
||||
} else {
|
||||
this.a.a().a(runnable);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzbz implements Runnable {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzbz(zzby zzbyVar, zzk zzkVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
zzfoVar2.b(this.a);
|
||||
}
|
||||
}
|
19
sources/com/google/android/gms/measurement/internal/zzc.java
Normal file
19
sources/com/google/android/gms/measurement/internal/zzc.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzc implements Runnable {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ long b;
|
||||
private final /* synthetic */ zza c;
|
||||
|
||||
zzc(zza zzaVar, String str, long j) {
|
||||
this.c = zzaVar;
|
||||
this.a = str;
|
||||
this.b = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.c.d(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzca implements Runnable {
|
||||
private final /* synthetic */ zzo a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzca(zzby zzbyVar, zzo zzoVar, zzk zzkVar) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzoVar;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.b(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcb implements Runnable {
|
||||
private final /* synthetic */ zzo a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzcb(zzby zzbyVar, zzo zzoVar, zzk zzkVar) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzoVar;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.a(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcc implements Runnable {
|
||||
private final /* synthetic */ zzo a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzcc(zzby zzbyVar, zzo zzoVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzoVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
zzfoVar2.b(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcd implements Runnable {
|
||||
private final /* synthetic */ zzo a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzcd(zzby zzbyVar, zzo zzoVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzoVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
zzfoVar2.a(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzce implements Callable<List<zzfx>> {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ zzby d;
|
||||
|
||||
zzce(zzby zzbyVar, zzk zzkVar, String str, String str2) {
|
||||
this.d = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
this.b = str;
|
||||
this.c = str2;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ List<zzfx> call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.d.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.d.a;
|
||||
return zzfoVar2.l().a(this.a.packageName, this.b, this.c);
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcf implements Callable<List<zzfx>> {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ zzby d;
|
||||
|
||||
zzcf(zzby zzbyVar, String str, String str2, String str3) {
|
||||
this.d = zzbyVar;
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = str3;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ List<zzfx> call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.d.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.d.a;
|
||||
return zzfoVar2.l().a(this.a, this.b, this.c);
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcg implements Callable<List<zzo>> {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ zzby d;
|
||||
|
||||
zzcg(zzby zzbyVar, zzk zzkVar, String str, String str2) {
|
||||
this.d = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
this.b = str;
|
||||
this.c = str2;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ List<zzo> call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.d.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.d.a;
|
||||
return zzfoVar2.l().b(this.a.packageName, this.b, this.c);
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzch implements Callable<List<zzo>> {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ zzby d;
|
||||
|
||||
zzch(zzby zzbyVar, String str, String str2, String str3) {
|
||||
this.d = zzbyVar;
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = str3;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ List<zzo> call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.d.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.d.a;
|
||||
return zzfoVar2.l().b(this.a, this.b, this.c);
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzci implements Runnable {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzci(zzby zzbyVar, zzk zzkVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
zzfoVar2.a(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcj implements Runnable {
|
||||
private final /* synthetic */ zzag a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzcj(zzby zzbyVar, zzag zzagVar, zzk zzkVar) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzagVar;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzag b = this.c.b(this.a, this.b);
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.a(b, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzck implements Runnable {
|
||||
private final /* synthetic */ zzag a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzck(zzby zzbyVar, zzag zzagVar, String str) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzagVar;
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.a(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcl implements Callable<byte[]> {
|
||||
private final /* synthetic */ zzag a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzcl(zzby zzbyVar, zzag zzagVar, String str) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzagVar;
|
||||
this.b = str;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ byte[] call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.n().a(this.a, this.b);
|
||||
throw null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcm implements Runnable {
|
||||
private final /* synthetic */ zzfv a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzcm(zzby zzbyVar, zzfv zzfvVar, zzk zzkVar) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzfvVar;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.b(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcn implements Runnable {
|
||||
private final /* synthetic */ zzfv a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzby c;
|
||||
|
||||
zzcn(zzby zzbyVar, zzfv zzfvVar, zzk zzkVar) {
|
||||
this.c = zzbyVar;
|
||||
this.a = zzfvVar;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.c.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.c.a;
|
||||
zzfoVar2.a(this.a, this.b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzco implements Callable<List<zzfx>> {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzco(zzby zzbyVar, zzk zzkVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.util.concurrent.Callable
|
||||
public final /* synthetic */ List<zzfx> call() throws Exception {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
return zzfoVar2.l().a(this.a.packageName);
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcp implements Runnable {
|
||||
private final /* synthetic */ zzk a;
|
||||
private final /* synthetic */ zzby b;
|
||||
|
||||
zzcp(zzby zzbyVar, zzk zzkVar) {
|
||||
this.b = zzbyVar;
|
||||
this.a = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
zzfoVar = this.b.a;
|
||||
zzfoVar.q();
|
||||
zzfoVar2 = this.b.a;
|
||||
zzfoVar2.c(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzcq implements Runnable {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ long d;
|
||||
private final /* synthetic */ zzby e;
|
||||
|
||||
zzcq(zzby zzbyVar, String str, String str2, String str3, long j) {
|
||||
this.e = zzbyVar;
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = str3;
|
||||
this.d = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzfo zzfoVar;
|
||||
zzfo zzfoVar2;
|
||||
String str = this.a;
|
||||
if (str == null) {
|
||||
zzfoVar2 = this.e.a;
|
||||
zzfoVar2.s().n().a(this.b, (zzdx) null);
|
||||
} else {
|
||||
zzdx zzdxVar = new zzdx(this.c, str, this.d);
|
||||
zzfoVar = this.e.a;
|
||||
zzfoVar.s().n().a(this.b, zzdxVar);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,72 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.Clock;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class zzcr implements zzct {
|
||||
protected final zzbw a;
|
||||
|
||||
zzcr(zzbw zzbwVar) {
|
||||
Preconditions.a(zzbwVar);
|
||||
this.a = zzbwVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public zzbr a() {
|
||||
return this.a.a();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public Context b() {
|
||||
return this.a.b();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public zzn c() {
|
||||
return this.a.c();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public Clock d() {
|
||||
return this.a.d();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzct
|
||||
public zzas e() {
|
||||
return this.a.e();
|
||||
}
|
||||
|
||||
public void f() {
|
||||
this.a.a().f();
|
||||
}
|
||||
|
||||
public void g() {
|
||||
this.a.i();
|
||||
}
|
||||
|
||||
public void h() {
|
||||
this.a.a().h();
|
||||
}
|
||||
|
||||
public zzaa i() {
|
||||
return this.a.q();
|
||||
}
|
||||
|
||||
public zzaq j() {
|
||||
return this.a.r();
|
||||
}
|
||||
|
||||
public zzfy k() {
|
||||
return this.a.s();
|
||||
}
|
||||
|
||||
public zzbd l() {
|
||||
return this.a.t();
|
||||
}
|
||||
|
||||
public zzq m() {
|
||||
return this.a.u();
|
||||
}
|
||||
}
|
@@ -0,0 +1,46 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
abstract class zzcs extends zzcr {
|
||||
private boolean b;
|
||||
|
||||
zzcs(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.a.a(this);
|
||||
}
|
||||
|
||||
final boolean n() {
|
||||
return this.b;
|
||||
}
|
||||
|
||||
protected final void o() {
|
||||
if (!n()) {
|
||||
throw new IllegalStateException("Not initialized");
|
||||
}
|
||||
}
|
||||
|
||||
public final void p() {
|
||||
if (this.b) {
|
||||
throw new IllegalStateException("Can't initialize twice");
|
||||
}
|
||||
r();
|
||||
this.a.G();
|
||||
this.b = true;
|
||||
}
|
||||
|
||||
protected abstract boolean q();
|
||||
|
||||
protected void r() {
|
||||
}
|
||||
|
||||
public final void s() {
|
||||
if (this.b) {
|
||||
throw new IllegalStateException("Can't initialize twice");
|
||||
}
|
||||
if (q()) {
|
||||
return;
|
||||
}
|
||||
this.a.G();
|
||||
this.b = true;
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.common.util.Clock;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
interface zzct {
|
||||
zzbr a();
|
||||
|
||||
Context b();
|
||||
|
||||
zzn c();
|
||||
|
||||
Clock d();
|
||||
|
||||
zzas e();
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.baidu.cloud.media.player.BDCloudMediaPlayer;
|
||||
import com.ubt.jimu.base.cache.Constants;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzcu {
|
||||
public static final String[] a = {"app_clear_data", "app_exception", "app_remove", "app_upgrade", "app_install", Constants.app_update_notify, "firebase_campaign", "ga_campaign", BDCloudMediaPlayer.OnNativeInvokeListener.ARG_ERROR, "first_open", "first_visit", "in_app_purchase", "notification_dismiss", "notification_foreground", "notification_open", "notification_receive", "os_update", "session_start", "user_engagement", "ad_exposure", "adunit_exposure", "ad_query", "ad_activeview", "ad_impression", "ad_click", "ad_reward", "screen_view", "ga_extra_parameter"};
|
||||
public static final String[] b = {"_cd", "_ae", "_ui", "_ug", "_in", "_au", "_cmp", "_cmp", "_err", "_f", "_v", "_iap", "_nd", "_nf", "_no", "_nr", "_ou", "_s", "_e", "_xa", "_xu", "_aq", "_aa", "_ai", "_ac", "_ar", "_vs", "_ep"};
|
||||
|
||||
public static String a(String str) {
|
||||
return zzdw.a(str, a, b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzcv {
|
||||
public static final String[] a = {"firebase_conversion", "ga_conversion", "engagement_time_msec", "exposure_time", "ad_event_id", "ad_unit_id", "firebase_error", "ga_error", "firebase_error_value", "ga_error_value", "firebase_error_length", "ga_error_length", "firebase_event_origin", "ga_event_origin", "firebase_screen", "ga_screen", "firebase_screen_class", "ga_screen_class", "firebase_screen_id", "ga_screen_id", "firebase_previous_screen", "ga_previous_screen", "firebase_previous_class", "ga_previous_class", "firebase_previous_id", "ga_previous_id", "message_device_time", "message_id", "message_name", "message_time", "previous_app_version", "previous_os_version", "topic", "update_with_analytics", "previous_first_open_count", "system_app", "system_app_update", "previous_install_count", "ga_event_id", "ga_extra_params_ct", "ga_group_name", "ga_list_length", "ga_index", "ga_event_name", "campaign_info_source", "deferred_analytics_collection", "session_number", "session_id"};
|
||||
public static final String[] b = {"_c", "_c", "_et", "_xt", "_aeid", "_ai", "_err", "_err", "_ev", "_ev", "_el", "_el", "_o", "_o", "_sn", "_sn", "_sc", "_sc", "_si", "_si", "_pn", "_pn", "_pc", "_pc", "_pi", "_pi", "_ndt", "_nmid", "_nmn", "_nmt", "_pv", "_po", "_nt", "_uwa", "_pfo", "_sys", "_sysu", "_pin", "_eid", "_epc", "_gn", "_ll", "_i", "_en", "_cis", "_dac", "_sno", "_sid"};
|
||||
|
||||
public static String a(String str) {
|
||||
return zzdw.a(str, a, b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.liulishuo.filedownloader.model.FileDownloadModel;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class zzcw {
|
||||
public static final String[] a = {"firebase_last_notification", "first_open_time", "first_visit_time", "last_deep_link_referrer", "user_id", "first_open_after_install", "lifetime_user_engagement", "google_allow_ad_personalization_signals", "session_number", "session_id"};
|
||||
public static final String[] b = {"_ln", "_fot", "_fvt", "_ldl", FileDownloadModel.ID, "_fi", "_lte", "_ap", "_sno", "_sid"};
|
||||
|
||||
public static String a(String str) {
|
||||
return zzdw.a(str, a, b);
|
||||
}
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface zzcx {
|
||||
void a(String str, String str2, Bundle bundle, long j);
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface zzcy {
|
||||
void a(String str, String str2, Bundle bundle, long j);
|
||||
}
|
@@ -0,0 +1,35 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzcz {
|
||||
final Context a;
|
||||
String b;
|
||||
String c;
|
||||
String d;
|
||||
boolean e;
|
||||
Boolean f;
|
||||
zzan g;
|
||||
|
||||
public zzcz(Context context, zzan zzanVar) {
|
||||
this.e = true;
|
||||
Preconditions.a(context);
|
||||
Context applicationContext = context.getApplicationContext();
|
||||
Preconditions.a(applicationContext);
|
||||
this.a = applicationContext;
|
||||
if (zzanVar != null) {
|
||||
this.g = zzanVar;
|
||||
this.b = zzanVar.f;
|
||||
this.c = zzanVar.e;
|
||||
this.d = zzanVar.d;
|
||||
this.e = zzanVar.c;
|
||||
Bundle bundle = zzanVar.g;
|
||||
if (bundle != null) {
|
||||
this.f = Boolean.valueOf(bundle.getBoolean("dataCollectionDefaultEnabled", true));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
17
sources/com/google/android/gms/measurement/internal/zzd.java
Normal file
17
sources/com/google/android/gms/measurement/internal/zzd.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzd implements Runnable {
|
||||
private final /* synthetic */ long a;
|
||||
private final /* synthetic */ zza b;
|
||||
|
||||
zzd(zza zzaVar, long j) {
|
||||
this.b = zzaVar;
|
||||
this.a = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.b(this.a);
|
||||
}
|
||||
}
|
654
sources/com/google/android/gms/measurement/internal/zzda.java
Normal file
654
sources/com/google/android/gms/measurement/internal/zzda.java
Normal file
@@ -0,0 +1,654 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import androidx.collection.ArrayMap;
|
||||
import com.google.android.gms.common.api.internal.GoogleServices;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.util.CollectionUtils;
|
||||
import com.google.android.gms.measurement.AppMeasurement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CopyOnWriteArraySet;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzda extends zzf {
|
||||
protected zzdu c;
|
||||
private zzcx d;
|
||||
private final Set<zzcy> e;
|
||||
private boolean f;
|
||||
private final AtomicReference<String> g;
|
||||
protected boolean h;
|
||||
|
||||
protected zzda(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.e = new CopyOnWriteArraySet();
|
||||
this.h = true;
|
||||
this.g = new AtomicReference<>();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void G() {
|
||||
if (m().i(q().C()) && this.a.f() && this.h) {
|
||||
e().A().a("Recording app launch after enabling measurement for the first time (FE)");
|
||||
F();
|
||||
} else {
|
||||
e().A().a("Updating Scion state (FE)");
|
||||
r().F();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void c(boolean z) {
|
||||
f();
|
||||
g();
|
||||
w();
|
||||
e().A().a("Setting app measurement enabled (FE)", Boolean.valueOf(z));
|
||||
l().a(z);
|
||||
G();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void d(AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
f();
|
||||
w();
|
||||
Preconditions.a(conditionalUserProperty);
|
||||
Preconditions.b(conditionalUserProperty.mName);
|
||||
Preconditions.b(conditionalUserProperty.mOrigin);
|
||||
Preconditions.a(conditionalUserProperty.mValue);
|
||||
if (!this.a.f()) {
|
||||
e().A().a("Conditional property not sent since collection is disabled");
|
||||
return;
|
||||
}
|
||||
zzfv zzfvVar = new zzfv(conditionalUserProperty.mName, conditionalUserProperty.mTriggeredTimestamp, conditionalUserProperty.mValue, conditionalUserProperty.mOrigin);
|
||||
try {
|
||||
zzag a = k().a(conditionalUserProperty.mAppId, conditionalUserProperty.mTriggeredEventName, conditionalUserProperty.mTriggeredEventParams, conditionalUserProperty.mOrigin, 0L, true, false);
|
||||
r().a(new zzo(conditionalUserProperty.mAppId, conditionalUserProperty.mOrigin, zzfvVar, conditionalUserProperty.mCreationTimestamp, false, conditionalUserProperty.mTriggerEventName, k().a(conditionalUserProperty.mAppId, conditionalUserProperty.mTimedOutEventName, conditionalUserProperty.mTimedOutEventParams, conditionalUserProperty.mOrigin, 0L, true, false), conditionalUserProperty.mTriggerTimeout, a, conditionalUserProperty.mTimeToLive, k().a(conditionalUserProperty.mAppId, conditionalUserProperty.mExpiredEventName, conditionalUserProperty.mExpiredEventParams, conditionalUserProperty.mOrigin, 0L, true, false)));
|
||||
} catch (IllegalArgumentException unused) {
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void e(AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
f();
|
||||
w();
|
||||
Preconditions.a(conditionalUserProperty);
|
||||
Preconditions.b(conditionalUserProperty.mName);
|
||||
if (!this.a.f()) {
|
||||
e().A().a("Conditional property not cleared since collection is disabled");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
r().a(new zzo(conditionalUserProperty.mAppId, conditionalUserProperty.mOrigin, new zzfv(conditionalUserProperty.mName, 0L, null, null), conditionalUserProperty.mCreationTimestamp, conditionalUserProperty.mActive, conditionalUserProperty.mTriggerEventName, null, conditionalUserProperty.mTriggerTimeout, null, conditionalUserProperty.mTimeToLive, k().a(conditionalUserProperty.mAppId, conditionalUserProperty.mExpiredEventName, conditionalUserProperty.mExpiredEventParams, conditionalUserProperty.mOrigin, conditionalUserProperty.mCreationTimestamp, true, false)));
|
||||
} catch (IllegalArgumentException unused) {
|
||||
}
|
||||
}
|
||||
|
||||
public final String B() {
|
||||
zzdx C = this.a.n().C();
|
||||
if (C != null) {
|
||||
return C.b;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String C() {
|
||||
zzdx C = this.a.n().C();
|
||||
if (C != null) {
|
||||
return C.a;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public final String D() {
|
||||
if (this.a.A() != null) {
|
||||
return this.a.A();
|
||||
}
|
||||
try {
|
||||
return GoogleServices.a();
|
||||
} catch (IllegalStateException e) {
|
||||
this.a.e().t().a("getGoogleAppId failed with exception", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public final String E() {
|
||||
g();
|
||||
return this.g.get();
|
||||
}
|
||||
|
||||
public final void F() {
|
||||
f();
|
||||
g();
|
||||
w();
|
||||
if (this.a.H()) {
|
||||
r().E();
|
||||
this.h = false;
|
||||
String y = l().y();
|
||||
if (TextUtils.isEmpty(y)) {
|
||||
return;
|
||||
}
|
||||
i().o();
|
||||
if (y.equals(Build.VERSION.RELEASE)) {
|
||||
return;
|
||||
}
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("_po", y);
|
||||
b("auto", "_ou", bundle);
|
||||
}
|
||||
}
|
||||
|
||||
public final void a(boolean z) {
|
||||
w();
|
||||
g();
|
||||
a().a(new zzdq(this, z));
|
||||
}
|
||||
|
||||
public final void b(boolean z) {
|
||||
w();
|
||||
g();
|
||||
a().a(new zzdr(this, z));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
protected final boolean y() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, Bundle bundle, boolean z) {
|
||||
a(str, str2, bundle, false, true, d().a());
|
||||
}
|
||||
|
||||
public final void b(String str, String str2, Bundle bundle) {
|
||||
a(str, str2, bundle, true, true, d().a());
|
||||
}
|
||||
|
||||
private final void b(String str, String str2, long j, Bundle bundle, boolean z, boolean z2, boolean z3, String str3) {
|
||||
a().a(new zzdc(this, str, str2, j, zzfy.b(bundle), z, z2, z3, str3));
|
||||
}
|
||||
|
||||
final void a(String str, String str2, long j, Bundle bundle) {
|
||||
g();
|
||||
f();
|
||||
a(str, str2, j, bundle, true, this.d == null || zzfy.h(str2), false, null);
|
||||
}
|
||||
|
||||
final void c(String str, String str2, Bundle bundle) {
|
||||
g();
|
||||
f();
|
||||
a(str, str2, d().a(), bundle);
|
||||
}
|
||||
|
||||
public final void b(AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
Preconditions.a(conditionalUserProperty);
|
||||
Preconditions.b(conditionalUserProperty.mAppId);
|
||||
n();
|
||||
throw null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void a(String str, String str2, long j, Bundle bundle, boolean z, boolean z2, boolean z3, String str3) {
|
||||
zzdx zzdxVar;
|
||||
int i;
|
||||
Bundle bundle2;
|
||||
ArrayList arrayList;
|
||||
long j2;
|
||||
String str4 = str2;
|
||||
Preconditions.b(str);
|
||||
if (!m().d(str3, zzai.q0)) {
|
||||
Preconditions.b(str2);
|
||||
}
|
||||
Preconditions.a(bundle);
|
||||
f();
|
||||
w();
|
||||
if (!this.a.f()) {
|
||||
e().A().a("Event not sent since app measurement is disabled");
|
||||
return;
|
||||
}
|
||||
if (!this.f) {
|
||||
this.f = true;
|
||||
try {
|
||||
try {
|
||||
Class.forName("com.google.android.gms.tagmanager.TagManagerService").getDeclaredMethod("initialize", Context.class).invoke(null, b());
|
||||
} catch (Exception e) {
|
||||
e().w().a("Failed to invoke Tag Manager's initialize() method", e);
|
||||
}
|
||||
} catch (ClassNotFoundException unused) {
|
||||
e().z().a("Tag Manager is not found and thus will not be used");
|
||||
}
|
||||
}
|
||||
if (z3) {
|
||||
c();
|
||||
if (!"_iap".equals(str4)) {
|
||||
zzfy s = this.a.s();
|
||||
int i2 = 2;
|
||||
if (s.b("event", str4)) {
|
||||
if (!s.a("event", zzcu.a, str4)) {
|
||||
i2 = 13;
|
||||
} else if (s.a("event", 40, str4)) {
|
||||
i2 = 0;
|
||||
}
|
||||
}
|
||||
if (i2 != 0) {
|
||||
e().v().a("Invalid public event name. Event will not be logged (FE)", j().a(str4));
|
||||
this.a.s();
|
||||
this.a.s().a(i2, "_ev", zzfy.a(str4, 40, true), str4 != null ? str2.length() : 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
c();
|
||||
zzdx B = s().B();
|
||||
if (B != null && !bundle.containsKey("_sc")) {
|
||||
B.d = true;
|
||||
}
|
||||
zzdy.a(B, bundle, z && z3);
|
||||
boolean equals = "am".equals(str);
|
||||
boolean h = zzfy.h(str2);
|
||||
if (z && this.d != null && !h && !equals) {
|
||||
e().A().a("Passing event to registered event handler (FE)", j().a(str4), j().a(bundle));
|
||||
this.d.a(str, str2, bundle, j);
|
||||
return;
|
||||
}
|
||||
if (this.a.H()) {
|
||||
int a = k().a(str4);
|
||||
if (a != 0) {
|
||||
e().v().a("Invalid event name. Event will not be logged (FE)", j().a(str4));
|
||||
k();
|
||||
this.a.s().a(str3, a, "_ev", zzfy.a(str4, 40, true), str4 != null ? str2.length() : 0);
|
||||
return;
|
||||
}
|
||||
List<String> a2 = CollectionUtils.a((Object[]) new String[]{"_o", "_sn", "_sc", "_si"});
|
||||
String str5 = "_o";
|
||||
Bundle a3 = k().a(str3, str2, bundle, a2, z3, true);
|
||||
zzdx zzdxVar2 = (a3 != null && a3.containsKey("_sc") && a3.containsKey("_si")) ? new zzdx(a3.getString("_sn"), a3.getString("_sc"), Long.valueOf(a3.getLong("_si")).longValue()) : null;
|
||||
if (zzdxVar2 != null) {
|
||||
B = zzdxVar2;
|
||||
}
|
||||
if (m().s(str3)) {
|
||||
c();
|
||||
if (s().B() != null && "_ae".equals(str4)) {
|
||||
long C = u().C();
|
||||
if (C > 0) {
|
||||
k().a(a3, C);
|
||||
}
|
||||
}
|
||||
}
|
||||
ArrayList arrayList2 = new ArrayList();
|
||||
arrayList2.add(a3);
|
||||
long nextLong = k().u().nextLong();
|
||||
if (m().r(q().C()) && a3.getLong("extend_session", 0L) == 1) {
|
||||
e().B().a("EXTEND_SESSION param attached: initiate a new session or extend the current active session");
|
||||
this.a.p().a(j, true);
|
||||
}
|
||||
String[] strArr = (String[]) a3.keySet().toArray(new String[bundle.size()]);
|
||||
Arrays.sort(strArr);
|
||||
int length = strArr.length;
|
||||
String str6 = "_ae";
|
||||
int i3 = 0;
|
||||
int i4 = 0;
|
||||
while (i4 < length) {
|
||||
int i5 = length;
|
||||
String str7 = strArr[i4];
|
||||
Object obj = a3.get(str7);
|
||||
k();
|
||||
String[] strArr2 = strArr;
|
||||
Bundle[] a4 = zzfy.a(obj);
|
||||
if (a4 != null) {
|
||||
a3.putInt(str7, a4.length);
|
||||
int i6 = i3;
|
||||
int i7 = 0;
|
||||
while (i7 < a4.length) {
|
||||
Bundle bundle3 = a4[i7];
|
||||
zzdy.a(B, bundle3, true);
|
||||
int i8 = i6;
|
||||
ArrayList arrayList3 = arrayList2;
|
||||
long j3 = nextLong;
|
||||
Bundle a5 = k().a(str3, "_ep", bundle3, a2, z3, false);
|
||||
a5.putString("_en", str4);
|
||||
a5.putLong("_eid", j3);
|
||||
a5.putString("_gn", str7);
|
||||
a5.putInt("_ll", a4.length);
|
||||
a5.putInt("_i", i7);
|
||||
arrayList3.add(a5);
|
||||
i7++;
|
||||
nextLong = j3;
|
||||
a3 = a3;
|
||||
arrayList2 = arrayList3;
|
||||
i4 = i4;
|
||||
B = B;
|
||||
i6 = i8;
|
||||
}
|
||||
zzdxVar = B;
|
||||
i = i4;
|
||||
bundle2 = a3;
|
||||
arrayList = arrayList2;
|
||||
j2 = nextLong;
|
||||
i3 = i6 + a4.length;
|
||||
} else {
|
||||
zzdxVar = B;
|
||||
i = i4;
|
||||
bundle2 = a3;
|
||||
arrayList = arrayList2;
|
||||
j2 = nextLong;
|
||||
}
|
||||
nextLong = j2;
|
||||
a3 = bundle2;
|
||||
arrayList2 = arrayList;
|
||||
length = i5;
|
||||
B = zzdxVar;
|
||||
i4 = i + 1;
|
||||
strArr = strArr2;
|
||||
}
|
||||
ArrayList arrayList4 = arrayList2;
|
||||
int i9 = i3;
|
||||
long j4 = nextLong;
|
||||
Bundle bundle4 = a3;
|
||||
if (i9 != 0) {
|
||||
bundle4.putLong("_eid", j4);
|
||||
bundle4.putInt("_epc", i9);
|
||||
}
|
||||
int i10 = 0;
|
||||
while (i10 < arrayList4.size()) {
|
||||
Bundle bundle5 = (Bundle) arrayList4.get(i10);
|
||||
String str8 = i10 != 0 ? "_ep" : str4;
|
||||
String str9 = str5;
|
||||
bundle5.putString(str9, str);
|
||||
if (z2) {
|
||||
bundle5 = k().a(bundle5);
|
||||
}
|
||||
e().A().a("Logging event (FE)", j().a(str4), j().a(bundle5));
|
||||
String str10 = str6;
|
||||
String str11 = str4;
|
||||
r().a(new zzag(str8, new zzad(bundle5), str, j), str3);
|
||||
if (!equals) {
|
||||
Iterator<zzcy> it = this.e.iterator();
|
||||
while (it.hasNext()) {
|
||||
it.next().a(str, str2, new Bundle(bundle5), j);
|
||||
}
|
||||
}
|
||||
i10++;
|
||||
str5 = str9;
|
||||
str6 = str10;
|
||||
str4 = str11;
|
||||
}
|
||||
String str12 = str6;
|
||||
String str13 = str4;
|
||||
c();
|
||||
if (s().B() == null || !str12.equals(str13)) {
|
||||
return;
|
||||
}
|
||||
u().a(true, true);
|
||||
}
|
||||
}
|
||||
|
||||
private final void c(AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
long a = d().a();
|
||||
Preconditions.a(conditionalUserProperty);
|
||||
Preconditions.b(conditionalUserProperty.mName);
|
||||
Preconditions.b(conditionalUserProperty.mOrigin);
|
||||
Preconditions.a(conditionalUserProperty.mValue);
|
||||
conditionalUserProperty.mCreationTimestamp = a;
|
||||
String str = conditionalUserProperty.mName;
|
||||
Object obj = conditionalUserProperty.mValue;
|
||||
if (k().b(str) != 0) {
|
||||
e().t().a("Invalid conditional user property name", j().c(str));
|
||||
return;
|
||||
}
|
||||
if (k().b(str, obj) != 0) {
|
||||
e().t().a("Invalid conditional user property value", j().c(str), obj);
|
||||
return;
|
||||
}
|
||||
Object c = k().c(str, obj);
|
||||
if (c == null) {
|
||||
e().t().a("Unable to normalize conditional user property value", j().c(str), obj);
|
||||
return;
|
||||
}
|
||||
conditionalUserProperty.mValue = c;
|
||||
long j = conditionalUserProperty.mTriggerTimeout;
|
||||
if (!TextUtils.isEmpty(conditionalUserProperty.mTriggerEventName) && (j > 15552000000L || j < 1)) {
|
||||
e().t().a("Invalid conditional user property timeout", j().c(str), Long.valueOf(j));
|
||||
return;
|
||||
}
|
||||
long j2 = conditionalUserProperty.mTimeToLive;
|
||||
if (j2 <= 15552000000L && j2 >= 1) {
|
||||
a().a(new zzdi(this, conditionalUserProperty));
|
||||
} else {
|
||||
e().t().a("Invalid conditional user property time to live", j().c(str), Long.valueOf(j2));
|
||||
}
|
||||
}
|
||||
|
||||
private final void b(String str, String str2, String str3, Bundle bundle) {
|
||||
long a = d().a();
|
||||
Preconditions.b(str2);
|
||||
AppMeasurement.ConditionalUserProperty conditionalUserProperty = new AppMeasurement.ConditionalUserProperty();
|
||||
conditionalUserProperty.mAppId = str;
|
||||
conditionalUserProperty.mName = str2;
|
||||
conditionalUserProperty.mCreationTimestamp = a;
|
||||
if (str3 != null) {
|
||||
conditionalUserProperty.mExpiredEventName = str3;
|
||||
conditionalUserProperty.mExpiredEventParams = bundle;
|
||||
}
|
||||
a().a(new zzdj(this, conditionalUserProperty));
|
||||
}
|
||||
|
||||
public final List<AppMeasurement.ConditionalUserProperty> b(String str, String str2) {
|
||||
g();
|
||||
return b((String) null, str, str2);
|
||||
}
|
||||
|
||||
private final List<AppMeasurement.ConditionalUserProperty> b(String str, String str2, String str3) {
|
||||
if (a().t()) {
|
||||
e().t().a("Cannot get conditional user properties from analytics worker thread");
|
||||
return Collections.emptyList();
|
||||
}
|
||||
if (zzn.a()) {
|
||||
e().t().a("Cannot get conditional user properties from main thread");
|
||||
return Collections.emptyList();
|
||||
}
|
||||
AtomicReference atomicReference = new AtomicReference();
|
||||
synchronized (atomicReference) {
|
||||
this.a.a().a(new zzdk(this, atomicReference, str, str2, str3));
|
||||
try {
|
||||
atomicReference.wait(5000L);
|
||||
} catch (InterruptedException e) {
|
||||
e().w().a("Interrupted waiting for get conditional user properties", str, e);
|
||||
}
|
||||
}
|
||||
List<zzo> list = (List) atomicReference.get();
|
||||
if (list == null) {
|
||||
e().w().a("Timed out waiting for get conditional user properties", str);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(list.size());
|
||||
for (zzo zzoVar : list) {
|
||||
AppMeasurement.ConditionalUserProperty conditionalUserProperty = new AppMeasurement.ConditionalUserProperty();
|
||||
conditionalUserProperty.mAppId = zzoVar.packageName;
|
||||
conditionalUserProperty.mOrigin = zzoVar.origin;
|
||||
conditionalUserProperty.mCreationTimestamp = zzoVar.creationTimestamp;
|
||||
zzfv zzfvVar = zzoVar.zzags;
|
||||
conditionalUserProperty.mName = zzfvVar.name;
|
||||
conditionalUserProperty.mValue = zzfvVar.getValue();
|
||||
conditionalUserProperty.mActive = zzoVar.active;
|
||||
conditionalUserProperty.mTriggerEventName = zzoVar.triggerEventName;
|
||||
zzag zzagVar = zzoVar.zzagt;
|
||||
if (zzagVar != null) {
|
||||
conditionalUserProperty.mTimedOutEventName = zzagVar.name;
|
||||
zzad zzadVar = zzagVar.zzahu;
|
||||
if (zzadVar != null) {
|
||||
conditionalUserProperty.mTimedOutEventParams = zzadVar.zziy();
|
||||
}
|
||||
}
|
||||
conditionalUserProperty.mTriggerTimeout = zzoVar.triggerTimeout;
|
||||
zzag zzagVar2 = zzoVar.zzagu;
|
||||
if (zzagVar2 != null) {
|
||||
conditionalUserProperty.mTriggeredEventName = zzagVar2.name;
|
||||
zzad zzadVar2 = zzagVar2.zzahu;
|
||||
if (zzadVar2 != null) {
|
||||
conditionalUserProperty.mTriggeredEventParams = zzadVar2.zziy();
|
||||
}
|
||||
}
|
||||
conditionalUserProperty.mTriggeredTimestamp = zzoVar.zzags.zzauk;
|
||||
conditionalUserProperty.mTimeToLive = zzoVar.timeToLive;
|
||||
zzag zzagVar3 = zzoVar.zzagv;
|
||||
if (zzagVar3 != null) {
|
||||
conditionalUserProperty.mExpiredEventName = zzagVar3.name;
|
||||
zzad zzadVar3 = zzagVar3.zzahu;
|
||||
if (zzadVar3 != null) {
|
||||
conditionalUserProperty.mExpiredEventParams = zzadVar3.zziy();
|
||||
}
|
||||
}
|
||||
arrayList.add(conditionalUserProperty);
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
private final Map<String, Object> b(String str, String str2, String str3, boolean z) {
|
||||
if (a().t()) {
|
||||
e().t().a("Cannot get user properties from analytics worker thread");
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
if (zzn.a()) {
|
||||
e().t().a("Cannot get user properties from main thread");
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
AtomicReference atomicReference = new AtomicReference();
|
||||
synchronized (atomicReference) {
|
||||
this.a.a().a(new zzdm(this, atomicReference, str, str2, str3, z));
|
||||
try {
|
||||
atomicReference.wait(5000L);
|
||||
} catch (InterruptedException e) {
|
||||
e().w().a("Interrupted waiting for get user properties", e);
|
||||
}
|
||||
}
|
||||
List<zzfv> list = (List) atomicReference.get();
|
||||
if (list == null) {
|
||||
e().w().a("Timed out waiting for get user properties");
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
ArrayMap arrayMap = new ArrayMap(list.size());
|
||||
for (zzfv zzfvVar : list) {
|
||||
arrayMap.put(zzfvVar.name, zzfvVar.getValue());
|
||||
}
|
||||
return arrayMap;
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, Bundle bundle, boolean z, boolean z2, long j) {
|
||||
g();
|
||||
b(str == null ? "app" : str, str2, j, bundle == null ? new Bundle() : bundle, z2, !z2 || this.d == null || zzfy.h(str2), !z, null);
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, Object obj, boolean z) {
|
||||
a(str, str2, obj, z, d().a());
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, Object obj, boolean z, long j) {
|
||||
if (str == null) {
|
||||
str = "app";
|
||||
}
|
||||
String str3 = str;
|
||||
int i = 6;
|
||||
if (z) {
|
||||
i = k().b(str2);
|
||||
} else {
|
||||
zzfy k = k();
|
||||
if (k.b("user property", str2)) {
|
||||
if (!k.a("user property", zzcw.a, str2)) {
|
||||
i = 15;
|
||||
} else if (k.a("user property", 24, str2)) {
|
||||
i = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i != 0) {
|
||||
k();
|
||||
this.a.s().a(i, "_ev", zzfy.a(str2, 24, true), str2 != null ? str2.length() : 0);
|
||||
return;
|
||||
}
|
||||
if (obj != null) {
|
||||
int b = k().b(str2, obj);
|
||||
if (b != 0) {
|
||||
k();
|
||||
this.a.s().a(b, "_ev", zzfy.a(str2, 24, true), ((obj instanceof String) || (obj instanceof CharSequence)) ? String.valueOf(obj).length() : 0);
|
||||
return;
|
||||
} else {
|
||||
Object c = k().c(str2, obj);
|
||||
if (c != null) {
|
||||
a(str3, str2, j, c);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
a(str3, str2, j, (Object) null);
|
||||
}
|
||||
|
||||
private final void a(String str, String str2, long j, Object obj) {
|
||||
a().a(new zzdd(this, str, str2, obj, j));
|
||||
}
|
||||
|
||||
final void a(String str, String str2, Object obj, long j) {
|
||||
Preconditions.b(str);
|
||||
Preconditions.b(str2);
|
||||
f();
|
||||
g();
|
||||
w();
|
||||
if (!this.a.f()) {
|
||||
e().A().a("User property not set since app measurement is disabled");
|
||||
} else if (this.a.H()) {
|
||||
e().A().a("Setting user property (FE)", j().a(str2), obj);
|
||||
r().a(new zzfv(str2, j, obj, str));
|
||||
}
|
||||
}
|
||||
|
||||
final void a(String str) {
|
||||
this.g.set(str);
|
||||
}
|
||||
|
||||
public final void a(AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
Preconditions.a(conditionalUserProperty);
|
||||
g();
|
||||
AppMeasurement.ConditionalUserProperty conditionalUserProperty2 = new AppMeasurement.ConditionalUserProperty(conditionalUserProperty);
|
||||
if (!TextUtils.isEmpty(conditionalUserProperty2.mAppId)) {
|
||||
e().w().a("Package name should be null when calling setConditionalUserProperty");
|
||||
}
|
||||
conditionalUserProperty2.mAppId = null;
|
||||
c(conditionalUserProperty2);
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, Bundle bundle) {
|
||||
g();
|
||||
b((String) null, str, str2, bundle);
|
||||
}
|
||||
|
||||
public final void a(String str, String str2, String str3, Bundle bundle) {
|
||||
Preconditions.b(str);
|
||||
n();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public final List<AppMeasurement.ConditionalUserProperty> a(String str, String str2, String str3) {
|
||||
Preconditions.b(str);
|
||||
n();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public final Map<String, Object> a(String str, String str2, boolean z) {
|
||||
g();
|
||||
return b((String) null, str, str2, z);
|
||||
}
|
||||
|
||||
public final Map<String, Object> a(String str, String str2, String str3, boolean z) {
|
||||
Preconditions.b(str);
|
||||
n();
|
||||
throw null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdb implements Runnable {
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdc implements Runnable {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ long c;
|
||||
private final /* synthetic */ Bundle d;
|
||||
private final /* synthetic */ boolean e;
|
||||
private final /* synthetic */ boolean f;
|
||||
private final /* synthetic */ boolean g;
|
||||
private final /* synthetic */ String h;
|
||||
private final /* synthetic */ zzda i;
|
||||
|
||||
zzdc(zzda zzdaVar, String str, String str2, long j, Bundle bundle, boolean z, boolean z2, boolean z3, String str3) {
|
||||
this.i = zzdaVar;
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = j;
|
||||
this.d = bundle;
|
||||
this.e = z;
|
||||
this.f = z2;
|
||||
this.g = z3;
|
||||
this.h = str3;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.i.a(this.a, this.b, this.c, this.d, this.e, this.f, this.g, this.h);
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdd implements Runnable {
|
||||
private final /* synthetic */ String a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ Object c;
|
||||
private final /* synthetic */ long d;
|
||||
private final /* synthetic */ zzda e;
|
||||
|
||||
zzdd(zzda zzdaVar, String str, String str2, Object obj, long j) {
|
||||
this.e = zzdaVar;
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = obj;
|
||||
this.d = j;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.e.a(this.a, this.b, this.c, this.d);
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.measurement.AppMeasurement;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdi implements Runnable {
|
||||
private final /* synthetic */ AppMeasurement.ConditionalUserProperty a;
|
||||
private final /* synthetic */ zzda b;
|
||||
|
||||
zzdi(zzda zzdaVar, AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
this.b = zzdaVar;
|
||||
this.a = conditionalUserProperty;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.d(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.measurement.AppMeasurement;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdj implements Runnable {
|
||||
private final /* synthetic */ AppMeasurement.ConditionalUserProperty a;
|
||||
private final /* synthetic */ zzda b;
|
||||
|
||||
zzdj(zzda zzdaVar, AppMeasurement.ConditionalUserProperty conditionalUserProperty) {
|
||||
this.b = zzdaVar;
|
||||
this.a = conditionalUserProperty;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.e(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdk implements Runnable {
|
||||
private final /* synthetic */ AtomicReference a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ String d;
|
||||
private final /* synthetic */ zzda e;
|
||||
|
||||
zzdk(zzda zzdaVar, AtomicReference atomicReference, String str, String str2, String str3) {
|
||||
this.e = zzdaVar;
|
||||
this.a = atomicReference;
|
||||
this.b = str;
|
||||
this.c = str2;
|
||||
this.d = str3;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.e.a.m().a(this.a, this.b, this.c, this.d);
|
||||
}
|
||||
}
|
@@ -0,0 +1,27 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdm implements Runnable {
|
||||
private final /* synthetic */ AtomicReference a;
|
||||
private final /* synthetic */ String b;
|
||||
private final /* synthetic */ String c;
|
||||
private final /* synthetic */ String d;
|
||||
private final /* synthetic */ boolean e;
|
||||
private final /* synthetic */ zzda f;
|
||||
|
||||
zzdm(zzda zzdaVar, AtomicReference atomicReference, String str, String str2, String str3, boolean z) {
|
||||
this.f = zzdaVar;
|
||||
this.a = atomicReference;
|
||||
this.b = str;
|
||||
this.c = str2;
|
||||
this.d = str3;
|
||||
this.e = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.f.a.m().a(this.a, this.b, this.c, this.d, this.e);
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdq implements Runnable {
|
||||
private final /* synthetic */ boolean a;
|
||||
private final /* synthetic */ zzda b;
|
||||
|
||||
zzdq(zzda zzdaVar, boolean z) {
|
||||
this.b = zzdaVar;
|
||||
this.a = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.c(this.a);
|
||||
}
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdr implements Runnable {
|
||||
private final /* synthetic */ boolean a;
|
||||
private final /* synthetic */ zzda b;
|
||||
|
||||
zzdr(zzda zzdaVar, boolean z) {
|
||||
this.b = zzdaVar;
|
||||
this.a = z;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
boolean f = this.b.a.f();
|
||||
boolean E = this.b.a.E();
|
||||
this.b.a.a(this.a);
|
||||
if (E == this.a) {
|
||||
this.b.a.e().B().a("Default data collection state already set to", Boolean.valueOf(this.a));
|
||||
}
|
||||
if (this.b.a.f() == f || this.b.a.f() != this.b.a.E()) {
|
||||
this.b.a.e().y().a("Default data collection is different than actual status", Boolean.valueOf(this.a), Boolean.valueOf(f));
|
||||
}
|
||||
this.b.G();
|
||||
}
|
||||
}
|
@@ -0,0 +1,90 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
|
||||
@TargetApi(14)
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdu implements Application.ActivityLifecycleCallbacks {
|
||||
private final /* synthetic */ zzda a;
|
||||
|
||||
private zzdu(zzda zzdaVar) {
|
||||
this.a = zzdaVar;
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityCreated(Activity activity, Bundle bundle) {
|
||||
Uri data;
|
||||
try {
|
||||
this.a.e().B().a("onActivityCreated");
|
||||
Intent intent = activity.getIntent();
|
||||
if (intent != null && (data = intent.getData()) != null && data.isHierarchical()) {
|
||||
if (bundle == null) {
|
||||
Bundle a = this.a.k().a(data);
|
||||
this.a.k();
|
||||
String str = zzfy.a(intent) ? "gs" : "auto";
|
||||
if (a != null) {
|
||||
this.a.b(str, "_cmp", a);
|
||||
}
|
||||
}
|
||||
String queryParameter = data.getQueryParameter("referrer");
|
||||
if (TextUtils.isEmpty(queryParameter)) {
|
||||
return;
|
||||
}
|
||||
if (!(queryParameter.contains("gclid") && (queryParameter.contains("utm_campaign") || queryParameter.contains("utm_source") || queryParameter.contains("utm_medium") || queryParameter.contains("utm_term") || queryParameter.contains("utm_content")))) {
|
||||
this.a.e().A().a("Activity created with data 'referrer' param without gclid and at least one utm field");
|
||||
return;
|
||||
} else {
|
||||
this.a.e().A().a("Activity created with referrer", queryParameter);
|
||||
if (!TextUtils.isEmpty(queryParameter)) {
|
||||
this.a.a("auto", "_ldl", (Object) queryParameter, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
this.a.e().t().a("Throwable caught in onActivityCreated", e);
|
||||
}
|
||||
this.a.s().a(activity, bundle);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityDestroyed(Activity activity) {
|
||||
this.a.s().a(activity);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityPaused(Activity activity) {
|
||||
this.a.s().b(activity);
|
||||
zzfd u = this.a.u();
|
||||
u.a().a(new zzfi(u, u.d().b()));
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityResumed(Activity activity) {
|
||||
this.a.s().c(activity);
|
||||
zzfd u = this.a.u();
|
||||
u.a().a(new zzfh(u, u.d().b()));
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
|
||||
this.a.s().b(activity, bundle);
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityStarted(Activity activity) {
|
||||
}
|
||||
|
||||
@Override // android.app.Application.ActivityLifecycleCallbacks
|
||||
public final void onActivityStopped(Activity activity) {
|
||||
}
|
||||
|
||||
/* synthetic */ zzdu(zzda zzdaVar, zzdb zzdbVar) {
|
||||
this(zzdaVar);
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdv extends zzfn {
|
||||
public zzdv(zzfo zzfoVar) {
|
||||
super(zzfoVar);
|
||||
}
|
||||
|
||||
public final byte[] a(zzag zzagVar, String str) {
|
||||
f();
|
||||
this.a.h();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzfn
|
||||
protected final boolean s() {
|
||||
return false;
|
||||
}
|
||||
}
|
@@ -0,0 +1,73 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzdw {
|
||||
public static Object a(Object obj) {
|
||||
ObjectInputStream objectInputStream;
|
||||
ObjectOutputStream objectOutputStream;
|
||||
try {
|
||||
if (obj == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||
objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);
|
||||
try {
|
||||
objectOutputStream.writeObject(obj);
|
||||
objectOutputStream.flush();
|
||||
objectInputStream = new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()));
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
objectInputStream = null;
|
||||
}
|
||||
try {
|
||||
Object readObject = objectInputStream.readObject();
|
||||
objectOutputStream.close();
|
||||
objectInputStream.close();
|
||||
return readObject;
|
||||
} catch (Throwable th2) {
|
||||
th = th2;
|
||||
if (objectOutputStream != null) {
|
||||
objectOutputStream.close();
|
||||
}
|
||||
if (objectInputStream != null) {
|
||||
objectInputStream.close();
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
} catch (Throwable th3) {
|
||||
th = th3;
|
||||
objectInputStream = null;
|
||||
objectOutputStream = null;
|
||||
}
|
||||
} catch (IOException | ClassNotFoundException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static String a(String str, String[] strArr, String[] strArr2) {
|
||||
boolean equals;
|
||||
Preconditions.a(strArr);
|
||||
Preconditions.a(strArr2);
|
||||
int min = Math.min(strArr.length, strArr2.length);
|
||||
for (int i = 0; i < min; i++) {
|
||||
String str2 = strArr[i];
|
||||
if (str == null && str2 == null) {
|
||||
equals = true;
|
||||
} else {
|
||||
equals = str == null ? false : str.equals(str2);
|
||||
}
|
||||
if (equals) {
|
||||
return strArr2[i];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzdx {
|
||||
public final String a;
|
||||
public final String b;
|
||||
public final long c;
|
||||
boolean d = false;
|
||||
|
||||
public zzdx(String str, String str2, long j) {
|
||||
this.a = str;
|
||||
this.b = str2;
|
||||
this.c = j;
|
||||
}
|
||||
}
|
171
sources/com/google/android/gms/measurement/internal/zzdy.java
Normal file
171
sources/com/google/android/gms/measurement/internal/zzdy.java
Normal file
@@ -0,0 +1,171 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import androidx.collection.ArrayMap;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.ubt.jimu.controller.data.widget.JockstickDataConverter;
|
||||
import com.unity3d.ads.metadata.MediationMetaData;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzdy extends zzf {
|
||||
protected zzdx c;
|
||||
private volatile zzdx d;
|
||||
private zzdx e;
|
||||
private final Map<Activity, zzdx> f;
|
||||
private String g;
|
||||
|
||||
public zzdy(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.f = new ArrayMap();
|
||||
}
|
||||
|
||||
private final zzdx d(Activity activity) {
|
||||
Preconditions.a(activity);
|
||||
zzdx zzdxVar = this.f.get(activity);
|
||||
if (zzdxVar != null) {
|
||||
return zzdxVar;
|
||||
}
|
||||
zzdx zzdxVar2 = new zzdx(null, a(activity.getClass().getCanonicalName()), k().t());
|
||||
this.f.put(activity, zzdxVar2);
|
||||
return zzdxVar2;
|
||||
}
|
||||
|
||||
public final zzdx B() {
|
||||
w();
|
||||
f();
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public final zzdx C() {
|
||||
g();
|
||||
return this.d;
|
||||
}
|
||||
|
||||
public final void a(Activity activity, String str, String str2) {
|
||||
if (this.d == null) {
|
||||
e().w().a("setCurrentScreen cannot be called while no activity active");
|
||||
return;
|
||||
}
|
||||
if (this.f.get(activity) == null) {
|
||||
e().w().a("setCurrentScreen must be called with an activity in the activity lifecycle");
|
||||
return;
|
||||
}
|
||||
if (str2 == null) {
|
||||
str2 = a(activity.getClass().getCanonicalName());
|
||||
}
|
||||
boolean equals = this.d.b.equals(str2);
|
||||
boolean e = zzfy.e(this.d.a, str);
|
||||
if (equals && e) {
|
||||
e().y().a("setCurrentScreen cannot be called with the same class and name");
|
||||
return;
|
||||
}
|
||||
if (str != null && (str.length() <= 0 || str.length() > 100)) {
|
||||
e().w().a("Invalid screen name length in setCurrentScreen. Length", Integer.valueOf(str.length()));
|
||||
return;
|
||||
}
|
||||
if (str2 != null && (str2.length() <= 0 || str2.length() > 100)) {
|
||||
e().w().a("Invalid class name length in setCurrentScreen. Length", Integer.valueOf(str2.length()));
|
||||
return;
|
||||
}
|
||||
e().B().a("Setting current screen to name, class", str == null ? "null" : str, str2);
|
||||
zzdx zzdxVar = new zzdx(str, str2, k().t());
|
||||
this.f.put(activity, zzdxVar);
|
||||
a(activity, zzdxVar, true);
|
||||
}
|
||||
|
||||
public final void b(Activity activity) {
|
||||
zzdx d = d(activity);
|
||||
this.e = this.d;
|
||||
this.d = null;
|
||||
a().a(new zzea(this, d));
|
||||
}
|
||||
|
||||
public final void c(Activity activity) {
|
||||
a(activity, d(activity), false);
|
||||
zza o = o();
|
||||
o.a().a(new zzd(o, o.d().b()));
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
protected final boolean y() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final void b(Activity activity, Bundle bundle) {
|
||||
zzdx zzdxVar;
|
||||
if (bundle == null || (zzdxVar = this.f.get(activity)) == null) {
|
||||
return;
|
||||
}
|
||||
Bundle bundle2 = new Bundle();
|
||||
bundle2.putLong(JockstickDataConverter.ID, zzdxVar.c);
|
||||
bundle2.putString(MediationMetaData.KEY_NAME, zzdxVar.a);
|
||||
bundle2.putString("referrer_name", zzdxVar.b);
|
||||
bundle.putBundle("com.google.app_measurement.screen_service", bundle2);
|
||||
}
|
||||
|
||||
private final void a(Activity activity, zzdx zzdxVar, boolean z) {
|
||||
zzdx zzdxVar2 = this.d == null ? this.e : this.d;
|
||||
if (zzdxVar.b == null) {
|
||||
zzdxVar = new zzdx(zzdxVar.a, a(activity.getClass().getCanonicalName()), zzdxVar.c);
|
||||
}
|
||||
this.e = this.d;
|
||||
this.d = zzdxVar;
|
||||
a().a(new zzdz(this, z, zzdxVar2, zzdxVar));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void a(zzdx zzdxVar, boolean z) {
|
||||
o().a(d().b());
|
||||
if (u().a(zzdxVar.d, z)) {
|
||||
zzdxVar.d = false;
|
||||
}
|
||||
}
|
||||
|
||||
public static void a(zzdx zzdxVar, Bundle bundle, boolean z) {
|
||||
if (bundle != null && zzdxVar != null && (!bundle.containsKey("_sc") || z)) {
|
||||
String str = zzdxVar.a;
|
||||
if (str != null) {
|
||||
bundle.putString("_sn", str);
|
||||
} else {
|
||||
bundle.remove("_sn");
|
||||
}
|
||||
bundle.putString("_sc", zzdxVar.b);
|
||||
bundle.putLong("_si", zzdxVar.c);
|
||||
return;
|
||||
}
|
||||
if (bundle != null && zzdxVar == null && z) {
|
||||
bundle.remove("_sn");
|
||||
bundle.remove("_sc");
|
||||
bundle.remove("_si");
|
||||
}
|
||||
}
|
||||
|
||||
public final void a(String str, zzdx zzdxVar) {
|
||||
f();
|
||||
synchronized (this) {
|
||||
if (this.g == null || this.g.equals(str) || zzdxVar != null) {
|
||||
this.g = str;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static String a(String str) {
|
||||
String[] split = str.split("\\.");
|
||||
String str2 = split.length > 0 ? split[split.length - 1] : "";
|
||||
return str2.length() > 100 ? str2.substring(0, 100) : str2;
|
||||
}
|
||||
|
||||
public final void a(Activity activity, Bundle bundle) {
|
||||
Bundle bundle2;
|
||||
if (bundle == null || (bundle2 = bundle.getBundle("com.google.app_measurement.screen_service")) == null) {
|
||||
return;
|
||||
}
|
||||
this.f.put(activity, new zzdx(bundle2.getString(MediationMetaData.KEY_NAME), bundle2.getString("referrer_name"), bundle2.getLong(JockstickDataConverter.ID)));
|
||||
}
|
||||
|
||||
public final void a(Activity activity) {
|
||||
this.f.remove(activity);
|
||||
}
|
||||
}
|
138
sources/com/google/android/gms/measurement/internal/zzdz.java
Normal file
138
sources/com/google/android/gms/measurement/internal/zzdz.java
Normal file
@@ -0,0 +1,138 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzdz implements Runnable {
|
||||
private final /* synthetic */ boolean a;
|
||||
private final /* synthetic */ zzdx b;
|
||||
private final /* synthetic */ zzdx c;
|
||||
private final /* synthetic */ zzdy d;
|
||||
|
||||
zzdz(zzdy zzdyVar, boolean z, zzdx zzdxVar, zzdx zzdxVar2) {
|
||||
this.d = zzdyVar;
|
||||
this.a = z;
|
||||
this.b = zzdxVar;
|
||||
this.c = zzdxVar2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:17:0x0061, code lost:
|
||||
|
||||
if (com.google.android.gms.measurement.internal.zzfy.e(r10.b.a, r10.c.a) != false) goto L27;
|
||||
*/
|
||||
@Override // java.lang.Runnable
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final void run() {
|
||||
/*
|
||||
r10 = this;
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzq r0 = r0.m()
|
||||
com.google.android.gms.measurement.internal.zzdy r1 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzam r1 = r1.q()
|
||||
java.lang.String r1 = r1.C()
|
||||
boolean r0 = r0.s(r1)
|
||||
r1 = 0
|
||||
r2 = 1
|
||||
if (r0 == 0) goto L2f
|
||||
boolean r0 = r10.a
|
||||
if (r0 == 0) goto L24
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzdx r0 = r0.c
|
||||
if (r0 == 0) goto L24
|
||||
r0 = 1
|
||||
goto L25
|
||||
L24:
|
||||
r0 = 0
|
||||
L25:
|
||||
if (r0 == 0) goto L3d
|
||||
com.google.android.gms.measurement.internal.zzdy r3 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzdx r4 = r3.c
|
||||
com.google.android.gms.measurement.internal.zzdy.a(r3, r4, r2)
|
||||
goto L3d
|
||||
L2f:
|
||||
boolean r0 = r10.a
|
||||
if (r0 == 0) goto L3c
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzdx r3 = r0.c
|
||||
if (r3 == 0) goto L3c
|
||||
com.google.android.gms.measurement.internal.zzdy.a(r0, r3, r2)
|
||||
L3c:
|
||||
r0 = 0
|
||||
L3d:
|
||||
com.google.android.gms.measurement.internal.zzdx r3 = r10.b
|
||||
if (r3 == 0) goto L63
|
||||
long r4 = r3.c
|
||||
com.google.android.gms.measurement.internal.zzdx r6 = r10.c
|
||||
long r7 = r6.c
|
||||
int r9 = (r4 > r7 ? 1 : (r4 == r7 ? 0 : -1))
|
||||
if (r9 != 0) goto L63
|
||||
java.lang.String r3 = r3.b
|
||||
java.lang.String r4 = r6.b
|
||||
boolean r3 = com.google.android.gms.measurement.internal.zzfy.e(r3, r4)
|
||||
if (r3 == 0) goto L63
|
||||
com.google.android.gms.measurement.internal.zzdx r3 = r10.b
|
||||
java.lang.String r3 = r3.a
|
||||
com.google.android.gms.measurement.internal.zzdx r4 = r10.c
|
||||
java.lang.String r4 = r4.a
|
||||
boolean r3 = com.google.android.gms.measurement.internal.zzfy.e(r3, r4)
|
||||
if (r3 != 0) goto L64
|
||||
L63:
|
||||
r1 = 1
|
||||
L64:
|
||||
if (r1 == 0) goto Lcd
|
||||
android.os.Bundle r1 = new android.os.Bundle
|
||||
r1.<init>()
|
||||
com.google.android.gms.measurement.internal.zzdx r3 = r10.c
|
||||
com.google.android.gms.measurement.internal.zzdy.a(r3, r1, r2)
|
||||
com.google.android.gms.measurement.internal.zzdx r2 = r10.b
|
||||
if (r2 == 0) goto L8f
|
||||
java.lang.String r2 = r2.a
|
||||
if (r2 == 0) goto L7d
|
||||
java.lang.String r3 = "_pn"
|
||||
r1.putString(r3, r2)
|
||||
L7d:
|
||||
com.google.android.gms.measurement.internal.zzdx r2 = r10.b
|
||||
java.lang.String r2 = r2.b
|
||||
java.lang.String r3 = "_pc"
|
||||
r1.putString(r3, r2)
|
||||
com.google.android.gms.measurement.internal.zzdx r2 = r10.b
|
||||
long r2 = r2.c
|
||||
java.lang.String r4 = "_pi"
|
||||
r1.putLong(r4, r2)
|
||||
L8f:
|
||||
com.google.android.gms.measurement.internal.zzdy r2 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzq r2 = r2.m()
|
||||
com.google.android.gms.measurement.internal.zzdy r3 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzam r3 = r3.q()
|
||||
java.lang.String r3 = r3.C()
|
||||
boolean r2 = r2.s(r3)
|
||||
if (r2 == 0) goto Lc0
|
||||
if (r0 == 0) goto Lc0
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzfd r0 = r0.u()
|
||||
long r2 = r0.C()
|
||||
r4 = 0
|
||||
int r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))
|
||||
if (r0 <= 0) goto Lc0
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzfy r0 = r0.k()
|
||||
r0.a(r1, r2)
|
||||
Lc0:
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzda r0 = r0.p()
|
||||
java.lang.String r2 = "auto"
|
||||
java.lang.String r3 = "_vs"
|
||||
r0.c(r2, r3, r1)
|
||||
Lcd:
|
||||
com.google.android.gms.measurement.internal.zzdy r0 = r10.d
|
||||
com.google.android.gms.measurement.internal.zzdx r1 = r10.c
|
||||
r0.c = r1
|
||||
com.google.android.gms.measurement.internal.zzeb r0 = r0.r()
|
||||
com.google.android.gms.measurement.internal.zzdx r1 = r10.c
|
||||
r0.a(r1)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzdz.run():void");
|
||||
}
|
||||
}
|
54
sources/com/google/android/gms/measurement/internal/zze.java
Normal file
54
sources/com/google/android/gms/measurement/internal/zze.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
class zze extends zzcr implements zzct {
|
||||
zze(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
Preconditions.a(zzbwVar);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcr
|
||||
public void f() {
|
||||
this.a.a().f();
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzcr
|
||||
public void g() {
|
||||
this.a.i();
|
||||
}
|
||||
|
||||
public void n() {
|
||||
this.a.h();
|
||||
throw null;
|
||||
}
|
||||
|
||||
public zza o() {
|
||||
return this.a.j();
|
||||
}
|
||||
|
||||
public zzda p() {
|
||||
return this.a.k();
|
||||
}
|
||||
|
||||
public zzam q() {
|
||||
return this.a.l();
|
||||
}
|
||||
|
||||
public zzeb r() {
|
||||
return this.a.m();
|
||||
}
|
||||
|
||||
public zzdy s() {
|
||||
return this.a.n();
|
||||
}
|
||||
|
||||
public zzao t() {
|
||||
return this.a.o();
|
||||
}
|
||||
|
||||
public zzfd u() {
|
||||
return this.a.p();
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzea implements Runnable {
|
||||
private final /* synthetic */ zzdx a;
|
||||
private final /* synthetic */ zzdy b;
|
||||
|
||||
zzea(zzdy zzdyVar, zzdx zzdxVar) {
|
||||
this.b = zzdyVar;
|
||||
this.a = zzdxVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
this.b.a(this.a, false);
|
||||
zzdy zzdyVar = this.b;
|
||||
zzdyVar.c = null;
|
||||
zzdyVar.r().a((zzdx) null);
|
||||
}
|
||||
}
|
263
sources/com/google/android/gms/measurement/internal/zzeb.java
Normal file
263
sources/com/google/android/gms/measurement/internal/zzeb.java
Normal file
@@ -0,0 +1,263 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
||||
import com.google.android.gms.common.stats.ConnectionTracker;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class zzeb extends zzf {
|
||||
private final zzes c;
|
||||
private zzaj d;
|
||||
private volatile Boolean e;
|
||||
private final zzy f;
|
||||
private final zzfj g;
|
||||
private final List<Runnable> h;
|
||||
private final zzy i;
|
||||
|
||||
protected zzeb(zzbw zzbwVar) {
|
||||
super(zzbwVar);
|
||||
this.h = new ArrayList();
|
||||
this.g = new zzfj(zzbwVar.d());
|
||||
this.c = new zzes(this);
|
||||
this.f = new zzec(this, zzbwVar);
|
||||
this.i = new zzek(this, zzbwVar);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void H() {
|
||||
f();
|
||||
this.g.b();
|
||||
this.f.a(zzai.Q.a().longValue());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void I() {
|
||||
f();
|
||||
if (C()) {
|
||||
e().B().a("Inactivity, disconnecting from the service");
|
||||
B();
|
||||
}
|
||||
}
|
||||
|
||||
private final boolean J() {
|
||||
c();
|
||||
return true;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void K() {
|
||||
f();
|
||||
e().B().a("Processing queued up service tasks", Integer.valueOf(this.h.size()));
|
||||
Iterator<Runnable> it = this.h.iterator();
|
||||
while (it.hasNext()) {
|
||||
try {
|
||||
it.next().run();
|
||||
} catch (Exception e) {
|
||||
e().t().a("Task exception while flushing queue", e);
|
||||
}
|
||||
}
|
||||
this.h.clear();
|
||||
this.i.a();
|
||||
}
|
||||
|
||||
public final void B() {
|
||||
f();
|
||||
w();
|
||||
this.c.a();
|
||||
try {
|
||||
ConnectionTracker.a().a(b(), this.c);
|
||||
} catch (IllegalArgumentException | IllegalStateException unused) {
|
||||
}
|
||||
this.d = null;
|
||||
}
|
||||
|
||||
public final boolean C() {
|
||||
f();
|
||||
w();
|
||||
return this.d != null;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00f3 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x010d */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
final void D() {
|
||||
/*
|
||||
Method dump skipped, instructions count: 391
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzeb.D():void");
|
||||
}
|
||||
|
||||
protected final void E() {
|
||||
f();
|
||||
w();
|
||||
a(new zzeh(this, a(true)));
|
||||
}
|
||||
|
||||
protected final void F() {
|
||||
f();
|
||||
w();
|
||||
a(new zzel(this, a(true)));
|
||||
}
|
||||
|
||||
final Boolean G() {
|
||||
return this.e;
|
||||
}
|
||||
|
||||
final void a(zzaj zzajVar, AbstractSafeParcelable abstractSafeParcelable, zzk zzkVar) {
|
||||
int i;
|
||||
List<AbstractSafeParcelable> a;
|
||||
f();
|
||||
g();
|
||||
w();
|
||||
boolean J = J();
|
||||
int i2 = 0;
|
||||
int i3 = 100;
|
||||
while (i2 < 1001 && i3 == 100) {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
if (!J || (a = t().a(100)) == null) {
|
||||
i = 0;
|
||||
} else {
|
||||
arrayList.addAll(a);
|
||||
i = a.size();
|
||||
}
|
||||
if (abstractSafeParcelable != null && i < 100) {
|
||||
arrayList.add(abstractSafeParcelable);
|
||||
}
|
||||
int size = arrayList.size();
|
||||
int i4 = 0;
|
||||
while (i4 < size) {
|
||||
Object obj = arrayList.get(i4);
|
||||
i4++;
|
||||
AbstractSafeParcelable abstractSafeParcelable2 = (AbstractSafeParcelable) obj;
|
||||
if (abstractSafeParcelable2 instanceof zzag) {
|
||||
try {
|
||||
zzajVar.a((zzag) abstractSafeParcelable2, zzkVar);
|
||||
} catch (RemoteException e) {
|
||||
e().t().a("Failed to send event to the service", e);
|
||||
}
|
||||
} else if (abstractSafeParcelable2 instanceof zzfv) {
|
||||
try {
|
||||
zzajVar.a((zzfv) abstractSafeParcelable2, zzkVar);
|
||||
} catch (RemoteException e2) {
|
||||
e().t().a("Failed to send attribute to the service", e2);
|
||||
}
|
||||
} else if (abstractSafeParcelable2 instanceof zzo) {
|
||||
try {
|
||||
zzajVar.a((zzo) abstractSafeParcelable2, zzkVar);
|
||||
} catch (RemoteException e3) {
|
||||
e().t().a("Failed to send conditional property to the service", e3);
|
||||
}
|
||||
} else {
|
||||
e().t().a("Discarding data. Unrecognized parcel type.");
|
||||
}
|
||||
}
|
||||
i2++;
|
||||
i3 = i;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzf
|
||||
protected final boolean y() {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected final void a(zzag zzagVar, String str) {
|
||||
Preconditions.a(zzagVar);
|
||||
f();
|
||||
w();
|
||||
boolean J = J();
|
||||
a(new zzem(this, J, J && t().a(zzagVar), zzagVar, a(true), str));
|
||||
}
|
||||
|
||||
protected final void a(zzo zzoVar) {
|
||||
Preconditions.a(zzoVar);
|
||||
f();
|
||||
w();
|
||||
c();
|
||||
a(new zzen(this, true, t().a(zzoVar), new zzo(zzoVar), a(true), zzoVar));
|
||||
}
|
||||
|
||||
protected final void a(AtomicReference<List<zzo>> atomicReference, String str, String str2, String str3) {
|
||||
f();
|
||||
w();
|
||||
a(new zzeo(this, atomicReference, str, str2, str3, a(false)));
|
||||
}
|
||||
|
||||
protected final void a(AtomicReference<List<zzfv>> atomicReference, String str, String str2, String str3, boolean z) {
|
||||
f();
|
||||
w();
|
||||
a(new zzep(this, atomicReference, str, str2, str3, z, a(false)));
|
||||
}
|
||||
|
||||
protected final void a(zzfv zzfvVar) {
|
||||
f();
|
||||
w();
|
||||
a(new zzer(this, J() && t().a(zzfvVar), zzfvVar, a(true)));
|
||||
}
|
||||
|
||||
public final void a(AtomicReference<String> atomicReference) {
|
||||
f();
|
||||
w();
|
||||
a(new zzef(this, atomicReference, a(false)));
|
||||
}
|
||||
|
||||
protected final void a(zzdx zzdxVar) {
|
||||
f();
|
||||
w();
|
||||
a(new zzei(this, zzdxVar));
|
||||
}
|
||||
|
||||
protected final void a(zzaj zzajVar) {
|
||||
f();
|
||||
Preconditions.a(zzajVar);
|
||||
this.d = zzajVar;
|
||||
H();
|
||||
K();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final void a(ComponentName componentName) {
|
||||
f();
|
||||
if (this.d != null) {
|
||||
this.d = null;
|
||||
e().B().a("Disconnected from device MeasurementService", componentName);
|
||||
f();
|
||||
D();
|
||||
}
|
||||
}
|
||||
|
||||
private final void a(Runnable runnable) throws IllegalStateException {
|
||||
f();
|
||||
if (C()) {
|
||||
runnable.run();
|
||||
} else {
|
||||
if (this.h.size() >= 1000) {
|
||||
e().t().a("Discarding data. Max runnable queue size reached");
|
||||
return;
|
||||
}
|
||||
this.h.add(runnable);
|
||||
this.i.a(60000L);
|
||||
D();
|
||||
}
|
||||
}
|
||||
|
||||
private final zzk a(boolean z) {
|
||||
c();
|
||||
return q().a(z ? e().C() : null);
|
||||
}
|
||||
|
||||
static /* synthetic */ zzaj a(zzeb zzebVar, zzaj zzajVar) {
|
||||
zzebVar.d = null;
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzec extends zzy {
|
||||
private final /* synthetic */ zzeb e;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
zzec(zzeb zzebVar, zzct zzctVar) {
|
||||
super(zzctVar);
|
||||
this.e = zzebVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.measurement.internal.zzy
|
||||
public final void b() {
|
||||
this.e.I();
|
||||
}
|
||||
}
|
@@ -0,0 +1,45 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import android.os.RemoteException;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
final class zzef implements Runnable {
|
||||
private final /* synthetic */ AtomicReference a;
|
||||
private final /* synthetic */ zzk b;
|
||||
private final /* synthetic */ zzeb c;
|
||||
|
||||
zzef(zzeb zzebVar, AtomicReference atomicReference, zzk zzkVar) {
|
||||
this.c = zzebVar;
|
||||
this.a = atomicReference;
|
||||
this.b = zzkVar;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
zzaj zzajVar;
|
||||
synchronized (this.a) {
|
||||
try {
|
||||
try {
|
||||
zzajVar = this.c.d;
|
||||
} catch (RemoteException e) {
|
||||
this.c.e().t().a("Failed to get app instance id", e);
|
||||
}
|
||||
if (zzajVar == null) {
|
||||
this.c.e().t().a("Failed to get app instance id");
|
||||
return;
|
||||
}
|
||||
this.a.set(zzajVar.d(this.b));
|
||||
String str = (String) this.a.get();
|
||||
if (str != null) {
|
||||
this.c.p().a(str);
|
||||
this.c.l().l.a(str);
|
||||
}
|
||||
this.c.H();
|
||||
this.a.notify();
|
||||
} finally {
|
||||
this.a.notify();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user