Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,477 @@
package com.google.android.gms.measurement;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresPermission;
import androidx.annotation.Size;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.internal.measurement.zzdl;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.gms.measurement.internal.zzhj;
import com.google.android.gms.measurement.internal.zzio;
import com.google.android.gms.measurement.internal.zziu;
import com.google.android.gms.measurement.internal.zziv;
import com.google.android.gms.measurement.internal.zzkk;
import com.google.android.gms.measurement.internal.zzkq;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@ShowFirstParty
@KeepForSdk
@Deprecated
/* loaded from: classes3.dex */
public class AppMeasurement {
@NonNull
@ShowFirstParty
@KeepForSdk
public static final String CRASH_ORIGIN = "crash";
@NonNull
@ShowFirstParty
@KeepForSdk
public static final String FCM_ORIGIN = "fcm";
@NonNull
@ShowFirstParty
@KeepForSdk
public static final String FIAM_ORIGIN = "fiam";
private static volatile AppMeasurement zza;
private final zza zzb;
@ShowFirstParty
@KeepForSdk
public static class ConditionalUserProperty {
@ShowFirstParty
@Keep
@KeepForSdk
public boolean mActive;
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
public String mAppId;
@ShowFirstParty
@Keep
@KeepForSdk
public long mCreationTimestamp;
@NonNull
@Keep
public String mExpiredEventName;
@NonNull
@Keep
public Bundle mExpiredEventParams;
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
public String mName;
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
public String mOrigin;
@ShowFirstParty
@Keep
@KeepForSdk
public long mTimeToLive;
@NonNull
@Keep
public String mTimedOutEventName;
@NonNull
@Keep
public Bundle mTimedOutEventParams;
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
public String mTriggerEventName;
@ShowFirstParty
@Keep
@KeepForSdk
public long mTriggerTimeout;
@NonNull
@Keep
public String mTriggeredEventName;
@NonNull
@Keep
public Bundle mTriggeredEventParams;
@ShowFirstParty
@Keep
@KeepForSdk
public long mTriggeredTimestamp;
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
public Object mValue;
@KeepForSdk
public ConditionalUserProperty() {
}
@VisibleForTesting
public ConditionalUserProperty(@NonNull Bundle bundle) {
Preconditions.checkNotNull(bundle);
this.mAppId = (String) zzio.zza(bundle, "app_id", String.class, null);
this.mOrigin = (String) zzio.zza(bundle, "origin", String.class, null);
this.mName = (String) zzio.zza(bundle, "name", String.class, null);
this.mValue = zzio.zza(bundle, "value", Object.class, null);
this.mTriggerEventName = (String) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGER_EVENT_NAME, String.class, null);
this.mTriggerTimeout = ((Long) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGER_TIMEOUT, Long.class, 0L)).longValue();
this.mTimedOutEventName = (String) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, String.class, null);
this.mTimedOutEventParams = (Bundle) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_PARAMS, Bundle.class, null);
this.mTriggeredEventName = (String) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_NAME, String.class, null);
this.mTriggeredEventParams = (Bundle) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_PARAMS, Bundle.class, null);
this.mTimeToLive = ((Long) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIME_TO_LIVE, Long.class, 0L)).longValue();
this.mExpiredEventName = (String) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, String.class, null);
this.mExpiredEventParams = (Bundle) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_PARAMS, Bundle.class, null);
this.mActive = ((Boolean) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.ACTIVE, Boolean.class, Boolean.FALSE)).booleanValue();
this.mCreationTimestamp = ((Long) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.CREATION_TIMESTAMP, Long.class, 0L)).longValue();
this.mTriggeredTimestamp = ((Long) zzio.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_TIMESTAMP, Long.class, 0L)).longValue();
}
@KeepForSdk
public ConditionalUserProperty(@NonNull ConditionalUserProperty conditionalUserProperty) {
Preconditions.checkNotNull(conditionalUserProperty);
this.mAppId = conditionalUserProperty.mAppId;
this.mOrigin = conditionalUserProperty.mOrigin;
this.mCreationTimestamp = conditionalUserProperty.mCreationTimestamp;
this.mName = conditionalUserProperty.mName;
Object obj = conditionalUserProperty.mValue;
if (obj != null) {
Object zza = zzkq.zza(obj);
this.mValue = zza;
if (zza == null) {
this.mValue = conditionalUserProperty.mValue;
}
}
this.mActive = conditionalUserProperty.mActive;
this.mTriggerEventName = conditionalUserProperty.mTriggerEventName;
this.mTriggerTimeout = conditionalUserProperty.mTriggerTimeout;
this.mTimedOutEventName = conditionalUserProperty.mTimedOutEventName;
if (conditionalUserProperty.mTimedOutEventParams != null) {
this.mTimedOutEventParams = new Bundle(conditionalUserProperty.mTimedOutEventParams);
}
this.mTriggeredEventName = conditionalUserProperty.mTriggeredEventName;
if (conditionalUserProperty.mTriggeredEventParams != null) {
this.mTriggeredEventParams = new Bundle(conditionalUserProperty.mTriggeredEventParams);
}
this.mTriggeredTimestamp = conditionalUserProperty.mTriggeredTimestamp;
this.mTimeToLive = conditionalUserProperty.mTimeToLive;
this.mExpiredEventName = conditionalUserProperty.mExpiredEventName;
if (conditionalUserProperty.mExpiredEventParams != null) {
this.mExpiredEventParams = new Bundle(conditionalUserProperty.mExpiredEventParams);
}
}
}
@ShowFirstParty
@KeepForSdk
public interface EventInterceptor extends zziv {
@Override // com.google.android.gms.measurement.internal.zziv
@ShowFirstParty
@KeepForSdk
@WorkerThread
void interceptEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
}
@ShowFirstParty
@KeepForSdk
public interface OnEventListener extends zziu {
@Override // com.google.android.gms.measurement.internal.zziu
@ShowFirstParty
@KeepForSdk
@WorkerThread
void onEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
}
public static abstract class zza implements zzkk {
private zza() {
}
public abstract Map<String, Object> zza(boolean z);
public abstract Boolean zzb();
public abstract Double zzc();
public abstract Integer zzd();
public abstract Long zze();
public abstract String zzj();
}
@Keep
@ShowFirstParty
@KeepForSdk
@WorkerThread
public int getMaxUserProperties(@NonNull @Size(min = 1) String str) {
return this.zzb.zza(str);
}
@Keep
public long generateEventId() {
return this.zzb.zza();
}
@NonNull
@Keep
@Deprecated
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
@ShowFirstParty
@KeepForSdk
public static AppMeasurement getInstance(@NonNull Context context) {
return zza(context, null, null);
}
@VisibleForTesting
private static AppMeasurement zza(Context context, String str, String str2) {
if (zza == null) {
synchronized (AppMeasurement.class) {
try {
if (zza == null) {
zzkk zza2 = zza(context, null);
if (zza2 != null) {
zza = new AppMeasurement(zza2);
} else {
zza = new AppMeasurement(zzhj.zza(context, new zzdl(0L, 0L, true, null, null, null, null, null), null));
}
}
} finally {
}
}
}
return zza;
}
private static zzkk zza(Context context, Bundle bundle) {
return (zzkk) FirebaseAnalytics.class.getDeclaredMethod("getScionFrontendApiImplementation", Context.class, Bundle.class).invoke(null, context, null);
}
@NonNull
@KeepForSdk
public Boolean getBoolean() {
return this.zzb.zzb();
}
@NonNull
@KeepForSdk
public Double getDouble() {
return this.zzb.zzc();
}
@NonNull
@KeepForSdk
public Integer getInteger() {
return this.zzb.zzd();
}
@NonNull
@KeepForSdk
public Long getLong() {
return this.zzb.zze();
}
@NonNull
@Keep
public String getAppInstanceId() {
return this.zzb.zzf();
}
@NonNull
@Keep
public String getCurrentScreenClass() {
return this.zzb.zzg();
}
@NonNull
@Keep
public String getCurrentScreenName() {
return this.zzb.zzh();
}
@NonNull
@Keep
public String getGmpAppId() {
return this.zzb.zzi();
}
@NonNull
@KeepForSdk
public String getString() {
return this.zzb.zzj();
}
@NonNull
@Keep
@ShowFirstParty
@KeepForSdk
@WorkerThread
public List<ConditionalUserProperty> getConditionalUserProperties(@NonNull String str, @NonNull @Size(max = 23, min = 1) String str2) {
List<Bundle> zza2 = this.zzb.zza(str, str2);
ArrayList arrayList = new ArrayList(zza2 == null ? 0 : zza2.size());
Iterator<Bundle> it = zza2.iterator();
while (it.hasNext()) {
arrayList.add(new ConditionalUserProperty(it.next()));
}
return arrayList;
}
@NonNull
@ShowFirstParty
@KeepForSdk
@WorkerThread
public Map<String, Object> getUserProperties(boolean z) {
return this.zzb.zza(z);
}
@NonNull
@Keep
@VisibleForTesting
@WorkerThread
public Map<String, Object> getUserProperties(@NonNull String str, @NonNull @Size(max = 24, min = 1) String str2, boolean z) {
return this.zzb.zza(str, str2, z);
}
private AppMeasurement(zzhj zzhjVar) {
this.zzb = new com.google.android.gms.measurement.zza(zzhjVar);
}
private AppMeasurement(zzkk zzkkVar) {
this.zzb = new zzc(zzkkVar);
}
@Keep
public void beginAdUnitExposure(@NonNull @Size(min = 1) String str) {
this.zzb.zzb(str);
}
@ShowFirstParty
@Keep
@KeepForSdk
public void clearConditionalUserProperty(@NonNull @Size(max = 24, min = 1) String str, @NonNull String str2, @NonNull Bundle bundle) {
this.zzb.zza(str, str2, bundle);
}
@Keep
public void endAdUnitExposure(@NonNull @Size(min = 1) String str) {
this.zzb.zzc(str);
}
@ShowFirstParty
@Keep
public void logEventInternal(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle) {
this.zzb.zzb(str, str2, bundle);
}
@ShowFirstParty
@KeepForSdk
public void logEventInternalNoInterceptor(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j) {
this.zzb.zza(str, str2, bundle, j);
}
@ShowFirstParty
@KeepForSdk
public void registerOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
this.zzb.zza(onEventListener);
}
@ShowFirstParty
@Keep
@KeepForSdk
public void setConditionalUserProperty(@NonNull ConditionalUserProperty conditionalUserProperty) {
Preconditions.checkNotNull(conditionalUserProperty);
zza zzaVar = this.zzb;
Bundle bundle = new Bundle();
String str = conditionalUserProperty.mAppId;
if (str != null) {
bundle.putString("app_id", str);
}
String str2 = conditionalUserProperty.mOrigin;
if (str2 != null) {
bundle.putString("origin", str2);
}
String str3 = conditionalUserProperty.mName;
if (str3 != null) {
bundle.putString("name", str3);
}
Object obj = conditionalUserProperty.mValue;
if (obj != null) {
zzio.zza(bundle, obj);
}
String str4 = conditionalUserProperty.mTriggerEventName;
if (str4 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_EVENT_NAME, str4);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_TIMEOUT, conditionalUserProperty.mTriggerTimeout);
String str5 = conditionalUserProperty.mTimedOutEventName;
if (str5 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, str5);
}
Bundle bundle2 = conditionalUserProperty.mTimedOutEventParams;
if (bundle2 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_PARAMS, bundle2);
}
String str6 = conditionalUserProperty.mTriggeredEventName;
if (str6 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_NAME, str6);
}
Bundle bundle3 = conditionalUserProperty.mTriggeredEventParams;
if (bundle3 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_PARAMS, bundle3);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TIME_TO_LIVE, conditionalUserProperty.mTimeToLive);
String str7 = conditionalUserProperty.mExpiredEventName;
if (str7 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, str7);
}
Bundle bundle4 = conditionalUserProperty.mExpiredEventParams;
if (bundle4 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_PARAMS, bundle4);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.CREATION_TIMESTAMP, conditionalUserProperty.mCreationTimestamp);
bundle.putBoolean(AppMeasurementSdk.ConditionalUserProperty.ACTIVE, conditionalUserProperty.mActive);
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_TIMESTAMP, conditionalUserProperty.mTriggeredTimestamp);
zzaVar.zza(bundle);
}
@ShowFirstParty
@KeepForSdk
@WorkerThread
public void setEventInterceptor(@NonNull EventInterceptor eventInterceptor) {
this.zzb.zza(eventInterceptor);
}
@ShowFirstParty
@KeepForSdk
public void unregisterOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
this.zzb.zzb(onEventListener);
}
}

View File

@@ -0,0 +1,60 @@
package com.google.android.gms.measurement;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.pm.ProviderInfo;
import android.database.Cursor;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.measurement.internal.zzhj;
@Deprecated
/* loaded from: classes3.dex */
public class AppMeasurementContentProvider extends ContentProvider {
@Override // android.content.ContentProvider
public int delete(@NonNull Uri uri, @Nullable String str, @NonNull String[] strArr) {
return 0;
}
@Override // android.content.ContentProvider
@Nullable
public String getType(@NonNull Uri uri) {
return null;
}
@Override // android.content.ContentProvider
@Nullable
public Uri insert(@NonNull Uri uri, @NonNull ContentValues contentValues) {
return null;
}
@Override // android.content.ContentProvider
@Nullable
public Cursor query(@NonNull Uri uri, @NonNull String[] strArr, @Nullable String str, @NonNull String[] strArr2, @Nullable String str2) {
return null;
}
@Override // android.content.ContentProvider
public int update(@NonNull Uri uri, @Nullable ContentValues contentValues, @Nullable String str, @NonNull String[] strArr) {
return 0;
}
@Override // android.content.ContentProvider
public void attachInfo(@NonNull Context context, @NonNull ProviderInfo providerInfo) {
super.attachInfo(context, providerInfo);
if ("com.google.android.gms.measurement.google_measurement_service".equals(providerInfo.authority)) {
throw new IllegalStateException("Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle.");
}
}
@Override // android.content.ContentProvider
public boolean onCreate() {
Context context = getContext();
Preconditions.checkNotNull(context);
zzhj.zza(context, null, null);
return false;
}
}

View File

@@ -0,0 +1,74 @@
package com.google.android.gms.measurement;
import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Intent;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import com.google.android.gms.measurement.internal.zzme;
import com.google.android.gms.measurement.internal.zzmi;
@TargetApi(24)
/* loaded from: classes3.dex */
public final class AppMeasurementJobService extends JobService implements zzmi {
private zzme<AppMeasurementJobService> zza;
@Override // android.app.job.JobService
public final boolean onStopJob(@NonNull JobParameters jobParameters) {
return false;
}
@Override // com.google.android.gms.measurement.internal.zzmi
public final void zza(@NonNull Intent intent) {
}
private final zzme<AppMeasurementJobService> zza() {
if (this.zza == null) {
this.zza = new zzme<>(this);
}
return this.zza;
}
@Override // android.app.Service
@MainThread
public final void onCreate() {
super.onCreate();
zza().zza();
}
@Override // android.app.Service
@MainThread
public final void onDestroy() {
zza().zzb();
super.onDestroy();
}
@Override // android.app.Service
@MainThread
public final void onRebind(@NonNull Intent intent) {
zza().zzb(intent);
}
@Override // com.google.android.gms.measurement.internal.zzmi
@TargetApi(24)
public final void zza(@NonNull JobParameters jobParameters, boolean z) {
jobFinished(jobParameters, false);
}
@Override // com.google.android.gms.measurement.internal.zzmi
public final boolean zza(int i) {
throw new UnsupportedOperationException();
}
@Override // android.app.job.JobService
public final boolean onStartJob(@NonNull JobParameters jobParameters) {
return zza().zza(jobParameters);
}
@Override // android.app.Service
@MainThread
public final boolean onUnbind(@NonNull Intent intent) {
return zza().zzc(intent);
}
}

View File

@@ -0,0 +1,34 @@
package com.google.android.gms.measurement;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.legacy.content.WakefulBroadcastReceiver;
import com.google.android.gms.measurement.internal.zzgu;
/* loaded from: classes3.dex */
public final class AppMeasurementReceiver extends WakefulBroadcastReceiver implements zzgu.zza {
private zzgu zza;
@NonNull
public final BroadcastReceiver.PendingResult doGoAsync() {
return goAsync();
}
@Override // com.google.android.gms.measurement.internal.zzgu.zza
@MainThread
public final void doStartService(@NonNull Context context, @NonNull Intent intent) {
WakefulBroadcastReceiver.startWakefulService(context, intent);
}
@Override // android.content.BroadcastReceiver
@MainThread
public final void onReceive(@NonNull Context context, @NonNull Intent intent) {
if (this.zza == null) {
this.zza = new zzgu(this);
}
this.zza.zza(context, intent);
}
}

View File

@@ -0,0 +1,78 @@
package com.google.android.gms.measurement;
import android.app.Service;
import android.app.job.JobParameters;
import android.content.Intent;
import android.os.IBinder;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.legacy.content.WakefulBroadcastReceiver;
import com.google.android.gms.measurement.internal.zzme;
import com.google.android.gms.measurement.internal.zzmi;
/* loaded from: classes3.dex */
public final class AppMeasurementService extends Service implements zzmi {
private zzme<AppMeasurementService> zza;
@Override // android.app.Service
@MainThread
public final int onStartCommand(@NonNull Intent intent, int i, int i2) {
return zza().zza(intent, i, i2);
}
@Override // android.app.Service
@Nullable
@MainThread
public final IBinder onBind(@NonNull Intent intent) {
return zza().zza(intent);
}
private final zzme<AppMeasurementService> zza() {
if (this.zza == null) {
this.zza = new zzme<>(this);
}
return this.zza;
}
@Override // com.google.android.gms.measurement.internal.zzmi
public final void zza(@NonNull Intent intent) {
WakefulBroadcastReceiver.completeWakefulIntent(intent);
}
@Override // android.app.Service
@MainThread
public final void onCreate() {
super.onCreate();
zza().zza();
}
@Override // android.app.Service
@MainThread
public final void onDestroy() {
zza().zzb();
super.onDestroy();
}
@Override // android.app.Service
@MainThread
public final void onRebind(@NonNull Intent intent) {
zza().zzb(intent);
}
@Override // com.google.android.gms.measurement.internal.zzmi
public final void zza(@NonNull JobParameters jobParameters, boolean z) {
throw new UnsupportedOperationException();
}
@Override // com.google.android.gms.measurement.internal.zzmi
public final boolean zza(int i) {
return stopSelfResult(i);
}
@Override // android.app.Service
@MainThread
public final boolean onUnbind(@NonNull Intent intent) {
return zza().zzc(intent);
}
}

View File

@@ -0,0 +1,275 @@
package com.google.android.gms.measurement.api;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresPermission;
import androidx.annotation.Size;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.internal.measurement.zzdn;
import com.google.android.gms.measurement.internal.zziu;
import com.google.android.gms.measurement.internal.zziv;
import java.util.List;
import java.util.Map;
@ShowFirstParty
@KeepForSdk
/* loaded from: classes3.dex */
public class AppMeasurementSdk {
private final zzdn zza;
@KeepForSdk
public static final class ConditionalUserProperty {
@NonNull
@KeepForSdk
public static final String ACTIVE = "active";
@NonNull
@KeepForSdk
public static final String CREATION_TIMESTAMP = "creation_timestamp";
@NonNull
@KeepForSdk
public static final String EXPIRED_EVENT_NAME = "expired_event_name";
@NonNull
@KeepForSdk
public static final String EXPIRED_EVENT_PARAMS = "expired_event_params";
@NonNull
@KeepForSdk
public static final String NAME = "name";
@NonNull
@KeepForSdk
public static final String ORIGIN = "origin";
@NonNull
@KeepForSdk
public static final String TIMED_OUT_EVENT_NAME = "timed_out_event_name";
@NonNull
@KeepForSdk
public static final String TIMED_OUT_EVENT_PARAMS = "timed_out_event_params";
@NonNull
@KeepForSdk
public static final String TIME_TO_LIVE = "time_to_live";
@NonNull
@KeepForSdk
public static final String TRIGGERED_EVENT_NAME = "triggered_event_name";
@NonNull
@KeepForSdk
public static final String TRIGGERED_EVENT_PARAMS = "triggered_event_params";
@NonNull
@KeepForSdk
public static final String TRIGGERED_TIMESTAMP = "triggered_timestamp";
@NonNull
@KeepForSdk
public static final String TRIGGER_EVENT_NAME = "trigger_event_name";
@NonNull
@KeepForSdk
public static final String TRIGGER_TIMEOUT = "trigger_timeout";
@NonNull
@KeepForSdk
public static final String VALUE = "value";
private ConditionalUserProperty() {
}
}
@ShowFirstParty
@KeepForSdk
public interface EventInterceptor extends zziv {
@Override // com.google.android.gms.measurement.internal.zziv
@ShowFirstParty
@KeepForSdk
@WorkerThread
void interceptEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
}
@ShowFirstParty
@KeepForSdk
public interface OnEventListener extends zziu {
@Override // com.google.android.gms.measurement.internal.zziu
@ShowFirstParty
@KeepForSdk
@WorkerThread
void onEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, long j);
}
@KeepForSdk
@WorkerThread
public int getMaxUserProperties(@NonNull @Size(min = 1) String str) {
return this.zza.zza(str);
}
@KeepForSdk
public long generateEventId() {
return this.zza.zza();
}
@Nullable
@KeepForSdk
public Bundle performActionWithResponse(@NonNull Bundle bundle) {
return this.zza.zza(bundle, true);
}
@NonNull
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
@ShowFirstParty
@KeepForSdk
public static AppMeasurementSdk getInstance(@NonNull Context context) {
return zzdn.zza(context).zzb();
}
@NonNull
@RequiresPermission(allOf = {"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE", "android.permission.WAKE_LOCK"})
@KeepForSdk
public static AppMeasurementSdk getInstance(@NonNull Context context, @NonNull String str, @NonNull String str2, @Nullable String str3, @NonNull Bundle bundle) {
return zzdn.zza(context, str, str2, str3, bundle).zzb();
}
@Nullable
@KeepForSdk
public String getAppIdOrigin() {
return this.zza.zzd();
}
@Nullable
@KeepForSdk
public String getAppInstanceId() {
return this.zza.zzf();
}
@Nullable
@KeepForSdk
public String getCurrentScreenClass() {
return this.zza.zzg();
}
@Nullable
@KeepForSdk
public String getCurrentScreenName() {
return this.zza.zzh();
}
@Nullable
@KeepForSdk
public String getGmpAppId() {
return this.zza.zzi();
}
@NonNull
@KeepForSdk
@WorkerThread
public List<Bundle> getConditionalUserProperties(@Nullable String str, @Nullable @Size(max = 23, min = 1) String str2) {
return this.zza.zza(str, str2);
}
@NonNull
@KeepForSdk
@WorkerThread
public Map<String, Object> getUserProperties(@Nullable String str, @Nullable @Size(max = 24, min = 1) String str2, boolean z) {
return this.zza.zza(str, str2, z);
}
public AppMeasurementSdk(zzdn zzdnVar) {
this.zza = zzdnVar;
}
@KeepForSdk
public void beginAdUnitExposure(@NonNull @Size(min = 1) String str) {
this.zza.zzb(str);
}
@KeepForSdk
public void clearConditionalUserProperty(@NonNull @Size(max = 24, min = 1) String str, @Nullable String str2, @Nullable Bundle bundle) {
this.zza.zza(str, str2, bundle);
}
@KeepForSdk
public void endAdUnitExposure(@NonNull @Size(min = 1) String str) {
this.zza.zzc(str);
}
@KeepForSdk
public void logEvent(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle) {
this.zza.zzb(str, str2, bundle);
}
@KeepForSdk
public void logEventNoInterceptor(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle, long j) {
this.zza.zza(str, str2, bundle, j);
}
@Nullable
@KeepForSdk
public void performAction(@NonNull Bundle bundle) {
this.zza.zza(bundle, false);
}
@ShowFirstParty
@KeepForSdk
public void registerOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
this.zza.zza(onEventListener);
}
@KeepForSdk
public void setConditionalUserProperty(@NonNull Bundle bundle) {
this.zza.zza(bundle);
}
@KeepForSdk
public void setConsent(@NonNull Bundle bundle) {
this.zza.zzb(bundle);
}
@KeepForSdk
public void setCurrentScreen(@NonNull Activity activity, @Nullable @Size(max = 36, min = 1) String str, @Nullable @Size(max = 36, min = 1) String str2) {
this.zza.zza(activity, str, str2);
}
public final void zza(boolean z) {
this.zza.zza(z);
}
@ShowFirstParty
@KeepForSdk
@WorkerThread
public void setEventInterceptor(@NonNull EventInterceptor eventInterceptor) {
this.zza.zza(eventInterceptor);
}
@KeepForSdk
public void setMeasurementEnabled(@Nullable Boolean bool) {
this.zza.zza(bool);
}
@KeepForSdk
public void setMeasurementEnabled(boolean z) {
this.zza.zza(Boolean.valueOf(z));
}
@KeepForSdk
public void setUserProperty(@NonNull String str, @NonNull String str2, @NonNull Object obj) {
this.zza.zza(str, str2, obj, true);
}
@ShowFirstParty
@KeepForSdk
public void unregisterOnMeasurementEventListener(@NonNull OnEventListener onEventListener) {
this.zza.zzb(onEventListener);
}
}

View File

@@ -0,0 +1,15 @@
package com.google.android.gms.measurement.api;
/* loaded from: classes3.dex */
public final class R {
public static final class xml {
public static int ga_ad_services_config = 0x7f150006;
private xml() {
}
}
private R() {
}
}

View File

