2019-07-24 11:27:29 +00:00
|
|
|
.class final Lio/fabric/sdk/android/a/b/e;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AdvertisingInfoServiceStrategy.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lio/fabric/sdk/android/a/b/f;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lio/fabric/sdk/android/a/b/e$b;,
|
|
|
|
Lio/fabric/sdk/android/a/b/e$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final context:Landroid/content/Context;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-10-23 04:50:18 +00:00
|
|
|
.method public final BS()Lio/fabric/sdk/android/a/b/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const-string v0, "Could not bind to Google Play Service to capture AdvertisingId"
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const-string v4, "Fabric"
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "AdvertisingInfoServiceStrategy cannot be called on the main thread"
|
|
|
|
|
|
|
|
invoke-interface {v0, v4, v1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v3
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_0
|
|
|
|
iget-object v1, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "com.android.vending"
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
:try_end_0
|
2019-08-30 20:04:20 +00:00
|
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v1, Lio/fabric/sdk/android/a/b/e$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, v5}, Lio/fabric/sdk/android/a/b/e$a;-><init>(B)V
|
|
|
|
|
|
|
|
new-instance v2, Landroid/content/Intent;
|
|
|
|
|
|
|
|
const-string v5, "com.google.android.gms.ads.identifier.service.START"
|
|
|
|
|
|
|
|
invoke-direct {v2, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v5, "com.google.android.gms"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v5}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
iget-object v5, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v5, v2, v1, v6}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
:try_end_1
|
2019-08-30 20:04:20 +00:00
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
new-instance v2, Lio/fabric/sdk/android/a/b/e$b;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lio/fabric/sdk/android/a/b/e$a;->getBinder()Landroid/os/IBinder;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-direct {v2, v5}, Lio/fabric/sdk/android/a/b/e$b;-><init>(Landroid/os/IBinder;)V
|
|
|
|
|
|
|
|
new-instance v5, Lio/fabric/sdk/android/a/b/b;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lio/fabric/sdk/android/a/b/e$b;->getId()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lio/fabric/sdk/android/a/b/e$b;->isLimitAdTrackingEnabled()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-direct {v5, v6, v2}, Lio/fabric/sdk/android/a/b/b;-><init>(Ljava/lang/String;Z)V
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
:try_start_3
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
:try_end_3
|
2019-08-30 20:04:20 +00:00
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v5
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v2
|
|
|
|
|
|
|
|
:try_start_4
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-string v6, "Exception in binding to Google Play Service to capture AdvertisingId"
|
|
|
|
|
|
|
|
invoke-interface {v5, v4, v6, v2}, Lio/fabric/sdk/android/l;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
|
|
|
|
:try_start_5
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v5, p0, Lio/fabric/sdk/android/a/b/e;->context:Landroid/content/Context;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v1}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
|
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1, v4, v0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:try_end_5
|
2019-08-30 20:04:20 +00:00
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
:catchall_1
|
2019-07-24 11:27:29 +00:00
|
|
|
move-exception v1
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v2, v4, v0, v1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-object v3
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
:catch_1
|
2019-07-24 11:27:29 +00:00
|
|
|
move-exception v0
|
|
|
|
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "Unable to determine if Google Play Services is available"
|
|
|
|
|
|
|
|
invoke-interface {v1, v4, v2, v0}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
return-object v3
|
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
:catch_2
|
2019-10-23 04:50:18 +00:00
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->BC()Lio/fabric/sdk/android/l;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Unable to find Google Play Services package name"
|
|
|
|
|
|
|
|
invoke-interface {v0, v4, v1}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v3
|
|
|
|
.end method
|