- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
478 lines
16 KiB
Java
478 lines
16 KiB
Java
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);
|
|
}
|
|
}
|