@@ -0,0 +1,454 @@
package com.google.android.gms.measurement.internal;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.RemoteException;
import androidx.annotation.GuardedBy;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.collection.ArrayMap;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.DynamiteApi;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.ObjectWrapper;
import com.mbridge.msdk.MBridgeConstans;
import java.util.Map;
@DynamiteApi
/* loaded from: classes3.dex */
public class AppMeasurementDynamiteService extends com.google.android.gms.internal.measurement.zzdb {
@VisibleForTesting
zzhj zza = null;
@GuardedBy("listenerMap")
private final Map<Integer, zziu> zzb = new ArrayMap();
public class zza implements zziv {
private com.google.android.gms.internal.measurement.zzdi zza;
public zza(com.google.android.gms.internal.measurement.zzdi zzdiVar) {
this.zza = zzdiVar;
}
@Override // com.google.android.gms.measurement.internal.zziv
public final void interceptEvent(String str, String str2, Bundle bundle, long j) {
try {
this.zza.zza(str, str2, bundle, j);
} catch (RemoteException e) {
zzhj zzhjVar = AppMeasurementDynamiteService.this.zza;
if (zzhjVar != null) {
zzhjVar.zzj().zzu().zza("Event interceptor threw exception", e);
}
}
}
}
public class zzb implements zziu {
private com.google.android.gms.internal.measurement.zzdi zza;
public zzb(com.google.android.gms.internal.measurement.zzdi zzdiVar) {
this.zza = zzdiVar;
}
@Override // com.google.android.gms.measurement.internal.zziu
public final void onEvent(String str, String str2, Bundle bundle, long j) {
try {
this.zza.zza(str, str2, bundle, j);
} catch (RemoteException e) {
zzhj zzhjVar = AppMeasurementDynamiteService.this.zza;
if (zzhjVar != null) {
zzhjVar.zzj().zzu().zza("Event listener threw exception", e);
}
}
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void beginAdUnitExposure(@NonNull String str, long j) throws RemoteException {
zza();
this.zza.zze().zza(str, j);
}
private final void zza() {
if (this.zza == null) {
throw new IllegalStateException("Attempting to perform action before initialize.");
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void clearConditionalUserProperty(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle) throws RemoteException {
zza();
this.zza.zzp().zza(str, str2, bundle);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void clearMeasurementEnabled(long j) throws RemoteException {
zza();
this.zza.zzp().zza((Boolean) null);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void endAdUnitExposure(@NonNull String str, long j) throws RemoteException {
zza();
this.zza.zze().zzb(str, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void generateEventId(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
long zzm = this.zza.zzt().zzm();
zza();
this.zza.zzt().zza(zzddVar, zzm);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getAppInstanceId(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzl().zzb(new zzh(this, zzddVar));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getCachedAppInstanceId(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
zza(zzddVar, this.zza.zzp().zzag());
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getConditionalUserProperties(String str, String str2, com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzl().zzb(new zzk(this, zzddVar, str, str2));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getCurrentScreenClass(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
zza(zzddVar, this.zza.zzp().zzah());
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getCurrentScreenName(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
zza(zzddVar, this.zza.zzp().zzai());
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getGmpAppId(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
zza(zzddVar, this.zza.zzp().zzaj());
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getMaxUserProperties(String str, com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzp();
zziz.zza(str);
zza();
this.zza.zzt().zza(zzddVar, 25);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getSessionId(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzp().zza(zzddVar);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getTestFlag(com.google.android.gms.internal.measurement.zzdd zzddVar, int i) throws RemoteException {
zza();
if (i == 0) {
this.zza.zzt().zza(zzddVar, this.zza.zzp().zzak());
return;
}
if (i == 1) {
this.zza.zzt().zza(zzddVar, this.zza.zzp().zzaf().longValue());
return;
}
if (i != 2) {
if (i == 3) {
this.zza.zzt().zza(zzddVar, this.zza.zzp().zzae().intValue());
return;
} else {
if (i != 4) {
return;
}
this.zza.zzt().zza(zzddVar, this.zza.zzp().zzac().booleanValue());
return;
}
}
zznt zzt = this.zza.zzt();
double doubleValue = this.zza.zzp().zzad().doubleValue();
Bundle bundle = new Bundle();
bundle.putDouble("r", doubleValue);
try {
zzddVar.zza(bundle);
} catch (RemoteException e) {
zzt.zzu.zzj().zzu().zza("Error returning double value to wrapper", e);
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void getUserProperties(String str, String str2, boolean z, com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzl().zzb(new zzi(this, zzddVar, str, str2, z));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void initForTests(@NonNull Map map) throws RemoteException {
zza();
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void initialize(IObjectWrapper iObjectWrapper, com.google.android.gms.internal.measurement.zzdl zzdlVar, long j) throws RemoteException {
zzhj zzhjVar = this.zza;
if (zzhjVar == null) {
this.zza = zzhj.zza((Context) Preconditions.checkNotNull((Context) ObjectWrapper.unwrap(iObjectWrapper)), zzdlVar, Long.valueOf(j));
} else {
zzhjVar.zzj().zzu().zza("Attempting to initialize multiple times");
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void isDataCollectionEnabled(com.google.android.gms.internal.measurement.zzdd zzddVar) throws RemoteException {
zza();
this.zza.zzl().zzb(new zzm(this, zzddVar));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void logEvent(@NonNull String str, @NonNull String str2, @NonNull Bundle bundle, boolean z, boolean z2, long j) throws RemoteException {
zza();
this.zza.zzp().zza(str, str2, bundle, z, z2, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void logEventAndBundle(String str, String str2, Bundle bundle, com.google.android.gms.internal.measurement.zzdd zzddVar, long j) throws RemoteException {
zza();
Preconditions.checkNotEmpty(str2);
(bundle != null ? new Bundle(bundle) : new Bundle()).putString("_o", MBridgeConstans.DYNAMIC_VIEW_WX_APP);
this.zza.zzl().zzb(new zzj(this, zzddVar, new zzbf(str2, new zzba(bundle), MBridgeConstans.DYNAMIC_VIEW_WX_APP, j), str));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void logHealthData(int i, @NonNull String str, @NonNull IObjectWrapper iObjectWrapper, @NonNull IObjectWrapper iObjectWrapper2, @NonNull IObjectWrapper iObjectWrapper3) throws RemoteException {
zza();
this.zza.zzj().zza(i, true, false, str, iObjectWrapper == null ? null : ObjectWrapper.unwrap(iObjectWrapper), iObjectWrapper2 == null ? null : ObjectWrapper.unwrap(iObjectWrapper2), iObjectWrapper3 != null ? ObjectWrapper.unwrap(iObjectWrapper3) : null);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityCreated(@NonNull IObjectWrapper iObjectWrapper, @NonNull Bundle bundle, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityCreated((Activity) ObjectWrapper.unwrap(iObjectWrapper), bundle);
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityDestroyed(@NonNull IObjectWrapper iObjectWrapper, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityDestroyed((Activity) ObjectWrapper.unwrap(iObjectWrapper));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityPaused(@NonNull IObjectWrapper iObjectWrapper, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityPaused((Activity) ObjectWrapper.unwrap(iObjectWrapper));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityResumed(@NonNull IObjectWrapper iObjectWrapper, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityResumed((Activity) ObjectWrapper.unwrap(iObjectWrapper));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivitySaveInstanceState(IObjectWrapper iObjectWrapper, com.google.android.gms.internal.measurement.zzdd zzddVar, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
Bundle bundle = new Bundle();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivitySaveInstanceState((Activity) ObjectWrapper.unwrap(iObjectWrapper), bundle);
}
try {
zzddVar.zza(bundle);
} catch (RemoteException e) {
this.zza.zzj().zzu().zza("Error returning bundle value to wrapper", e);
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityStarted(@NonNull IObjectWrapper iObjectWrapper, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityStarted((Activity) ObjectWrapper.unwrap(iObjectWrapper));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void onActivityStopped(@NonNull IObjectWrapper iObjectWrapper, long j) throws RemoteException {
zza();
Application.ActivityLifecycleCallbacks zzaa = this.zza.zzp().zzaa();
if (zzaa != null) {
this.zza.zzp().zzan();
zzaa.onActivityStopped((Activity) ObjectWrapper.unwrap(iObjectWrapper));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void performAction(Bundle bundle, com.google.android.gms.internal.measurement.zzdd zzddVar, long j) throws RemoteException {
zza();
zzddVar.zza(null);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void registerOnMeasurementEventListener(com.google.android.gms.internal.measurement.zzdi zzdiVar) throws RemoteException {
zziu zziuVar;
zza();
synchronized (this.zzb) {
try {
zziuVar = this.zzb.get(Integer.valueOf(zzdiVar.zza()));
if (zziuVar == null) {
zziuVar = new zzb(zzdiVar);
this.zzb.put(Integer.valueOf(zzdiVar.zza()), zziuVar);
}
} catch (Throwable th) {
throw th;
}
}
this.zza.zzp().zza(zziuVar);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void resetAnalyticsData(long j) throws RemoteException {
zza();
this.zza.zzp().zza(j);
}
private final void zza(com.google.android.gms.internal.measurement.zzdd zzddVar, String str) {
zza();
this.zza.zzt().zza(zzddVar, str);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setConditionalUserProperty(@NonNull Bundle bundle, long j) throws RemoteException {
zza();
if (bundle == null) {
this.zza.zzj().zzg().zza("Conditional user property must not be null");
} else {
this.zza.zzp().zzb(bundle, j);
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setConsent(@NonNull Bundle bundle, long j) throws RemoteException {
zza();
this.zza.zzp().zzc(bundle, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setConsentThirdParty(@NonNull Bundle bundle, long j) throws RemoteException {
zza();
this.zza.zzp().zzd(bundle, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setCurrentScreen(@NonNull IObjectWrapper iObjectWrapper, @NonNull String str, @NonNull String str2, long j) throws RemoteException {
zza();
this.zza.zzq().zza((Activity) ObjectWrapper.unwrap(iObjectWrapper), str, str2);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setDataCollectionEnabled(boolean z) throws RemoteException {
zza();
this.zza.zzp().zzc(z);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setDefaultEventParameters(@NonNull Bundle bundle) {
zza();
this.zza.zzp().zzc(bundle);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setEventInterceptor(com.google.android.gms.internal.measurement.zzdi zzdiVar) throws RemoteException {
zza();
zza zzaVar = new zza(zzdiVar);
if (this.zza.zzl().zzg()) {
this.zza.zzp().zza(zzaVar);
} else {
this.zza.zzl().zzb(new zzl(this, zzaVar));
}
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setInstanceIdProvider(com.google.android.gms.internal.measurement.zzdj zzdjVar) throws RemoteException {
zza();
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setMeasurementEnabled(boolean z, long j) throws RemoteException {
zza();
this.zza.zzp().zza(Boolean.valueOf(z));
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setMinimumSessionDuration(long j) throws RemoteException {
zza();
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setSessionTimeoutDuration(long j) throws RemoteException {
zza();
this.zza.zzp().zzc(j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setSgtmDebugInfo(@NonNull Intent intent) throws RemoteException {
zza();
this.zza.zzp().zza(intent);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setUserId(@NonNull String str, long j) throws RemoteException {
zza();
this.zza.zzp().zza(str, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void setUserProperty(@NonNull String str, @NonNull String str2, @NonNull IObjectWrapper iObjectWrapper, boolean z, long j) throws RemoteException {
zza();
this.zza.zzp().zza(str, str2, ObjectWrapper.unwrap(iObjectWrapper), z, j);
}
@Override // com.google.android.gms.internal.measurement.zzdc
public void unregisterOnMeasurementEventListener(com.google.android.gms.internal.measurement.zzdi zzdiVar) throws RemoteException {
zziu remove;
zza();
synchronized (this.zzb) {
remove = this.zzb.remove(Integer.valueOf(zzdiVar.zza()));
}
if (remove == null) {
remove = new zzb(zzdiVar);
}
this.zza.zzp().zzb(remove);
}
}

View File

@@ -0,0 +1,250 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.WorkerThread;
import androidx.collection.ArrayMap;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes3.dex */
public final class zza extends zzd {
private final Map<String, Long> zza;
private final Map<String, Integer> zzb;
private long zzc;
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zza zzc() {
return super.zzc();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzfq zzg() {
return super.zzg();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzft zzh() {
return super.zzh();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zziz zzm() {
return super.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzks zzn() {
return super.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzlb zzo() {
return super.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzml zzp() {
return super.zzp();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
public static /* synthetic */ void zza(zza zzaVar, String str, long j) {
zzaVar.zzt();
Preconditions.checkNotEmpty(str);
if (zzaVar.zzb.isEmpty()) {
zzaVar.zzc = j;
}
Integer num = zzaVar.zzb.get(str);
if (num != null) {
zzaVar.zzb.put(str, Integer.valueOf(num.intValue() + 1));
} else if (zzaVar.zzb.size() >= 100) {
zzaVar.zzj().zzu().zza("Too many ads visible");
} else {
zzaVar.zzb.put(str, 1);
zzaVar.zza.put(str, Long.valueOf(j));
}
}
public static /* synthetic */ void zzb(zza zzaVar, String str, long j) {
zzaVar.zzt();
Preconditions.checkNotEmpty(str);
Integer num = zzaVar.zzb.get(str);
if (num != null) {
zzkt zza = zzaVar.zzn().zza(false);
int intValue = num.intValue() - 1;
if (intValue == 0) {
zzaVar.zzb.remove(str);
Long l = zzaVar.zza.get(str);
if (l == null) {
zzaVar.zzj().zzg().zza("First ad unit exposure time was never set");
} else {
long longValue = j - l.longValue();
zzaVar.zza.remove(str);
zzaVar.zza(str, longValue, zza);
}
if (zzaVar.zzb.isEmpty()) {
long j2 = zzaVar.zzc;
if (j2 == 0) {
zzaVar.zzj().zzg().zza("First ad exposure time was never set");
return;
} else {
zzaVar.zza(j - j2, zza);
zzaVar.zzc = 0L;
return;
}
}
return;
}
zzaVar.zzb.put(str, Integer.valueOf(intValue));
return;
}
zzaVar.zzj().zzg().zza("Call to endAdUnitExposure for unknown ad unit id", str);
}
public zza(zzhj zzhjVar) {
super(zzhjVar);
this.zzb = new ArrayMap();
this.zza = new ArrayMap();
}
public final void zza(String str, long j) {
if (str == null || str.length() == 0) {
zzj().zzg().zza("Ad unit id must be a non-empty string");
} else {
zzl().zzb(new zzc(this, str, j));
}
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
public final void zzb(String str, long j) {
if (str == null || str.length() == 0) {
zzj().zzg().zza("Ad unit id must be a non-empty string");
} else {
zzl().zzb(new zzb(this, str, j));
}
}
@WorkerThread
private final void zza(long j, zzkt zzktVar) {
if (zzktVar == null) {
zzj().zzp().zza("Not logging ad exposure. No active activity");
return;
}
if (j < 1000) {
zzj().zzp().zza("Not logging ad exposure. Less than 1000 ms. exposure", Long.valueOf(j));
return;
}
Bundle bundle = new Bundle();
bundle.putLong("_xt", j);
zznt.zza(zzktVar, bundle, true);
zzm().zzc("am", "_xa", bundle);
}
@WorkerThread
private final void zza(String str, long j, zzkt zzktVar) {
if (zzktVar == null) {
zzj().zzp().zza("Not logging ad unit exposure. No active activity");
return;
}
if (j < 1000) {
zzj().zzp().zza("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);
zznt.zza(zzktVar, bundle, true);
zzm().zzc("am", "_xu", bundle);
}
@WorkerThread
public final void zza(long j) {
zzkt zza = zzn().zza(false);
for (String str : this.zza.keySet()) {
zza(str, j - this.zza.get(str).longValue(), zza);
}
if (!this.zza.isEmpty()) {
zza(j - this.zzc, zza);
}
zzb(j);
}
/* JADX INFO: Access modifiers changed from: private */
@WorkerThread
public final void zzb(long j) {
Iterator<String> it = this.zza.keySet().iterator();
while (it.hasNext()) {
this.zza.put(it.next(), Long.valueOf(j));
}
if (this.zza.isEmpty()) {
return;
}
this.zzc = j;
}
}

View File

@@ -0,0 +1,106 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzff;
import com.google.android.gms.internal.measurement.zzfn;
import com.google.android.gms.internal.measurement.zznz;
/* loaded from: classes3.dex */
final class zzaa extends zzab {
private zzff.zze zzg;
private final /* synthetic */ zzs zzh;
@Override // com.google.android.gms.measurement.internal.zzab
public final int zza() {
return this.zzg.zza();
}
@Override // com.google.android.gms.measurement.internal.zzab
public final boolean zzb() {
return false;
}
@Override // com.google.android.gms.measurement.internal.zzab
public final boolean zzc() {
return true;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzaa(zzs zzsVar, String str, int i, zzff.zze zzeVar) {
super(str, i);
this.zzh = zzsVar;
this.zzg = zzeVar;
}
/* JADX WARN: Multi-variable type inference failed */
public final boolean zza(Long l, Long l2, zzfn.zzn zznVar, boolean z) {
Object[] objArr = zznz.zza() && this.zzh.zze().zzf(this.zza, zzbh.zzbh);
boolean zzf = this.zzg.zzf();
boolean zzg = this.zzg.zzg();
boolean zzh = this.zzg.zzh();
Object[] objArr2 = zzf || zzg || zzh;
Boolean bool = null;
bool = null;
bool = null;
bool = null;
bool = null;
if (z && objArr2 == false) {
this.zzh.zzj().zzp().zza("Property filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", Integer.valueOf(this.zzb), this.zzg.zzi() ? Integer.valueOf(this.zzg.zza()) : null);
return true;
}
zzff.zzc zzb = this.zzg.zzb();
boolean zzf2 = zzb.zzf();
if (zznVar.zzk()) {
if (!zzb.zzh()) {
this.zzh.zzj().zzu().zza("No number filter for long property. property", this.zzh.zzi().zzc(zznVar.zzg()));
} else {
bool = zzab.zza(zzab.zza(zznVar.zzc(), zzb.zzc()), zzf2);
}
} else if (zznVar.zzi()) {
if (!zzb.zzh()) {
this.zzh.zzj().zzu().zza("No number filter for double property. property", this.zzh.zzi().zzc(zznVar.zzg()));
} else {
bool = zzab.zza(zzab.zza(zznVar.zza(), zzb.zzc()), zzf2);
}
} else if (zznVar.zzm()) {
if (!zzb.zzj()) {
if (!zzb.zzh()) {
this.zzh.zzj().zzu().zza("No string or number filter defined. property", this.zzh.zzi().zzc(zznVar.zzg()));
} else if (zznp.zzb(zznVar.zzh())) {
bool = zzab.zza(zzab.zza(zznVar.zzh(), zzb.zzc()), zzf2);
} else {
this.zzh.zzj().zzu().zza("Invalid user property value for Numeric number filter. property, value", this.zzh.zzi().zzc(zznVar.zzg()), zznVar.zzh());
}
} else {
bool = zzab.zza(zzab.zza(zznVar.zzh(), zzb.zzd(), this.zzh.zzj()), zzf2);
}
} else {
this.zzh.zzj().zzu().zza("User property has no value, property", this.zzh.zzi().zzc(zznVar.zzg()));
}
this.zzh.zzj().zzp().zza("Property filter result", bool == null ? "null" : bool);
if (bool == null) {
return false;
}
this.zzc = Boolean.TRUE;
if (zzh && !bool.booleanValue()) {
return true;
}
if (!z || this.zzg.zzf()) {
this.zzd = bool;
}
if (bool.booleanValue() && objArr2 != false && zznVar.zzl()) {
long zzd = zznVar.zzd();
if (l != null) {
zzd = l.longValue();
}
if (objArr != false && this.zzg.zzf() && !this.zzg.zzg() && l2 != null) {
zzd = l2.longValue();
}
if (this.zzg.zzg()) {
this.zzf = Long.valueOf(zzd);
} else {
this.zze = Long.valueOf(zzd);
}
}
return true;
}
}

View File

@@ -0,0 +1,163 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.measurement.zzff;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.regex.PatternSyntaxException;
/* loaded from: classes3.dex */
abstract class zzab {
String zza;
int zzb;
Boolean zzc;
Boolean zzd;
Long zze;
Long zzf;
/* JADX WARN: Code restructure failed: missing block: B:68:0x0080, code lost:
if (r3 != null) goto L36;
*/
@androidx.annotation.VisibleForTesting
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static java.lang.Boolean zza(java.math.BigDecimal r8, com.google.android.gms.internal.measurement.zzff.zzd r9, double r10) {
/*
Method dump skipped, instructions count: 277
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzab.zza(java.math.BigDecimal, com.google.android.gms.internal.measurement.zzff$zzd, double):java.lang.Boolean");
}
public abstract int zza();
public abstract boolean zzb();
public abstract boolean zzc();
@VisibleForTesting
public static Boolean zza(String str, zzff.zzf zzfVar, zzfw zzfwVar) {
String zze;
List<String> list;
Preconditions.checkNotNull(zzfVar);
if (str == null || !zzfVar.zzj() || zzfVar.zzb() == zzff.zzf.zzb.UNKNOWN_MATCH_TYPE) {
return null;
}
zzff.zzf.zzb zzb = zzfVar.zzb();
zzff.zzf.zzb zzbVar = zzff.zzf.zzb.IN_LIST;
if (zzb == zzbVar) {
if (zzfVar.zza() == 0) {
return null;
}
} else if (!zzfVar.zzi()) {
return null;
}
zzff.zzf.zzb zzb2 = zzfVar.zzb();
boolean zzg = zzfVar.zzg();
if (zzg || zzb2 == zzff.zzf.zzb.REGEXP || zzb2 == zzbVar) {
zze = zzfVar.zze();
} else {
zze = zzfVar.zze().toUpperCase(Locale.ENGLISH);
}
String str2 = zze;
if (zzfVar.zza() == 0) {
list = null;
} else {
List<String> zzf = zzfVar.zzf();
if (!zzg) {
ArrayList arrayList = new ArrayList(zzf.size());
Iterator<String> it = zzf.iterator();
while (it.hasNext()) {
arrayList.add(it.next().toUpperCase(Locale.ENGLISH));
}
zzf = Collections.unmodifiableList(arrayList);
}
list = zzf;
}
return zza(str, zzb2, zzg, str2, list, zzb2 == zzff.zzf.zzb.REGEXP ? str2 : null, zzfwVar);
}
private static Boolean zza(String str, zzff.zzf.zzb zzbVar, boolean z, String str2, List<String> list, String str3, zzfw zzfwVar) {
if (str == null) {
return null;
}
if (zzbVar == zzff.zzf.zzb.IN_LIST) {
if (list == null || list.isEmpty()) {
return null;
}
} else if (str2 == null) {
return null;
}
if (!z && zzbVar != zzff.zzf.zzb.REGEXP) {
str = str.toUpperCase(Locale.ENGLISH);
}
switch (zzv.zza[zzbVar.ordinal()]) {
case 1:
if (str3 != null) {
try {
break;
} catch (PatternSyntaxException unused) {
if (zzfwVar != null) {
zzfwVar.zzu().zza("Invalid regular expression in REGEXP audience filter. expression", str3);
}
return null;
}
}
break;
case 6:
if (list != null) {
break;
}
break;
}
return null;
}
public static Boolean zza(double d, zzff.zzd zzdVar) {
try {
return zza(new BigDecimal(d), zzdVar, Math.ulp(d));
} catch (NumberFormatException unused) {
return null;
}
}
public static Boolean zza(long j, zzff.zzd zzdVar) {
try {
return zza(new BigDecimal(j), zzdVar, 0.0d);
} catch (NumberFormatException unused) {
return null;
}
}
public static Boolean zza(String str, zzff.zzd zzdVar) {
if (!zznp.zzb(str)) {
return null;
}
try {
return zza(new BigDecimal(str), zzdVar, 0.0d);
} catch (NumberFormatException unused) {
return null;
}
}
@VisibleForTesting
public static Boolean zza(Boolean bool, boolean z) {
if (bool == null) {
return null;
}
return Boolean.valueOf(bool.booleanValue() != z);
}
public zzab(String str, int i) {
this.zza = str;
this.zzb = i;
}
}

View File

@@ -0,0 +1,100 @@
package com.google.android.gms.measurement.internal;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
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;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "ConditionalUserPropertyParcelCreator")
/* loaded from: classes3.dex */
public final class zzac extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzac> CREATOR = new zzaf();
@Nullable
@SafeParcelable.Field(id = 2)
public String zza;
@SafeParcelable.Field(id = 3)
public String zzb;
@SafeParcelable.Field(id = 4)
public zzno zzc;
@SafeParcelable.Field(id = 5)
public long zzd;
@SafeParcelable.Field(id = 6)
public boolean zze;
@Nullable
@SafeParcelable.Field(id = 7)
public String zzf;
@Nullable
@SafeParcelable.Field(id = 8)
public zzbf zzg;
@SafeParcelable.Field(id = 9)
public long zzh;
@Nullable
@SafeParcelable.Field(id = 10)
public zzbf zzi;
@SafeParcelable.Field(id = 11)
public long zzj;
@Nullable
@SafeParcelable.Field(id = 12)
public zzbf zzk;
public zzac(zzac zzacVar) {
Preconditions.checkNotNull(zzacVar);
this.zza = zzacVar.zza;
this.zzb = zzacVar.zzb;
this.zzc = zzacVar.zzc;
this.zzd = zzacVar.zzd;
this.zze = zzacVar.zze;
this.zzf = zzacVar.zzf;
this.zzg = zzacVar.zzg;
this.zzh = zzacVar.zzh;
this.zzi = zzacVar.zzi;
this.zzj = zzacVar.zzj;
this.zzk = zzacVar.zzk;
}
@SafeParcelable.Constructor
public zzac(@Nullable @SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) String str2, @SafeParcelable.Param(id = 4) zzno zznoVar, @SafeParcelable.Param(id = 5) long j, @SafeParcelable.Param(id = 6) boolean z, @Nullable @SafeParcelable.Param(id = 7) String str3, @Nullable @SafeParcelable.Param(id = 8) zzbf zzbfVar, @SafeParcelable.Param(id = 9) long j2, @Nullable @SafeParcelable.Param(id = 10) zzbf zzbfVar2, @SafeParcelable.Param(id = 11) long j3, @Nullable @SafeParcelable.Param(id = 12) zzbf zzbfVar3) {
this.zza = str;
this.zzb = str2;
this.zzc = zznoVar;
this.zzd = j;
this.zze = z;
this.zzf = str3;
this.zzg = zzbfVar;
this.zzh = j2;
this.zzi = zzbfVar2;
this.zzj = j3;
this.zzk = zzbfVar3;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 2, this.zza, false);
SafeParcelWriter.writeString(parcel, 3, this.zzb, false);
SafeParcelWriter.writeParcelable(parcel, 4, this.zzc, i, false);
SafeParcelWriter.writeLong(parcel, 5, this.zzd);
SafeParcelWriter.writeBoolean(parcel, 6, this.zze);
SafeParcelWriter.writeString(parcel, 7, this.zzf, false);
SafeParcelWriter.writeParcelable(parcel, 8, this.zzg, i, false);
SafeParcelWriter.writeLong(parcel, 9, this.zzh);
SafeParcelWriter.writeParcelable(parcel, 10, this.zzi, i, false);
SafeParcelWriter.writeLong(parcel, 11, this.zzj);
SafeParcelWriter.writeParcelable(parcel, 12, this.zzk, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.os.Looper;
/* loaded from: classes3.dex */
public final class zzad {
public zzad(Context context) {
}
public static boolean zza() {
return Looper.myLooper() == Looper.getMainLooper();
}
}

View File

@@ -0,0 +1,449 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.Size;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
import com.google.android.gms.common.util.ProcessUtils;
import com.google.android.gms.common.wrappers.Wrappers;
import com.google.android.gms.internal.measurement.zzoq;
import com.google.android.gms.internal.measurement.zzor;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes3.dex */
public final class zzae extends zzij {
private Boolean zza;
private String zzb;
private zzag zzc;
private Boolean zzd;
public final void zza(zzag zzagVar) {
this.zzc = zzagVar;
}
public final void zzi(String str) {
this.zzb = str;
}
public final String zzp() {
return this.zzb;
}
@WorkerThread
public final double zza(String str, zzfn<Double> zzfnVar) {
if (str == null) {
return zzfnVar.zza(null).doubleValue();
}
String zza = this.zzc.zza(str, zzfnVar.zza());
if (TextUtils.isEmpty(zza)) {
return zzfnVar.zza(null).doubleValue();
}
try {
return zzfnVar.zza(Double.valueOf(Double.parseDouble(zza))).doubleValue();
} catch (NumberFormatException unused) {
return zzfnVar.zza(null).doubleValue();
}
}
public final int zzc() {
return (zzor.zza() && zze().zzf(null, zzbh.zzbz) && zzq().zza(231100000, true)) ? 35 : 0;
}
public final int zza(@Size(min = 1) String str) {
return zza(str, zzbh.zzah, 500, 2000);
}
public final int zza(String str, boolean z) {
if (!zzoq.zza() || !zze().zzf(null, zzbh.zzcs)) {
return 100;
}
if (z) {
return zza(str, zzbh.zzar, 100, 500);
}
return 500;
}
public final int zzb(String str, boolean z) {
return Math.max(zza(str, z), 256);
}
public final int zzg() {
return zzq().zza(201500000, true) ? 100 : 25;
}
public final int zzb(@Size(min = 1) String str) {
return zza(str, zzbh.zzai, 25, 100);
}
@WorkerThread
public final int zzc(@Size(min = 1) String str) {
return zzb(str, zzbh.zzo);
}
@WorkerThread
public final int zzb(String str, zzfn<Integer> zzfnVar) {
if (str == null) {
return zzfnVar.zza(null).intValue();
}
String zza = this.zzc.zza(str, zzfnVar.zza());
if (TextUtils.isEmpty(zza)) {
return zzfnVar.zza(null).intValue();
}
try {
return zzfnVar.zza(Integer.valueOf(Integer.parseInt(zza))).intValue();
} catch (NumberFormatException unused) {
return zzfnVar.zza(null).intValue();
}
}
@WorkerThread
public final int zza(String str, zzfn<Integer> zzfnVar, int i, int i2) {
return Math.max(Math.min(zzb(str, zzfnVar), i2), i);
}
@WorkerThread
public final long zzd(String str) {
return zzc(str, zzbh.zza);
}
public static long zzh() {
return zzbh.zzd.zza(null).longValue();
}
public static long zzm() {
return zzbh.zzad.zza(null).longValue();
}
@WorkerThread
public final long zzc(String str, zzfn<Long> zzfnVar) {
if (str == null) {
return zzfnVar.zza(null).longValue();
}
String zza = this.zzc.zza(str, zzfnVar.zza());
if (TextUtils.isEmpty(zza)) {
return zzfnVar.zza(null).longValue();
}
try {
return zzfnVar.zza(Long.valueOf(Long.parseLong(zza))).longValue();
} catch (NumberFormatException unused) {
return zzfnVar.zza(null).longValue();
}
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@VisibleForTesting
private final Bundle zzz() {
try {
if (zza().getPackageManager() == null) {
zzj().zzg().zza("Failed to load metadata: PackageManager is null");
return null;
}
ApplicationInfo applicationInfo = Wrappers.packageManager(zza()).getApplicationInfo(zza().getPackageName(), 128);
if (applicationInfo == null) {
zzj().zzg().zza("Failed to load metadata: ApplicationInfo is null");
return null;
}
return applicationInfo.metaData;
} catch (PackageManager.NameNotFoundException e) {
zzj().zzg().zza("Failed to load metadata: Package name not found", e);
return null;
}
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
public final zziq zze(String str) {
Object obj;
Preconditions.checkNotEmpty(str);
Bundle zzz = zzz();
if (zzz == null) {
zzj().zzg().zza("Failed to load metadata: Metadata bundle is null");
obj = null;
} else {
obj = zzz.get(str);
}
if (obj == null) {
return zziq.UNINITIALIZED;
}
if (Boolean.TRUE.equals(obj)) {
return zziq.GRANTED;
}
if (Boolean.FALSE.equals(obj)) {
return zziq.DENIED;
}
if (MRAIDCommunicatorUtil.STATES_DEFAULT.equals(obj)) {
return zziq.DEFAULT;
}
zzj().zzu().zza("Invalid manifest metadata for", str);
return zziq.UNINITIALIZED;
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
@VisibleForTesting
public final Boolean zzf(@Size(min = 1) String str) {
Preconditions.checkNotEmpty(str);
Bundle zzz = zzz();
if (zzz == null) {
zzj().zzg().zza("Failed to load metadata: Metadata bundle is null");
return null;
}
if (zzz.containsKey(str)) {
return Boolean.valueOf(zzz.getBoolean(str));
}
return null;
}
public final String zzn() {
return zza("debug.firebase.analytics.app", "");
}
public final String zzo() {
return zza("debug.deferred.deeplink", "");
}
@WorkerThread
public final String zzd(String str, zzfn<String> zzfnVar) {
if (str == null) {
return zzfnVar.zza(null);
}
return zzfnVar.zza(this.zzc.zza(str, zzfnVar.zza()));
}
@WorkerThread
public final String zzg(String str) {
return zzd(str, zzbh.zzal);
}
private final String zza(String str, String str2) {
try {
String str3 = (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class, String.class).invoke(null, str, str2);
Preconditions.checkNotNull(str3);
return str3;
} catch (ClassNotFoundException e) {
zzj().zzg().zza("Could not find SystemProperties class", e);
return str2;
} catch (IllegalAccessException e2) {
zzj().zzg().zza("Could not access SystemProperties.get()", e2);
return str2;
} catch (NoSuchMethodException e3) {
zzj().zzg().zza("Could not find SystemProperties.get() method", e3);
return str2;
} catch (InvocationTargetException e4) {
zzj().zzg().zza("SystemProperties.get() threw an exception", e4);
return str2;
}
}
/* JADX WARN: Removed duplicated region for block: B:6:0x002a A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:8:0x002b A[EXC_TOP_SPLITTER, SYNTHETIC] */
@androidx.annotation.VisibleForTesting
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.util.List<java.lang.String> zzh(@androidx.annotation.Size(min = 1) java.lang.String r4) {
/*
r3 = this;
com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r4)
android.os.Bundle r0 = r3.zzz()
r1 = 0
if (r0 != 0) goto L19
com.google.android.gms.measurement.internal.zzfw r4 = r3.zzj()
com.google.android.gms.measurement.internal.zzfy r4 = r4.zzg()
java.lang.String r0 = "Failed to load metadata: Metadata bundle is null"
r4.zza(r0)
L17:
r4 = r1
goto L28
L19:
boolean r2 = r0.containsKey(r4)
if (r2 != 0) goto L20
goto L17
L20:
int r4 = r0.getInt(r4)
java.lang.Integer r4 = java.lang.Integer.valueOf(r4)
L28:
if (r4 != 0) goto L2b
return r1
L2b:
android.content.Context r0 = r3.zza() // Catch: android.content.res.Resources.NotFoundException -> L43
android.content.res.Resources r0 = r0.getResources() // Catch: android.content.res.Resources.NotFoundException -> L43
int r4 = r4.intValue() // Catch: android.content.res.Resources.NotFoundException -> L43
java.lang.String[] r4 = r0.getStringArray(r4) // Catch: android.content.res.Resources.NotFoundException -> L43
if (r4 != 0) goto L3e
return r1
L3e:
java.util.List r4 = java.util.Arrays.asList(r4) // Catch: android.content.res.Resources.NotFoundException -> L43
return r4
L43:
r4 = move-exception
com.google.android.gms.measurement.internal.zzfw r0 = r3.zzj()
com.google.android.gms.measurement.internal.zzfy r0 = r0.zzg()
java.lang.String r2 = "Failed to load string array from metadata: resource not found"
r0.zza(r2, r4)
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzae.zzh(java.lang.String):java.util.List");
}
public zzae(zzhj zzhjVar) {
super(zzhjVar);
this.zzc = new zzag() { // from class: com.google.android.gms.measurement.internal.zzah
@Override // com.google.android.gms.measurement.internal.zzag
public final String zza(String str, String str2) {
return null;
}
};
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
public final boolean zzu() {
Boolean zzf = zzf("google_analytics_adid_collection_enabled");
return zzf == null || zzf.booleanValue();
}
@WorkerThread
public final boolean zzj(String str) {
return zzf(str, zzbh.zzak);
}
public final boolean zza(zzfn<Boolean> zzfnVar) {
return zzf(null, zzfnVar);
}
public final boolean zze(String str, zzfn<Boolean> zzfnVar) {
return zzf(str, zzfnVar);
}
@WorkerThread
public final boolean zzf(String str, zzfn<Boolean> zzfnVar) {
if (str == null) {
return zzfnVar.zza(null).booleanValue();
}
String zza = this.zzc.zza(str, zzfnVar.zza());
if (TextUtils.isEmpty(zza)) {
return zzfnVar.zza(null).booleanValue();
}
return zzfnVar.zza(Boolean.valueOf("1".equals(zza))).booleanValue();
}
public final boolean zzk(String str) {
return "1".equals(this.zzc.zza(str, "gaia_collection_enabled"));
}
public final boolean zzv() {
Boolean zzf = zzf("google_analytics_automatic_screen_reporting_enabled");
return zzf == null || zzf.booleanValue();
}
public final boolean zzw() {
Boolean zzf = zzf("firebase_analytics_collection_deactivated");
return zzf != null && zzf.booleanValue();
}
public final boolean zzl(String str) {
return "1".equals(this.zzc.zza(str, "measurement.event_sampling_enabled"));
}
@WorkerThread
public final boolean zzx() {
if (this.zza == null) {
Boolean zzf = zzf("app_measurement_lite");
this.zza = zzf;
if (zzf == null) {
this.zza = Boolean.FALSE;
}
}
return this.zza.booleanValue() || !this.zzu.zzag();
}
public final boolean zzy() {
if (this.zzd == null) {
synchronized (this) {
try {
if (this.zzd == null) {
ApplicationInfo applicationInfo = zza().getApplicationInfo();
String myProcessName = ProcessUtils.getMyProcessName();
if (applicationInfo != null) {
String str = applicationInfo.processName;
this.zzd = Boolean.valueOf(str != null && str.equals(myProcessName));
}
if (this.zzd == null) {
this.zzd = Boolean.TRUE;
zzj().zzg().zza("My process not in the list of running processes");
}
}
} finally {
}
}
}
return this.zzd.booleanValue();
}
}

View File

@@ -0,0 +1,72 @@
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: classes3.dex */
public final class zzaf implements Parcelable.Creator<zzac> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzac createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
String str2 = null;
zzno zznoVar = null;
String str3 = null;
zzbf zzbfVar = null;
zzbf zzbfVar2 = null;
zzbf zzbfVar3 = null;
long j = 0;
long j2 = 0;
long j3 = 0;
boolean z = false;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 2:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 3:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 4:
zznoVar = (zzno) SafeParcelReader.createParcelable(parcel, readHeader, zzno.CREATOR);
break;
case 5:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
case 6:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 7:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 8:
zzbfVar = (zzbf) SafeParcelReader.createParcelable(parcel, readHeader, zzbf.CREATOR);
break;
case 9:
j2 = SafeParcelReader.readLong(parcel, readHeader);
break;
case 10:
zzbfVar2 = (zzbf) SafeParcelReader.createParcelable(parcel, readHeader, zzbf.CREATOR);
break;
case 11:
j3 = SafeParcelReader.readLong(parcel, readHeader);
break;
case 12:
zzbfVar3 = (zzbf) SafeParcelReader.createParcelable(parcel, readHeader, zzbf.CREATOR);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzac(str, str2, zznoVar, j, z, str3, zzbfVar, j2, zzbfVar2, j3, zzbfVar3);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzac[] newArray(int i) {
return new zzac[i];
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
interface zzag {
String zza(String str, String str2);
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
enum zzai {
UNSET('0'),
REMOTE_DEFAULT('1'),
REMOTE_DELEGATION('2'),
MANIFEST('3'),
INITIALIZATION('4'),
API('5'),
CHILD_ACCOUNT('6'),
TCF('7'),
REMOTE_ENFORCED_DEFAULT('8'),
FAILSAFE('9');
private final char zzl;
public static zzai zza(char c) {
for (zzai zzaiVar : values()) {
if (zzaiVar.zzl == c) {
return zzaiVar;
}
}
return UNSET;
}
zzai(char c) {
this.zzl = c;
}
}

View File

@@ -0,0 +1,80 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.measurement.internal.zzin;
import java.util.EnumMap;
/* loaded from: classes3.dex */
final class zzaj {
private final EnumMap<zzin.zza, zzai> zza;
public final zzai zza(zzin.zza zzaVar) {
zzai zzaiVar = this.zza.get(zzaVar);
return zzaiVar == null ? zzai.UNSET : zzaiVar;
}
public static zzaj zza(String str) {
EnumMap enumMap = new EnumMap(zzin.zza.class);
if (str.length() >= zzin.zza.values().length) {
int i = 0;
if (str.charAt(0) == '1') {
zzin.zza[] values = zzin.zza.values();
int length = values.length;
int i2 = 1;
while (i < length) {
enumMap.put((EnumMap) values[i], (zzin.zza) zzai.zza(str.charAt(i2)));
i++;
i2++;
}
return new zzaj(enumMap);
}
}
return new zzaj();
}
public final String toString() {
char c;
StringBuilder sb = new StringBuilder("1");
for (zzin.zza zzaVar : zzin.zza.values()) {
zzai zzaiVar = this.zza.get(zzaVar);
if (zzaiVar == null) {
zzaiVar = zzai.UNSET;
}
c = zzaiVar.zzl;
sb.append(c);
}
return sb.toString();
}
public zzaj() {
this.zza = new EnumMap<>(zzin.zza.class);
}
private zzaj(EnumMap<zzin.zza, zzai> enumMap) {
EnumMap<zzin.zza, zzai> enumMap2 = new EnumMap<>((Class<zzin.zza>) zzin.zza.class);
this.zza = enumMap2;
enumMap2.putAll(enumMap);
}
public final void zza(zzin.zza zzaVar, int i) {
zzai zzaiVar = zzai.UNSET;
if (i == -30) {
zzaiVar = zzai.TCF;
} else {
if (i != -20) {
if (i == -10) {
zzaiVar = zzai.MANIFEST;
} else if (i != 0) {
if (i == 30) {
zzaiVar = zzai.INITIALIZATION;
}
}
}
zzaiVar = zzai.API;
}
this.zza.put((EnumMap<zzin.zza, zzai>) zzaVar, (zzin.zza) zzaiVar);
}
public final void zza(zzin.zza zzaVar, zzai zzaiVar) {
this.zza.put((EnumMap<zzin.zza, zzai>) zzaVar, (zzin.zza) zzaiVar);
}
}

View File

@@ -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: classes3.dex */
public final class zzak implements Parcelable.Creator<zzal> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzal createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
Bundle bundle = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
if (SafeParcelReader.getFieldId(readHeader) != 1) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
bundle = SafeParcelReader.createBundle(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzal(bundle);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzal[] newArray(int i) {
return new zzal[i];
}
}

View File

@@ -0,0 +1,29 @@
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 com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "ConsentParcelCreator")
/* loaded from: classes3.dex */
public final class zzal extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzal> CREATOR = new zzak();
@SafeParcelable.Field(id = 1)
public final Bundle zza;
@SafeParcelable.Constructor
public zzal(@SafeParcelable.Param(id = 1) Bundle bundle) {
this.zza = bundle;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeBundle(parcel, 1, this.zza, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
public final class zzao {
long zza;
long zzb;
long zzc;
long zzd;
long zze;
long zzf;
}

View File

@@ -0,0 +1,14 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzap {
final byte[] zza;
final String zzb;
final String zzc;
public zzap(byte[] bArr, String str, String str2) {
this.zza = bArr;
this.zzb = str;
this.zzc = str2;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.android.gms.measurement.internal;
import android.database.Cursor;
/* loaded from: classes3.dex */
interface zzaq<T> {
T zza(Cursor cursor);
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzfn;
/* loaded from: classes3.dex */
interface zzar {
void zza(zzfn.zzj zzjVar);
boolean zza(long j, zzfn.zze zzeVar);
}

View File

@@ -0,0 +1,105 @@
package com.google.android.gms.measurement.internal;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.text.TextUtils;
import androidx.annotation.WorkerThread;
import java.io.File;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes3.dex */
public final class zzas {
@WorkerThread
private static Set<String> zza(SQLiteDatabase sQLiteDatabase, String str) {
HashSet hashSet = new HashSet();
Cursor rawQuery = sQLiteDatabase.rawQuery("SELECT * FROM " + str + " LIMIT 0", null);
try {
Collections.addAll(hashSet, rawQuery.getColumnNames());
return hashSet;
} finally {
rawQuery.close();
}
}
@WorkerThread
public static void zza(zzfw zzfwVar, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) throws SQLiteException {
if (zzfwVar == null) {
throw new IllegalArgumentException("Monitor must not be null");
}
if (!zza(zzfwVar, sQLiteDatabase, str)) {
sQLiteDatabase.execSQL(str2);
}
try {
Set<String> zza = zza(sQLiteDatabase, str);
for (String str4 : str3.split(",")) {
if (!zza.remove(str4)) {
throw new SQLiteException("Table " + str + " is missing required column: " + str4);
}
}
if (strArr != null) {
for (int i = 0; i < strArr.length; i += 2) {
if (!zza.remove(strArr[i])) {
sQLiteDatabase.execSQL(strArr[i + 1]);
}
}
}
if (zza.isEmpty()) {
return;
}
zzfwVar.zzu().zza("Table has extra columns. table, columns", str, TextUtils.join(", ", zza));
} catch (SQLiteException e) {
zzfwVar.zzg().zza("Failed to verify columns on table that was just created", str);
throw e;
}
}
public static void zza(zzfw zzfwVar, SQLiteDatabase sQLiteDatabase) {
if (zzfwVar == null) {
throw new IllegalArgumentException("Monitor must not be null");
}
File file = new File(com.google.android.gms.internal.measurement.zzcf.zza().zza(sQLiteDatabase.getPath()));
if (!file.setReadable(false, false)) {
zzfwVar.zzu().zza("Failed to turn off database read permission");
}
if (!file.setWritable(false, false)) {
zzfwVar.zzu().zza("Failed to turn off database write permission");
}
if (!file.setReadable(true, true)) {
zzfwVar.zzu().zza("Failed to turn on database read permission for owner");
}
if (file.setWritable(true, true)) {
return;
}
zzfwVar.zzu().zza("Failed to turn on database write permission for owner");
}
@WorkerThread
private static boolean zza(zzfw zzfwVar, SQLiteDatabase sQLiteDatabase, String str) {
if (zzfwVar == null) {
throw new IllegalArgumentException("Monitor must not be null");
}
Cursor cursor = null;
try {
try {
cursor = sQLiteDatabase.query("SQLITE_MASTER", new String[]{"name"}, "name=?", new String[]{str}, null, null, null);
boolean moveToFirst = cursor.moveToFirst();
cursor.close();
return moveToFirst;
} catch (SQLiteException e) {
zzfwVar.zzu().zza("Error querying for table", str, e);
if (cursor != null) {
cursor.close();
}
return false;
}
} catch (Throwable th) {
if (cursor != null) {
cursor.close();
}
throw th;
}
}
}

View File

@@ -0,0 +1,121 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.internal.measurement.zzpd;
@VisibleForTesting
/* loaded from: classes3.dex */
final class zzat extends SQLiteOpenHelper {
private final /* synthetic */ zzan zza;
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final SQLiteDatabase getWritableDatabase() {
zzmv zzmvVar;
zzmv zzmvVar2;
zzmv zzmvVar3;
zzmvVar = this.zza.zzm;
if (!zzmvVar.zza(3600000L)) {
throw new SQLiteException("Database open failed");
}
try {
return super.getWritableDatabase();
} catch (SQLiteException unused) {
zzmvVar2 = this.zza.zzm;
zzmvVar2.zzb();
this.zza.zzj().zzg().zza("Opening the database failed, dropping and recreating it");
if (!this.zza.zza().getDatabasePath("google_app_measurement.db").delete()) {
this.zza.zzj().zzg().zza("Failed to delete corrupted db file", "google_app_measurement.db");
}
try {
SQLiteDatabase writableDatabase = super.getWritableDatabase();
zzmvVar3 = this.zza.zzm;
zzmvVar3.zza();
return writableDatabase;
} catch (SQLiteException e) {
this.zza.zzj().zzg().zza("Failed to open freshly created database", e);
throw e;
}
}
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzat(zzan zzanVar, Context context, String str) {
super(context, str, (SQLiteDatabase.CursorFactory) null, 1);
this.zza = zzanVar;
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onCreate(SQLiteDatabase sQLiteDatabase) {
zzas.zza(this.zza.zzj(), sQLiteDatabase);
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onOpen(SQLiteDatabase sQLiteDatabase) {
String[] strArr;
String[] strArr2;
String[] strArr3;
String[] strArr4;
String[] strArr5;
String[] strArr6;
String[] strArr7;
String[] strArr8;
String[] strArr9;
String[] strArr10;
zzfw zzj = this.zza.zzj();
strArr = zzan.zza;
zzas.zza(zzj, sQLiteDatabase, "events", "CREATE TABLE IF NOT EXISTS events ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp", strArr);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "events_snapshot", "CREATE TABLE IF NOT EXISTS events_snapshot ( app_id TEXT NOT NULL, name TEXT NOT NULL, lifetime_count INTEGER NOT NULL, current_bundle_count INTEGER NOT NULL, last_fire_timestamp INTEGER NOT NULL, last_bundled_timestamp INTEGER, last_bundled_day INTEGER, last_sampled_complex_event_id INTEGER, last_sampling_rate INTEGER, last_exempt_from_sampling INTEGER, current_session_count INTEGER, PRIMARY KEY (app_id, name)) ;", "app_id,name,lifetime_count,current_bundle_count,last_fire_timestamp,last_bundled_timestamp,last_bundled_day,last_sampled_complex_event_id,last_sampling_rate,last_exempt_from_sampling,current_session_count", null);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "conditional_properties", "CREATE TABLE IF NOT EXISTS conditional_properties ( app_id TEXT NOT NULL, origin TEXT NOT NULL, name TEXT NOT NULL, value BLOB NOT NULL, creation_timestamp INTEGER NOT NULL, active INTEGER NOT NULL, trigger_event_name TEXT, trigger_timeout INTEGER NOT NULL, timed_out_event BLOB,triggered_event BLOB, triggered_timestamp INTEGER NOT NULL, time_to_live INTEGER NOT NULL, expired_event BLOB, PRIMARY KEY (app_id, name)) ;", "app_id,origin,name,value,active,trigger_event_name,trigger_timeout,creation_timestamp,timed_out_event,triggered_event,triggered_timestamp,time_to_live,expired_event", null);
zzfw zzj2 = this.zza.zzj();
strArr2 = zzan.zzb;
zzas.zza(zzj2, sQLiteDatabase, "user_attributes", "CREATE TABLE IF NOT EXISTS user_attributes ( app_id TEXT NOT NULL, name TEXT NOT NULL, set_timestamp INTEGER NOT NULL, value BLOB NOT NULL, PRIMARY KEY (app_id, name)) ;", "app_id,name,set_timestamp,value", strArr2);
zzfw zzj3 = this.zza.zzj();
strArr3 = zzan.zzc;
zzas.zza(zzj3, sQLiteDatabase, "apps", "CREATE TABLE IF NOT EXISTS apps ( app_id TEXT NOT NULL, app_instance_id TEXT, gmp_app_id TEXT, resettable_device_id_hash TEXT, last_bundle_index INTEGER NOT NULL, last_bundle_end_timestamp INTEGER NOT NULL, PRIMARY KEY (app_id)) ;", "app_id,app_instance_id,gmp_app_id,resettable_device_id_hash,last_bundle_index,last_bundle_end_timestamp", strArr3);
zzfw zzj4 = this.zza.zzj();
strArr4 = zzan.zze;
zzas.zza(zzj4, sQLiteDatabase, "queue", "CREATE TABLE IF NOT EXISTS queue ( app_id TEXT NOT NULL, bundle_end_timestamp INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,bundle_end_timestamp,data", strArr4);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "raw_events_metadata", "CREATE TABLE IF NOT EXISTS raw_events_metadata ( app_id TEXT NOT NULL, metadata_fingerprint INTEGER NOT NULL, metadata BLOB NOT NULL, PRIMARY KEY (app_id, metadata_fingerprint));", "app_id,metadata_fingerprint,metadata", null);
zzfw zzj5 = this.zza.zzj();
strArr5 = zzan.zzd;
zzas.zza(zzj5, sQLiteDatabase, "raw_events", "CREATE TABLE IF NOT EXISTS raw_events ( app_id TEXT NOT NULL, name TEXT NOT NULL, timestamp INTEGER NOT NULL, metadata_fingerprint INTEGER NOT NULL, data BLOB NOT NULL);", "app_id,name,timestamp,metadata_fingerprint,data", strArr5);
zzfw zzj6 = this.zza.zzj();
strArr6 = zzan.zzg;
zzas.zza(zzj6, sQLiteDatabase, "event_filters", "CREATE TABLE IF NOT EXISTS event_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, event_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, event_name, audience_id, filter_id));", "app_id,audience_id,filter_id,event_name,data", strArr6);
zzfw zzj7 = this.zza.zzj();
strArr7 = zzan.zzh;
zzas.zza(zzj7, sQLiteDatabase, "property_filters", "CREATE TABLE IF NOT EXISTS property_filters ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, filter_id INTEGER NOT NULL, property_name TEXT NOT NULL, data BLOB NOT NULL, PRIMARY KEY (app_id, property_name, audience_id, filter_id));", "app_id,audience_id,filter_id,property_name,data", strArr7);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "audience_filter_values", "CREATE TABLE IF NOT EXISTS audience_filter_values ( app_id TEXT NOT NULL, audience_id INTEGER NOT NULL, current_results BLOB, PRIMARY KEY (app_id, audience_id));", "app_id,audience_id,current_results", null);
zzfw zzj8 = this.zza.zzj();
strArr8 = zzan.zzi;
zzas.zza(zzj8, sQLiteDatabase, "app2", "CREATE TABLE IF NOT EXISTS app2 ( app_id TEXT NOT NULL, first_open_count INTEGER NOT NULL, PRIMARY KEY (app_id));", "app_id,first_open_count", strArr8);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "main_event_params", "CREATE TABLE IF NOT EXISTS main_event_params ( app_id TEXT NOT NULL, event_id TEXT NOT NULL, children_to_process INTEGER NOT NULL, main_event BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,event_id,children_to_process,main_event", null);
zzas.zza(this.zza.zzj(), sQLiteDatabase, "default_event_params", "CREATE TABLE IF NOT EXISTS default_event_params ( app_id TEXT NOT NULL, parameters BLOB NOT NULL, PRIMARY KEY (app_id));", "app_id,parameters", null);
zzfw zzj9 = this.zza.zzj();
strArr9 = zzan.zzj;
zzas.zza(zzj9, sQLiteDatabase, "consent_settings", "CREATE TABLE IF NOT EXISTS consent_settings ( app_id TEXT NOT NULL, consent_state TEXT NOT NULL, PRIMARY KEY (app_id));", "app_id,consent_state", strArr9);
if (zzpd.zza()) {
zzfw zzj10 = this.zza.zzj();
strArr10 = zzan.zzk;
zzas.zza(zzj10, sQLiteDatabase, "trigger_uris", "CREATE TABLE IF NOT EXISTS trigger_uris ( app_id TEXT NOT NULL, trigger_uri TEXT NOT NULL, timestamp_millis INTEGER NOT NULL, source INTEGER NOT NULL);", "app_id,trigger_uri,source,timestamp_millis", strArr10);
}
}
}

View File

@@ -0,0 +1,26 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzau implements Runnable {
private final /* synthetic */ zzil zza;
private final /* synthetic */ zzav zzb;
public zzau(zzav zzavVar, zzil zzilVar) {
this.zza = zzilVar;
this.zzb = zzavVar;
}
@Override // java.lang.Runnable
public final void run() {
this.zza.zzd();
if (zzad.zza()) {
this.zza.zzl().zzb(this);
return;
}
boolean zzc = this.zzb.zzc();
this.zzb.zzd = 0L;
if (zzc) {
this.zzb.zzb();
}
}
}

View File

@@ -0,0 +1,58 @@
package com.google.android.gms.measurement.internal;
import android.os.Handler;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
abstract class zzav {
private static volatile Handler zza;
private final zzil zzb;
private final Runnable zzc;
private volatile long zzd;
public abstract void zzb();
public final boolean zzc() {
return this.zzd != 0;
}
private final Handler zzd() {
Handler handler;
if (zza != null) {
return zza;
}
synchronized (zzav.class) {
try {
if (zza == null) {
zza = new com.google.android.gms.internal.measurement.zzcz(this.zzb.zza().getMainLooper());
}
handler = zza;
} catch (Throwable th) {
throw th;
}
}
return handler;
}
public zzav(zzil zzilVar) {
Preconditions.checkNotNull(zzilVar);
this.zzb = zzilVar;
this.zzc = new zzau(this, zzilVar);
}
public final void zza() {
this.zzd = 0L;
zzd().removeCallbacks(this.zzc);
}
public final void zza(long j) {
zza();
if (j >= 0) {
this.zzd = this.zzb.zzb().currentTimeMillis();
if (zzd().postDelayed(this.zzc, j)) {
return;
}
this.zzb.zzj().zzg().zza("Failed to schedule delayed post. time", Long.valueOf(j));
}
}
}

View File

@@ -0,0 +1,27 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final /* synthetic */ class zzaw {
static final /* synthetic */ int[] zza;
static {
int[] iArr = new int[zziq.values().length];
zza = iArr;
try {
iArr[zziq.UNINITIALIZED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
zza[zziq.DEFAULT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
zza[zziq.DENIED.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
zza[zziq.GRANTED.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
}
}

View File

@@ -0,0 +1,208 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import com.facebook.internal.security.CertificateUtil;
import com.google.android.gms.measurement.internal.zzin;
import com.ironsource.v8;
import com.mbridge.msdk.newreward.player.view.hybrid.util.MRAIDCommunicatorUtil;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
/* loaded from: classes3.dex */
public final class zzax {
public static final zzax zza = new zzax(null, 100);
private final int zzb;
private final String zzc;
private final Boolean zzd;
private final String zze;
private final EnumMap<zzin.zza, zziq> zzf;
public final int zza() {
return this.zzb;
}
public final Boolean zzd() {
return this.zzd;
}
public final String zze() {
return this.zze;
}
public final String zzf() {
return this.zzc;
}
public final int hashCode() {
Boolean bool = this.zzd;
int i = bool == null ? 3 : bool == Boolean.TRUE ? 7 : 13;
String str = this.zze;
return this.zzc.hashCode() + (i * 29) + ((str == null ? 17 : str.hashCode()) * 137);
}
public final Bundle zzb() {
Bundle bundle = new Bundle();
for (Map.Entry<zzin.zza, zziq> entry : this.zzf.entrySet()) {
String zzb = zzin.zzb(entry.getValue());
if (zzb != null) {
bundle.putString(entry.getKey().zze, zzb);
}
}
Boolean bool = this.zzd;
if (bool != null) {
bundle.putString("is_dma_region", bool.toString());
}
String str = this.zze;
if (str != null) {
bundle.putString("cps_display_str", str);
}
return bundle;
}
public static zzax zza(Bundle bundle, int i) {
if (bundle == null) {
return new zzax(null, i);
}
EnumMap enumMap = new EnumMap(zzin.zza.class);
for (zzin.zza zzaVar : zzip.DMA.zza()) {
enumMap.put((EnumMap) zzaVar, (zzin.zza) zzin.zza(bundle.getString(zzaVar.zze)));
}
return new zzax((EnumMap<zzin.zza, zziq>) enumMap, i, bundle.containsKey("is_dma_region") ? Boolean.valueOf(bundle.getString("is_dma_region")) : null, bundle.getString("cps_display_str"));
}
public static zzax zza(zziq zziqVar, int i) {
EnumMap enumMap = new EnumMap(zzin.zza.class);
enumMap.put((EnumMap) zzin.zza.AD_USER_DATA, (zzin.zza) zziqVar);
return new zzax((EnumMap<zzin.zza, zziq>) enumMap, -10, (Boolean) null, (String) null);
}
public static zzax zza(String str) {
if (str == null || str.length() <= 0) {
return zza;
}
String[] split = str.split(CertificateUtil.DELIMITER);
int parseInt = Integer.parseInt(split[0]);
EnumMap enumMap = new EnumMap(zzin.zza.class);
zzin.zza[] zza2 = zzip.DMA.zza();
int length = zza2.length;
int i = 1;
int i2 = 0;
while (i2 < length) {
enumMap.put((EnumMap) zza2[i2], (zzin.zza) zzin.zza(split[i].charAt(0)));
i2++;
i++;
}
return new zzax((EnumMap<zzin.zza, zziq>) enumMap, parseInt, (Boolean) null, (String) null);
}
public final zziq zzc() {
zziq zziqVar = this.zzf.get(zzin.zza.AD_USER_DATA);
return zziqVar == null ? zziq.UNINITIALIZED : zziqVar;
}
public static Boolean zza(Bundle bundle) {
zziq zza2;
if (bundle == null || (zza2 = zzin.zza(bundle.getString("ad_personalization"))) == null) {
return null;
}
int i = zzaw.zza[zza2.ordinal()];
if (i == 3) {
return Boolean.FALSE;
}
if (i != 4) {
return null;
}
return Boolean.TRUE;
}
private final String zzh() {
StringBuilder sb = new StringBuilder();
sb.append(this.zzb);
for (zzin.zza zzaVar : zzip.DMA.zza()) {
sb.append(CertificateUtil.DELIMITER);
sb.append(zzin.zza(this.zzf.get(zzaVar)));
}
return sb.toString();
}
public final String toString() {
StringBuilder sb = new StringBuilder("source=");
sb.append(zzin.zza(this.zzb));
for (zzin.zza zzaVar : zzip.DMA.zza()) {
sb.append(",");
sb.append(zzaVar.zze);
sb.append(v8.i.b);
zziq zziqVar = this.zzf.get(zzaVar);
if (zziqVar == null) {
sb.append("uninitialized");
} else {
int i = zzaw.zza[zziqVar.ordinal()];
if (i == 1) {
sb.append("uninitialized");
} else if (i == 2) {
sb.append(MRAIDCommunicatorUtil.STATES_DEFAULT);
} else if (i == 3) {
sb.append("denied");
} else if (i == 4) {
sb.append("granted");
}
}
}
if (this.zzd != null) {
sb.append(",isDmaRegion=");
sb.append(this.zzd);
}
if (this.zze != null) {
sb.append(",cpsDisplayStr=");
sb.append(this.zze);
}
return sb.toString();
}
public zzax(Boolean bool, int i) {
this(bool, i, (Boolean) null, (String) null);
}
public zzax(Boolean bool, int i, Boolean bool2, String str) {
EnumMap<zzin.zza, zziq> enumMap = new EnumMap<>((Class<zzin.zza>) zzin.zza.class);
this.zzf = enumMap;
enumMap.put((EnumMap<zzin.zza, zziq>) zzin.zza.AD_USER_DATA, (zzin.zza) zzin.zza(bool));
this.zzb = i;
this.zzc = zzh();
this.zzd = bool2;
this.zze = str;
}
private zzax(EnumMap<zzin.zza, zziq> enumMap, int i, Boolean bool, String str) {
EnumMap<zzin.zza, zziq> enumMap2 = new EnumMap<>((Class<zzin.zza>) zzin.zza.class);
this.zzf = enumMap2;
enumMap2.putAll(enumMap);
this.zzb = i;
this.zzc = zzh();
this.zzd = bool;
this.zze = str;
}
public final boolean equals(Object obj) {
if (!(obj instanceof zzax)) {
return false;
}
zzax zzaxVar = (zzax) obj;
if (this.zzc.equalsIgnoreCase(zzaxVar.zzc) && Objects.equals(this.zzd, zzaxVar.zzd)) {
return Objects.equals(this.zze, zzaxVar.zze);
}
return false;
}
public final boolean zzg() {
Iterator<zziq> it = this.zzf.values().iterator();
while (it.hasNext()) {
if (it.next() != zziq.UNINITIALIZED) {
return true;
}
}
return false;
}
}

View File

@@ -0,0 +1,76 @@
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: classes3.dex */
public final class zzay {
final String zza;
final String zzb;
final long zzc;
final long zzd;
final zzba zze;
private final String zzf;
public final zzay zza(zzhj zzhjVar, long j) {
return new zzay(zzhjVar, this.zzf, this.zza, this.zzb, this.zzc, j, this.zze);
}
public final String toString() {
return "Event{appId='" + this.zza + "', name='" + this.zzb + "', params=" + String.valueOf(this.zze) + "}";
}
public zzay(zzhj zzhjVar, String str, String str2, String str3, long j, long j2, Bundle bundle) {
zzba zzbaVar;
Preconditions.checkNotEmpty(str2);
Preconditions.checkNotEmpty(str3);
this.zza = str2;
this.zzb = str3;
this.zzf = TextUtils.isEmpty(str) ? null : str;
this.zzc = j;
this.zzd = j2;
if (j2 != 0 && j2 > j) {
zzhjVar.zzj().zzu().zza("Event created with reverse previous/current timestamps. appId", zzfw.zza(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) {
zzhjVar.zzj().zzg().zza("Param name can't be null");
it.remove();
} else {
Object zzb = zzhjVar.zzt().zzb(next, bundle2.get(next));
if (zzb == null) {
zzhjVar.zzj().zzu().zza("Param value can't be null", zzhjVar.zzk().zzb(next));
it.remove();
} else {
zzhjVar.zzt().zza(bundle2, next, zzb);
}
}
}
zzbaVar = new zzba(bundle2);
} else {
zzbaVar = new zzba(new Bundle());
}
this.zze = zzbaVar;
}
private zzay(zzhj zzhjVar, String str, String str2, String str3, long j, long j2, zzba zzbaVar) {
Preconditions.checkNotEmpty(str2);
Preconditions.checkNotEmpty(str3);
Preconditions.checkNotNull(zzbaVar);
this.zza = str2;
this.zzb = str3;
this.zzf = TextUtils.isEmpty(str) ? null : str;
this.zzc = j;
this.zzd = j2;
if (j2 != 0 && j2 > j) {
zzhjVar.zzj().zzu().zza("Event created with reverse previous/current timestamps. appId, name", zzfw.zza(str2), zzfw.zza(str3));
}
this.zze = zzbaVar;
}
}

View File

@@ -0,0 +1,185 @@
package com.google.android.gms.measurement.internal;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.content.Context;
import androidx.annotation.WorkerThread;
import androidx.core.content.ContextCompat;
import com.google.android.gms.common.util.Clock;
import com.vungle.ads.internal.signals.SignalManager;
import java.io.IOException;
import java.util.Calendar;
import java.util.Locale;
import java.util.concurrent.TimeUnit;
/* loaded from: classes3.dex */
public final class zzaz extends zzim {
private long zza;
private String zzb;
private AccountManager zzc;
private Boolean zzd;
private long zze;
@WorkerThread
public final long zzc() {
zzt();
return this.zze;
}
public final long zzg() {
zzac();
return this.zza;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
public final String zzh() {
zzac();
return this.zzb;
}
public zzaz(zzhj zzhjVar) {
super(zzhjVar);
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
@WorkerThread
public final void zzm() {
zzt();
this.zzd = null;
this.zze = 0L;
}
@WorkerThread
public final boolean zzn() {
Account[] result;
zzt();
long currentTimeMillis = zzb().currentTimeMillis();
if (currentTimeMillis - this.zze > SignalManager.TWENTY_FOUR_HOURS_MILLIS) {
this.zzd = null;
}
Boolean bool = this.zzd;
if (bool != null) {
return bool.booleanValue();
}
if (ContextCompat.checkSelfPermission(zza(), "android.permission.GET_ACCOUNTS") != 0) {
zzj().zzw().zza("Permission error checking for dasher/unicorn accounts");
this.zze = currentTimeMillis;
this.zzd = Boolean.FALSE;
return false;
}
if (this.zzc == null) {
this.zzc = AccountManager.get(zza());
}
try {
result = this.zzc.getAccountsByTypeAndFeatures("com.google", new String[]{"service_HOSTED"}, null, null).getResult();
} catch (AuthenticatorException e) {
e = e;
zzj().zzm().zza("Exception checking account types", e);
this.zze = currentTimeMillis;
this.zzd = Boolean.FALSE;
return false;
} catch (OperationCanceledException e2) {
e = e2;
zzj().zzm().zza("Exception checking account types", e);
this.zze = currentTimeMillis;
this.zzd = Boolean.FALSE;
return false;
} catch (IOException e3) {
e = e3;
zzj().zzm().zza("Exception checking account types", e);
this.zze = currentTimeMillis;
this.zzd = Boolean.FALSE;
return false;
}
if (result != null && result.length > 0) {
this.zzd = Boolean.TRUE;
this.zze = currentTimeMillis;
return true;
}
Account[] result2 = this.zzc.getAccountsByTypeAndFeatures("com.google", new String[]{"service_uca"}, null, null).getResult();
if (result2 != null && result2.length > 0) {
this.zzd = Boolean.TRUE;
this.zze = currentTimeMillis;
return true;
}
this.zze = currentTimeMillis;
this.zzd = Boolean.FALSE;
return false;
}
@Override // com.google.android.gms.measurement.internal.zzim
public final boolean zzo() {
Calendar calendar = Calendar.getInstance();
this.zza = TimeUnit.MINUTES.convert(calendar.get(15) + calendar.get(16), TimeUnit.MILLISECONDS);
Locale locale = Locale.getDefault();
String language = locale.getLanguage();
Locale locale2 = Locale.ENGLISH;
this.zzb = language.toLowerCase(locale2) + "-" + locale.getCountry().toLowerCase(locale2);
return false;
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzb implements Runnable {
private final /* synthetic */ String zza;
private final /* synthetic */ long zzb;
private final /* synthetic */ zza zzc;
public zzb(zza zzaVar, String str, long j) {
this.zza = str;
this.zzb = j;
this.zzc = zzaVar;
}
@Override // java.lang.Runnable
public final void run() {
zza.zzb(this.zzc, this.zza, this.zzb);
}
}

View File

@@ -0,0 +1,64 @@
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 com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import java.util.Iterator;
@SafeParcelable.Class(creator = "EventParamsCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes3.dex */
public final class zzba extends AbstractSafeParcelable implements Iterable<String> {
public static final Parcelable.Creator<zzba> CREATOR = new zzbc();
@SafeParcelable.Field(getter = "z", id = 2)
private final Bundle zza;
public final int zza() {
return this.zza.size();
}
public final Bundle zzb() {
return new Bundle(this.zza);
}
public final Double zza(String str) {
return Double.valueOf(this.zza.getDouble(str));
}
public final Long zzb(String str) {
return Long.valueOf(this.zza.getLong(str));
}
public final Object zzc(String str) {
return this.zza.get(str);
}
public final String zzd(String str) {
return this.zza.getString(str);
}
public final String toString() {
return this.zza.toString();
}
@Override // java.lang.Iterable
public final Iterator<String> iterator() {
return new zzbd(this);
}
@SafeParcelable.Constructor
public zzba(@SafeParcelable.Param(id = 2) Bundle bundle) {
this.zza = bundle;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeBundle(parcel, 2, zzb(), false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,54 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
final class zzbb {
final String zza;
final String zzb;
final long zzc;
final long zzd;
final long zze;
final long zzf;
final long zzg;
final Long zzh;
final Long zzi;
final Long zzj;
final Boolean zzk;
public final zzbb zza(Long l, Long l2, Boolean bool) {
return new zzbb(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, this.zzg, this.zzh, l, l2, (bool == null || bool.booleanValue()) ? bool : null);
}
public final zzbb zza(long j, long j2) {
return new zzbb(this.zza, this.zzb, this.zzc, this.zzd, this.zze, this.zzf, j, Long.valueOf(j2), this.zzi, this.zzj, this.zzk);
}
public final zzbb zza(long j) {
return new zzbb(this.zza, this.zzb, this.zzc, this.zzd, this.zze, j, this.zzg, this.zzh, this.zzi, this.zzj, this.zzk);
}
public zzbb(String str, String str2, long j, long j2, long j3, long j4, Long l, Long l2, Long l3, Boolean bool) {
this(str, str2, 0L, 0L, 0L, j3, 0L, null, null, null, null);
}
public zzbb(String str, String str2, long j, long j2, long j3, long j4, long j5, Long l, Long l2, Long l3, Boolean bool) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotEmpty(str2);
Preconditions.checkArgument(j >= 0);
Preconditions.checkArgument(j2 >= 0);
Preconditions.checkArgument(j3 >= 0);
Preconditions.checkArgument(j5 >= 0);
this.zza = str;
this.zzb = str2;
this.zzc = j;
this.zzd = j2;
this.zze = j3;
this.zzf = j4;
this.zzg = j5;
this.zzh = l;
this.zzi = l2;
this.zzj = l3;
this.zzk = bool;
}
}

View File

@@ -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: classes3.dex */
public final class zzbc implements Parcelable.Creator<zzba> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzba createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
Bundle bundle = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
if (SafeParcelReader.getFieldId(readHeader) != 2) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
bundle = SafeParcelReader.createBundle(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzba(bundle);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzba[] newArray(int i) {
return new zzba[i];
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import java.util.Iterator;
/* loaded from: classes3.dex */
final class zzbd implements Iterator<String> {
private Iterator<String> zza;
private final /* synthetic */ zzba zzb;
@Override // java.util.Iterator
public final /* synthetic */ String next() {
return this.zza.next();
}
public zzbd(zzba zzbaVar) {
Bundle bundle;
this.zzb = zzbaVar;
bundle = zzbaVar.zza;
this.zza = bundle.keySet().iterator();
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException("Remove not supported");
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.zza.hasNext();
}
}

View File

@@ -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: classes3.dex */
public final class zzbe implements Parcelable.Creator<zzbf> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzbf createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
zzba zzbaVar = null;
String str2 = null;
long j = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 3) {
zzbaVar = (zzba) SafeParcelReader.createParcelable(parcel, readHeader, zzba.CREATOR);
} else if (fieldId == 4) {
str2 = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId != 5) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
j = SafeParcelReader.readLong(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzbf(str, zzbaVar, str2, j);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ zzbf[] newArray(int i) {
return new zzbf[i];
}
}

View File

@@ -0,0 +1,57 @@
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;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "EventParcelCreator")
@SafeParcelable.Reserved({1})
/* loaded from: classes3.dex */
public final class zzbf extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzbf> CREATOR = new zzbe();
@SafeParcelable.Field(id = 2)
public final String zza;
@SafeParcelable.Field(id = 3)
public final zzba zzb;
@SafeParcelable.Field(id = 4)
public final String zzc;
@SafeParcelable.Field(id = 5)
public final long zzd;
public final String toString() {
return "origin=" + this.zzc + ",name=" + this.zza + ",params=" + String.valueOf(this.zzb);
}
public zzbf(zzbf zzbfVar, long j) {
Preconditions.checkNotNull(zzbfVar);
this.zza = zzbfVar.zza;
this.zzb = zzbfVar.zzb;
this.zzc = zzbfVar.zzc;
this.zzd = j;
}
@SafeParcelable.Constructor
public zzbf(@SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) zzba zzbaVar, @SafeParcelable.Param(id = 4) String str2, @SafeParcelable.Param(id = 5) long j) {
this.zza = str;
this.zzb = zzbaVar;
this.zzc = str2;
this.zzd = j;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 2, this.zza, false);
SafeParcelWriter.writeParcelable(parcel, 3, this.zzb, i, false);
SafeParcelWriter.writeString(parcel, 4, this.zzc, false);
SafeParcelWriter.writeLong(parcel, 5, this.zzd);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzc implements Runnable {
private final /* synthetic */ String zza;
private final /* synthetic */ long zzb;
private final /* synthetic */ zza zzc;
public zzc(zza zzaVar, String str, long j) {
this.zza = str;
this.zzb = j;
this.zzc = zzaVar;
}
@Override // java.lang.Runnable
public final void run() {
zza.zza(this.zzc, this.zza, this.zzb);
}
}

View File

@@ -0,0 +1,54 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
class zzd extends zzij implements zzil {
public zza zzc() {
return this.zzu.zze();
}
public zzfq zzg() {
return this.zzu.zzh();
}
public zzft zzh() {
return this.zzu.zzi();
}
public zziz zzm() {
return this.zzu.zzp();
}
public zzks zzn() {
return this.zzu.zzq();
}
public zzlb zzo() {
return this.zzu.zzr();
}
public zzml zzp() {
return this.zzu.zzs();
}
public zzd(zzhj zzhjVar) {
super(zzhjVar);
Preconditions.checkNotNull(zzhjVar);
}
@Override // com.google.android.gms.measurement.internal.zzij
public void zzr() {
this.zzu.zzl().zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public void zzs() {
this.zzu.zzy();
}
@Override // com.google.android.gms.measurement.internal.zzij
public void zzt() {
this.zzu.zzl().zzt();
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zze implements Runnable {
private final /* synthetic */ long zza;
private final /* synthetic */ zza zzb;
public zze(zza zzaVar, long j) {
this.zza = j;
this.zzb = zzaVar;
}
@Override // java.lang.Runnable
public final void run() {
this.zzb.zzb(this.zza);
}
}

View File

@@ -0,0 +1,714 @@
package com.google.android.gms.measurement.internal;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/* loaded from: classes3.dex */
final class zzf {
private final zzhj zza;
@Nullable
private Long zzaa;
@Nullable
private Long zzab;
private long zzac;
@Nullable
private String zzad;
private int zzae;
private int zzaf;
private long zzag;
private String zzah;
private long zzai;
private long zzaj;
private long zzak;
private long zzal;
private long zzam;
private long zzan;
@Nullable
private String zzao;
private boolean zzap;
private long zzaq;
private long zzar;
private final String zzb;
@Nullable
private String zzc;
@Nullable
private String zzd;
@Nullable
private String zze;
@Nullable
private String zzf;
private long zzg;
private long zzh;
private long zzi;
@Nullable
private String zzj;
private long zzk;
@Nullable
private String zzl;
private long zzm;
private long zzn;
private boolean zzo;
private boolean zzp;
@Nullable
private String zzq;
@Nullable
private Boolean zzr;
private long zzs;
@Nullable
private List<String> zzt;
@Nullable
private String zzu;
private boolean zzv;
private long zzw;
private long zzx;
private int zzy;
private boolean zzz;
@WorkerThread
public final int zza() {
this.zza.zzl().zzt();
return this.zzy;
}
@WorkerThread
public final int zzb() {
this.zza.zzl().zzt();
return this.zzaf;
}
@WorkerThread
public final int zzc() {
this.zza.zzl().zzt();
return this.zzae;
}
@WorkerThread
public final long zzd() {
this.zza.zzl().zzt();
return 0L;
}
@WorkerThread
public final long zze() {
this.zza.zzl().zzt();
return this.zzk;
}
@WorkerThread
public final long zzf() {
this.zza.zzl().zzt();
return this.zzac;
}
@WorkerThread
public final long zzg() {
this.zza.zzl().zzt();
return this.zzaq;
}
@WorkerThread
public final long zzh() {
this.zza.zzl().zzt();
return this.zzal;
}
@WorkerThread
public final long zzi() {
this.zza.zzl().zzt();
return this.zzam;
}
@WorkerThread
public final long zzj() {
this.zza.zzl().zzt();
return this.zzak;
}
@WorkerThread
public final long zzk() {
this.zza.zzl().zzt();
return this.zzaj;
}
@WorkerThread
public final long zzl() {
this.zza.zzl().zzt();
return this.zzan;
}
@WorkerThread
public final long zzm() {
this.zza.zzl().zzt();
return this.zzai;
}
@WorkerThread
public final long zzn() {
this.zza.zzl().zzt();
return this.zzn;
}
@WorkerThread
public final long zzo() {
this.zza.zzl().zzt();
return this.zzs;
}
@WorkerThread
public final long zzp() {
this.zza.zzl().zzt();
return this.zzar;
}
@WorkerThread
public final long zzq() {
this.zza.zzl().zzt();
return this.zzm;
}
@WorkerThread
public final long zzr() {
this.zza.zzl().zzt();
return this.zzag;
}
@WorkerThread
public final long zzs() {
this.zza.zzl().zzt();
return this.zzi;
}
@WorkerThread
public final long zzt() {
this.zza.zzl().zzt();
return this.zzg;
}
@WorkerThread
public final long zzu() {
this.zza.zzl().zzt();
return this.zzh;
}
@WorkerThread
public final long zzv() {
this.zza.zzl().zzt();
return this.zzx;
}
@WorkerThread
public final long zzw() {
this.zza.zzl().zzt();
return this.zzw;
}
@Nullable
@WorkerThread
public final Boolean zzx() {
this.zza.zzl().zzt();
return this.zzr;
}
@Nullable
@WorkerThread
public final Long zzy() {
this.zza.zzl().zzt();
return this.zzaa;
}
@Nullable
@WorkerThread
public final Long zzz() {
this.zza.zzl().zzt();
return this.zzab;
}
@Nullable
@WorkerThread
public final String zzaa() {
this.zza.zzl().zzt();
return this.zzq;
}
@Nullable
@WorkerThread
public final String zzab() {
this.zza.zzl().zzt();
String str = this.zzao;
zzg((String) null);
return str;
}
@WorkerThread
public final String zzac() {
this.zza.zzl().zzt();
return this.zzb;
}
@Nullable
@WorkerThread
public final String zzad() {
this.zza.zzl().zzt();
return this.zzc;
}
@Nullable
@WorkerThread
public final String zzae() {
this.zza.zzl().zzt();
return this.zzl;
}
@Nullable
@WorkerThread
public final String zzaf() {
this.zza.zzl().zzt();
return this.zzj;
}
@Nullable
@WorkerThread
public final String zzag() {
this.zza.zzl().zzt();
return this.zzf;
}
@Nullable
@WorkerThread
public final String zzah() {
this.zza.zzl().zzt();
return this.zzd;
}
@Nullable
@WorkerThread
public final String zzai() {
this.zza.zzl().zzt();
return this.zzao;
}
@Nullable
@WorkerThread
public final String zzaj() {
this.zza.zzl().zzt();
return this.zze;
}
@WorkerThread
public final String zzak() {
this.zza.zzl().zzt();
return this.zzah;
}
@Nullable
@WorkerThread
public final String zzal() {
this.zza.zzl().zzt();
return this.zzu;
}
@Nullable
@WorkerThread
public final String zzam() {
this.zza.zzl().zzt();
return this.zzad;
}
@Nullable
@WorkerThread
public final List<String> zzan() {
this.zza.zzl().zzt();
return this.zzt;
}
@WorkerThread
public zzf(zzhj zzhjVar, String str) {
Preconditions.checkNotNull(zzhjVar);
Preconditions.checkNotEmpty(str);
this.zza = zzhjVar;
this.zzb = str;
zzhjVar.zzl().zzt();
}
@WorkerThread
public final void zzao() {
this.zza.zzl().zzt();
this.zzap = false;
}
@WorkerThread
public final void zzap() {
this.zza.zzl().zzt();
long j = this.zzg + 1;
if (j > 2147483647L) {
this.zza.zzj().zzu().zza("Bundle index overflow. appId", zzfw.zza(this.zzb));
j = 0;
}
this.zzap = true;
this.zzg = j;
}
@WorkerThread
public final void zza(long j) {
this.zza.zzl().zzt();
long j2 = this.zzg + j;
if (j2 > 2147483647L) {
this.zza.zzj().zzu().zza("Bundle index overflow. appId", zzfw.zza(this.zzb));
j2 = j - 1;
}
long j3 = this.zzag + 1;
if (j3 > 2147483647L) {
this.zza.zzj().zzu().zza("Delivery index overflow. appId", zzfw.zza(this.zzb));
j3 = 0;
}
this.zzap = true;
this.zzg = j2;
this.zzag = j3;
}
@WorkerThread
public final void zza(@Nullable String str) {
this.zza.zzl().zzt();
if (TextUtils.isEmpty(str)) {
str = null;
}
this.zzap |= !Objects.equals(this.zzq, str);
this.zzq = str;
}
@WorkerThread
public final void zza(int i) {
this.zza.zzl().zzt();
this.zzap |= this.zzy != i;
this.zzy = i;
}
@WorkerThread
public final void zza(boolean z) {
this.zza.zzl().zzt();
this.zzap |= this.zzp != z;
this.zzp = z;
}
@WorkerThread
public final void zzb(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzc, str);
this.zzc = str;
}
@WorkerThread
public final void zzc(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzl, str);
this.zzl = str;
}
@WorkerThread
public final void zzd(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzj, str);
this.zzj = str;
}
@WorkerThread
public final void zzb(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzk != j;
this.zzk = j;
}
@WorkerThread
public final void zzc(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzac != j;
this.zzac = j;
}
@WorkerThread
public final void zzd(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzaq != j;
this.zzaq = j;
}
@WorkerThread
public final void zze(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzal != j;
this.zzal = j;
}
@WorkerThread
public final void zzf(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzam != j;
this.zzam = j;
}
@WorkerThread
public final void zzg(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzak != j;
this.zzak = j;
}
@WorkerThread
public final void zzh(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzaj != j;
this.zzaj = j;
}
@WorkerThread
public final void zzb(int i) {
this.zza.zzl().zzt();
this.zzap |= this.zzaf != i;
this.zzaf = i;
}
@WorkerThread
public final void zzi(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzan != j;
this.zzan = j;
}
@WorkerThread
public final void zzj(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzai != j;
this.zzai = j;
}
@WorkerThread
public final void zzk(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzn != j;
this.zzn = j;
}
@WorkerThread
public final void zzc(int i) {
this.zza.zzl().zzt();
this.zzap |= this.zzae != i;
this.zzae = i;
}
@WorkerThread
public final void zzl(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzs != j;
this.zzs = j;
}
@WorkerThread
public final void zzm(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzar != j;
this.zzar = j;
}
@WorkerThread
public final void zze(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzf, str);
this.zzf = str;
}
@WorkerThread
public final void zzf(@Nullable String str) {
this.zza.zzl().zzt();
if (TextUtils.isEmpty(str)) {
str = null;
}
this.zzap |= !Objects.equals(this.zzd, str);
this.zzd = str;
}
@WorkerThread
public final void zzn(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzm != j;
this.zzm = j;
}
@WorkerThread
public final void zzg(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzao, str);
this.zzao = str;
}
@WorkerThread
public final void zzo(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzag != j;
this.zzag = j;
}
@WorkerThread
public final void zzp(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzi != j;
this.zzi = j;
}
@WorkerThread
public final void zzq(long j) {
Preconditions.checkArgument(j >= 0);
this.zza.zzl().zzt();
this.zzap |= this.zzg != j;
this.zzg = j;
}
@WorkerThread
public final void zzr(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzh != j;
this.zzh = j;
}
@WorkerThread
public final void zzb(boolean z) {
this.zza.zzl().zzt();
this.zzap |= this.zzo != z;
this.zzo = z;
}
@WorkerThread
public final void zza(@Nullable Boolean bool) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzr, bool);
this.zzr = bool;
}
@WorkerThread
public final void zzh(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zze, str);
this.zze = str;
}
@WorkerThread
public final void zza(@Nullable List<String> list) {
this.zza.zzl().zzt();
if (Objects.equals(this.zzt, list)) {
return;
}
this.zzap = true;
this.zzt = list != null ? new ArrayList(list) : null;
}
@WorkerThread
public final void zzi(String str) {
this.zza.zzl().zzt();
this.zzap |= this.zzah != str;
this.zzah = str;
}
@WorkerThread
public final void zzj(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzu, str);
this.zzu = str;
}
@WorkerThread
public final void zzs(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzx != j;
this.zzx = j;
}
@WorkerThread
public final void zzk(@Nullable String str) {
this.zza.zzl().zzt();
this.zzap |= this.zzad != str;
this.zzad = str;
}
@WorkerThread
public final void zzc(boolean z) {
this.zza.zzl().zzt();
this.zzap |= this.zzv != z;
this.zzv = z;
}
@WorkerThread
public final void zzt(long j) {
this.zza.zzl().zzt();
this.zzap |= this.zzw != j;
this.zzw = j;
}
@WorkerThread
public final void zzd(boolean z) {
this.zza.zzl().zzt();
this.zzap |= this.zzz != z;
this.zzz = z;
}
@WorkerThread
public final void zza(@Nullable Long l) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzaa, l);
this.zzaa = l;
}
@WorkerThread
public final void zzb(@Nullable Long l) {
this.zza.zzl().zzt();
this.zzap |= !Objects.equals(this.zzab, l);
this.zzab = l;
}
@WorkerThread
public final boolean zzaq() {
this.zza.zzl().zzt();
return this.zzp;
}
@WorkerThread
public final boolean zzar() {
this.zza.zzl().zzt();
return this.zzo;
}
@WorkerThread
public final boolean zzas() {
this.zza.zzl().zzt();
return this.zzap;
}
@WorkerThread
public final boolean zzat() {
this.zza.zzl().zzt();
return this.zzv;
}
@WorkerThread
public final boolean zzau() {
this.zza.zzl().zzt();
return this.zzz;
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzfk {
static zzad zza;
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
interface zzfl<V> {
V zza();
}

View File

@@ -0,0 +1,83 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.GuardedBy;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzfn<V> {
private static final Object zza = new Object();
private final String zzb;
private final zzfl<V> zzc;
private final V zzd;
private final Object zze;
@GuardedBy("overrideLock")
private volatile V zzf;
@GuardedBy("cachingLock")
private volatile V zzg;
public final V zza(V v) {
List<zzfn> list;
synchronized (this.zze) {
}
if (v != null) {
return v;
}
if (zzfk.zza == null) {
return this.zzd;
}
synchronized (zza) {
try {
if (zzad.zza()) {
return this.zzg == null ? this.zzd : this.zzg;
}
try {
list = zzbh.zzdf;
for (zzfn zzfnVar : list) {
if (zzad.zza()) {
throw new IllegalStateException("Refreshing flag cache must be done on a worker thread.");
}
V v2 = null;
try {
zzfl<V> zzflVar = zzfnVar.zzc;
if (zzflVar != null) {
v2 = zzflVar.zza();
}
} catch (IllegalStateException unused) {
}
synchronized (zza) {
zzfnVar.zzg = v2;
}
}
} catch (SecurityException unused2) {
}
zzfl<V> zzflVar2 = this.zzc;
if (zzflVar2 == null) {
return this.zzd;
}
try {
return zzflVar2.zza();
} catch (IllegalStateException unused3) {
return this.zzd;
} catch (SecurityException unused4) {
return this.zzd;
}
} finally {
}
}
}
public final String zza() {
return this.zzb;
}
private zzfn(String str, V v, V v2, zzfl<V> zzflVar) {
this.zze = new Object();
this.zzf = null;
this.zzg = null;
this.zzb = str;
this.zzd = v;
this.zzc = zzflVar;
}
}

View File

@@ -0,0 +1,188 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;
/* loaded from: classes3.dex */
public abstract class zzfo extends com.google.android.gms.internal.measurement.zzbx implements zzfp {
public zzfo() {
super("com.google.android.gms.measurement.internal.IMeasurementService");
}
@Override // com.google.android.gms.internal.measurement.zzbx
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
switch (i) {
case 1:
zzbf zzbfVar = (zzbf) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzbf.CREATOR);
zzn zznVar = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(zzbfVar, zznVar);
parcel2.writeNoException();
return true;
case 2:
zzno zznoVar = (zzno) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzno.CREATOR);
zzn zznVar2 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(zznoVar, zznVar2);
parcel2.writeNoException();
return true;
case 3:
case 8:
case 22:
case 23:
default:
return false;
case 4:
zzn zznVar3 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzc(zznVar3);
parcel2.writeNoException();
return true;
case 5:
zzbf zzbfVar2 = (zzbf) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzbf.CREATOR);
String readString = parcel.readString();
String readString2 = parcel.readString();
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(zzbfVar2, readString, readString2);
parcel2.writeNoException();
return true;
case 6:
zzn zznVar4 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzg(zznVar4);
parcel2.writeNoException();
return true;
case 7:
zzn zznVar5 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
boolean zzc = com.google.android.gms.internal.measurement.zzbw.zzc(parcel);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzno> zza = zza(zznVar5, zzc);
parcel2.writeNoException();
parcel2.writeTypedList(zza);
return true;
case 9:
zzbf zzbfVar3 = (zzbf) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzbf.CREATOR);
String readString3 = parcel.readString();
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
byte[] zza2 = zza(zzbfVar3, readString3);
parcel2.writeNoException();
parcel2.writeByteArray(zza2);
return true;
case 10:
long readLong = parcel.readLong();
String readString4 = parcel.readString();
String readString5 = parcel.readString();
String readString6 = parcel.readString();
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(readLong, readString4, readString5, readString6);
parcel2.writeNoException();
return true;
case 11:
zzn zznVar6 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
String zzb = zzb(zznVar6);
parcel2.writeNoException();
parcel2.writeString(zzb);
return true;
case 12:
zzac zzacVar = (zzac) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzac.CREATOR);
zzn zznVar7 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(zzacVar, zznVar7);
parcel2.writeNoException();
return true;
case 13:
zzac zzacVar2 = (zzac) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzac.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(zzacVar2);
parcel2.writeNoException();
return true;
case 14:
String readString7 = parcel.readString();
String readString8 = parcel.readString();
boolean zzc2 = com.google.android.gms.internal.measurement.zzbw.zzc(parcel);
zzn zznVar8 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzno> zza3 = zza(readString7, readString8, zzc2, zznVar8);
parcel2.writeNoException();
parcel2.writeTypedList(zza3);
return true;
case 15:
String readString9 = parcel.readString();
String readString10 = parcel.readString();
String readString11 = parcel.readString();
boolean zzc3 = com.google.android.gms.internal.measurement.zzbw.zzc(parcel);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzno> zza4 = zza(readString9, readString10, readString11, zzc3);
parcel2.writeNoException();
parcel2.writeTypedList(zza4);
return true;
case 16:
String readString12 = parcel.readString();
String readString13 = parcel.readString();
zzn zznVar9 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzac> zza5 = zza(readString12, readString13, zznVar9);
parcel2.writeNoException();
parcel2.writeTypedList(zza5);
return true;
case 17:
String readString14 = parcel.readString();
String readString15 = parcel.readString();
String readString16 = parcel.readString();
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzac> zza6 = zza(readString14, readString15, readString16);
parcel2.writeNoException();
parcel2.writeTypedList(zza6);
return true;
case 18:
zzn zznVar10 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzd(zznVar10);
parcel2.writeNoException();
return true;
case 19:
Bundle bundle = (Bundle) com.google.android.gms.internal.measurement.zzbw.zza(parcel, Bundle.CREATOR);
zzn zznVar11 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zza(bundle, zznVar11);
parcel2.writeNoException();
return true;
case 20:
zzn zznVar12 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zze(zznVar12);
parcel2.writeNoException();
return true;
case 21:
zzn zznVar13 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzal zza7 = zza(zznVar13);
parcel2.writeNoException();
com.google.android.gms.internal.measurement.zzbw.zzb(parcel2, zza7);
return true;
case 24:
zzn zznVar14 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
Bundle bundle2 = (Bundle) com.google.android.gms.internal.measurement.zzbw.zza(parcel, Bundle.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
List<zzmu> zza8 = zza(zznVar14, bundle2);
parcel2.writeNoException();
parcel2.writeTypedList(zza8);
return true;
case 25:
zzn zznVar15 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzh(zznVar15);
parcel2.writeNoException();
return true;
case 26:
zzn zznVar16 = (zzn) com.google.android.gms.internal.measurement.zzbw.zza(parcel, zzn.CREATOR);
com.google.android.gms.internal.measurement.zzbw.zzb(parcel);
zzf(zznVar16);
parcel2.writeNoException();
return true;
}
}
}

View File

@@ -0,0 +1,57 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import android.os.IInterface;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.List;
/* loaded from: classes3.dex */
public interface zzfp extends IInterface {
zzal zza(zzn zznVar) throws RemoteException;
List<zzmu> zza(zzn zznVar, Bundle bundle) throws RemoteException;
@Nullable
List<zzno> zza(zzn zznVar, boolean z) throws RemoteException;
List<zzac> zza(@Nullable String str, @Nullable String str2, zzn zznVar) throws RemoteException;
List<zzac> zza(String str, @Nullable String str2, @Nullable String str3) throws RemoteException;
List<zzno> zza(String str, @Nullable String str2, @Nullable String str3, boolean z) throws RemoteException;
List<zzno> zza(@Nullable String str, @Nullable String str2, boolean z, zzn zznVar) throws RemoteException;
void zza(long j, @Nullable String str, @Nullable String str2, String str3) throws RemoteException;
void zza(Bundle bundle, zzn zznVar) throws RemoteException;
void zza(zzac zzacVar) throws RemoteException;
void zza(zzac zzacVar, zzn zznVar) throws RemoteException;
void zza(zzbf zzbfVar, zzn zznVar) throws RemoteException;
void zza(zzbf zzbfVar, String str, @Nullable String str2) throws RemoteException;
void zza(zzno zznoVar, zzn zznVar) throws RemoteException;
@Nullable
byte[] zza(zzbf zzbfVar, String str) throws RemoteException;
@Nullable
String zzb(zzn zznVar) throws RemoteException;
void zzc(zzn zznVar) throws RemoteException;
void zzd(zzn zznVar) throws RemoteException;
void zze(zzn zznVar) throws RemoteException;
void zzf(zzn zznVar) throws RemoteException;
void zzg(zzn zznVar) throws RemoteException;
void zzh(zzn zznVar) throws RemoteException;
}

View File

@@ -0,0 +1,287 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
import com.google.android.gms.internal.measurement.zzpu;
import com.google.android.gms.measurement.internal.zzin;
import java.math.BigInteger;
import java.util.List;
import java.util.Locale;
/* loaded from: classes3.dex */
public final class zzfq extends zzg {
private String zza;
private String zzb;
private int zzc;
private String zzd;
private long zze;
private long zzf;
private List<String> zzg;
private String zzh;
private int zzi;
private String zzj;
private String zzk;
private String zzl;
private long zzm;
private String zzn;
@WorkerThread
public final int zzaa() {
zzu();
return this.zzi;
}
@WorkerThread
public final List<String> zzaf() {
return this.zzg;
}
@Override // com.google.android.gms.measurement.internal.zzg
public final boolean zzz() {
return true;
}
@WorkerThread
public final int zzab() {
zzu();
return this.zzc;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zza zzc() {
return super.zzc();
}
/* JADX WARN: Removed duplicated region for block: B:26:0x016b */
/* JADX WARN: Removed duplicated region for block: B:49:0x016e */
@androidx.annotation.WorkerThread
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final com.google.android.gms.measurement.internal.zzn zza(java.lang.String r52) {
/*
Method dump skipped, instructions count: 583
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfq.zza(java.lang.String):com.google.android.gms.measurement.internal.zzn");
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzfq zzg() {
return super.zzg();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzft zzh() {
return super.zzh();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zziz zzm() {
return super.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzks zzn() {
return super.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzlb zzo() {
return super.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzml zzp() {
return super.zzp();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
@WorkerThread
public final String zzac() {
zzu();
return this.zzk;
}
@WorkerThread
public final String zzad() {
zzu();
Preconditions.checkNotNull(this.zza);
return this.zza;
}
@VisibleForTesting
@WorkerThread
private final String zzah() {
if (zzpu.zza() && zze().zza(zzbh.zzbn)) {
zzj().zzp().zza("Disabled IID for tests.");
return null;
}
try {
Class<?> loadClass = zza().getClassLoader().loadClass("com.google.firebase.analytics.FirebaseAnalytics");
if (loadClass == null) {
return null;
}
try {
Object invoke = loadClass.getDeclaredMethod("getInstance", Context.class).invoke(null, zza());
if (invoke == null) {
return null;
}
try {
return (String) loadClass.getDeclaredMethod("getFirebaseInstanceId", new Class[0]).invoke(invoke, new Object[0]);
} catch (Exception unused) {
zzj().zzv().zza("Failed to retrieve Firebase Instance Id");
return null;
}
} catch (Exception unused2) {
zzj().zzw().zza("Failed to obtain Firebase Analytics instance");
return null;
}
} catch (ClassNotFoundException unused3) {
}
}
@WorkerThread
public final String zzae() {
zzt();
zzu();
Preconditions.checkNotNull(this.zzj);
return this.zzj;
}
public zzfq(zzhj zzhjVar, long j) {
super(zzhjVar);
this.zzm = 0L;
this.zzn = null;
this.zzf = j;
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:11:0x00bf */
/* JADX WARN: Removed duplicated region for block: B:13:0x015c */
/* JADX WARN: Removed duplicated region for block: B:16:0x0163 */
/* JADX WARN: Removed duplicated region for block: B:20:0x0186 */
/* JADX WARN: Removed duplicated region for block: B:23:0x0190 A[Catch: IllegalStateException -> 0x01a8, TryCatch #3 {IllegalStateException -> 0x01a8, blocks: (B:18:0x016b, B:21:0x0188, B:23:0x0190, B:25:0x01ac, B:27:0x01c0, B:28:0x01c5, B:30:0x01c3), top: B:17:0x016b }] */
/* JADX WARN: Removed duplicated region for block: B:25:0x01ac A[Catch: IllegalStateException -> 0x01a8, TryCatch #3 {IllegalStateException -> 0x01a8, blocks: (B:18:0x016b, B:21:0x0188, B:23:0x0190, B:25:0x01ac, B:27:0x01c0, B:28:0x01c5, B:30:0x01c3), top: B:17:0x016b }] */
/* JADX WARN: Removed duplicated region for block: B:33:0x01e9 */
/* JADX WARN: Removed duplicated region for block: B:37:0x021e */
/* JADX WARN: Removed duplicated region for block: B:40:0x0229 */
/* JADX WARN: Removed duplicated region for block: B:51:0x0187 */
/* JADX WARN: Removed duplicated region for block: B:55:0x00db */
/* JADX WARN: Removed duplicated region for block: B:56:0x00ea */
/* JADX WARN: Removed duplicated region for block: B:57:0x00f8 */
/* JADX WARN: Removed duplicated region for block: B:58:0x0106 */
/* JADX WARN: Removed duplicated region for block: B:59:0x0114 */
/* JADX WARN: Removed duplicated region for block: B:60:0x0122 */
/* JADX WARN: Removed duplicated region for block: B:61:0x0130 */
/* JADX WARN: Removed duplicated region for block: B:62:0x013e */
/* JADX WARN: Removed duplicated region for block: B:63:0x014c */
@Override // com.google.android.gms.measurement.internal.zzg
@androidx.annotation.WorkerThread
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zzx() {
/*
Method dump skipped, instructions count: 578
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzfq.zzx():void");
}
@WorkerThread
public final void zzag() {
String format;
zzt();
if (!zzk().zzn().zza(zzin.zza.ANALYTICS_STORAGE)) {
zzj().zzc().zza("Analytics Storage consent is not granted");
format = null;
} else {
byte[] bArr = new byte[16];
zzq().zzv().nextBytes(bArr);
format = String.format(Locale.US, "%032x", new BigInteger(1, bArr));
}
zzfy zzc = zzj().zzc();
Object[] objArr = new Object[1];
objArr[0] = format == null ? "null" : "not null";
zzc.zza(String.format("Resetting session stitching token to %s", objArr));
this.zzl = format;
this.zzm = zzb().currentTimeMillis();
}
public final boolean zzb(String str) {
String str2 = this.zzn;
boolean z = (str2 == null || str2.equals(str)) ? false : true;
this.zzn = str;
return z;
}
}

View File

@@ -0,0 +1,218 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes3.dex */
public final class zzfr extends com.google.android.gms.internal.measurement.zzbu implements zzfp {
@Override // com.google.android.gms.measurement.internal.zzfp
public final zzal zza(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
Parcel zza = zza(21, a_);
zzal zzalVar = (zzal) com.google.android.gms.internal.measurement.zzbw.zza(zza, zzal.CREATOR);
zza.recycle();
return zzalVar;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final String zzb(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
Parcel zza = zza(11, a_);
String readString = zza.readString();
zza.recycle();
return readString;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzmu> zza(zzn zznVar, Bundle bundle) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
com.google.android.gms.internal.measurement.zzbw.zza(a_, bundle);
Parcel zza = zza(24, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzmu.CREATOR);
zza.recycle();
return createTypedArrayList;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzno> zza(zzn zznVar, boolean z) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
com.google.android.gms.internal.measurement.zzbw.zza(a_, z);
Parcel zza = zza(7, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzno.CREATOR);
zza.recycle();
return createTypedArrayList;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzac> zza(String str, String str2, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
a_.writeString(str);
a_.writeString(str2);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
Parcel zza = zza(16, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzac.CREATOR);
zza.recycle();
return createTypedArrayList;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzac> zza(String str, String str2, String str3) throws RemoteException {
Parcel a_ = a_();
a_.writeString(str);
a_.writeString(str2);
a_.writeString(str3);
Parcel zza = zza(17, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzac.CREATOR);
zza.recycle();
return createTypedArrayList;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzno> zza(String str, String str2, boolean z, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
a_.writeString(str);
a_.writeString(str2);
com.google.android.gms.internal.measurement.zzbw.zza(a_, z);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
Parcel zza = zza(14, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzno.CREATOR);
zza.recycle();
return createTypedArrayList;
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final List<zzno> zza(String str, String str2, String str3, boolean z) throws RemoteException {
Parcel a_ = a_();
a_.writeString(str);
a_.writeString(str2);
a_.writeString(str3);
com.google.android.gms.internal.measurement.zzbw.zza(a_, z);
Parcel zza = zza(15, a_);
ArrayList createTypedArrayList = zza.createTypedArrayList(zzno.CREATOR);
zza.recycle();
return createTypedArrayList;
}
public zzfr(IBinder iBinder) {
super(iBinder, "com.google.android.gms.measurement.internal.IMeasurementService");
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zzc(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(4, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(zzbf zzbfVar, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zzbfVar);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(1, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(zzbf zzbfVar, String str, String str2) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zzbfVar);
a_.writeString(str);
a_.writeString(str2);
zzb(5, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zzd(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(18, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(zzac zzacVar, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zzacVar);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(12, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(zzac zzacVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zzacVar);
zzb(13, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zze(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(20, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(long j, String str, String str2, String str3) throws RemoteException {
Parcel a_ = a_();
a_.writeLong(j);
a_.writeString(str);
a_.writeString(str2);
a_.writeString(str3);
zzb(10, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(Bundle bundle, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, bundle);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(19, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zzf(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(26, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zzg(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(6, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zzh(zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(25, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final void zza(zzno zznoVar, zzn zznVar) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznoVar);
com.google.android.gms.internal.measurement.zzbw.zza(a_, zznVar);
zzb(2, a_);
}
@Override // com.google.android.gms.measurement.internal.zzfp
public final byte[] zza(zzbf zzbfVar, String str) throws RemoteException {
Parcel a_ = a_();
com.google.android.gms.internal.measurement.zzbw.zza(a_, zzbfVar);
a_.writeString(str);
Parcel zza = zza(9, a_);
byte[] createByteArray = zza.createByteArray();
zza.recycle();
return createByteArray;
}
}

View File

@@ -0,0 +1,62 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabaseLockedException;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.WorkerThread;
/* loaded from: classes3.dex */
final class zzfs extends SQLiteOpenHelper {
private final /* synthetic */ zzft zza;
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final SQLiteDatabase getWritableDatabase() throws SQLiteException {
try {
return super.getWritableDatabase();
} catch (SQLiteDatabaseLockedException e) {
throw e;
} catch (SQLiteException unused) {
this.zza.zzj().zzg().zza("Opening the local database failed, dropping and recreating it");
if (!this.zza.zza().getDatabasePath("google_app_measurement_local.db").delete()) {
this.zza.zzj().zzg().zza("Failed to delete corrupted local db file", "google_app_measurement_local.db");
}
try {
return super.getWritableDatabase();
} catch (SQLiteException e2) {
this.zza.zzj().zzg().zza("Failed to open local database. Events will bypass local storage", e2);
return null;
}
}
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzfs(zzft zzftVar, Context context, String str) {
super(context, str, (SQLiteDatabase.CursorFactory) null, 1);
this.zza = zzftVar;
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onCreate(SQLiteDatabase sQLiteDatabase) {
zzas.zza(this.zza.zzj(), sQLiteDatabase);
}
@Override // android.database.sqlite.SQLiteOpenHelper
@WorkerThread
public final void onOpen(SQLiteDatabase sQLiteDatabase) {
zzas.zza(this.zza.zzj(), sQLiteDatabase, "messages", "create table if not exists messages ( type INTEGER NOT NULL, entry BLOB NOT NULL)", "type,entry", null);
}
}

View File

@@ -0,0 +1,344 @@
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.SQLiteFullException;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.SystemClock;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.util.Clock;
/* loaded from: classes3.dex */
public final class zzft extends zzg {
private final zzfs zza;
private boolean zzb;
@Override // com.google.android.gms.measurement.internal.zzg
public final boolean zzz() {
return false;
}
private static long zza(SQLiteDatabase sQLiteDatabase) {
Cursor cursor = null;
try {
cursor = sQLiteDatabase.query("messages", new String[]{"rowid"}, "type=?", new String[]{"3"}, null, null, "rowid desc", "1");
if (cursor.moveToFirst()) {
long j = cursor.getLong(0);
cursor.close();
return j;
}
cursor.close();
return -1L;
} catch (Throwable th) {
if (cursor != null) {
cursor.close();
}
throw th;
}
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@VisibleForTesting
@WorkerThread
private final SQLiteDatabase zzad() throws SQLiteException {
if (this.zzb) {
return null;
}
SQLiteDatabase writableDatabase = this.zza.getWritableDatabase();
if (writableDatabase != null) {
return writableDatabase;
}
this.zzb = true;
return null;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zza zzc() {
return super.zzc();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzfq zzg() {
return super.zzg();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzft zzh() {
return super.zzh();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zziz zzm() {
return super.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzks zzn() {
return super.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzlb zzo() {
return super.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzd
public final /* bridge */ /* synthetic */ zzml zzp() {
return super.zzp();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:145:0x01e9 */
/* JADX WARN: Removed duplicated region for block: B:147:0x01ee */
/* JADX WARN: Removed duplicated region for block: B:149:0x020c A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:21:0x0204 */
/* JADX WARN: Removed duplicated region for block: B:23:0x0209 */
/* JADX WARN: Removed duplicated region for block: B:26:0x020c A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:32:0x01d6 */
/* JADX WARN: Removed duplicated region for block: B:34:0x01db */
/* JADX WARN: Removed duplicated region for block: B:36:0x020c A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:37:0x01ba A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:46:0x0214 */
/* JADX WARN: Removed duplicated region for block: B:48:0x0219 */
/* JADX WARN: Type inference failed for: r3v0 */
/* JADX WARN: Type inference failed for: r3v1, types: [java.util.List<com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable>] */
/* JADX WARN: Type inference failed for: r3v16 */
/* JADX WARN: Type inference failed for: r3v2 */
/* JADX WARN: Type inference failed for: r3v3, types: [android.database.Cursor] */
/* JADX WARN: Type inference failed for: r3v4 */
/* JADX WARN: Type inference failed for: r3v8 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.util.List<com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable> zza(int r23) {
/*
Method dump skipped, instructions count: 556
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzft.zza(int):java.util.List");
}
public zzft(zzhj zzhjVar) {
super(zzhjVar);
this.zza = new zzfs(this, zza(), "google_app_measurement_local.db");
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzd, com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
@WorkerThread
public final void zzaa() {
int delete;
zzt();
try {
SQLiteDatabase zzad = zzad();
if (zzad == null || (delete = zzad.delete("messages", null, null)) <= 0) {
return;
}
zzj().zzp().zza("Reset local analytics data. records", Integer.valueOf(delete));
} catch (SQLiteException e) {
zzj().zzg().zza("Error resetting local analytics data. error", e);
}
}
@WorkerThread
public final boolean zzab() {
return zza(3, new byte[0]);
}
@VisibleForTesting
private final boolean zzae() {
return zza().getDatabasePath("google_app_measurement_local.db").exists();
}
@WorkerThread
public final boolean zzac() {
zzt();
if (this.zzb || !zzae()) {
return false;
}
int i = 5;
for (int i2 = 0; i2 < 5; i2++) {
SQLiteDatabase sQLiteDatabase = null;
try {
try {
SQLiteDatabase zzad = zzad();
if (zzad == null) {
this.zzb = true;
if (zzad != null) {
zzad.close();
}
return false;
}
zzad.beginTransaction();
zzad.delete("messages", "type == ?", new String[]{Integer.toString(3)});
zzad.setTransactionSuccessful();
zzad.endTransaction();
zzad.close();
return true;
} catch (SQLiteFullException e) {
zzj().zzg().zza("Error deleting app launch break from local database", e);
this.zzb = true;
if (0 != 0) {
sQLiteDatabase.close();
}
}
} catch (SQLiteDatabaseLockedException unused) {
SystemClock.sleep(i);
i += 20;
if (0 != 0) {
sQLiteDatabase.close();
}
} catch (SQLiteException e2) {
if (0 != 0) {
try {
if (sQLiteDatabase.inTransaction()) {
sQLiteDatabase.endTransaction();
}
} catch (Throwable th) {
if (0 != 0) {
sQLiteDatabase.close();
}
throw th;
}
}
zzj().zzg().zza("Error deleting app launch break from local database", e2);
this.zzb = true;
if (0 != 0) {
sQLiteDatabase.close();
}
}
}
zzj().zzu().zza("Error deleting app launch break from local database in reasonable time");
return false;
}
public final boolean zza(zzac zzacVar) {
zzq();
byte[] zza = zznt.zza((Parcelable) zzacVar);
if (zza.length > 131072) {
zzj().zzm().zza("Conditional user property too long for local database. Sending directly to service");
return false;
}
return zza(2, zza);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:17:0x006b A[Catch: all -> 0x0056, SQLiteException -> 0x005a, SQLiteFullException -> 0x005c, SQLiteDatabaseLockedException -> 0x00bc, TRY_ENTER, TryCatch #6 {SQLiteDatabaseLockedException -> 0x00bc, SQLiteFullException -> 0x005c, SQLiteException -> 0x005a, all -> 0x0056, blocks: (B:74:0x004b, B:76:0x0051, B:17:0x006b, B:19:0x008f, B:20:0x00a9), top: B:73:0x004b }] */
/* JADX WARN: Removed duplicated region for block: B:45:0x0123 */
/* JADX WARN: Removed duplicated region for block: B:47:0x0128 */
/* JADX WARN: Removed duplicated region for block: B:70:0x00b4 */
/* JADX WARN: Type inference failed for: r10v0 */
/* JADX WARN: Type inference failed for: r10v1 */
/* JADX WARN: Type inference failed for: r10v2, types: [android.database.Cursor] */
/* JADX WARN: Type inference failed for: r10v4 */
/* JADX WARN: Type inference failed for: r10v5 */
/* JADX WARN: Type inference failed for: r10v6, types: [android.database.Cursor] */
/* JADX WARN: Type inference failed for: r10v7 */
/* JADX WARN: Type inference failed for: r2v0 */
/* JADX WARN: Type inference failed for: r2v1, types: [boolean, int] */
/* JADX WARN: Type inference failed for: r2v11 */
@androidx.annotation.WorkerThread
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private final boolean zza(int r17, byte[] r18) {
/*
Method dump skipped, instructions count: 315
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzft.zza(int, byte[]):boolean");
}
public final boolean zza(zzbf zzbfVar) {
Parcel obtain = Parcel.obtain();
zzbfVar.writeToParcel(obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length > 131072) {
zzj().zzm().zza("Event is too long for local database. Sending event directly to service");
return false;
}
return zza(0, marshall);
}
public final boolean zza(zzno zznoVar) {
Parcel obtain = Parcel.obtain();
zznoVar.writeToParcel(obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length > 131072) {
zzj().zzm().zza("User property too long for local database. Sending directly to service");
return false;
}
return zza(1, marshall);
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
public interface zzfu {
boolean zza();
}

View File

@@ -0,0 +1,158 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import com.google.android.gms.common.internal.Preconditions;
import com.ironsource.v8;
import java.util.ArrayList;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes3.dex */
public final class zzfv {
private static final AtomicReference<String[]> zza = new AtomicReference<>();
private static final AtomicReference<String[]> zzb = new AtomicReference<>();
private static final AtomicReference<String[]> zzc = new AtomicReference<>();
private final zzfu zzd;
private final String zza(Object[] objArr) {
String valueOf;
if (objArr == null) {
return "[]";
}
StringBuilder sb = new StringBuilder();
sb.append(v8.i.d);
for (Object obj : objArr) {
if (obj instanceof Bundle) {
valueOf = zza((Bundle) obj);
} else {
valueOf = String.valueOf(obj);
}
if (valueOf != null) {
if (sb.length() != 1) {
sb.append(", ");
}
sb.append(valueOf);
}
}
sb.append(v8.i.e);
return sb.toString();
}
public final String zza(Bundle bundle) {
String valueOf;
if (bundle == null) {
return null;
}
if (!this.zzd.zza()) {
return bundle.toString();
}
StringBuilder sb = new StringBuilder();
sb.append("Bundle[{");
for (String str : bundle.keySet()) {
if (sb.length() != 8) {
sb.append(", ");
}
sb.append(zzb(str));
sb.append(v8.i.b);
Object obj = bundle.get(str);
if (obj instanceof Bundle) {
valueOf = zza(new Object[]{obj});
} else if (obj instanceof Object[]) {
valueOf = zza((Object[]) obj);
} else if (obj instanceof ArrayList) {
valueOf = zza(((ArrayList) obj).toArray());
} else {
valueOf = String.valueOf(obj);
}
sb.append(valueOf);
}
sb.append("}]");
return sb.toString();
}
public final String zza(zzbf zzbfVar) {
String str = null;
if (zzbfVar == null) {
return null;
}
if (!this.zzd.zza()) {
return zzbfVar.toString();
}
StringBuilder sb = new StringBuilder();
sb.append("origin=");
sb.append(zzbfVar.zzc);
sb.append(",name=");
sb.append(zza(zzbfVar.zza));
sb.append(",params=");
zzba zzbaVar = zzbfVar.zzb;
if (zzbaVar != null) {
if (!this.zzd.zza()) {
str = zzbaVar.toString();
} else {
str = zza(zzbaVar.zzb());
}
}
sb.append(str);
return sb.toString();
}
public final String zza(String str) {
if (str == null) {
return null;
}
return !this.zzd.zza() ? str : zza(str, zzir.zzc, zzir.zza, zza);
}
public final String zzb(String str) {
if (str == null) {
return null;
}
return !this.zzd.zza() ? str : zza(str, zzit.zzb, zzit.zza, zzb);
}
public final String zzc(String str) {
if (str == null) {
return null;
}
if (!this.zzd.zza()) {
return str;
}
if (str.startsWith("_exp_")) {
return "experiment_id(" + str + ")";
}
return zza(str, zzis.zzb, zzis.zza, zzc);
}
private static String zza(String str, String[] strArr, String[] strArr2, AtomicReference<String[]> atomicReference) {
String str2;
Preconditions.checkNotNull(strArr);
Preconditions.checkNotNull(strArr2);
Preconditions.checkNotNull(atomicReference);
Preconditions.checkArgument(strArr.length == strArr2.length);
for (int i = 0; i < strArr.length; i++) {
if (Objects.equals(str, strArr[i])) {
synchronized (atomicReference) {
try {
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];
} catch (Throwable th) {
throw th;
}
}
return str2;
}
}
return str;
}
public zzfv(zzfu zzfuVar) {
this.zzd = zzfuVar;
}
}

View File

@@ -0,0 +1,316 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import android.util.Pair;
import androidx.annotation.GuardedBy;
import androidx.annotation.VisibleForTesting;
import com.facebook.internal.security.CertificateUtil;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
import com.google.android.gms.internal.measurement.zzof;
/* loaded from: classes3.dex */
public final class zzfw extends zzim {
private char zza;
private long zzb;
@GuardedBy("this")
private String zzc;
private final zzfy zzd;
private final zzfy zze;
private final zzfy zzf;
private final zzfy zzg;
private final zzfy zzh;
private final zzfy zzi;
private final zzfy zzj;
private final zzfy zzk;
private final zzfy zzl;
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
public final zzfy zzc() {
return this.zzk;
}
public final zzfy zzg() {
return this.zzd;
}
public final zzfy zzh() {
return this.zzf;
}
public final zzfy zzm() {
return this.zze;
}
public final zzfy zzn() {
return this.zzj;
}
@Override // com.google.android.gms.measurement.internal.zzim
public final boolean zzo() {
return false;
}
public final zzfy zzp() {
return this.zzl;
}
public final zzfy zzu() {
return this.zzg;
}
public final zzfy zzv() {
return this.zzi;
}
public final zzfy zzw() {
return this.zzh;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
public static Object zza(String str) {
if (str == null) {
return null;
}
return new zzgb(str);
}
public static String zza(boolean z, String str, Object obj, Object obj2, Object obj3) {
String str2 = "";
if (str == null) {
str = "";
}
String zza = zza(z, obj);
String zza2 = zza(z, obj2);
String zza3 = zza(z, obj3);
StringBuilder sb = new StringBuilder();
if (!TextUtils.isEmpty(str)) {
sb.append(str);
str2 = ": ";
}
String str3 = ", ";
if (!TextUtils.isEmpty(zza)) {
sb.append(str2);
sb.append(zza);
str2 = ", ";
}
if (TextUtils.isEmpty(zza2)) {
str3 = str2;
} else {
sb.append(str2);
sb.append(zza2);
}
if (!TextUtils.isEmpty(zza3)) {
sb.append(str3);
sb.append(zza3);
}
return sb.toString();
}
@VisibleForTesting
private static String zza(boolean z, Object obj) {
String str;
String className;
if (obj == null) {
return "";
}
if (obj instanceof Integer) {
obj = Long.valueOf(((Integer) obj).intValue());
}
int i = 0;
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()));
return str2 + Math.round(Math.pow(10.0d, valueOf.length() - 1)) + "..." + str2 + Math.round(Math.pow(10.0d, valueOf.length()) - 1.0d);
}
if (obj instanceof Boolean) {
return String.valueOf(obj);
}
if (obj instanceof Throwable) {
Throwable th = (Throwable) obj;
StringBuilder sb = new StringBuilder(z ? th.getClass().getName() : th.toString());
String zzb = zzb(zzhj.class.getCanonicalName());
StackTraceElement[] stackTrace = th.getStackTrace();
int length = stackTrace.length;
while (true) {
if (i >= length) {
break;
}
StackTraceElement stackTraceElement = stackTrace[i];
if (!stackTraceElement.isNativeMethod() && (className = stackTraceElement.getClassName()) != null && zzb(className).equals(zzb)) {
sb.append(": ");
sb.append(stackTraceElement);
break;
}
i++;
}
return sb.toString();
}
if (!(obj instanceof zzgb)) {
return z ? "-" : String.valueOf(obj);
}
str = ((zzgb) obj).zza;
return str;
}
@VisibleForTesting
private static String zzb(String str) {
if (TextUtils.isEmpty(str)) {
return "";
}
int lastIndexOf = str.lastIndexOf(46);
if (lastIndexOf == -1) {
return (zzof.zza() && zzbh.zzby.zza(null).booleanValue()) ? "" : str;
}
return str.substring(0, lastIndexOf);
}
public final String zzx() {
Pair<String, Long> zza;
if (zzk().zzb == null || (zza = zzk().zzb.zza()) == null || zza == zzgl.zza) {
return null;
}
return String.valueOf(zza.second) + CertificateUtil.DELIMITER + ((String) zza.first);
}
@VisibleForTesting
private final String zzy() {
String str;
synchronized (this) {
try {
if (this.zzc == null) {
this.zzc = this.zzu.zzw() != null ? this.zzu.zzw() : "FA";
}
Preconditions.checkNotNull(this.zzc);
str = this.zzc;
} catch (Throwable th) {
throw th;
}
}
return str;
}
public zzfw(zzhj zzhjVar) {
super(zzhjVar);
this.zza = (char) 0;
this.zzb = -1L;
this.zzd = new zzfy(this, 6, false, false);
this.zze = new zzfy(this, 6, true, false);
this.zzf = new zzfy(this, 6, false, true);
this.zzg = new zzfy(this, 5, false, false);
this.zzh = new zzfy(this, 5, true, false);
this.zzi = new zzfy(this, 5, false, true);
this.zzj = new zzfy(this, 4, false, false);
this.zzk = new zzfy(this, 3, false, false);
this.zzl = new zzfy(this, 2, false, false);
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
public final void zza(int i, boolean z, boolean z2, String str, Object obj, Object obj2, Object obj3) {
if (!z && zza(i)) {
zza(i, zza(false, str, obj, obj2, obj3));
}
if (z2 || i < 5) {
return;
}
Preconditions.checkNotNull(str);
zzhg zzo = this.zzu.zzo();
if (zzo == null) {
zza(6, "Scheduler not set. Not logging error/warn");
return;
}
if (!zzo.zzaf()) {
zza(6, "Scheduler not initialized. Not logging error/warn");
return;
}
if (i < 0) {
i = 0;
}
if (i >= 9) {
i = 8;
}
zzo.zzb(new zzfz(this, i, str, obj, obj2, obj3));
}
@VisibleForTesting
public final void zza(int i, String str) {
Log.println(i, zzy(), str);
}
@VisibleForTesting
public final boolean zza(int i) {
return Log.isLoggable(zzy(), i);
}
}

View File

@@ -0,0 +1,45 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Looper;
import androidx.annotation.NonNull;
import com.google.android.gms.common.GooglePlayServicesUtilLight;
import com.google.android.gms.common.internal.BaseGmsClient;
/* loaded from: classes3.dex */
public final class zzfx extends BaseGmsClient<zzfp> {
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final int getMinApkVersion() {
return GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
@NonNull
public final String getServiceDescriptor() {
return "com.google.android.gms.measurement.internal.IMeasurementService";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
@NonNull
public final String getStartServiceAction() {
return "com.google.android.gms.measurement.START";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final /* synthetic */ zzfp createServiceInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.measurement.internal.IMeasurementService");
if (queryLocalInterface instanceof zzfp) {
return (zzfp) queryLocalInterface;
}
return new zzfr(iBinder);
}
public zzfx(Context context, Looper looper, BaseGmsClient.BaseConnectionCallbacks baseConnectionCallbacks, BaseGmsClient.BaseOnConnectionFailedListener baseOnConnectionFailedListener) {
super(context, looper, 93, baseConnectionCallbacks, baseOnConnectionFailedListener, null);
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
public final class zzfy {
private final int zza;
private final boolean zzb;
private final boolean zzc;
private final /* synthetic */ zzfw zzd;
public zzfy(zzfw zzfwVar, int i, boolean z, boolean z2) {
this.zzd = zzfwVar;
this.zza = i;
this.zzb = z;
this.zzc = z2;
}
public final void zza(String str) {
this.zzd.zza(this.zza, this.zzb, this.zzc, str, null, null, null);
}
public final void zza(String str, Object obj) {
this.zzd.zza(this.zza, this.zzb, this.zzc, str, obj, null, null);
}
public final void zza(String str, Object obj, Object obj2) {
this.zzd.zza(this.zza, this.zzb, this.zzc, str, obj, obj2, null);
}
public final void zza(String str, Object obj, Object obj2, Object obj3) {
this.zzd.zza(this.zza, this.zzb, this.zzc, str, obj, obj2, obj3);
}
}

View File

@@ -0,0 +1,58 @@
package com.google.android.gms.measurement.internal;
import com.facebook.internal.security.CertificateUtil;
/* loaded from: classes3.dex */
final class zzfz implements Runnable {
private final /* synthetic */ int zza;
private final /* synthetic */ String zzb;
private final /* synthetic */ Object zzc;
private final /* synthetic */ Object zzd;
private final /* synthetic */ Object zze;
private final /* synthetic */ zzfw zzf;
public zzfz(zzfw zzfwVar, int i, String str, Object obj, Object obj2, Object obj3) {
this.zza = i;
this.zzb = str;
this.zzc = obj;
this.zzd = obj2;
this.zze = obj3;
this.zzf = zzfwVar;
}
@Override // java.lang.Runnable
public final void run() {
char c;
long j;
char c2;
long j2;
zzgl zzn = this.zzf.zzu.zzn();
if (!zzn.zzaf()) {
this.zzf.zza(6, "Persisted config not initialized. Not logging error/warn");
return;
}
c = this.zzf.zza;
if (c == 0) {
if (this.zzf.zze().zzy()) {
this.zzf.zza = 'C';
} else {
this.zzf.zza = 'c';
}
}
j = this.zzf.zzb;
if (j < 0) {
this.zzf.zzb = 95001L;
}
char charAt = "01VDIWEA?".charAt(this.zza);
c2 = this.zzf.zza;
j2 = this.zzf.zzb;
String str = "2" + charAt + c2 + j2 + CertificateUtil.DELIMITER + zzfw.zza(true, this.zzb, this.zzc, this.zzd, this.zze);
if (str.length() > 1024) {
str = this.zzb.substring(0, 1024);
}
zzgp zzgpVar = zzn.zzb;
if (zzgpVar != null) {
zzgpVar.zza(str, 1L);
}
}
}

View File

@@ -0,0 +1,49 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.WorkerThread;
/* loaded from: classes3.dex */
abstract class zzg extends zzd {
private boolean zza;
public zzg(zzhj zzhjVar) {
super(zzhjVar);
this.zzu.zzaa();
}
@WorkerThread
public void zzx() {
}
public final boolean zzy() {
return this.zza;
}
public abstract boolean zzz();
public final void zzu() {
if (!zzy()) {
throw new IllegalStateException("Not initialized");
}
}
public final void zzv() {
if (this.zza) {
throw new IllegalStateException("Can't initialize twice");
}
if (zzz()) {
return;
}
this.zzu.zzz();
this.zza = true;
}
public final void zzw() {
if (this.zza) {
throw new IllegalStateException("Can't initialize twice");
}
zzx();
this.zzu.zzz();
this.zza = true;
}
}

View File

@@ -0,0 +1,38 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
/* loaded from: classes3.dex */
public final class zzga {
@NonNull
public String zza;
@NonNull
public Bundle zzb;
@NonNull
private String zzc;
private long zzd;
public final zzbf zza() {
return new zzbf(this.zza, new zzba(new Bundle(this.zzb)), this.zzc, this.zzd);
}
public static zzga zza(zzbf zzbfVar) {
return new zzga(zzbfVar.zza, zzbfVar.zzc, zzbfVar.zzb.zzb(), zzbfVar.zzd);
}
public final String toString() {
return "origin=" + this.zzc + ",name=" + this.zza + ",params=" + String.valueOf(this.zzb);
}
private zzga(@NonNull String str, @NonNull String str2, @Nullable Bundle bundle, long j) {
this.zza = str;
this.zzc = str2;
this.zzb = bundle == null ? new Bundle() : bundle;
this.zzd = j;
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzgb {
private final String zza;
public zzgb(String str) {
this.zza = str;
}
}

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.WorkerThread;
import java.util.List;
import java.util.Map;
@WorkerThread
/* loaded from: classes3.dex */
interface zzgc {
void zza(String str, int i, Throwable th, byte[] bArr, Map<String, List<String>> map);
}

View File

@@ -0,0 +1,157 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.util.Clock;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
/* loaded from: classes3.dex */
public final class zzgd extends zznb {
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@Override // com.google.android.gms.measurement.internal.zznb
public final boolean zzc() {
return false;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzs zzg() {
return super.zzg();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzan zzh() {
return super.zzh();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzgw zzm() {
return super.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzmc zzn() {
return super.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzna zzo() {
return super.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zznp g_() {
return super.g_();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
public zzgd(zznc zzncVar) {
super(zzncVar);
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
public final boolean zzu() {
zzak();
ConnectivityManager connectivityManager = (ConnectivityManager) zza().getSystemService("connectivity");
NetworkInfo networkInfo = null;
if (connectivityManager != null) {
try {
networkInfo = connectivityManager.getActiveNetworkInfo();
} catch (SecurityException unused) {
}
}
return networkInfo != null && networkInfo.isConnected();
}
/* JADX INFO: Access modifiers changed from: private */
@WorkerThread
public static byte[] zza(HttpURLConnection httpURLConnection) throws IOException {
InputStream inputStream = null;
try {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
inputStream = httpURLConnection.getInputStream();
byte[] bArr = new byte[1024];
while (true) {
int read = inputStream.read(bArr);
if (read > 0) {
byteArrayOutputStream.write(bArr, 0, read);
} else {
byte[] byteArray = byteArrayOutputStream.toByteArray();
inputStream.close();
return byteArray;
}
}
} catch (Throwable th) {
if (inputStream != null) {
inputStream.close();
}
throw th;
}
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import java.util.List;
import java.util.Map;
@WorkerThread
/* loaded from: classes3.dex */
final class zzgf implements Runnable {
private final zzgc zza;
private final int zzb;
private final Throwable zzc;
private final byte[] zzd;
private final String zze;
private final Map<String, List<String>> zzf;
private zzgf(String str, zzgc zzgcVar, int i, Throwable th, byte[] bArr, Map<String, List<String>> map) {
Preconditions.checkNotNull(zzgcVar);
this.zza = zzgcVar;
this.zzb = i;
this.zzc = th;
this.zzd = bArr;
this.zze = str;
this.zzf = map;
}
@Override // java.lang.Runnable
public final void run() {
this.zza.zza(this.zze, this.zzb, this.zzc, this.zzd, this.zzf);
}
}

View File

@@ -0,0 +1,69 @@
package com.google.android.gms.measurement.internal;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import androidx.annotation.MainThread;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
class zzgg extends BroadcastReceiver {
private final zznc zza;
private boolean zzb;
private boolean zzc;
public zzgg(zznc zzncVar) {
Preconditions.checkNotNull(zzncVar);
this.zza = zzncVar;
}
@Override // android.content.BroadcastReceiver
@MainThread
public void onReceive(Context context, Intent intent) {
this.zza.zzs();
String action = intent.getAction();
this.zza.zzj().zzp().zza("NetworkBroadcastReceiver received action", action);
if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action)) {
boolean zzu = this.zza.zzh().zzu();
if (this.zzc != zzu) {
this.zzc = zzu;
this.zza.zzl().zzb(new zzgj(this, zzu));
return;
}
return;
}
this.zza.zzj().zzu().zza("NetworkBroadcastReceiver received unknown action", action);
}
@WorkerThread
public final void zza() {
this.zza.zzs();
this.zza.zzl().zzt();
if (this.zzb) {
return;
}
this.zza.zza().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
this.zzc = this.zza.zzh().zzu();
this.zza.zzj().zzp().zza("Registering connectivity change receiver. Network connected", Boolean.valueOf(this.zzc));
this.zzb = true;
}
@WorkerThread
public final void zzb() {
this.zza.zzs();
this.zza.zzl().zzt();
this.zza.zzl().zzt();
if (this.zzb) {
this.zza.zzj().zzp().zza("Unregistering connectivity change receiver");
this.zzb = false;
this.zzc = false;
try {
this.zza.zza().unregisterReceiver(this);
} catch (IllegalArgumentException e) {
this.zza.zzj().zzg().zza("Failed to unregister the network broadcast receiver", e);
}
}
}
}

View File

@@ -0,0 +1,82 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import java.net.URL;
import java.util.Map;
@WorkerThread
/* loaded from: classes3.dex */
final class zzgh implements Runnable {
private final URL zza;
private final byte[] zzb;
private final zzgc zzc;
private final String zzd;
private final Map<String, String> zze;
private final /* synthetic */ zzgd zzf;
public zzgh(zzgd zzgdVar, String str, URL url, byte[] bArr, Map<String, String> map, zzgc zzgcVar) {
this.zzf = zzgdVar;
Preconditions.checkNotEmpty(str);
Preconditions.checkNotNull(url);
Preconditions.checkNotNull(zzgcVar);
this.zza = url;
this.zzb = bArr;
this.zzc = zzgcVar;
this.zzd = str;
this.zze = map;
}
/* JADX ERROR: JadxRuntimeException in pass: ProcessVariables
jadx.core.utils.exceptions.JadxRuntimeException: Method arg registers not loaded: com.google.android.gms.measurement.internal.zzgf.<init>(java.lang.String, com.google.android.gms.measurement.internal.zzgc, int, java.lang.Throwable, byte[], java.util.Map, com.google.android.gms.measurement.internal.zzge):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:1596)
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:1596)
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:1596)
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:1596)
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:1596)
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:1596)
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:1596)
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:0x0152 */
/* JADX WARN: Removed duplicated region for block: B:28:0x0138 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:37:0x011c */
/* JADX WARN: Removed duplicated region for block: B:40:0x0102 A[EXC_TOP_SPLITTER, SYNTHETIC] */
@Override // java.lang.Runnable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void run() {
/*
Method dump skipped, instructions count: 363
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzgh.run():void");
}
}

View File

@@ -0,0 +1,24 @@
package com.google.android.gms.measurement.internal;
import android.text.TextUtils;
/* loaded from: classes3.dex */
final class zzgi {
private final zziq zza;
public static zzgi zza(String str) {
return new zzgi((TextUtils.isEmpty(str) || str.length() > 1) ? zziq.UNINITIALIZED : zzin.zza(str.charAt(0)));
}
public final zziq zza() {
return this.zza;
}
public final String zzb() {
return String.valueOf(zzin.zza(this.zza));
}
public zzgi(zziq zziqVar) {
this.zza = zziqVar;
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzgj implements Runnable {
private final /* synthetic */ boolean zza;
private final /* synthetic */ zzgg zzb;
public zzgj(zzgg zzggVar, boolean z) {
this.zza = z;
this.zzb = zzggVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zzncVar = this.zzb.zza;
zzncVar.zza(this.zza);
}
}

View File

@@ -0,0 +1,38 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzgk {
private final String zza;
private final boolean zzb;
private boolean zzc;
private boolean zzd;
private final /* synthetic */ zzgl zze;
public zzgk(zzgl zzglVar, String str, boolean z) {
this.zze = zzglVar;
Preconditions.checkNotEmpty(str);
this.zza = str;
this.zzb = z;
}
@WorkerThread
public final void zza(boolean z) {
SharedPreferences.Editor edit = this.zze.zzg().edit();
edit.putBoolean(this.zza, z);
edit.apply();
this.zzd = z;
}
@WorkerThread
public final boolean zza() {
if (!this.zzc) {
this.zzc = true;
this.zzd = this.zze.zzg().getBoolean(this.zza, this.zzb);
}
return this.zzd;
}
}

View File

@@ -0,0 +1,370 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;
import android.util.SparseArray;
import androidx.annotation.WorkerThread;
import com.facebook.gamingservices.cloudgaming.internal.SDKAnalyticsEvents;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.measurement.internal.zzin;
/* loaded from: classes3.dex */
final class zzgl extends zzim {
static final Pair<String, Long> zza = new Pair<>("", 0L);
private long zzaa;
public zzgp zzb;
public final zzgm zzc;
public final zzgm zzd;
public final zzgr zze;
public final zzgm zzf;
public final zzgk zzg;
public final zzgr zzh;
public final zzgn zzi;
public final zzgk zzj;
public final zzgm zzk;
public final zzgm zzl;
public boolean zzm;
public zzgk zzn;
public zzgk zzo;
public zzgm zzp;
public final zzgr zzq;
public final zzgr zzr;
public final zzgm zzs;
public final zzgn zzt;
private SharedPreferences zzv;
private Object zzw;
private SharedPreferences zzx;
private String zzy;
private boolean zzz;
@WorkerThread
public final SharedPreferences zzc() {
zzt();
zzac();
if (this.zzx == null) {
synchronized (this.zzw) {
try {
if (this.zzx == null) {
String str = zza().getPackageName() + "_preferences";
zzj().zzp().zza("Default prefs file", str);
this.zzx = zza().getSharedPreferences(str, 0);
}
} finally {
}
}
}
return this.zzx;
}
@Override // com.google.android.gms.measurement.internal.zzim
public final boolean zzo() {
return true;
}
@WorkerThread
public final SharedPreferences zzg() {
zzt();
zzac();
Preconditions.checkNotNull(this.zzv);
return this.zzv;
}
@WorkerThread
public final Pair<String, Boolean> zza(String str) {
zzt();
if (!zzn().zza(zzin.zza.AD_STORAGE)) {
return new Pair<>("", Boolean.FALSE);
}
long elapsedRealtime = zzb().elapsedRealtime();
if (this.zzy != null && elapsedRealtime < this.zzaa) {
return new Pair<>(this.zzy, Boolean.valueOf(this.zzz));
}
this.zzaa = elapsedRealtime + zze().zzd(str);
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true);
try {
AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(zza());
this.zzy = "";
String id = advertisingIdInfo.getId();
if (id != null) {
this.zzy = id;
}
this.zzz = advertisingIdInfo.isLimitAdTrackingEnabled();
} catch (Exception e) {
zzj().zzc().zza("Unable to get advertising id", e);
this.zzy = "";
}
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false);
return new Pair<>(this.zzy, Boolean.valueOf(this.zzz));
}
public final SparseArray<Long> zzh() {
Bundle zza2 = this.zzi.zza();
if (zza2 == null) {
return new SparseArray<>();
}
int[] intArray = zza2.getIntArray("uriSources");
long[] longArray = zza2.getLongArray("uriTimestamps");
if (intArray == null || longArray == null) {
return new SparseArray<>();
}
if (intArray.length != longArray.length) {
zzj().zzg().zza("Trigger URI source and timestamp array lengths do not match");
return new SparseArray<>();
}
SparseArray<Long> sparseArray = new SparseArray<>();
for (int i = 0; i < intArray.length; i++) {
sparseArray.put(intArray[i], Long.valueOf(longArray[i]));
}
return sparseArray;
}
@WorkerThread
public final zzax zzm() {
zzt();
return zzax.zza(zzg().getString("dma_consent_settings", null));
}
@WorkerThread
public final zzin zzn() {
zzt();
return zzin.zza(zzg().getString("consent_settings", "G1"), zzg().getInt("consent_source", 100));
}
@WorkerThread
public final Boolean zzp() {
zzt();
if (zzg().contains("use_service")) {
return Boolean.valueOf(zzg().getBoolean("use_service", false));
}
return null;
}
@WorkerThread
public final Boolean zzu() {
zzt();
if (zzg().contains("measurement_enabled_from_api")) {
return Boolean.valueOf(zzg().getBoolean("measurement_enabled_from_api", true));
}
return null;
}
@WorkerThread
public final Boolean zzv() {
zzt();
if (zzg().contains("measurement_enabled")) {
return Boolean.valueOf(zzg().getBoolean("measurement_enabled", true));
}
return null;
}
@WorkerThread
public final String zzw() {
zzt();
String string = zzg().getString("previous_os_version", null);
zzf().zzac();
String str = Build.VERSION.RELEASE;
if (!TextUtils.isEmpty(str) && !str.equals(string)) {
SharedPreferences.Editor edit = zzg().edit();
edit.putString("previous_os_version", str);
edit.apply();
}
return string;
}
@WorkerThread
public final String zzx() {
zzt();
return zzg().getString("admob_app_id", null);
}
@WorkerThread
public final String zzy() {
zzt();
return zzg().getString("gmp_app_id", null);
}
public zzgl(zzhj zzhjVar) {
super(zzhjVar);
this.zzw = new Object();
this.zzf = new zzgm(this, "session_timeout", 1800000L);
this.zzg = new zzgk(this, "start_new_session", true);
this.zzk = new zzgm(this, "last_pause_time", 0L);
this.zzl = new zzgm(this, SDKAnalyticsEvents.PARAMETER_SESSION_ID, 0L);
this.zzh = new zzgr(this, "non_personalized_ads", null);
this.zzi = new zzgn(this, "last_received_uri_timestamps_by_source", null);
this.zzj = new zzgk(this, "allow_remote_dynamite", false);
this.zzc = new zzgm(this, "first_open_time", 0L);
this.zzd = new zzgm(this, "app_install_time", 0L);
this.zze = new zzgr(this, "app_instance_id", null);
this.zzn = new zzgk(this, "app_backgrounded", false);
this.zzo = new zzgk(this, "deep_link_retrieval_complete", false);
this.zzp = new zzgm(this, "deep_link_retrieval_attempts", 0L);
this.zzq = new zzgr(this, "firebase_feature_rollouts", null);
this.zzr = new zzgr(this, "deferred_attribution_cache", null);
this.zzs = new zzgm(this, "deferred_attribution_cache_timestamp", 0L);
this.zzt = new zzgn(this, "default_event_parameters", null);
}
@WorkerThread
public final void zzz() {
zzt();
Boolean zzv = zzv();
SharedPreferences.Editor edit = zzg().edit();
edit.clear();
edit.apply();
if (zzv != null) {
zza(zzv);
}
}
@Override // com.google.android.gms.measurement.internal.zzim
@WorkerThread
public final void zzaa() {
SharedPreferences sharedPreferences = zza().getSharedPreferences("com.google.android.gms.measurement.prefs", 0);
this.zzv = sharedPreferences;
boolean z = sharedPreferences.getBoolean("has_been_opened", false);
this.zzm = z;
if (!z) {
SharedPreferences.Editor edit = this.zzv.edit();
edit.putBoolean("has_been_opened", true);
edit.apply();
}
this.zzb = new zzgp(this, "health_monitor", Math.max(0L, zzbh.zzc.zza(null).longValue()));
}
@WorkerThread
public final void zzb(String str) {
zzt();
SharedPreferences.Editor edit = zzg().edit();
edit.putString("admob_app_id", str);
edit.apply();
}
@WorkerThread
public final void zzc(String str) {
zzt();
SharedPreferences.Editor edit = zzg().edit();
edit.putString("gmp_app_id", str);
edit.apply();
}
@WorkerThread
public final void zza(Boolean bool) {
zzt();
SharedPreferences.Editor edit = zzg().edit();
if (bool != null) {
edit.putBoolean("measurement_enabled", bool.booleanValue());
} else {
edit.remove("measurement_enabled");
}
edit.apply();
}
@WorkerThread
public final void zzb(Boolean bool) {
zzt();
SharedPreferences.Editor edit = zzg().edit();
if (bool != null) {
edit.putBoolean("measurement_enabled_from_api", bool.booleanValue());
} else {
edit.remove("measurement_enabled_from_api");
}
edit.apply();
}
@WorkerThread
public final void zza(boolean z) {
zzt();
SharedPreferences.Editor edit = zzg().edit();
edit.putBoolean("use_service", z);
edit.apply();
}
@WorkerThread
public final void zzb(boolean z) {
zzt();
zzj().zzp().zza("App measurement setting deferred collection", Boolean.valueOf(z));
SharedPreferences.Editor edit = zzg().edit();
edit.putBoolean("deferred_analytics_collection", z);
edit.apply();
}
public final void zza(SparseArray<Long> sparseArray) {
if (sparseArray == null) {
this.zzi.zza(null);
return;
}
int[] iArr = new int[sparseArray.size()];
long[] jArr = new long[sparseArray.size()];
for (int i = 0; i < sparseArray.size(); i++) {
iArr[i] = sparseArray.keyAt(i);
jArr[i] = sparseArray.valueAt(i).longValue();
}
Bundle bundle = new Bundle();
bundle.putIntArray("uriSources", iArr);
bundle.putLongArray("uriTimestamps", jArr);
this.zzi.zza(bundle);
}
@WorkerThread
public final boolean zzab() {
SharedPreferences sharedPreferences = this.zzv;
if (sharedPreferences == null) {
return false;
}
return sharedPreferences.contains("deferred_analytics_collection");
}
public final boolean zza(long j) {
return j - this.zzf.zza() > this.zzk.zza();
}
@WorkerThread
public final boolean zza(zzax zzaxVar) {
zzt();
if (!zzin.zza(zzaxVar.zza(), zzm().zza())) {
return false;
}
SharedPreferences.Editor edit = zzg().edit();
edit.putString("dma_consent_settings", zzaxVar.zzf());
edit.apply();
return true;
}
@WorkerThread
public final boolean zza(zzin zzinVar) {
zzt();
int zza2 = zzinVar.zza();
if (!zza(zza2)) {
return false;
}
SharedPreferences.Editor edit = zzg().edit();
edit.putString("consent_settings", zzinVar.zzh());
edit.putInt("consent_source", zza2);
edit.apply();
return true;
}
@WorkerThread
public final boolean zza(int i) {
return zzin.zza(i, zzg().getInt("consent_source", 100));
}
@WorkerThread
public final boolean zza(zzms zzmsVar) {
zzt();
String string = zzg().getString("stored_tcf_param", "");
String zzc = zzmsVar.zzc();
if (zzc.equals(string)) {
return false;
}
SharedPreferences.Editor edit = zzg().edit();
edit.putString("stored_tcf_param", zzc);
edit.apply();
return true;
}
}

View File

@@ -0,0 +1,38 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzgm {
private final String zza;
private final long zzb;
private boolean zzc;
private long zzd;
private final /* synthetic */ zzgl zze;
@WorkerThread
public final long zza() {
if (!this.zzc) {
this.zzc = true;
this.zzd = this.zze.zzg().getLong(this.zza, this.zzb);
}
return this.zzd;
}
public zzgm(zzgl zzglVar, String str, long j) {
this.zze = zzglVar;
Preconditions.checkNotEmpty(str);
this.zza = str;
this.zzb = j;
}
@WorkerThread
public final void zza(long j) {
SharedPreferences.Editor edit = this.zze.zzg().edit();
edit.putLong(this.zza, j);
edit.apply();
this.zzd = j;
}
}

View File

@@ -0,0 +1,106 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.measurement.zzpd;
import com.ironsource.nb;
import csdk.gluads.Consts;
import java.util.Arrays;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes3.dex */
public final class zzgn {
private final String zza;
private final Bundle zzb;
private Bundle zzc;
private final /* synthetic */ zzgl zzd;
/* JADX WARN: Removed duplicated region for block: B:27:0x0089 */
/* JADX WARN: Removed duplicated region for block: B:62:0x0120 A[Catch: NumberFormatException | JSONException -> 0x0128, NumberFormatException | JSONException -> 0x0128, TRY_LEAVE, TryCatch #1 {NumberFormatException | JSONException -> 0x0128, blocks: (B:13:0x0025, B:31:0x0091, B:31:0x0091, B:34:0x00a2, B:34:0x00a2, B:36:0x00a8, B:36:0x00a8, B:38:0x00b6, B:38:0x00b6, B:40:0x00c8, B:40:0x00c8, B:42:0x00d1, B:42:0x00d1, B:46:0x00d5, B:46:0x00d5, B:48:0x00db, B:48:0x00db, B:50:0x00e9, B:50:0x00e9, B:52:0x00fb, B:52:0x00fb, B:54:0x0104, B:54:0x0104, B:58:0x0108, B:58:0x0108, B:60:0x0114, B:60:0x0114, B:62:0x0120, B:62:0x0120, B:64:0x0052, B:67:0x005c, B:70:0x0066, B:73:0x0070, B:76:0x007a), top: B:12:0x0025, outer: #0 }] */
@androidx.annotation.WorkerThread
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final android.os.Bundle zza() {
/*
Method dump skipped, instructions count: 344
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzgn.zza():android.os.Bundle");
}
private final String zzb(Bundle bundle) {
JSONArray jSONArray = new JSONArray();
for (String str : bundle.keySet()) {
Object obj = bundle.get(str);
if (obj != null) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put(nb.q, str);
if (zzpd.zza() && this.zzd.zze().zza(zzbh.zzcc)) {
if (obj instanceof String) {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, String.valueOf(obj));
jSONObject.put("t", "s");
} else if (obj instanceof Long) {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, String.valueOf(obj));
jSONObject.put("t", "l");
} else if (obj instanceof int[]) {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, Arrays.toString((int[]) obj));
jSONObject.put("t", "ia");
} else if (obj instanceof long[]) {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, Arrays.toString((long[]) obj));
jSONObject.put("t", "la");
} else if (obj instanceof Double) {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, String.valueOf(obj));
jSONObject.put("t", "d");
} else {
this.zzd.zzj().zzg().zza("Cannot serialize bundle value to SharedPreferences. Type", obj.getClass());
}
} else {
jSONObject.put(Consts.KEY_TAPJOY_USER_ID_VERSION, String.valueOf(obj));
if (obj instanceof String) {
jSONObject.put("t", "s");
} else if (obj instanceof Long) {
jSONObject.put("t", "l");
} else if (obj instanceof Double) {
jSONObject.put("t", "d");
} else {
this.zzd.zzj().zzg().zza("Cannot serialize bundle value to SharedPreferences. Type", obj.getClass());
}
}
jSONArray.put(jSONObject);
} catch (JSONException e) {
this.zzd.zzj().zzg().zza("Cannot serialize bundle value to SharedPreferences", e);
}
}
}
return jSONArray.toString();
}
public zzgn(zzgl zzglVar, String str, Bundle bundle) {
this.zzd = zzglVar;
Preconditions.checkNotEmpty(str);
this.zza = str;
this.zzb = new Bundle();
}
@WorkerThread
public final void zza(Bundle bundle) {
if (bundle == null) {
bundle = new Bundle();
}
SharedPreferences.Editor edit = this.zzd.zzg().edit();
if (bundle.size() == 0) {
edit.remove(this.zza);
} else {
edit.putString(this.zza, zzb(bundle));
}
edit.apply();
this.zzc = bundle;
}
}

View File

@@ -0,0 +1,94 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import android.util.Pair;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzgp {
private final String zza;
private final String zzb;
private final String zzc;
private final long zzd;
private final /* synthetic */ zzgl zze;
@WorkerThread
private final long zzb() {
return this.zze.zzg().getLong(this.zza, 0L);
}
@WorkerThread
public final Pair<String, Long> zza() {
long abs;
this.zze.zzt();
this.zze.zzt();
long zzb = zzb();
if (zzb == 0) {
zzc();
abs = 0;
} else {
abs = Math.abs(zzb - this.zze.zzb().currentTimeMillis());
}
long j = this.zzd;
if (abs < j) {
return null;
}
if (abs > (j << 1)) {
zzc();
return null;
}
String string = this.zze.zzg().getString(this.zzc, null);
long j2 = this.zze.zzg().getLong(this.zzb, 0L);
zzc();
return (string == null || j2 <= 0) ? zzgl.zza : new Pair<>(string, Long.valueOf(j2));
}
private zzgp(zzgl zzglVar, String str, long j) {
this.zze = zzglVar;
Preconditions.checkNotEmpty(str);
Preconditions.checkArgument(j > 0);
this.zza = str + ":start";
this.zzb = str + ":count";
this.zzc = str + ":value";
this.zzd = j;
}
@WorkerThread
private final void zzc() {
this.zze.zzt();
long currentTimeMillis = this.zze.zzb().currentTimeMillis();
SharedPreferences.Editor edit = this.zze.zzg().edit();
edit.remove(this.zzb);
edit.remove(this.zzc);
edit.putLong(this.zza, currentTimeMillis);
edit.apply();
}
@WorkerThread
public final void zza(String str, long j) {
this.zze.zzt();
if (zzb() == 0) {
zzc();
}
if (str == null) {
str = "";
}
long j2 = this.zze.zzg().getLong(this.zzb, 0L);
if (j2 <= 0) {
SharedPreferences.Editor edit = this.zze.zzg().edit();
edit.putString(this.zzc, str);
edit.putLong(this.zzb, 1L);
edit.apply();
return;
}
long j3 = j2 + 1;
boolean z = (this.zze.zzq().zzv().nextLong() & Long.MAX_VALUE) < Long.MAX_VALUE / j3;
SharedPreferences.Editor edit2 = this.zze.zzg().edit();
if (z) {
edit2.putString(this.zzc, str);
}
edit2.putLong(this.zzb, j3);
edit2.apply();
}
}

View File

@@ -0,0 +1,54 @@
package com.google.android.gms.measurement.internal;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.wrappers.PackageManagerWrapper;
import com.google.android.gms.common.wrappers.Wrappers;
/* loaded from: classes3.dex */
public final class zzgq {
final zzhj zza;
@VisibleForTesting
@WorkerThread
public final Bundle zza(String str, com.google.android.gms.internal.measurement.zzbz zzbzVar) {
this.zza.zzl().zzt();
if (zzbzVar == null) {
this.zza.zzj().zzu().zza("Attempting to use Install Referrer Service while it is not initialized");
return null;
}
Bundle bundle = new Bundle();
bundle.putString("package_name", str);
try {
Bundle zza = zzbzVar.zza(bundle);
if (zza != null) {
return zza;
}
this.zza.zzj().zzg().zza("Install Referrer Service returned a null response");
return null;
} catch (Exception e) {
this.zza.zzj().zzg().zza("Exception occurred while retrieving the Install Referrer", e.getMessage());
return null;
}
}
public zzgq(zznc zzncVar) {
this.zza = zzncVar.zzk();
}
@VisibleForTesting
public final boolean zza() {
try {
PackageManagerWrapper packageManager = Wrappers.packageManager(this.zza.zza());
if (packageManager != null) {
return packageManager.getPackageInfo("com.android.vending", 128).versionCode >= 80837300;
}
this.zza.zzj().zzp().zza("Failed to get PackageManager for Install Referrer Play Store compatibility check");
return false;
} catch (Exception e) {
this.zza.zzj().zzp().zza("Failed to retrieve Play Store version for Install Referrer", e);
return false;
}
}
}

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.measurement.internal;
import android.content.SharedPreferences;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzgr {
private final String zza;
private boolean zzb;
private String zzc;
private final /* synthetic */ zzgl zzd;
@WorkerThread
public final String zza() {
if (!this.zzb) {
this.zzb = true;
this.zzc = this.zzd.zzg().getString(this.zza, null);
}
return this.zzc;
}
public zzgr(zzgl zzglVar, String str, String str2) {
this.zzd = zzglVar;
Preconditions.checkNotEmpty(str);
this.zza = str;
}
@WorkerThread
public final void zza(String str) {
SharedPreferences.Editor edit = this.zzd.zzg().edit();
edit.putString(this.zza, str);
edit.apply();
this.zzc = str;
}
}

View File

@@ -0,0 +1,72 @@
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;
import com.google.android.gms.internal.measurement.zzok;
/* loaded from: classes3.dex */
final class zzgs implements Runnable {
private final /* synthetic */ com.google.android.gms.internal.measurement.zzbz zza;
private final /* synthetic */ ServiceConnection zzb;
private final /* synthetic */ zzgt zzc;
public zzgs(zzgt zzgtVar, com.google.android.gms.internal.measurement.zzbz zzbzVar, ServiceConnection serviceConnection) {
this.zza = zzbzVar;
this.zzb = serviceConnection;
this.zzc = zzgtVar;
}
@Override // java.lang.Runnable
public final void run() {
String str;
zzgt zzgtVar = this.zzc;
zzgq zzgqVar = zzgtVar.zza;
str = zzgtVar.zzb;
com.google.android.gms.internal.measurement.zzbz zzbzVar = this.zza;
ServiceConnection serviceConnection = this.zzb;
Bundle zza = zzgqVar.zza(str, zzbzVar);
zzgqVar.zza.zzl().zzt();
zzgqVar.zza.zzy();
if (zza != null) {
long j = zza.getLong("install_begin_timestamp_seconds", 0L) * 1000;
if (j == 0) {
zzgqVar.zza.zzj().zzu().zza("Service response is missing Install Referrer install timestamp");
} else {
String string = zza.getString("install_referrer");
if (string == null || string.isEmpty()) {
zzgqVar.zza.zzj().zzg().zza("No referrer defined in Install Referrer response");
} else {
zzgqVar.zza.zzj().zzp().zza("InstallReferrer API result", string);
Bundle zza2 = zzgqVar.zza.zzt().zza(Uri.parse("?" + string), zzok.zza() && zzgqVar.zza.zzf().zza(zzbh.zzcp));
if (zza2 == null) {
zzgqVar.zza.zzj().zzg().zza("No campaign params defined in Install Referrer result");
} else {
String string2 = zza2.getString("medium");
if (string2 != null && !"(not set)".equalsIgnoreCase(string2) && !"organic".equalsIgnoreCase(string2)) {
long j2 = zza.getLong("referrer_click_timestamp_seconds", 0L) * 1000;
if (j2 == 0) {
zzgqVar.zza.zzj().zzg().zza("Install Referrer is missing click timestamp for ad campaign");
} else {
zza2.putLong("click_timestamp", j2);
}
}
if (j == zzgqVar.zza.zzn().zzd.zza()) {
zzgqVar.zza.zzj().zzp().zza("Logging Install Referrer campaign from module while it may have already been logged.");
}
if (zzgqVar.zza.zzac()) {
zzgqVar.zza.zzn().zzd.zza(j);
zzgqVar.zza.zzj().zzp().zza("Logging Install Referrer campaign from gmscore with ", "referrer API v2");
zza2.putString("_cis", "referrer API v2");
zzgqVar.zza.zzp().zza("auto", "_cmp", zza2, str);
}
}
}
}
}
if (serviceConnection != null) {
ConnectionTracker.getInstance().unbindService(zzgqVar.zza.zza(), serviceConnection);
}
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.measurement.internal;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import androidx.annotation.MainThread;
/* loaded from: classes3.dex */
public final class zzgt implements ServiceConnection {
final /* synthetic */ zzgq zza;
private final String zzb;
public zzgt(zzgq zzgqVar, String str) {
this.zza = zzgqVar;
this.zzb = str;
}
@Override // android.content.ServiceConnection
@MainThread
public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
if (iBinder == null) {
this.zza.zza.zzj().zzu().zza("Install Referrer connection returned with null binder");
return;
}
try {
com.google.android.gms.internal.measurement.zzbz zza = com.google.android.gms.internal.measurement.zzby.zza(iBinder);
if (zza == null) {
this.zza.zza.zzj().zzu().zza("Install Referrer Service implementation was not found");
} else {
this.zza.zza.zzj().zzp().zza("Install Referrer Service connected");
this.zza.zza.zzl().zzb(new zzgs(this, zza, this));
}
} catch (RuntimeException e) {
this.zza.zza.zzj().zzu().zza("Exception occurred while calling Install Referrer API", e);
}
}
@Override // android.content.ServiceConnection
@MainThread
public final void onServiceDisconnected(ComponentName componentName) {
this.zza.zza.zzj().zzp().zza("Install Referrer Service disconnected");
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.MainThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzgu {
private final zza zza;
public interface zza {
void doStartService(Context context, Intent intent);
}
public zzgu(zza zzaVar) {
Preconditions.checkNotNull(zzaVar);
this.zza = zzaVar;
}
@MainThread
public final void zza(Context context, Intent intent) {
zzfw zzj = zzhj.zza(context, null, null).zzj();
if (intent == null) {
zzj.zzu().zza("Receiver called with null intent");
return;
}
String action = intent.getAction();
zzj.zzp().zza("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");
zzj.zzp().zza("Starting wakeful intent.");
this.zza.doStartService(context, className);
return;
}
if ("com.android.vending.INSTALL_REFERRER".equals(action)) {
zzj.zzu().zza("Install Referrer Broadcasts are deprecated");
}
}
}

View File

@@ -0,0 +1,685 @@
package com.google.android.gms.measurement.internal;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteException;
import android.text.TextUtils;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import androidx.collection.ArrayMap;
import androidx.collection.LruCache;
import com.facebook.devicerequests.internal.DeviceRequestsHelper;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
import com.google.android.gms.internal.measurement.zzfj;
import com.google.android.gms.internal.measurement.zzft;
import com.google.android.gms.measurement.internal.zzin;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.concurrent.Callable;
/* loaded from: classes3.dex */
public final class zzgw extends zznb implements zzag {
@VisibleForTesting
final LruCache<String, com.google.android.gms.internal.measurement.zzb> zza;
final com.google.android.gms.internal.measurement.zzv zzb;
private final Map<String, Map<String, String>> zzc;
@VisibleForTesting
private final Map<String, Set<String>> zzd;
@VisibleForTesting
private final Map<String, Map<String, Boolean>> zze;
@VisibleForTesting
private final Map<String, Map<String, Boolean>> zzg;
private final Map<String, zzfj.zzd> zzh;
private final Map<String, Map<String, Integer>> zzi;
private final Map<String, String> zzj;
private final Map<String, String> zzk;
private final Map<String, String> zzl;
@WorkerThread
public final int zzb(String str, String str2) {
Integer num;
zzt();
zzv(str);
Map<String, Integer> map = this.zzi.get(str);
if (map == null || (num = map.get(str2)) == null) {
return 1;
}
return num.intValue();
}
@Override // com.google.android.gms.measurement.internal.zznb
public final boolean zzc() {
return false;
}
@WorkerThread
public final long zza(String str) {
String zza = zza(str, "measurement.account.time_zone_offset_minutes");
if (TextUtils.isEmpty(zza)) {
return 0L;
}
try {
return Long.parseLong(zza);
} catch (NumberFormatException e) {
zzj().zzu().zza("Unable to parse timezone offset. appId", zzfw.zza(str), e);
return 0L;
}
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
public static /* synthetic */ com.google.android.gms.internal.measurement.zzb zza(zzgw zzgwVar, String str) {
zzgwVar.zzak();
Preconditions.checkNotEmpty(str);
if (!zzgwVar.zzl(str)) {
return null;
}
if (zzgwVar.zzh.containsKey(str) && zzgwVar.zzh.get(str) != null) {
zzgwVar.zza(str, zzgwVar.zzh.get(str));
} else {
zzgwVar.zzv(str);
}
return zzgwVar.zza.snapshot().get(str);
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzs zzg() {
return super.zzg();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzan zzh() {
return super.zzh();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzgw zzm() {
return super.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@WorkerThread
public final zziq zza(String str, zzin.zza zzaVar) {
zzt();
zzv(str);
zzfj.zza zzb = zzb(str);
if (zzb == null) {
return zziq.UNINITIALIZED;
}
for (zzfj.zza.zzb zzbVar : zzb.zzf()) {
if (zza(zzbVar.zzc()) == zzaVar) {
int i = zzhe.zzc[zzbVar.zzb().ordinal()];
if (i == 1) {
return zziq.DENIED;
}
if (i == 2) {
return zziq.GRANTED;
}
return zziq.UNINITIALIZED;
}
}
return zziq.UNINITIALIZED;
}
@WorkerThread
public final zzin.zza zzb(String str, zzin.zza zzaVar) {
zzt();
zzv(str);
zzfj.zza zzb = zzb(str);
if (zzb == null) {
return null;
}
for (zzfj.zza.zzc zzcVar : zzb.zze()) {
if (zzaVar == zza(zzcVar.zzc())) {
return zza(zzcVar.zzb());
}
}
return null;
}
private static zzin.zza zza(zzfj.zza.zze zzeVar) {
int i = zzhe.zzb[zzeVar.ordinal()];
if (i == 1) {
return zzin.zza.AD_STORAGE;
}
if (i == 2) {
return zzin.zza.ANALYTICS_STORAGE;
}
if (i == 3) {
return zzin.zza.AD_USER_DATA;
}
if (i != 4) {
return null;
}
return zzin.zza.AD_PERSONALIZATION;
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzmc zzn() {
return super.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zzna zzo() {
return super.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzmy
public final /* bridge */ /* synthetic */ zznp g_() {
return super.g_();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
@WorkerThread
public final zzfj.zza zzb(String str) {
zzt();
zzv(str);
zzfj.zzd zzc = zzc(str);
if (zzc == null || !zzc.zzp()) {
return null;
}
return zzc.zzd();
}
@WorkerThread
public final zzfj.zzd zzc(String str) {
zzak();
zzt();
Preconditions.checkNotEmpty(str);
zzv(str);
return this.zzh.get(str);
}
@WorkerThread
private final zzfj.zzd zza(String str, byte[] bArr) {
if (bArr == null) {
return zzfj.zzd.zzg();
}
try {
zzfj.zzd zzdVar = (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) ((zzfj.zzd.zza) zznp.zza(zzfj.zzd.zze(), bArr)).zzag());
zzj().zzp().zza("Parsed config. version, gmp_app_id", zzdVar.zzs() ? Long.valueOf(zzdVar.zzc()) : null, zzdVar.zzq() ? zzdVar.zzi() : null);
return zzdVar;
} catch (com.google.android.gms.internal.measurement.zzjt e) {
zzj().zzu().zza("Unable to merge remote config. appId", zzfw.zza(str), e);
return zzfj.zzd.zzg();
} catch (RuntimeException e2) {
zzj().zzu().zza("Unable to merge remote config. appId", zzfw.zza(str), e2);
return zzfj.zzd.zzg();
}
}
@Override // com.google.android.gms.measurement.internal.zzag
@WorkerThread
public final String zza(String str, String str2) {
zzt();
zzv(str);
Map<String, String> map = this.zzc.get(str);
if (map != null) {
return map.get(str2);
}
return null;
}
@WorkerThread
public final String zzd(String str) {
zzt();
return this.zzl.get(str);
}
@WorkerThread
public final String zze(String str) {
zzt();
return this.zzk.get(str);
}
@WorkerThread
public final String zzf(String str) {
zzt();
zzv(str);
return this.zzj.get(str);
}
private static Map<String, String> zza(zzfj.zzd zzdVar) {
ArrayMap arrayMap = new ArrayMap();
if (zzdVar != null) {
for (zzfj.zzg zzgVar : zzdVar.zzn()) {
arrayMap.put(zzgVar.zzb(), zzgVar.zzc());
}
}
return arrayMap;
}
@WorkerThread
public final Set<String> zzg(String str) {
zzt();
zzv(str);
return this.zzd.get(str);
}
@WorkerThread
public final SortedSet<String> zzh(String str) {
zzt();
zzv(str);
TreeSet treeSet = new TreeSet();
zzfj.zza zzb = zzb(str);
if (zzb == null) {
return treeSet;
}
Iterator<zzfj.zza.zzf> it = zzb.zzc().iterator();
while (it.hasNext()) {
treeSet.add(it.next().zzb());
}
return treeSet;
}
public zzgw(zznc zzncVar) {
super(zzncVar);
this.zzc = new ArrayMap();
this.zzd = new ArrayMap();
this.zze = new ArrayMap();
this.zzg = new ArrayMap();
this.zzh = new ArrayMap();
this.zzj = new ArrayMap();
this.zzk = new ArrayMap();
this.zzl = new ArrayMap();
this.zzi = new ArrayMap();
this.zza = new zzgz(this, 20);
this.zzb = new zzhc(this);
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzr() {
super.zzr();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzt() {
super.zzt();
}
@WorkerThread
public final void zzi(String str) {
zzt();
this.zzk.put(str, null);
}
private final void zza(String str, zzfj.zzd.zza zzaVar) {
HashSet hashSet = new HashSet();
ArrayMap arrayMap = new ArrayMap();
ArrayMap arrayMap2 = new ArrayMap();
ArrayMap arrayMap3 = new ArrayMap();
if (zzaVar != null) {
Iterator<zzfj.zzb> it = zzaVar.zze().iterator();
while (it.hasNext()) {
hashSet.add(it.next().zzb());
}
for (int i = 0; i < zzaVar.zza(); i++) {
zzfj.zzc.zza zzca = zzaVar.zza(i).zzca();
if (zzca.zzb().isEmpty()) {
zzj().zzu().zza("EventConfig contained null event name");
} else {
String zzb = zzca.zzb();
String zzb2 = zzir.zzb(zzca.zzb());
if (!TextUtils.isEmpty(zzb2)) {
zzca = zzca.zza(zzb2);
zzaVar.zza(i, zzca);
}
if (zzca.zze() && zzca.zzc()) {
arrayMap.put(zzb, Boolean.TRUE);
}
if (zzca.zzf() && zzca.zzd()) {
arrayMap2.put(zzca.zzb(), Boolean.TRUE);
}
if (zzca.zzg()) {
if (zzca.zza() < 2 || zzca.zza() > 65535) {
zzj().zzu().zza("Invalid sampling rate. Event name, sample rate", zzca.zzb(), Integer.valueOf(zzca.zza()));
} else {
arrayMap3.put(zzca.zzb(), Integer.valueOf(zzca.zza()));
}
}
}
}
}
this.zzd.put(str, hashSet);
this.zze.put(str, arrayMap);
this.zzg.put(str, arrayMap2);
this.zzi.put(str, arrayMap3);
}
@WorkerThread
private final void zzv(String str) {
zzak();
zzt();
Preconditions.checkNotEmpty(str);
if (this.zzh.get(str) == null) {
zzap zzf = zzh().zzf(str);
if (zzf == null) {
this.zzc.put(str, null);
this.zze.put(str, null);
this.zzd.put(str, null);
this.zzg.put(str, null);
this.zzh.put(str, null);
this.zzj.put(str, null);
this.zzk.put(str, null);
this.zzl.put(str, null);
this.zzi.put(str, null);
return;
}
zzfj.zzd.zza zzca = zza(str, zzf.zza).zzca();
zza(str, zzca);
this.zzc.put(str, zza((zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag())));
this.zzh.put(str, (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag()));
zza(str, (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag()));
this.zzj.put(str, zzca.zzc());
this.zzk.put(str, zzf.zzb);
this.zzl.put(str, zzf.zzc);
}
}
@WorkerThread
private final void zza(final String str, zzfj.zzd zzdVar) {
if (zzdVar.zza() == 0) {
this.zza.remove(str);
return;
}
zzj().zzp().zza("EES programs found", Integer.valueOf(zzdVar.zza()));
zzft.zzc zzcVar = zzdVar.zzm().get(0);
try {
com.google.android.gms.internal.measurement.zzb zzbVar = new com.google.android.gms.internal.measurement.zzb();
zzbVar.zza("internal.remoteConfig", new Callable() { // from class: com.google.android.gms.measurement.internal.zzgy
@Override // java.util.concurrent.Callable
public final Object call() {
return new com.google.android.gms.internal.measurement.zzm("internal.remoteConfig", new zzhb(zzgw.this, str));
}
});
zzbVar.zza("internal.appMetadata", new Callable() { // from class: com.google.android.gms.measurement.internal.zzgx
@Override // java.util.concurrent.Callable
public final Object call() {
final zzgw zzgwVar = zzgw.this;
final String str2 = str;
return new com.google.android.gms.internal.measurement.zzx("internal.appMetadata", new Callable() { // from class: com.google.android.gms.measurement.internal.zzgv
@Override // java.util.concurrent.Callable
public final Object call() {
zzgw zzgwVar2 = zzgw.this;
String str3 = str2;
zzf zze = zzgwVar2.zzh().zze(str3);
HashMap hashMap = new HashMap();
hashMap.put("platform", "android");
hashMap.put("package_name", str3);
hashMap.put("gmp_version", 95001L);
if (zze != null) {
String zzaf = zze.zzaf();
if (zzaf != null) {
hashMap.put("app_version", zzaf);
}
hashMap.put("app_version_int", Long.valueOf(zze.zze()));
hashMap.put("dynamite_version", Long.valueOf(zze.zzo()));
}
return hashMap;
}
});
}
});
zzbVar.zza("internal.logger", new Callable() { // from class: com.google.android.gms.measurement.internal.zzha
@Override // java.util.concurrent.Callable
public final Object call() {
return new com.google.android.gms.internal.measurement.zzr(zzgw.this.zzb);
}
});
zzbVar.zza(zzcVar);
this.zza.put(str, zzbVar);
zzj().zzp().zza("EES program loaded for appId, activities", str, Integer.valueOf(zzcVar.zza().zza()));
Iterator<zzft.zzb> it = zzcVar.zza().zzd().iterator();
while (it.hasNext()) {
zzj().zzp().zza("EES program activity", it.next().zzb());
}
} catch (com.google.android.gms.internal.measurement.zzc unused) {
zzj().zzg().zza("Failed to load EES program. appId", str);
}
}
@WorkerThread
public final void zzj(String str) {
zzt();
this.zzh.remove(str);
}
@WorkerThread
public final boolean zzk(String str) {
zzt();
zzfj.zzd zzc = zzc(str);
if (zzc == null) {
return false;
}
return zzc.zzo();
}
public final boolean zzl(String str) {
zzfj.zzd zzdVar;
return (TextUtils.isEmpty(str) || (zzdVar = this.zzh.get(str)) == null || zzdVar.zza() == 0) ? false : true;
}
public final boolean zzm(String str) {
return "1".equals(zza(str, "measurement.upload.blacklist_internal"));
}
@WorkerThread
public final boolean zzc(String str, zzin.zza zzaVar) {
zzt();
zzv(str);
zzfj.zza zzb = zzb(str);
if (zzb == null) {
return false;
}
Iterator<zzfj.zza.zzb> it = zzb.zzd().iterator();
while (true) {
if (!it.hasNext()) {
break;
}
zzfj.zza.zzb next = it.next();
if (zzaVar == zza(next.zzc())) {
if (next.zzb() == zzfj.zza.zzd.GRANTED) {
return true;
}
}
}
return false;
}
@WorkerThread
public final boolean zzn(String str) {
zzt();
zzv(str);
zzfj.zza zzb = zzb(str);
return zzb == null || !zzb.zzh() || zzb.zzg();
}
@WorkerThread
public final boolean zzc(String str, String str2) {
Boolean bool;
zzt();
zzv(str);
if ("ecommerce_purchase".equals(str2) || "purchase".equals(str2) || "refund".equals(str2)) {
return true;
}
Map<String, Boolean> map = this.zzg.get(str);
if (map == null || (bool = map.get(str2)) == null) {
return false;
}
return bool.booleanValue();
}
@WorkerThread
public final boolean zzd(String str, String str2) {
Boolean bool;
zzt();
zzv(str);
if (zzm(str) && zznt.zzg(str2)) {
return true;
}
if (zzo(str) && zznt.zzh(str2)) {
return true;
}
Map<String, Boolean> map = this.zze.get(str);
if (map == null || (bool = map.get(str2)) == null) {
return false;
}
return bool.booleanValue();
}
public final boolean zzo(String str) {
return "1".equals(zza(str, "measurement.upload.blacklist_public"));
}
@WorkerThread
public final boolean zza(String str, byte[] bArr, String str2, String str3) {
zzak();
zzt();
Preconditions.checkNotEmpty(str);
zzfj.zzd.zza zzca = zza(str, bArr).zzca();
if (zzca == null) {
return false;
}
zza(str, zzca);
zza(str, (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag()));
this.zzh.put(str, (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag()));
this.zzj.put(str, zzca.zzc());
this.zzk.put(str, str2);
this.zzl.put(str, str3);
this.zzc.put(str, zza((zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag())));
zzh().zza(str, new ArrayList(zzca.zzd()));
try {
zzca.zzb();
bArr = ((zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag())).zzbx();
} catch (RuntimeException e) {
zzj().zzu().zza("Unable to serialize reduced-size config. Storing full config instead. appId", zzfw.zza(str), e);
}
zzan zzh = zzh();
Preconditions.checkNotEmpty(str);
zzh.zzt();
zzh.zzak();
ContentValues contentValues = new ContentValues();
contentValues.put("remote_config", bArr);
contentValues.put("config_last_modified_time", str2);
contentValues.put("e_tag", str3);
try {
if (zzh.e_().update("apps", contentValues, "app_id = ?", new String[]{str}) == 0) {
zzh.zzj().zzg().zza("Failed to update remote config (got 0). appId", zzfw.zza(str));
}
} catch (SQLiteException e2) {
zzh.zzj().zzg().zza("Error storing remote config. appId", zzfw.zza(str), e2);
}
this.zzh.put(str, (zzfj.zzd) ((com.google.android.gms.internal.measurement.zzjk) zzca.zzag()));
return true;
}
@WorkerThread
public final boolean zzp(String str) {
zzt();
zzv(str);
return this.zzd.get(str) != null && this.zzd.get(str).contains("app_instance_id");
}
@WorkerThread
public final boolean zzq(String str) {
zzt();
zzv(str);
if (this.zzd.get(str) != null) {
return this.zzd.get(str).contains("device_model") || this.zzd.get(str).contains(DeviceRequestsHelper.DEVICE_INFO_PARAM);
}
return false;
}
@WorkerThread
public final boolean zzr(String str) {
zzt();
zzv(str);
return this.zzd.get(str) != null && this.zzd.get(str).contains("enhanced_user_id");
}
@WorkerThread
public final boolean zzs(String str) {
zzt();
zzv(str);
return this.zzd.get(str) != null && this.zzd.get(str).contains("google_signals");
}
@WorkerThread
public final boolean zzt(String str) {
zzt();
zzv(str);
if (this.zzd.get(str) != null) {
return this.zzd.get(str).contains("os_version") || this.zzd.get(str).contains(DeviceRequestsHelper.DEVICE_INFO_PARAM);
}
return false;
}
@WorkerThread
public final boolean zzu(String str) {
zzt();
zzv(str);
return this.zzd.get(str) != null && this.zzd.get(str).contains("user_id");
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.measurement.internal;
import androidx.collection.LruCache;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
final class zzgz extends LruCache<String, com.google.android.gms.internal.measurement.zzb> {
private final /* synthetic */ zzgw zza;
@Override // androidx.collection.LruCache
public final /* synthetic */ com.google.android.gms.internal.measurement.zzb create(String str) {
String str2 = str;
Preconditions.checkNotEmpty(str2);
return zzgw.zza(this.zza, str2);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzgz(zzgw zzgwVar, int i) {
super(20);
this.zza = zzgwVar;
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzh implements Runnable {
private final /* synthetic */ com.google.android.gms.internal.measurement.zzdd zza;
private final /* synthetic */ AppMeasurementDynamiteService zzb;
public zzh(AppMeasurementDynamiteService appMeasurementDynamiteService, com.google.android.gms.internal.measurement.zzdd zzddVar) {
this.zza = zzddVar;
this.zzb = appMeasurementDynamiteService;
}
@Override // java.lang.Runnable
public final void run() {
this.zzb.zza.zzr().zza(this.zza);
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.measurement.internal;
import java.util.Map;
/* loaded from: classes3.dex */
final class zzhb implements com.google.android.gms.internal.measurement.zzo {
private final /* synthetic */ String zza;
private final /* synthetic */ zzgw zzb;
@Override // com.google.android.gms.internal.measurement.zzo
public final String zza(String str) {
Map map;
map = this.zzb.zzc;
Map map2 = (Map) map.get(this.zza);
if (map2 == null || !map2.containsKey(str)) {
return null;
}
return (String) map2.get(str);
}
public zzhb(zzgw zzgwVar, String str) {
this.zza = str;
this.zzb = zzgwVar;
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.measurement.internal;
import java.util.List;
/* loaded from: classes3.dex */
final class zzhc implements com.google.android.gms.internal.measurement.zzv {
private final /* synthetic */ zzgw zza;
public zzhc(zzgw zzgwVar) {
this.zza = zzgwVar;
}
@Override // com.google.android.gms.internal.measurement.zzv
public final void zza(com.google.android.gms.internal.measurement.zzs zzsVar, String str, List<String> list, boolean z, boolean z2) {
int i = zzhe.zza[zzsVar.ordinal()];
zzfy zzn = i != 1 ? i != 2 ? i != 3 ? i != 4 ? this.zza.zzj().zzn() : this.zza.zzj().zzp() : z ? this.zza.zzj().zzw() : !z2 ? this.zza.zzj().zzv() : this.zza.zzj().zzu() : z ? this.zza.zzj().zzm() : !z2 ? this.zza.zzj().zzh() : this.zza.zzj().zzg() : this.zza.zzj().zzc();
int size = list.size();
if (size == 1) {
zzn.zza(str, list.get(0));
return;
}
if (size == 2) {
zzn.zza(str, list.get(0), list.get(1));
} else if (size != 3) {
zzn.zza(str);
} else {
zzn.zza(str, list.get(0), list.get(1), list.get(2));
}
}
}

View File

@@ -0,0 +1,45 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import android.content.res.Resources;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.google.android.gms.common.R;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public final class zzhd {
private final Resources zza;
private final String zzb;
@Nullable
public final String zza(String str) {
int identifier = this.zza.getIdentifier(str, "string", this.zzb);
if (identifier == 0) {
return null;
}
try {
return this.zza.getString(identifier);
} catch (Resources.NotFoundException unused) {
return null;
}
}
public static String zza(Context context) {
try {
return context.getResources().getResourcePackageName(R.string.common_google_play_services_unknown_issue);
} catch (Resources.NotFoundException unused) {
return context.getPackageName();
}
}
public zzhd(Context context, @Nullable String str) {
Preconditions.checkNotNull(context);
this.zza = context.getResources();
if (TextUtils.isEmpty(str)) {
this.zzb = zza(context);
} else {
this.zzb = str;
}
}
}

View File

@@ -0,0 +1,59 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzfj;
/* loaded from: classes3.dex */
final /* synthetic */ class zzhe {
static final /* synthetic */ int[] zza;
static final /* synthetic */ int[] zzb;
static final /* synthetic */ int[] zzc;
static {
int[] iArr = new int[zzfj.zza.zzd.values().length];
zzc = iArr;
try {
iArr[zzfj.zza.zzd.DENIED.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
zzc[zzfj.zza.zzd.GRANTED.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
int[] iArr2 = new int[zzfj.zza.zze.values().length];
zzb = iArr2;
try {
iArr2[zzfj.zza.zze.AD_STORAGE.ordinal()] = 1;
} catch (NoSuchFieldError unused3) {
}
try {
zzb[zzfj.zza.zze.ANALYTICS_STORAGE.ordinal()] = 2;
} catch (NoSuchFieldError unused4) {
}
try {
zzb[zzfj.zza.zze.AD_USER_DATA.ordinal()] = 3;
} catch (NoSuchFieldError unused5) {
}
try {
zzb[zzfj.zza.zze.AD_PERSONALIZATION.ordinal()] = 4;
} catch (NoSuchFieldError unused6) {
}
int[] iArr3 = new int[com.google.android.gms.internal.measurement.zzs.values().length];
zza = iArr3;
try {
iArr3[com.google.android.gms.internal.measurement.zzs.DEBUG.ordinal()] = 1;
} catch (NoSuchFieldError unused7) {
}
try {
zza[com.google.android.gms.internal.measurement.zzs.ERROR.ordinal()] = 2;
} catch (NoSuchFieldError unused8) {
}
try {
zza[com.google.android.gms.internal.measurement.zzs.WARN.ordinal()] = 3;
} catch (NoSuchFieldError unused9) {
}
try {
zza[com.google.android.gms.internal.measurement.zzs.VERBOSE.ordinal()] = 4;
} catch (NoSuchFieldError unused10) {
}
}
}

View File

@@ -0,0 +1,5 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzhf extends RuntimeException {
}

View File

@@ -0,0 +1,219 @@
package com.google.android.gms.measurement.internal;
import android.content.Context;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Clock;
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;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes3.dex */
public final class zzhg extends zzim {
private static final AtomicLong zza = new AtomicLong(Long.MIN_VALUE);
@Nullable
private zzhk zzb;
@Nullable
private zzhk zzc;
private final PriorityBlockingQueue<zzhh<?>> zzd;
private final BlockingQueue<zzhh<?>> zze;
private final Thread.UncaughtExceptionHandler zzf;
private final Thread.UncaughtExceptionHandler zzg;
private final Object zzh;
private final Semaphore zzi;
private volatile boolean zzj;
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Context zza() {
return super.zza();
}
@Override // com.google.android.gms.measurement.internal.zzim
public final boolean zzo() {
return false;
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ Clock zzb() {
return super.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzad zzd() {
return super.zzd();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzae zze() {
return super.zze();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzaz zzf() {
return super.zzf();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzfv zzi() {
return super.zzi();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzfw zzj() {
return super.zzj();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zzgl zzk() {
return super.zzk();
}
@Override // com.google.android.gms.measurement.internal.zzij, com.google.android.gms.measurement.internal.zzil
public final /* bridge */ /* synthetic */ zzhg zzl() {
return super.zzl();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ zznt zzq() {
return super.zzq();
}
@Nullable
public final <T> T zza(AtomicReference<T> atomicReference, long j, String str, Runnable runnable) {
synchronized (atomicReference) {
zzl().zzb(runnable);
try {
atomicReference.wait(j);
} catch (InterruptedException unused) {
zzj().zzu().zza("Interrupted waiting for " + str);
return null;
}
}
T t = atomicReference.get();
if (t == null) {
zzj().zzu().zza("Timed out waiting for " + str);
}
return t;
}
public final <V> Future<V> zza(Callable<V> callable) throws IllegalStateException {
zzac();
Preconditions.checkNotNull(callable);
zzhh<?> zzhhVar = new zzhh<>(this, (Callable<?>) callable, false, "Task exception on worker thread");
if (Thread.currentThread() == this.zzb) {
if (!this.zzd.isEmpty()) {
zzj().zzu().zza("Callable skipped the worker queue.");
}
zzhhVar.run();
} else {
zza(zzhhVar);
}
return zzhhVar;
}
public final <V> Future<V> zzb(Callable<V> callable) throws IllegalStateException {
zzac();
Preconditions.checkNotNull(callable);
zzhh<?> zzhhVar = new zzhh<>(this, (Callable<?>) callable, true, "Task exception on worker thread");
if (Thread.currentThread() == this.zzb) {
zzhhVar.run();
} else {
zza(zzhhVar);
}
return zzhhVar;
}
public zzhg(zzhj zzhjVar) {
super(zzhjVar);
this.zzh = new Object();
this.zzi = new Semaphore(2);
this.zzd = new PriorityBlockingQueue<>();
this.zze = new LinkedBlockingQueue();
this.zzf = new zzhi(this, "Thread death: Uncaught exception on worker thread");
this.zzg = new zzhi(this, "Thread death: Uncaught exception on network thread");
}
@Override // com.google.android.gms.measurement.internal.zzij
public final void zzr() {
if (Thread.currentThread() != this.zzc) {
throw new IllegalStateException("Call expected from network thread");
}
}
@Override // com.google.android.gms.measurement.internal.zzij
public final /* bridge */ /* synthetic */ void zzs() {
super.zzs();
}
@Override // com.google.android.gms.measurement.internal.zzij
public final void zzt() {
if (Thread.currentThread() != this.zzb) {
throw new IllegalStateException("Call expected from worker thread");
}
}
private final void zza(zzhh<?> zzhhVar) {
synchronized (this.zzh) {
try {
this.zzd.add(zzhhVar);
zzhk zzhkVar = this.zzb;
if (zzhkVar == null) {
zzhk zzhkVar2 = new zzhk(this, "Measurement Worker", this.zzd);
this.zzb = zzhkVar2;
zzhkVar2.setUncaughtExceptionHandler(this.zzf);
this.zzb.start();
} else {
zzhkVar.zza();
}
} catch (Throwable th) {
throw th;
}
}
}
public final void zza(Runnable runnable) throws IllegalStateException {
zzac();
Preconditions.checkNotNull(runnable);
zzhh<?> zzhhVar = new zzhh<>(this, runnable, false, "Task exception on network thread");
synchronized (this.zzh) {
try {
this.zze.add(zzhhVar);
zzhk zzhkVar = this.zzc;
if (zzhkVar == null) {
zzhk zzhkVar2 = new zzhk(this, "Measurement Network", this.zze);
this.zzc = zzhkVar2;
zzhkVar2.setUncaughtExceptionHandler(this.zzg);
this.zzc.start();
} else {
zzhkVar.zza();
}
} catch (Throwable th) {
throw th;
}
}
}
public final void zzb(Runnable runnable) throws IllegalStateException {
zzac();
Preconditions.checkNotNull(runnable);
zza(new zzhh<>(this, runnable, false, "Task exception on worker thread"));
}
public final void zzc(Runnable runnable) throws IllegalStateException {
zzac();
Preconditions.checkNotNull(runnable);
zza(new zzhh<>(this, runnable, true, "Task exception on worker thread"));
}
public final boolean zzg() {
return Thread.currentThread() == this.zzb;
}
}

View File

@@ -0,0 +1,77 @@
package com.google.android.gms.measurement.internal;
import androidx.annotation.NonNull;
import com.google.android.gms.common.internal.Preconditions;
import java.lang.Thread;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
import java.util.concurrent.atomic.AtomicLong;
/* loaded from: classes3.dex */
final class zzhh<V> extends FutureTask<V> implements Comparable<zzhh<V>> {
final boolean zza;
private final long zzb;
private final String zzc;
private final /* synthetic */ zzhg zzd;
@Override // java.lang.Comparable
public final /* synthetic */ int compareTo(@NonNull Object obj) {
zzhh zzhhVar = (zzhh) obj;
boolean z = this.zza;
if (z != zzhhVar.zza) {
return z ? -1 : 1;
}
long j = this.zzb;
long j2 = zzhhVar.zzb;
if (j < j2) {
return -1;
}
if (j > j2) {
return 1;
}
this.zzd.zzj().zzm().zza("Two tasks share the same index. index", Long.valueOf(this.zzb));
return 0;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzhh(zzhg zzhgVar, Runnable runnable, boolean z, String str) {
super(com.google.android.gms.internal.measurement.zzcv.zza().zza(runnable), null);
AtomicLong atomicLong;
this.zzd = zzhgVar;
Preconditions.checkNotNull(str);
atomicLong = zzhg.zza;
long andIncrement = atomicLong.getAndIncrement();
this.zzb = andIncrement;
this.zzc = str;
this.zza = z;
if (andIncrement == Long.MAX_VALUE) {
zzhgVar.zzj().zzg().zza("Tasks index overflow");
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public zzhh(zzhg zzhgVar, Callable<V> callable, boolean z, String str) {
super(com.google.android.gms.internal.measurement.zzcv.zza().zza(callable));
AtomicLong atomicLong;
this.zzd = zzhgVar;
Preconditions.checkNotNull(str);
atomicLong = zzhg.zza;
long andIncrement = atomicLong.getAndIncrement();
this.zzb = andIncrement;
this.zzc = str;
this.zza = z;
if (andIncrement == Long.MAX_VALUE) {
zzhgVar.zzj().zzg().zza("Tasks index overflow");
}
}
@Override // java.util.concurrent.FutureTask
public final void setException(Throwable th) {
Thread.UncaughtExceptionHandler defaultUncaughtExceptionHandler;
this.zzd.zzj().zzg().zza(this.zzc, th);
if ((th instanceof zzhf) && (defaultUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler()) != null) {
defaultUncaughtExceptionHandler.uncaughtException(Thread.currentThread(), th);
}
super.setException(th);
}
}

View File

@@ -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: classes3.dex */
final class zzhi implements Thread.UncaughtExceptionHandler {
private final String zza;
private final /* synthetic */ zzhg zzb;
public zzhi(zzhg zzhgVar, String str) {
this.zzb = zzhgVar;
Preconditions.checkNotNull(str);
this.zza = str;
}
@Override // java.lang.Thread.UncaughtExceptionHandler
public final synchronized void uncaughtException(Thread thread, Throwable th) {
this.zzb.zzj().zzg().zza(this.zza, th);
}
}

View File

@@ -0,0 +1,585 @@
package com.google.android.gms.measurement.internal;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;
import androidx.annotation.VisibleForTesting;
import androidx.annotation.WorkerThread;
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
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.zzok;
import java.net.URL;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes3.dex */
public class zzhj implements zzil {
private static volatile zzhj zzb;
@VisibleForTesting
final long zza;
private Boolean zzaa;
private long zzab;
private volatile Boolean zzac;
@VisibleForTesting
private Boolean zzad;
@VisibleForTesting
private Boolean zzae;
private volatile boolean zzaf;
private int zzag;
private int zzah;
private final Context zzc;
private final String zzd;
private final String zze;
private final String zzf;
private final boolean zzg;
private final zzad zzh;
private final zzae zzi;
private final zzgl zzj;
private final zzfw zzk;
private final zzhg zzl;
private final zzml zzm;
private final zznt zzn;
private final zzfv zzo;
private final Clock zzp;
private final zzks zzq;
private final zziz zzr;
private final zza zzs;
private final zzkn zzt;
private final String zzu;
private zzft zzv;
private zzlb zzw;
private zzaz zzx;
private zzfq zzy;
private boolean zzz = false;
private AtomicInteger zzai = new AtomicInteger(0);
@Override // com.google.android.gms.measurement.internal.zzil
public final Context zza() {
return this.zzc;
}
public final void zzaa() {
this.zzag++;
}
public final boolean zzag() {
return this.zzg;
}
@Override // com.google.android.gms.measurement.internal.zzil
public final Clock zzb() {
return this.zzp;
}
@Override // com.google.android.gms.measurement.internal.zzil
public final zzad zzd() {
return this.zzh;
}
public final zzae zzf() {
return this.zzi;
}
public final zzfv zzk() {
return this.zzo;
}
public final zzhg zzo() {
return this.zzl;
}
public final String zzu() {
return this.zzd;
}
public final String zzv() {
return this.zze;
}
public final String zzw() {
return this.zzf;
}
public final String zzx() {
return this.zzu;
}
@WorkerThread
public final int zzc() {
zzl().zzt();
if (this.zzi.zzw()) {
return 1;
}
Boolean bool = this.zzae;
if (bool != null && bool.booleanValue()) {
return 2;
}
if (!zzad()) {
return 8;
}
Boolean zzv = zzn().zzv();
if (zzv != null) {
return zzv.booleanValue() ? 0 : 3;
}
Boolean zzf = this.zzi.zzf("firebase_analytics_collection_enabled");
if (zzf != null) {
return zzf.booleanValue() ? 0 : 4;
}
Boolean bool2 = this.zzad;
return bool2 != null ? bool2.booleanValue() ? 0 : 5 : (this.zzac == null || this.zzac.booleanValue()) ? 0 : 7;
}
public final zza zze() {
zza zzaVar = this.zzs;
if (zzaVar != null) {
return zzaVar;
}
throw new IllegalStateException("Component not created");
}
public final zzaz zzg() {
zza((zzim) this.zzx);
return this.zzx;
}
public final zzfq zzh() {
zza((zzg) this.zzy);
return this.zzy;
}
public final zzft zzi() {
zza((zzg) this.zzv);
return this.zzv;
}
@Override // com.google.android.gms.measurement.internal.zzil
public final zzfw zzj() {
zza((zzim) this.zzk);
return this.zzk;
}
public final zzfw zzm() {
zzfw zzfwVar = this.zzk;
if (zzfwVar == null || !zzfwVar.zzaf()) {
return null;
}
return this.zzk;
}
public final zzgl zzn() {
zza((zzij) this.zzj);
return this.zzj;
}
@Override // com.google.android.gms.measurement.internal.zzil
public final zzhg zzl() {
zza((zzim) this.zzl);
return this.zzl;
}
public static zzhj zza(Context context, com.google.android.gms.internal.measurement.zzdl zzdlVar, Long l) {
Bundle bundle;
if (zzdlVar != null && (zzdlVar.zze == null || zzdlVar.zzf == null)) {
zzdlVar = new com.google.android.gms.internal.measurement.zzdl(zzdlVar.zza, zzdlVar.zzb, zzdlVar.zzc, zzdlVar.zzd, null, null, zzdlVar.zzg, null);
}
Preconditions.checkNotNull(context);
Preconditions.checkNotNull(context.getApplicationContext());
if (zzb == null) {
synchronized (zzhj.class) {
try {
if (zzb == null) {
zzb = new zzhj(new zzix(context, zzdlVar, l));
}
} finally {
}
}
} else if (zzdlVar != null && (bundle = zzdlVar.zzg) != null && bundle.containsKey("dataCollectionDefaultEnabled")) {
Preconditions.checkNotNull(zzb);
zzb.zza(zzdlVar.zzg.getBoolean("dataCollectionDefaultEnabled"));
}
Preconditions.checkNotNull(zzb);
return zzb;
}
public final zziz zzp() {
zza((zzg) this.zzr);
return this.zzr;
}
private final zzkn zzai() {
zza((zzim) this.zzt);
return this.zzt;
}
public final zzks zzq() {
zza((zzg) this.zzq);
return this.zzq;
}
public final zzlb zzr() {
zza((zzg) this.zzw);
return this.zzw;
}
public final zzml zzs() {
zza((zzg) this.zzm);
return this.zzm;
}
public final zznt zzt() {
zza((zzij) this.zzn);
return this.zzn;
}
public static /* synthetic */ void zza(zzhj zzhjVar, zzix zzixVar) {
zzhjVar.zzl().zzt();
zzaz zzazVar = new zzaz(zzhjVar);
zzazVar.zzad();
zzhjVar.zzx = zzazVar;
zzfq zzfqVar = new zzfq(zzhjVar, zzixVar.zzf);
zzfqVar.zzv();
zzhjVar.zzy = zzfqVar;
zzft zzftVar = new zzft(zzhjVar);
zzftVar.zzv();
zzhjVar.zzv = zzftVar;
zzlb zzlbVar = new zzlb(zzhjVar);
zzlbVar.zzv();
zzhjVar.zzw = zzlbVar;
zzhjVar.zzn.zzae();
zzhjVar.zzj.zzae();
zzhjVar.zzy.zzw();
zzhjVar.zzj().zzn().zza("App measurement initialized, version", 95001L);
zzhjVar.zzj().zzn().zza("To enable debug logging run: adb shell setprop log.tag.FA VERBOSE");
String zzad = zzfqVar.zzad();
if (TextUtils.isEmpty(zzhjVar.zzd)) {
if (zzhjVar.zzt().zzd(zzad, zzhjVar.zzi.zzp())) {
zzhjVar.zzj().zzn().zza("Faster debug mode event logging enabled. To disable, run:\n adb shell setprop debug.firebase.analytics.app .none.");
} else {
zzhjVar.zzj().zzn().zza("To enable faster debug mode event logging run:\n adb shell setprop debug.firebase.analytics.app " + zzad);
}
}
zzhjVar.zzj().zzc().zza("Debug-level message logging enabled");
if (zzhjVar.zzag != zzhjVar.zzai.get()) {
zzhjVar.zzj().zzg().zza("Not all components initialized", Integer.valueOf(zzhjVar.zzag), Integer.valueOf(zzhjVar.zzai.get()));
}
zzhjVar.zzz = true;
}
private zzhj(zzix zzixVar) {
long currentTimeMillis;
Bundle bundle;
boolean z = false;
Preconditions.checkNotNull(zzixVar);
zzad zzadVar = new zzad(zzixVar.zza);
this.zzh = zzadVar;
zzfk.zza = zzadVar;
Context context = zzixVar.zza;
this.zzc = context;
this.zzd = zzixVar.zzb;
this.zze = zzixVar.zzc;
this.zzf = zzixVar.zzd;
this.zzg = zzixVar.zzh;
this.zzac = zzixVar.zze;
this.zzu = zzixVar.zzj;
this.zzaf = true;
com.google.android.gms.internal.measurement.zzdl zzdlVar = zzixVar.zzg;
if (zzdlVar != null && (bundle = zzdlVar.zzg) != null) {
Object obj = bundle.get("measurementEnabled");
if (obj instanceof Boolean) {
this.zzad = (Boolean) obj;
}
Object obj2 = zzdlVar.zzg.get("measurementDeactivated");
if (obj2 instanceof Boolean) {
this.zzae = (Boolean) obj2;
}
}
com.google.android.gms.internal.measurement.zzgw.zzb(context);
Clock defaultClock = DefaultClock.getInstance();
this.zzp = defaultClock;
Long l = zzixVar.zzi;
if (l != null) {
currentTimeMillis = l.longValue();
} else {
currentTimeMillis = defaultClock.currentTimeMillis();
}
this.zza = currentTimeMillis;
this.zzi = new zzae(this);
zzgl zzglVar = new zzgl(this);
zzglVar.zzad();
this.zzj = zzglVar;
zzfw zzfwVar = new zzfw(this);
zzfwVar.zzad();
this.zzk = zzfwVar;
zznt zzntVar = new zznt(this);
zzntVar.zzad();
this.zzn = zzntVar;
this.zzo = new zzfv(new zziw(zzixVar, this));
this.zzs = new zza(this);
zzks zzksVar = new zzks(this);
zzksVar.zzv();
this.zzq = zzksVar;
zziz zzizVar = new zziz(this);
zzizVar.zzv();
this.zzr = zzizVar;
zzml zzmlVar = new zzml(this);
zzmlVar.zzv();
this.zzm = zzmlVar;
zzkn zzknVar = new zzkn(this);
zzknVar.zzad();
this.zzt = zzknVar;
zzhg zzhgVar = new zzhg(this);
zzhgVar.zzad();
this.zzl = zzhgVar;
com.google.android.gms.internal.measurement.zzdl zzdlVar2 = zzixVar.zzg;
if (zzdlVar2 != null && zzdlVar2.zzb != 0) {
z = true;
}
boolean z2 = !z;
if (context.getApplicationContext() instanceof Application) {
zzp().zzb(z2);
} else {
zzj().zzu().zza("Application context is not an Application");
}
zzhgVar.zzb(new zzho(this, zzixVar));
}
private static void zza(zzij zzijVar) {
if (zzijVar == null) {
throw new IllegalStateException("Component not created");
}
}
private static void zza(zzg zzgVar) {
if (zzgVar == null) {
throw new IllegalStateException("Component not created");
}
if (zzgVar.zzy()) {
return;
}
throw new IllegalStateException("Component not initialized: " + String.valueOf(zzgVar.getClass()));
}
private static void zza(zzim zzimVar) {
if (zzimVar == null) {
throw new IllegalStateException("Component not created");
}
if (zzimVar.zzaf()) {
return;
}
throw new IllegalStateException("Component not initialized: " + String.valueOf(zzimVar.getClass()));
}
public final void zzy() {
throw new IllegalStateException("Unexpected call on client side");
}
public final void zzz() {
this.zzai.incrementAndGet();
}
public final /* synthetic */ void zza(String str, int i, Throwable th, byte[] bArr, Map map) {
if ((i != 200 && i != 204 && i != 304) || th != null) {
zzj().zzu().zza("Network Request for Deferred Deep Link failed. response, exception", Integer.valueOf(i), th);
return;
}
zzn().zzo.zza(true);
if (bArr == null || bArr.length == 0) {
zzj().zzc().zza("Deferred Deep Link response empty.");
return;
}
try {
JSONObject jSONObject = new JSONObject(new String(bArr));
String optString = jSONObject.optString(SDKConstants.PARAM_TOURNAMENTS_DEEPLINK, "");
if (TextUtils.isEmpty(optString)) {
zzj().zzc().zza("Deferred Deep Link is empty.");
return;
}
String optString2 = jSONObject.optString("gclid", "");
String optString3 = jSONObject.optString("gbraid", "");
String optString4 = jSONObject.optString("gad_source", "");
double optDouble = jSONObject.optDouble("timestamp", 0.0d);
Bundle bundle = new Bundle();
if (zzok.zza() && this.zzi.zza(zzbh.zzco)) {
if (!zzt().zzi(optString)) {
zzj().zzu().zza("Deferred Deep Link validation failed. gclid, gbraid, deep link", optString2, optString3, optString);
return;
}
if (!TextUtils.isEmpty(optString3)) {
bundle.putString("gbraid", optString3);
}
if (!TextUtils.isEmpty(optString4)) {
bundle.putString("gad_source", optString4);
}
long longValue = Double.valueOf(optDouble).longValue();
if (longValue > 0) {
bundle.putLong("click_timestamp", longValue);
}
} else if (!zzt().zzi(optString)) {
zzj().zzu().zza("Deferred Deep Link validation failed. gclid, deep link", optString2, optString);
return;
}
if (zzok.zza()) {
this.zzi.zza(zzbh.zzco);
}
bundle.putString("gclid", optString2);
bundle.putString("_cis", "ddp");
this.zzr.zzc("auto", "_cmp", bundle);
zznt zzt = zzt();
if (TextUtils.isEmpty(optString) || !zzt.zza(optString, optDouble)) {
return;
}
zzt.zza().sendBroadcast(new Intent("android.google.analytics.action.DEEPLINK_ACTION"));
} catch (JSONException e) {
zzj().zzg().zza("Failed to parse the Deferred Deep Link response. exception", e);
}
}
@WorkerThread
public final void zza(boolean z) {
this.zzac = Boolean.valueOf(z);
}
@WorkerThread
public final void zzb(boolean z) {
zzl().zzt();
this.zzaf = z;
}
/* JADX WARN: Code restructure failed: missing block: B:145:0x00ec, code lost:
if (r1.zzk() != false) goto L64;
*/
/* JADX WARN: Code restructure failed: missing block: B:169:0x0161, code lost:
if (r1.zzk() != false) goto L64;
*/
/* JADX WARN: Removed duplicated region for block: B:121:0x0234 */
@androidx.annotation.WorkerThread
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void zza(com.google.android.gms.internal.measurement.zzdl r13) {
/*
Method dump skipped, instructions count: 1297
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.measurement.internal.zzhj.zza(com.google.android.gms.internal.measurement.zzdl):void");
}
@WorkerThread
public final boolean zzab() {
return this.zzac != null && this.zzac.booleanValue();
}
@WorkerThread
public final boolean zzac() {
return zzc() == 0;
}
@WorkerThread
public final boolean zzad() {
zzl().zzt();
return this.zzaf;
}
public final boolean zzae() {
return TextUtils.isEmpty(this.zzd);
}
@WorkerThread
public final boolean zzaf() {
if (!this.zzz) {
throw new IllegalStateException("AppMeasurement is not initialized");
}
zzl().zzt();
Boolean bool = this.zzaa;
if (bool == null || this.zzab == 0 || (bool != null && !bool.booleanValue() && Math.abs(this.zzp.elapsedRealtime() - this.zzab) > 1000)) {
this.zzab = this.zzp.elapsedRealtime();
boolean z = true;
Boolean valueOf = Boolean.valueOf(zzt().zze("android.permission.INTERNET") && zzt().zze("android.permission.ACCESS_NETWORK_STATE") && (Wrappers.packageManager(this.zzc).isCallerInstantApp() || this.zzi.zzx() || (zznt.zza(this.zzc) && zznt.zza(this.zzc, false))));
this.zzaa = valueOf;
if (valueOf.booleanValue()) {
if (!zzt().zza(zzh().zzae(), zzh().zzac()) && TextUtils.isEmpty(zzh().zzac())) {
z = false;
}
this.zzaa = Boolean.valueOf(z);
}
}
return this.zzaa.booleanValue();
}
@WorkerThread
public final boolean zzah() {
zzl().zzt();
zza((zzim) zzai());
String zzad = zzh().zzad();
Pair<String, Boolean> zza = zzn().zza(zzad);
if (!this.zzi.zzu() || ((Boolean) zza.second).booleanValue() || TextUtils.isEmpty((CharSequence) zza.first)) {
zzj().zzc().zza("ADID unavailable to retrieve Deferred Deep Link. Skipping");
return false;
}
if (!zzai().zzc()) {
zzj().zzu().zza("Network is not available for Deferred Deep Link request. Skipping");
return false;
}
StringBuilder sb = new StringBuilder();
zzlb zzr = zzr();
zzr.zzt();
zzr.zzu();
if (!zzr.zzao() || zzr.zzq().zzg() >= 234200) {
zzal zzab = zzp().zzab();
Bundle bundle = zzab != null ? zzab.zza : null;
if (bundle == null) {
int i = this.zzah;
this.zzah = i + 1;
boolean z = i < 10;
zzj().zzc().zza("Failed to retrieve DMA consent from the service, " + (z ? "Retrying." : "Skipping.") + " retryCount", Integer.valueOf(this.zzah));
return z;
}
zzin zza2 = zzin.zza(bundle, 100);
sb.append("&gcs=");
sb.append(zza2.zzg());
zzax zza3 = zzax.zza(bundle, 100);
sb.append("&dma=");
sb.append(zza3.zzd() == Boolean.FALSE ? 0 : 1);
if (!TextUtils.isEmpty(zza3.zze())) {
sb.append("&dma_cps=");
sb.append(zza3.zze());
}
int i2 = zzax.zza(bundle) == Boolean.TRUE ? 0 : 1;
sb.append("&npa=");
sb.append(i2);
zzj().zzp().zza("Consent query parameters to Bow", sb);
}
zznt zzt = zzt();
zzh();
URL zza4 = zzt.zza(95001L, zzad, (String) zza.first, zzn().zzp.zza() - 1, sb.toString());
if (zza4 != null) {
zzkn zzai = zzai();
zzkm zzkmVar = new zzkm() { // from class: com.google.android.gms.measurement.internal.zzhl
@Override // com.google.android.gms.measurement.internal.zzkm
public final void zza(String str, int i3, Throwable th, byte[] bArr, Map map) {
zzhj.this.zza(str, i3, th, bArr, map);
}
};
zzai.zzt();
zzai.zzac();
Preconditions.checkNotNull(zza4);
Preconditions.checkNotNull(zzkmVar);
zzai.zzl().zza(new zzkp(zzai, zzad, zza4, null, null, zzkmVar));
}
return false;
}
}

View File

@@ -0,0 +1,121 @@
package com.google.android.gms.measurement.internal;
import android.os.Process;
import androidx.annotation.GuardedBy;
import androidx.work.WorkRequest;
import com.google.android.gms.common.internal.Preconditions;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Semaphore;
/* loaded from: classes3.dex */
final class zzhk extends Thread {
private final Object zza;
private final BlockingQueue<zzhh<?>> zzb;
@GuardedBy("threadLifeCycleLock")
private boolean zzc = false;
private final /* synthetic */ zzhg zzd;
public zzhk(zzhg zzhgVar, String str, BlockingQueue<zzhh<?>> blockingQueue) {
this.zzd = zzhgVar;
Preconditions.checkNotNull(str);
Preconditions.checkNotNull(blockingQueue);
this.zza = new Object();
this.zzb = blockingQueue;
setName(str);
}
private final void zzb() {
Object obj;
Semaphore semaphore;
Object obj2;
zzhk zzhkVar;
zzhk zzhkVar2;
obj = this.zzd.zzh;
synchronized (obj) {
try {
if (!this.zzc) {
semaphore = this.zzd.zzi;
semaphore.release();
obj2 = this.zzd.zzh;
obj2.notifyAll();
zzhkVar = this.zzd.zzb;
if (this == zzhkVar) {
this.zzd.zzb = null;
} else {
zzhkVar2 = this.zzd.zzc;
if (this == zzhkVar2) {
this.zzd.zzc = null;
} else {
this.zzd.zzj().zzg().zza("Current scheduler thread is neither worker nor network");
}
}
this.zzc = true;
}
} catch (Throwable th) {
throw th;
}
}
}
private final void zza(InterruptedException interruptedException) {
this.zzd.zzj().zzu().zza(getName() + " was interrupted", interruptedException);
}
public final void zza() {
synchronized (this.zza) {
this.zza.notifyAll();
}
}
@Override // java.lang.Thread, java.lang.Runnable
public final void run() {
Semaphore semaphore;
Object obj;
boolean z;
boolean z2 = false;
while (!z2) {
try {
semaphore = this.zzd.zzi;
semaphore.acquire();
z2 = true;
} catch (InterruptedException e) {
zza(e);
}
}
try {
int threadPriority = Process.getThreadPriority(Process.myTid());
while (true) {
zzhh<?> poll = this.zzb.poll();
if (poll != null) {
Process.setThreadPriority(poll.zza ? threadPriority : 10);
poll.run();
} else {
synchronized (this.zza) {
if (this.zzb.peek() == null) {
z = this.zzd.zzj;
if (!z) {
try {
this.zza.wait(WorkRequest.DEFAULT_BACKOFF_DELAY_MILLIS);
} catch (InterruptedException e2) {
zza(e2);
}
}
}
}
obj = this.zzd.zzh;
synchronized (obj) {
if (this.zzb.peek() == null) {
zzb();
zzb();
return;
}
}
}
}
} catch (Throwable th) {
zzb();
throw th;
}
}
}

View File

@@ -0,0 +1,457 @@
package com.google.android.gms.measurement.internal;
import android.os.Binder;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.BinderThread;
import androidx.annotation.VisibleForTesting;
import androidx.work.WorkRequest;
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.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/* loaded from: classes3.dex */
public final class zzhn extends zzfo {
private final zznc zza;
private Boolean zzb;
private String zzc;
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final zzal zza(zzn zznVar) {
zzb(zznVar, false);
Preconditions.checkNotEmpty(zznVar.zza);
try {
return (zzal) this.zza.zzl().zzb(new zzie(this, zznVar)).get(WorkRequest.MIN_BACKOFF_MILLIS, TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
this.zza.zzj().zzg().zza("Failed to get consent. appId", zzfw.zza(zznVar.zza), e);
return new zzal(null);
}
}
@VisibleForTesting
public final zzbf zzb(zzbf zzbfVar, zzn zznVar) {
zzba zzbaVar;
if ("_cmp".equals(zzbfVar.zza) && (zzbaVar = zzbfVar.zzb) != null && zzbaVar.zza() != 0) {
String zzd = zzbfVar.zzb.zzd("_cis");
if ("referrer broadcast".equals(zzd) || "referrer API".equals(zzd)) {
this.zza.zzj().zzn().zza("Event has been filtered ", zzbfVar.toString());
return new zzbf("_cmpx", zzbfVar.zzb, zzbfVar.zzc, zzbfVar.zzd);
}
}
return zzbfVar;
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final String zzb(zzn zznVar) {
zzb(zznVar, false);
return this.zza.zzb(zznVar);
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzmu> zza(zzn zznVar, Bundle bundle) {
zzb(zznVar, false);
Preconditions.checkNotNull(zznVar.zza);
try {
return (List) this.zza.zzl().zza(new zzih(this, zznVar, bundle)).get();
} catch (InterruptedException | ExecutionException e) {
this.zza.zzj().zzg().zza("Failed to get trigger URIs. appId", zzfw.zza(zznVar.zza), e);
return Collections.emptyList();
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzno> zza(zzn zznVar, boolean z) {
zzb(zznVar, false);
String str = zznVar.zza;
Preconditions.checkNotNull(str);
try {
List<zznq> list = (List) this.zza.zzl().zza(new zzik(this, str)).get();
ArrayList arrayList = new ArrayList(list.size());
for (zznq zznqVar : list) {
if (!z && zznt.zzg(zznqVar.zzc)) {
}
arrayList.add(new zzno(zznqVar));
}
return arrayList;
} catch (InterruptedException e) {
e = e;
this.zza.zzj().zzg().zza("Failed to get user properties. appId", zzfw.zza(zznVar.zza), e);
return null;
} catch (ExecutionException e2) {
e = e2;
this.zza.zzj().zzg().zza("Failed to get user properties. appId", zzfw.zza(zznVar.zza), e);
return null;
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzac> zza(String str, String str2, zzn zznVar) {
zzb(zznVar, false);
String str3 = zznVar.zza;
Preconditions.checkNotNull(str3);
try {
return (List) this.zza.zzl().zza(new zzia(this, str3, str, str2)).get();
} catch (InterruptedException | ExecutionException e) {
this.zza.zzj().zzg().zza("Failed to get conditional user properties", e);
return Collections.emptyList();
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzac> zza(String str, String str2, String str3) {
zza(str, true);
try {
return (List) this.zza.zzl().zza(new zzhz(this, str, str2, str3)).get();
} catch (InterruptedException | ExecutionException e) {
this.zza.zzj().zzg().zza("Failed to get conditional user properties as", e);
return Collections.emptyList();
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzno> zza(String str, String str2, boolean z, zzn zznVar) {
zzb(zznVar, false);
String str3 = zznVar.zza;
Preconditions.checkNotNull(str3);
try {
List<zznq> list = (List) this.zza.zzl().zza(new zzhy(this, str3, str, str2)).get();
ArrayList arrayList = new ArrayList(list.size());
for (zznq zznqVar : list) {
if (!z && zznt.zzg(zznqVar.zzc)) {
}
arrayList.add(new zzno(zznqVar));
}
return arrayList;
} catch (InterruptedException e) {
e = e;
this.zza.zzj().zzg().zza("Failed to query user properties. appId", zzfw.zza(zznVar.zza), e);
return Collections.emptyList();
} catch (ExecutionException e2) {
e = e2;
this.zza.zzj().zzg().zza("Failed to query user properties. appId", zzfw.zza(zznVar.zza), e);
return Collections.emptyList();
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final List<zzno> zza(String str, String str2, String str3, boolean z) {
zza(str, true);
try {
List<zznq> list = (List) this.zza.zzl().zza(new zzhx(this, str, str2, str3)).get();
ArrayList arrayList = new ArrayList(list.size());
for (zznq zznqVar : list) {
if (!z && zznt.zzg(zznqVar.zzc)) {
}
arrayList.add(new zzno(zznqVar));
}
return arrayList;
} catch (InterruptedException e) {
e = e;
this.zza.zzj().zzg().zza("Failed to get user properties as. appId", zzfw.zza(str), e);
return Collections.emptyList();
} catch (ExecutionException e2) {
e = e2;
this.zza.zzj().zzg().zza("Failed to get user properties as. appId", zzfw.zza(str), e);
return Collections.emptyList();
}
}
public zzhn(zznc zzncVar) {
this(zzncVar, null);
}
private zzhn(zznc zzncVar, String str) {
Preconditions.checkNotNull(zzncVar);
this.zza = zzncVar;
this.zzc = null;
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zzc(zzn zznVar) {
zzb(zznVar, false);
zzb(new zzhu(this, zznVar));
}
@BinderThread
private final void zzb(zzn zznVar, boolean z) {
Preconditions.checkNotNull(zznVar);
Preconditions.checkNotEmpty(zznVar.zza);
zza(zznVar.zza, false);
this.zza.zzq().zza(zznVar.zzb, zznVar.zzp);
}
@BinderThread
private final void zza(String str, boolean z) {
boolean z2;
if (TextUtils.isEmpty(str)) {
this.zza.zzj().zzg().zza("Measurement Service called without app package");
throw new SecurityException("Measurement Service called without app package");
}
if (z) {
try {
if (this.zzb == null) {
if (!"com.google.android.gms".equals(this.zzc) && !UidVerifier.isGooglePlayServicesUid(this.zza.zza(), Binder.getCallingUid()) && !GoogleSignatureVerifier.getInstance(this.zza.zza()).isUidGoogleSigned(Binder.getCallingUid())) {
z2 = false;
this.zzb = Boolean.valueOf(z2);
}
z2 = true;
this.zzb = Boolean.valueOf(z2);
}
if (this.zzb.booleanValue()) {
return;
}
} catch (SecurityException e) {
this.zza.zzj().zzg().zza("Measurement Service called with invalid calling package. appId", zzfw.zza(str));
throw e;
}
}
if (this.zzc == null && GooglePlayServicesUtilLight.uidHasPackageName(this.zza.zza(), Binder.getCallingUid(), str)) {
this.zzc = str;
}
if (str.equals(this.zzc)) {
} else {
throw new SecurityException(String.format("Unknown calling package name '%s'.", str));
}
}
public final void zzc(zzbf zzbfVar, zzn zznVar) {
if (!this.zza.zzi().zzl(zznVar.zza)) {
zzd(zzbfVar, zznVar);
return;
}
this.zza.zzj().zzp().zza("EES config found for", zznVar.zza);
zzgw zzi = this.zza.zzi();
String str = zznVar.zza;
com.google.android.gms.internal.measurement.zzb zzbVar = TextUtils.isEmpty(str) ? null : zzi.zza.get(str);
if (zzbVar == null) {
this.zza.zzj().zzp().zza("EES not loaded for", zznVar.zza);
zzd(zzbfVar, zznVar);
return;
}
try {
Map<String, Object> zza = this.zza.zzp().zza(zzbfVar.zzb.zzb(), true);
String zza2 = zzir.zza(zzbfVar.zza);
if (zza2 == null) {
zza2 = zzbfVar.zza;
}
if (zzbVar.zza(new com.google.android.gms.internal.measurement.zzad(zza2, zzbfVar.zzd, zza))) {
if (zzbVar.zzd()) {
this.zza.zzj().zzp().zza("EES edited event", zzbfVar.zza);
zzd(this.zza.zzp().zza(zzbVar.zza().zzb()), zznVar);
} else {
zzd(zzbfVar, zznVar);
}
if (zzbVar.zzc()) {
for (com.google.android.gms.internal.measurement.zzad zzadVar : zzbVar.zza().zzc()) {
this.zza.zzj().zzp().zza("EES logging created event", zzadVar.zzb());
zzd(this.zza.zzp().zza(zzadVar), zznVar);
}
return;
}
return;
}
} catch (com.google.android.gms.internal.measurement.zzc unused) {
this.zza.zzj().zzg().zza("EES error. appId, eventName", zznVar.zzb, zzbfVar.zza);
}
this.zza.zzj().zzp().zza("EES was not applied to event", zzbfVar.zza);
zzd(zzbfVar, zznVar);
}
public final /* synthetic */ void zza(String str, Bundle bundle) {
this.zza.zzf().zza(str, bundle);
}
public final /* synthetic */ void zzi(zzn zznVar) {
this.zza.zzr();
this.zza.zze(zznVar);
}
public final /* synthetic */ void zzj(zzn zznVar) {
this.zza.zzr();
this.zza.zzf(zznVar);
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(zzbf zzbfVar, zzn zznVar) {
Preconditions.checkNotNull(zzbfVar);
zzb(zznVar, false);
zzb(new zzid(this, zzbfVar, zznVar));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(zzbf zzbfVar, String str, String str2) {
Preconditions.checkNotNull(zzbfVar);
Preconditions.checkNotEmpty(str);
zza(str, true);
zzb(new zzig(this, zzbfVar, str));
}
private final void zzd(zzbf zzbfVar, zzn zznVar) {
this.zza.zzr();
this.zza.zza(zzbfVar, zznVar);
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zzd(zzn zznVar) {
Preconditions.checkNotEmpty(zznVar.zza);
zza(zznVar.zza, false);
zzb(new zzic(this, zznVar));
}
@VisibleForTesting
private final void zza(Runnable runnable) {
Preconditions.checkNotNull(runnable);
if (this.zza.zzl().zzg()) {
runnable.run();
} else {
this.zza.zzl().zzc(runnable);
}
}
@VisibleForTesting
private final void zzb(Runnable runnable) {
Preconditions.checkNotNull(runnable);
if (this.zza.zzl().zzg()) {
runnable.run();
} else {
this.zza.zzl().zzb(runnable);
}
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(zzac zzacVar, zzn zznVar) {
Preconditions.checkNotNull(zzacVar);
Preconditions.checkNotNull(zzacVar.zzc);
zzb(zznVar, false);
zzac zzacVar2 = new zzac(zzacVar);
zzacVar2.zza = zznVar.zza;
zzb(new zzhw(this, zzacVar2, zznVar));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(zzac zzacVar) {
Preconditions.checkNotNull(zzacVar);
Preconditions.checkNotNull(zzacVar.zzc);
Preconditions.checkNotEmpty(zzacVar.zza);
zza(zzacVar.zza, true);
zzb(new zzhv(this, new zzac(zzacVar)));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zze(zzn zznVar) {
Preconditions.checkNotEmpty(zznVar.zza);
Preconditions.checkNotNull(zznVar.zzt);
zza(new zzib(this, zznVar));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(long j, String str, String str2, String str3) {
zzb(new zzht(this, str2, str3, str, j));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(final Bundle bundle, zzn zznVar) {
zzb(zznVar, false);
final String str = zznVar.zza;
Preconditions.checkNotNull(str);
zzb(new Runnable() { // from class: com.google.android.gms.measurement.internal.zzhs
@Override // java.lang.Runnable
public final void run() {
zzhn.this.zza(str, bundle);
}
});
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zzf(final zzn zznVar) {
Preconditions.checkNotEmpty(zznVar.zza);
Preconditions.checkNotNull(zznVar.zzt);
zza(new Runnable() { // from class: com.google.android.gms.measurement.internal.zzhp
@Override // java.lang.Runnable
public final void run() {
zzhn.this.zzi(zznVar);
}
});
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zzg(zzn zznVar) {
zzb(zznVar, false);
zzb(new zzhr(this, zznVar));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zzh(final zzn zznVar) {
Preconditions.checkNotEmpty(zznVar.zza);
Preconditions.checkNotNull(zznVar.zzt);
zza(new Runnable() { // from class: com.google.android.gms.measurement.internal.zzhq
@Override // java.lang.Runnable
public final void run() {
zzhn.this.zzj(zznVar);
}
});
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final void zza(zzno zznoVar, zzn zznVar) {
Preconditions.checkNotNull(zznoVar);
zzb(zznVar, false);
zzb(new zzii(this, zznoVar, zznVar));
}
@Override // com.google.android.gms.measurement.internal.zzfp
@BinderThread
public final byte[] zza(zzbf zzbfVar, String str) {
Preconditions.checkNotEmpty(str);
Preconditions.checkNotNull(zzbfVar);
zza(str, true);
this.zza.zzj().zzc().zza("Log and bundle. event", this.zza.zzg().zza(zzbfVar.zza));
long nanoTime = this.zza.zzb().nanoTime() / 1000000;
try {
byte[] bArr = (byte[]) this.zza.zzl().zzb(new zzif(this, zzbfVar, str)).get();
if (bArr == null) {
this.zza.zzj().zzg().zza("Log and bundle returned null. appId", zzfw.zza(str));
bArr = new byte[0];
}
this.zza.zzj().zzc().zza("Log and bundle processed. event, size, time_ms", this.zza.zzg().zza(zzbfVar.zza), Integer.valueOf(bArr.length), Long.valueOf((this.zza.zzb().nanoTime() / 1000000) - nanoTime));
return bArr;
} catch (InterruptedException e) {
e = e;
this.zza.zzj().zzg().zza("Failed to log and bundle. appId, event, error", zzfw.zza(str), this.zza.zzg().zza(zzbfVar.zza), e);
return null;
} catch (ExecutionException e2) {
e = e2;
this.zza.zzj().zzg().zza("Failed to log and bundle. appId, event, error", zzfw.zza(str), this.zza.zzg().zza(zzbfVar.zza), e);
return null;
}
}
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzho implements Runnable {
private final /* synthetic */ zzix zza;
private final /* synthetic */ zzhj zzb;
public zzho(zzhj zzhjVar, zzix zzixVar) {
this.zza = zzixVar;
this.zzb = zzhjVar;
}
@Override // java.lang.Runnable
public final void run() {
zzhj.zza(this.zzb, this.zza);
this.zzb.zza(this.zza.zzg);
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.measurement.internal;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
final class zzhr implements Runnable {
private final /* synthetic */ zzn zza;
private final /* synthetic */ zzhn zzb;
public zzhr(zzhn zzhnVar, zzn zznVar) {
this.zza = zznVar;
this.zzb = zzhnVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zznc zzncVar2;
zzncVar = this.zzb.zza;
zzncVar.zzr();
zzncVar2 = this.zzb.zza;
zzn zznVar = this.zza;
zzncVar2.zzl().zzt();
zzncVar2.zzs();
Preconditions.checkNotEmpty(zznVar.zza);
zzncVar2.zza(zznVar);
}
}

View File

@@ -0,0 +1,33 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzht implements Runnable {
private final /* synthetic */ String zza;
private final /* synthetic */ String zzb;
private final /* synthetic */ String zzc;
private final /* synthetic */ long zzd;
private final /* synthetic */ zzhn zze;
public zzht(zzhn zzhnVar, String str, String str2, String str3, long j) {
this.zza = str;
this.zzb = str2;
this.zzc = str3;
this.zzd = j;
this.zze = zzhnVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zznc zzncVar2;
String str = this.zza;
if (str == null) {
zzncVar2 = this.zze.zza;
zzncVar2.zza(this.zzb, (zzkt) null);
} else {
zzkt zzktVar = new zzkt(this.zzc, str, this.zzd);
zzncVar = this.zze.zza;
zzncVar.zza(this.zzb, zzktVar);
}
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzhu implements Runnable {
private final /* synthetic */ zzn zza;
private final /* synthetic */ zzhn zzb;
public zzhu(zzhn zzhnVar, zzn zznVar) {
this.zza = zznVar;
this.zzb = zzhnVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zznc zzncVar2;
zzncVar = this.zzb.zza;
zzncVar.zzr();
zzncVar2 = this.zzb.zza;
zzncVar2.zzc(this.zza);
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzhv implements Runnable {
private final /* synthetic */ zzac zza;
private final /* synthetic */ zzhn zzb;
public zzhv(zzhn zzhnVar, zzac zzacVar) {
this.zza = zzacVar;
this.zzb = zzhnVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zznc zzncVar2;
zznc zzncVar3;
zzncVar = this.zzb.zza;
zzncVar.zzr();
if (this.zza.zzc.zza() == null) {
zzncVar3 = this.zzb.zza;
zzncVar3.zza(this.zza);
} else {
zzncVar2 = this.zzb.zza;
zzncVar2.zzb(this.zza);
}
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.measurement.internal;
/* loaded from: classes3.dex */
final class zzhw implements Runnable {
private final /* synthetic */ zzac zza;
private final /* synthetic */ zzn zzb;
private final /* synthetic */ zzhn zzc;
public zzhw(zzhn zzhnVar, zzac zzacVar, zzn zznVar) {
this.zza = zzacVar;
this.zzb = zznVar;
this.zzc = zzhnVar;
}
@Override // java.lang.Runnable
public final void run() {
zznc zzncVar;
zznc zzncVar2;
zznc zzncVar3;
zzncVar = this.zzc.zza;
zzncVar.zzr();
if (this.zza.zzc.zza() == null) {
zzncVar3 = this.zzc.zza;
zzncVar3.zza(this.zza, this.zzb);
} else {
zzncVar2 = this.zzc.zza;
zzncVar2.zzb(this.zza, this.zzb);
}
}
}

Some files were not shown because too many files have changed in this diff Show More