382 lines
12 KiB
Smali
382 lines
12 KiB
Smali
.class public final Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# static fields
|
|
.field private static volatile aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
|
|
# instance fields
|
|
.field private final aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
.field private final aPJ:Ljava/lang/Object;
|
|
|
|
.field private final azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
.field private final azy:Z
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lcom/google/android/gms/internal/measurement/lw;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/p;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azy:Z
|
|
|
|
new-instance p1, Ljava/lang/Object;
|
|
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPJ:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Lcom/google/android/gms/measurement/internal/ek;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/p;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azy:Z
|
|
|
|
new-instance p1, Ljava/lang/Object;
|
|
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPJ:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getInstance(Landroid/content/Context;)Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
allOf = {
|
|
"android.permission.INTERNET",
|
|
"android.permission.ACCESS_NETWORK_STATE",
|
|
"android.permission.WAKE_LOCK"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const-class v0, Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/internal/measurement/lw;->al(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/internal/measurement/lw;->aj(Landroid/content/Context;)Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v1, Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/firebase/analytics/FirebaseAnalytics;-><init>(Lcom/google/android/gms/internal/measurement/lw;)V
|
|
|
|
sput-object v1, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1}, Lcom/google/android/gms/measurement/internal/ek;->a(Landroid/content/Context;Lcom/google/android/gms/internal/measurement/zzx;)Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v1, Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/firebase/analytics/FirebaseAnalytics;-><init>(Lcom/google/android/gms/measurement/internal/ek;)V
|
|
|
|
sput-object v1, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
:cond_1
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
sget-object p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPH:Lcom/google/firebase/analytics/FirebaseAnalytics;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getScionFrontendApiImplementation(Landroid/content/Context;Landroid/os/Bundle;)Lcom/google/android/gms/measurement/internal/gj;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/internal/measurement/lw;->al(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lcom/google/android/gms/internal/measurement/lw;->a(Landroid/content/Context;Landroid/os/Bundle;)Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
new-instance p1, Lcom/google/firebase/analytics/a;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/firebase/analytics/a;-><init>(Lcom/google/android/gms/internal/measurement/lw;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
.locals 9
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Size;
|
|
max = 0x28L
|
|
min = 0x1L
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-boolean v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azy:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, p2, v2}, Lcom/google/android/gms/internal/measurement/lw;->a(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Z)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/ek;->vm()Lcom/google/android/gms/measurement/internal/fr;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/fh;->vt()Lcom/google/android/gms/common/util/e;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Lcom/google/android/gms/common/util/e;->currentTimeMillis()J
|
|
|
|
move-result-wide v7
|
|
|
|
const-string v2, "app"
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/google/android/gms/measurement/internal/fr;->logEvent(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;ZZJ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final dk(Ljava/lang/String;)V
|
|
.locals 3
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-boolean v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azy:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
new-instance v1, Lcom/google/android/gms/internal/measurement/e;
|
|
|
|
invoke-direct {v1, v0, p1}, Lcom/google/android/gms/internal/measurement/e;-><init>(Lcom/google/android/gms/internal/measurement/lw;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/measurement/lw;->a(Lcom/google/android/gms/internal/measurement/lw$a;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/ek;->vm()Lcom/google/android/gms/measurement/internal/fr;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "app"
|
|
|
|
const-string v2, "_id"
|
|
|
|
invoke-virtual {v0, v1, v2, p1}, Lcom/google/android/gms/measurement/internal/fr;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getFirebaseInstanceId()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
invoke-static {}, Lcom/google/firebase/iid/FirebaseInstanceId;->AK()Lcom/google/firebase/iid/FirebaseInstanceId;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/iid/FirebaseInstanceId;->AL()V
|
|
|
|
invoke-static {}, Lcom/google/firebase/iid/FirebaseInstanceId;->lF()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final setCurrentScreen(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 2
|
|
.param p1 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Size;
|
|
max = 0x24L
|
|
min = 0x1L
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Size;
|
|
max = 0x24L
|
|
min = 0x1L
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Keep;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azy:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->aPI:Lcom/google/android/gms/internal/measurement/lw;
|
|
|
|
new-instance v1, Lcom/google/android/gms/internal/measurement/d;
|
|
|
|
invoke-direct {v1, v0, p1, p2, p3}, Lcom/google/android/gms/internal/measurement/d;-><init>(Lcom/google/android/gms/internal/measurement/lw;Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/android/gms/internal/measurement/lw;->a(Lcom/google/android/gms/internal/measurement/lw$a;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/android/gms/measurement/internal/ja;->isMainThread()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/ek;->vx()Lcom/google/android/gms/measurement/internal/dh;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p1, p1, Lcom/google/android/gms/measurement/internal/dh;->aCH:Lcom/google/android/gms/measurement/internal/dj;
|
|
|
|
const-string p2, "setCurrentScreen must be called from the main thread"
|
|
|
|
invoke-virtual {p1, p2}, Lcom/google/android/gms/measurement/internal/dj;->ci(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/firebase/analytics/FirebaseAnalytics;->azw:Lcom/google/android/gms/measurement/internal/ek;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/ek;->vp()Lcom/google/android/gms/measurement/internal/gr;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lcom/google/android/gms/measurement/internal/gr;->setCurrentScreen(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|