270 lines
6.9 KiB
Smali
270 lines
6.9 KiB
Smali
.class public final Lcom/google/android/gms/internal/measurement/bx;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/measurement/bi;
|
|
|
|
|
|
# static fields
|
|
.field static final aqB:Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "SharedPreferencesLoader.class"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/google/android/gms/internal/measurement/bx;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final aqC:Landroid/content/SharedPreferences;
|
|
|
|
.field private final aqD:Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;
|
|
|
|
.field final aqb:Ljava/lang/Object;
|
|
|
|
.field volatile aqc:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final aqd:Ljava/util/List;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "this"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/internal/measurement/bx;->aqB:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/SharedPreferences;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/measurement/by;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/internal/measurement/by;-><init>(Lcom/google/android/gms/internal/measurement/bx;)V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqD:Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqb:Ljava/lang/Object;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqd:Ljava/util/List;
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/measurement/bx;->aqC:Landroid/content/SharedPreferences;
|
|
|
|
iget-object p1, p0, Lcom/google/android/gms/internal/measurement/bx;->aqC:Landroid/content/SharedPreferences;
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqD:Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;
|
|
|
|
invoke-interface {p1, v0}, Landroid/content/SharedPreferences;->registerOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static an(Landroid/content/Context;)Lcom/google/android/gms/internal/measurement/bx;
|
|
.locals 5
|
|
|
|
invoke-static {}, Lcom/google/android/gms/internal/measurement/be;->po()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "direct_boot:"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/internal/measurement/be;->isUserUnlocked(Landroid/content/Context;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const-class v0, Lcom/google/android/gms/internal/measurement/bx;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v2, Lcom/google/android/gms/internal/measurement/bx;->aqB:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/android/gms/internal/measurement/bx;
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
new-instance v2, Lcom/google/android/gms/internal/measurement/bx;
|
|
|
|
const-string v3, "direct_boot:"
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-static {}, Lcom/google/android/gms/internal/measurement/be;->po()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->createDeviceProtectedStorageContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_2
|
|
const/16 v3, 0xc
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {p0, v1, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_1
|
|
invoke-direct {v2, p0}, Lcom/google/android/gms/internal/measurement/bx;-><init>(Landroid/content/SharedPreferences;)V
|
|
|
|
sget-object p0, Lcom/google/android/gms/internal/measurement/bx;->aqB:Ljava/util/Map;
|
|
|
|
invoke-interface {p0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_4
|
|
monitor-exit v0
|
|
|
|
return-object v2
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bx(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqc:Ljava/util/Map;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/measurement/bx;->aqb:Ljava/lang/Object;
|
|
|
|
monitor-enter v1
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqc:Ljava/util/Map;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqC:Landroid/content/SharedPreferences;
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->getAll()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/measurement/bx;->aqc:Ljava/util/Map;
|
|
|
|
:cond_0
|
|
monitor-exit v1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|