165 lines
3.9 KiB
Smali
165 lines
3.9 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzbbv;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public static zza(Landroid/content/Context;)I
|
|
.locals 1
|
|
|
|
const-string v0, "crash_without_write"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/internal/ads/zzbbv;->zzf(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static zzb(Landroid/content/Context;)I
|
|
.locals 1
|
|
|
|
const-string v0, "init_without_write"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/internal/ads/zzbbv;->zzf(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static zzc(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "crash_without_write"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/internal/ads/zzbbv;->zzg(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zzd(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const-string v0, "init_without_write"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/internal/ads/zzbbv;->zzg(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static zze(Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
const-string v0, "admob"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "init_without_write"
|
|
|
|
.line 3
|
|
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "crash_without_write"
|
|
|
|
.line 4
|
|
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static zzf(Landroid/content/Context;Ljava/lang/String;)I
|
|
.locals 2
|
|
|
|
const-string v0, "admob"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-interface {p0, p1, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return p0
|
|
|
|
:catch_0
|
|
return v1
|
|
.end method
|
|
|
|
.method private static zzg(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
const-string v0, "admob"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {p0, p1}, Lcom/google/android/gms/internal/ads/zzbbv;->zzf(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
.line 3
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, p1, p0}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
|
|
|
|
return-void
|
|
.end method
|