AdvertisingIdClient.smali
.class public Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
.super Ljava/lang/Object;
# annotations
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
# instance fields
.field private final mContext:Landroid/content/Context;
.field private zze:Lcom/google/android/gms/common/BlockingServiceConnection;
.field private zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
.field private zzg:Z
.field private final zzh:Ljava/lang/Object;
.field private zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
.field private final zzj:Z
.field private final zzk:J
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 8
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v4, 0x0
const-wide/16 v2, 0x7530
move-object v0, p0
move-object v1, p1
move v5, v4
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;-><init>(Landroid/content/Context;JZZ)V
return-void
.end method
.method private constructor <init>(Landroid/content/Context;JZZ)V
.registers 8
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzh:Ljava/lang/Object;
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz p4, :cond_21
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
if-nez v0, :cond_1f
:goto_15
iput-object p1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
:goto_17
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
iput-wide p2, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzk:J
iput-boolean p5, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzj:Z
return-void
:cond_1f
move-object p1, v0
goto :goto_15
:cond_21
iput-object p1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
goto :goto_17
.end method
.method public static getAdvertisingIdInfo(Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
.registers 15
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const-wide/16 v2, -0x1
const/4 v6, 0x0
new-instance v0, Lcom/google/android/gms/ads/identifier/zzb;
invoke-direct {v0, p0}, Lcom/google/android/gms/ads/identifier/zzb;-><init>(Landroid/content/Context;)V
const-string v1, "gads:ad_id_app_context:enabled"
invoke-virtual {v0, v1, v6}, Lcom/google/android/gms/ads/identifier/zzb;->getBoolean(Ljava/lang/String;Z)Z
move-result v4
const-string v1, "gads:ad_id_app_context:ping_ratio"
const/4 v5, 0x0
invoke-virtual {v0, v1, v5}, Lcom/google/android/gms/ads/identifier/zzb;->getFloat(Ljava/lang/String;F)F
move-result v10
const-string v1, "gads:ad_id_use_shared_preference:experiment_id"
const-string v5, ""
invoke-virtual {v0, v1, v5}, Lcom/google/android/gms/ads/identifier/zzb;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v8
const-string v1, "gads:ad_id_use_persistent_service:enabled"
invoke-virtual {v0, v1, v6}, Lcom/google/android/gms/ads/identifier/zzb;->getBoolean(Ljava/lang/String;Z)Z
move-result v5
new-instance v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
move-object v1, p0
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;-><init>(Landroid/content/Context;JZZ)V
:try_start_29
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v6
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Z)V
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->getInfo()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
move-result-object v3
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v12
sub-long v6, v12, v6
const/4 v9, 0x0
move-object v2, v0
move v5, v10
invoke-direct/range {v2 .. v9}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;ZFJLjava/lang/String;Ljava/lang/Throwable;)Z
:try_end_41
.catch Ljava/lang/Throwable; {:try_start_29 .. :try_end_41} :catch_45
.catchall {:try_start_29 .. :try_end_41} :catchall_4f
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
return-object v3
:catch_45
move-exception v9
const/4 v3, 0x0
const-wide/16 v6, -0x1
move-object v2, v0
move v5, v10
:try_start_4b
invoke-direct/range {v2 .. v9}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;ZFJLjava/lang/String;Ljava/lang/Throwable;)Z
throw v9
:try_end_4f
.catchall {:try_start_4b .. :try_end_4f} :catchall_4f
:catchall_4f
move-exception v1
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
throw v1
.end method
.method public static getIsAdIdFakeForDebugLogging(Landroid/content/Context;)Z
.registers 7
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v2, 0x0
new-instance v0, Lcom/google/android/gms/ads/identifier/zzb;
invoke-direct {v0, p0}, Lcom/google/android/gms/ads/identifier/zzb;-><init>(Landroid/content/Context;)V
const-string v1, "gads:ad_id_app_context:enabled"
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/ads/identifier/zzb;->getBoolean(Ljava/lang/String;Z)Z
move-result v4
const-string v1, "com.google.android.gms.ads.identifier.service.PERSISTENT_START"
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/ads/identifier/zzb;->getBoolean(Ljava/lang/String;Z)Z
move-result v5
new-instance v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
const-wide/16 v2, -0x1
move-object v1, p0
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;-><init>(Landroid/content/Context;JZZ)V
const/4 v1, 0x0
:try_start_1b
invoke-direct {v0, v1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Z)V
invoke-direct {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzb()Z
:try_end_21
.catchall {:try_start_1b .. :try_end_21} :catchall_26
move-result v1
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
return v1
:catchall_26
move-exception v1
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
throw v1
.end method
.method public static setShouldSkipGmsCoreVersionCheck(Z)V
.registers 1
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
return-void
.end method
.method private static zza(Landroid/content/Context;Z)Lcom/google/android/gms/common/BlockingServiceConnection;
.registers 6
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v1, "com.android.vending"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
:try_end_a
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_a} :catch_20
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
move-result-object v0
const v1, 0xbdfcb8
invoke-virtual {v0, p0, v1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I
move-result v0
packed-switch v0, :pswitch_data_5a
:pswitch_18
new-instance v0, Ljava/io/IOException;
const-string v1, "Google Play services not available"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_20
move-exception v0
new-instance v0, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;
const/16 v1, 0x9
invoke-direct {v0, v1}, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;-><init>(I)V
throw v0
:pswitch_29
if-eqz p1, :cond_48
const-string v0, "com.google.android.gms.ads.identifier.service.PERSISTENT_START"
:goto_2d
new-instance v1, Lcom/google/android/gms/common/BlockingServiceConnection;
invoke-direct {v1}, Lcom/google/android/gms/common/BlockingServiceConnection;-><init>()V
new-instance v2, Landroid/content/Intent;
invoke-direct {v2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v0, "com.google.android.gms"
invoke-virtual {v2, v0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
:try_start_3c
invoke-static {}, Lcom/google/android/gms/common/stats/ConnectionTracker;->getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
move-result-object v0
const/4 v3, 0x1
invoke-virtual {v0, p0, v2, v1, v3}, Lcom/google/android/gms/common/stats/ConnectionTracker;->bindService(Landroid/content/Context;Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
:try_end_44
.catch Ljava/lang/Throwable; {:try_start_3c .. :try_end_44} :catch_4b
move-result v0
if-eqz v0, :cond_52
return-object v1
:cond_48
const-string v0, "com.google.android.gms.ads.identifier.service.START"
goto :goto_2d
:catch_4b
move-exception v0
new-instance v1, Ljava/io/IOException;
invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw v1
:cond_52
new-instance v0, Ljava/io/IOException;
const-string v1, "Connection failure"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:pswitch_data_5a
.packed-switch 0x0
:pswitch_29
:pswitch_18
:pswitch_29
.end packed-switch
.end method
.method private static zza(Landroid/content/Context;Lcom/google/android/gms/common/BlockingServiceConnection;)Lcom/google/android/gms/internal/ads_identifier/zze;
.registers 5
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
const-wide/16 v0, 0x2710
:try_start_2
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v0, v1, v2}, Lcom/google/android/gms/common/BlockingServiceConnection;->getServiceWithTimeout(JLjava/util/concurrent/TimeUnit;)Landroid/os/IBinder;
move-result-object v0
invoke-static {v0}, Lcom/google/android/gms/internal/ads_identifier/zzf;->zza(Landroid/os/IBinder;)Lcom/google/android/gms/internal/ads_identifier/zze;
:try_end_b
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_b} :catch_d
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_b} :catch_16
move-result-object v0
return-object v0
:catch_d
move-exception v0
new-instance v0, Ljava/io/IOException;
const-string v1, "Interrupted exception"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_16
move-exception v0
new-instance v1, Ljava/io/IOException;
invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method private final zza()V
.registers 7
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzh:Ljava/lang/Object;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
if-eqz v0, :cond_13
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
iget-object v0, v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;->zzo:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
:try_end_e
.catchall {:try_start_3 .. :try_end_e} :catchall_26
:try_start_e
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;->join()V
:try_end_13
.catch Ljava/lang/InterruptedException; {:try_start_e .. :try_end_13} :catch_29
.catchall {:try_start_e .. :try_end_13} :catchall_26
:cond_13
:goto_13
:try_start_13
iget-wide v2, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzk:J
const-wide/16 v4, 0x0
cmp-long v0, v2, v4
if-lez v0, :cond_24
new-instance v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
iget-wide v2, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzk:J
invoke-direct {v0, p0, v2, v3}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;-><init>(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;J)V
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
:cond_24
monitor-exit v1
return-void
:catchall_26
move-exception v0
monitor-exit v1
:try_end_28
.catchall {:try_start_13 .. :try_end_28} :catchall_26
throw v0
:catch_29
move-exception v0
goto :goto_13
.end method
.method private final zza(Z)V
.registers 4
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
const-string v0, "Calling this from your main thread can lead to deadlock"
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
monitor-enter p0
:try_start_6
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-eqz v0, :cond_d
invoke-virtual {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
:cond_d
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
iget-boolean v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzj:Z
invoke-static {v0, v1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Landroid/content/Context;Z)Lcom/google/android/gms/common/BlockingServiceConnection;
move-result-object v0
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
invoke-static {v0, v1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Landroid/content/Context;Lcom/google/android/gms/common/BlockingServiceConnection;)Lcom/google/android/gms/internal/ads_identifier/zze;
move-result-object v0
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-eqz p1, :cond_29
invoke-direct {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza()V
:cond_29
monitor-exit p0
return-void
:catchall_2b
move-exception v0
monitor-exit p0
:try_end_2d
.catchall {:try_start_6 .. :try_end_2d} :catchall_2b
throw v0
.end method
.method private final zza(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;ZFJLjava/lang/String;Ljava/lang/Throwable;)Z
.registers 12
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
invoke-static {}, Ljava/lang/Math;->random()D
move-result-wide v0
float-to-double v2, p3
cmpl-double v0, v0, v2
if-lez v0, :cond_b
const/4 v0, 0x0
:goto_a
return v0
:cond_b
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
const-string v2, "app_context"
if-eqz p2, :cond_77
const-string v0, "1"
:goto_16
invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
if-eqz p1, :cond_28
const-string v2, "limit_ad_tracking"
invoke-virtual {p1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->isLimitAdTrackingEnabled()Z
move-result v0
if-eqz v0, :cond_7a
const-string v0, "1"
:goto_25
invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_28
if-eqz p1, :cond_41
invoke-virtual {p1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->getId()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_41
const-string v0, "ad_id_size"
invoke-virtual {p1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->getId()Ljava/lang/String;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_41
if-eqz p7, :cond_50
const-string v0, "error"
invoke-virtual {p7}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_50
if-eqz p6, :cond_5d
invoke-virtual {p6}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-nez v0, :cond_5d
const-string v0, "experiment_id"
invoke-interface {v1, v0, p6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_5d
const-string v0, "tag"
const-string v2, "AdvertisingIdClient"
invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v0, "time_spent"
invoke-static {p4, p5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
new-instance v0, Lcom/google/android/gms/ads/identifier/zza;
invoke-direct {v0, p0, v1}, Lcom/google/android/gms/ads/identifier/zza;-><init>(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;Ljava/util/Map;)V
invoke-virtual {v0}, Lcom/google/android/gms/ads/identifier/zza;->start()V
const/4 v0, 0x1
goto :goto_a
:cond_77
const-string v0, "0"
goto :goto_16
:cond_7a
const-string v0, "0"
goto :goto_25
.end method
.method private final zzb()Z
.registers 4
const-string v0, "Calling this from your main thread can lead to deadlock"
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
monitor-enter p0
:try_start_6
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-nez v0, :cond_3f
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzh:Ljava/lang/Object;
monitor-enter v1
:try_end_d
.catchall {:try_start_6 .. :try_end_d} :catchall_22
:try_start_d
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
if-eqz v0, :cond_17
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
iget-boolean v0, v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;->zzp:Z
if-nez v0, :cond_25
:cond_17
new-instance v0, Ljava/io/IOException;
const-string v2, "AdvertisingIdClient is not connected."
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_1f
move-exception v0
monitor-exit v1
:try_end_21
.catchall {:try_start_d .. :try_end_21} :catchall_1f
:try_start_21
throw v0
:catchall_22
move-exception v0
monitor-exit p0
:try_end_24
.catchall {:try_start_21 .. :try_end_24} :catchall_22
throw v0
:cond_25
:try_start_25
monitor-exit v1
:try_end_26
.catchall {:try_start_25 .. :try_end_26} :catchall_1f
const/4 v0, 0x0
:try_start_27
invoke-direct {p0, v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Z)V
:try_end_2a
.catch Ljava/lang/Exception; {:try_start_27 .. :try_end_2a} :catch_36
.catchall {:try_start_27 .. :try_end_2a} :catchall_22
:try_start_2a
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-nez v0, :cond_3f
new-instance v0, Ljava/io/IOException;
const-string v1, "AdvertisingIdClient cannot reconnect."
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_36
move-exception v0
new-instance v1, Ljava/io/IOException;
const-string v2, "AdvertisingIdClient cannot reconnect."
invoke-direct {v1, v2, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:cond_3f
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
:try_end_49
.catchall {:try_start_2a .. :try_end_49} :catchall_22
:try_start_49
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
invoke-interface {v0}, Lcom/google/android/gms/internal/ads_identifier/zze;->zzc()Z
:try_end_4e
.catch Landroid/os/RemoteException; {:try_start_49 .. :try_end_4e} :catch_54
.catchall {:try_start_49 .. :try_end_4e} :catchall_22
move-result v0
:try_start_4f
monitor-exit p0
:try_end_50
.catchall {:try_start_4f .. :try_end_50} :catchall_22
invoke-direct {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza()V
return v0
:catch_54
move-exception v0
:try_start_55
new-instance v0, Ljava/io/IOException;
const-string v1, "Remote exception"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_5d
.catchall {:try_start_55 .. :try_end_5d} :catchall_22
.end method
# virtual methods
.method protected finalize()V
.registers 1
invoke-virtual {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->finish()V
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public final finish()V
.registers 4
const-string v0, "Calling this from your main thread can lead to deadlock"
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
monitor-enter p0
:try_start_6
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
if-eqz v0, :cond_e
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
if-nez v0, :cond_10
:cond_e
monitor-exit p0
:try_end_f
.catchall {:try_start_6 .. :try_end_f} :catchall_2a
:goto_f
return-void
:cond_10
:try_start_10
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-eqz v0, :cond_1f
invoke-static {}, Lcom/google/android/gms/common/stats/ConnectionTracker;->getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
move-result-object v0
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/common/stats/ConnectionTracker;->unbindService(Landroid/content/Context;Landroid/content/ServiceConnection;)V
:try_end_1f
.catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_1f} :catch_2d
.catchall {:try_start_10 .. :try_end_1f} :catchall_2a
:cond_1f
:goto_1f
const/4 v0, 0x0
:try_start_20
iput-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
monitor-exit p0
goto :goto_f
:catchall_2a
move-exception v0
monitor-exit p0
:try_end_2c
.catchall {:try_start_20 .. :try_end_2c} :catchall_2a
throw v0
:catch_2d
move-exception v0
goto :goto_1f
.end method
.method public getInfo()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
.registers 5
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const-string v0, "Calling this from your main thread can lead to deadlock"
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotMainThread(Ljava/lang/String;)V
monitor-enter p0
:try_start_6
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-nez v0, :cond_3f
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzh:Ljava/lang/Object;
monitor-enter v1
:try_end_d
.catchall {:try_start_6 .. :try_end_d} :catchall_22
:try_start_d
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
if-eqz v0, :cond_17
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzi:Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
iget-boolean v0, v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;->zzp:Z
if-nez v0, :cond_25
:cond_17
new-instance v0, Ljava/io/IOException;
const-string v2, "AdvertisingIdClient is not connected."
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_1f
move-exception v0
monitor-exit v1
:try_end_21
.catchall {:try_start_d .. :try_end_21} :catchall_1f
:try_start_21
throw v0
:catchall_22
move-exception v0
monitor-exit p0
:try_end_24
.catchall {:try_start_21 .. :try_end_24} :catchall_22
throw v0
:cond_25
:try_start_25
monitor-exit v1
:try_end_26
.catchall {:try_start_25 .. :try_end_26} :catchall_1f
const/4 v0, 0x0
:try_start_27
invoke-direct {p0, v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Z)V
:try_end_2a
.catch Ljava/lang/Exception; {:try_start_27 .. :try_end_2a} :catch_36
.catchall {:try_start_27 .. :try_end_2a} :catchall_22
:try_start_2a
iget-boolean v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzg:Z
if-nez v0, :cond_3f
new-instance v0, Ljava/io/IOException;
const-string v1, "AdvertisingIdClient cannot reconnect."
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_36
move-exception v0
new-instance v1, Ljava/io/IOException;
const-string v2, "AdvertisingIdClient cannot reconnect."
invoke-direct {v1, v2, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:cond_3f
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zze:Lcom/google/android/gms/common/BlockingServiceConnection;
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
:try_end_49
.catchall {:try_start_2a .. :try_end_49} :catchall_22
:try_start_49
new-instance v0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
iget-object v1, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
invoke-interface {v1}, Lcom/google/android/gms/internal/ads_identifier/zze;->getId()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zzf:Lcom/google/android/gms/internal/ads_identifier/zze;
const/4 v3, 0x1
invoke-interface {v2, v3}, Lcom/google/android/gms/internal/ads_identifier/zze;->zzb(Z)Z
move-result v2
invoke-direct {v0, v1, v2}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;-><init>(Ljava/lang/String;Z)V
:try_end_5b
.catch Landroid/os/RemoteException; {:try_start_49 .. :try_end_5b} :catch_60
.catchall {:try_start_49 .. :try_end_5b} :catchall_22
:try_start_5b
monitor-exit p0
:try_end_5c
.catchall {:try_start_5b .. :try_end_5c} :catchall_22
invoke-direct {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza()V
return-object v0
:catch_60
move-exception v0
:try_start_61
new-instance v0, Ljava/io/IOException;
const-string v1, "Remote exception"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_69
.catchall {:try_start_61 .. :try_end_69} :catchall_22
.end method
.method public start()V
.registers 2
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->zza(Z)V
return-void
.end method