192 lines
5 KiB
Smali
192 lines
5 KiB
Smali
.class final Lcom/google/android/gms/internal/measurement/bl;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/measurement/bi;
|
|
|
|
|
|
# static fields
|
|
.field static aqh:Lcom/google/android/gms/internal/measurement/bl;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "GservicesLoader.class"
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field final aqi:Landroid/content/Context;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/measurement/bl;->aqi:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/measurement/bl;->aqi:Landroid/content/Context;
|
|
|
|
iget-object p1, p0, Lcom/google/android/gms/internal/measurement/bl;->aqi:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/google/android/gms/internal/measurement/bc;->CONTENT_URI:Landroid/net/Uri;
|
|
|
|
new-instance v1, Lcom/google/android/gms/internal/measurement/bn;
|
|
|
|
invoke-direct {v1}, Lcom/google/android/gms/internal/measurement/bn;-><init>()V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p1, v0, v2, v1}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static al(Landroid/content/Context;)Lcom/google/android/gms/internal/measurement/bl;
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/android/gms/internal/measurement/bl;->aqh:Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "com.google.android.providers.gsf.permission.READ_GSERVICES"
|
|
|
|
invoke-static {p0, v1}, Landroidx/core/content/PermissionChecker;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance v1, Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/android/gms/internal/measurement/bl;-><init>(Landroid/content/Context;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance v1, Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
invoke-direct {v1}, Lcom/google/android/gms/internal/measurement/bl;-><init>()V
|
|
|
|
:goto_1
|
|
sput-object v1, Lcom/google/android/gms/internal/measurement/bl;->aqh:Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
:cond_2
|
|
sget-object p0, Lcom/google/android/gms/internal/measurement/bl;->aqh:Lcom/google/android/gms/internal/measurement/bl;
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private final by(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/measurement/bl;->aqi:Landroid/content/Context;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
new-instance v0, Lcom/google/android/gms/internal/measurement/bm;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/gms/internal/measurement/bm;-><init>(Lcom/google/android/gms/internal/measurement/bl;Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/measurement/bj;->a(Lcom/google/android/gms/internal/measurement/bk;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const-string v2, "Unable to read GServices for: "
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/String;
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
const-string v2, "GservicesLoader"
|
|
|
|
invoke-static {v2, p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic bx(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/internal/measurement/bl;->by(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|