.class public abstract Lcom/applovin/impl/l0; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/applovin/impl/l0$a; } .end annotation # static fields .field private static a:Z = true .field private static final b:Ljava/lang/Object; .field private static final c:Ljava/util/Collection; .field private static d:Z .field private static e:Lcom/applovin/impl/l0$a; # direct methods .method static constructor ()V .locals 1 .line 1 new-instance v0, Ljava/lang/Object; invoke-direct {v0}, Ljava/lang/Object;->()V sput-object v0, Lcom/applovin/impl/l0;->b:Ljava/lang/Object; .line 2 new-instance v0, Ljava/util/HashSet; invoke-direct {v0}, Ljava/util/HashSet;->()V sput-object v0, Lcom/applovin/impl/l0;->c:Ljava/util/Collection; const/4 v0, 0x0 sput-boolean v0, Lcom/applovin/impl/l0;->d:Z const/4 v0, 0x0 sput-object v0, Lcom/applovin/impl/l0;->e:Lcom/applovin/impl/l0$a; return-void .end method .method private static a(Landroid/content/Context;)Lcom/applovin/impl/l0$a; .locals 5 .line 1 invoke-static {}, Lcom/applovin/impl/yp;->a()V sget-object v0, Lcom/applovin/impl/l0;->b:Ljava/lang/Object; .line 6 monitor-enter v0 :try_start_0 sget-boolean v1, Lcom/applovin/impl/l0;->d:Z if-eqz v1, :cond_0 sget-object p0, Lcom/applovin/impl/l0;->e:Lcom/applovin/impl/l0$a; .line 12 monitor-exit v0 return-object p0 :catchall_0 move-exception p0 goto :goto_2 :cond_0 sget-object v1, Lcom/applovin/impl/l0;->c:Ljava/util/Collection; .line 19 invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z move-result v2 .line 21 new-instance v3, Ljava/util/concurrent/CountDownLatch; const/4 v4, 0x1 invoke-direct {v3, v4}, Ljava/util/concurrent/CountDownLatch;->(I)V .line 22 invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 24 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v2, :cond_1 .line 30 invoke-static {p0}, Lcom/applovin/impl/l0;->c(Landroid/content/Context;)Lcom/applovin/impl/l0$a; move-result-object p0 .line 35 monitor-enter v0 :try_start_1 sput-boolean v4, Lcom/applovin/impl/l0;->d:Z sput-object p0, Lcom/applovin/impl/l0;->e:Lcom/applovin/impl/l0$a; .line 40 new-instance p0, Ljava/util/HashSet; invoke-direct {p0, v1}, Ljava/util/HashSet;->(Ljava/util/Collection;)V .line 41 invoke-interface {v1}, Ljava/util/Collection;->clear()V .line 42 monitor-exit v0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 .line 44 invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/concurrent/CountDownLatch; .line 46 invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V goto :goto_0 :catchall_1 move-exception p0 .line 47 :try_start_2 monitor-exit v0 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 throw p0 .line 61 :cond_1 :try_start_3 sget-object p0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit; const-wide/16 v0, 0x3c invoke-virtual {v3, v0, v1, p0}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z move-result p0 if-nez p0, :cond_2 const-string p0, "DataCollector" const-string v0, "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you\'re sure you\'ve integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }: collection timeout" .line 65 invoke-static {p0, v0}, Lcom/applovin/impl/sdk/n;->h(Ljava/lang/String;Ljava/lang/String;)V :try_end_3 .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_0 goto :goto_1 :catch_0 move-exception p0 const-string v0, "DataCollector" const-string v1, "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you\'re sure you\'ve integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }" .line 71 invoke-static {v0, v1, p0}, Lcom/applovin/impl/sdk/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V :cond_2 :goto_1 sget-object p0, Lcom/applovin/impl/l0;->b:Ljava/lang/Object; .line 81 monitor-enter p0 :try_start_4 sget-object v0, Lcom/applovin/impl/l0;->e:Lcom/applovin/impl/l0$a; .line 83 monitor-exit p0 return-object v0 :catchall_2 move-exception v0 .line 84 monitor-exit p0 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_2 throw v0 .line 85 :goto_2 :try_start_5 monitor-exit v0 :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_0 throw p0 .end method .method public static a()Z .locals 1 const-string v0, "com.google.android.gms.ads.identifier.AdvertisingIdClient" .line 86 invoke-static {v0}, Lcom/applovin/impl/yp;->a(Ljava/lang/String;)Z move-result v0 return v0 .end method .method public static b(Landroid/content/Context;)Lcom/applovin/impl/l0$a; .locals 0 .line 53 invoke-static {p0}, Lcom/applovin/impl/l0;->a(Landroid/content/Context;)Lcom/applovin/impl/l0$a; move-result-object p0 return-object p0 .end method .method private static c(Landroid/content/Context;)Lcom/applovin/impl/l0$a; .locals 1 .line 143 invoke-static {p0}, Lcom/applovin/impl/l0;->collectGoogleAdvertisingInfo(Landroid/content/Context;)Lcom/applovin/impl/l0$a; move-result-object v0 if-nez v0, :cond_0 .line 148 invoke-static {p0}, Lcom/applovin/impl/l0;->collectFireOSAdvertisingInfo(Landroid/content/Context;)Lcom/applovin/impl/l0$a; move-result-object v0 :cond_0 if-nez v0, :cond_1 .line 154 new-instance v0, Lcom/applovin/impl/l0$a; invoke-direct {v0}, Lcom/applovin/impl/l0$a;->()V :cond_1 return-object v0 .end method .method private static collectFireOSAdvertisingInfo(Landroid/content/Context;)Lcom/applovin/impl/l0$a; .locals 4 .annotation build Landroidx/annotation/Nullable; .end annotation const-string v0, "DataCollector" sget-boolean v1, Lcom/applovin/impl/l0;->a:Z const/4 v2, 0x0 if-eqz v1, :cond_2 .line 6 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object p0 .line 7 new-instance v1, Lcom/applovin/impl/l0$a; invoke-direct {v1}, Lcom/applovin/impl/l0$a;->()V const-string v3, "advertising_id" .line 9 invoke-static {p0, v3}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String; move-result-object v3 .line 10 invoke-static {v3}, Lcom/applovin/impl/sdk/utils/StringUtils;->emptyIfNull(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 invoke-virtual {v1, v3}, Lcom/applovin/impl/l0$a;->a(Ljava/lang/String;)V const-string v3, "limit_ad_tracking" .line 11 invoke-static {p0, v3}, Landroid/provider/Settings$Secure;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I move-result p0 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 move p0, v2 .line 12 :goto_0 invoke-virtual {v1, p0}, Lcom/applovin/impl/l0$a;->a(Z)V if-eqz p0, :cond_1 .line 13 sget-object p0, Lcom/applovin/impl/l0$a$a;->c:Lcom/applovin/impl/l0$a$a; goto :goto_1 :catchall_0 move-exception p0 goto :goto_2 :catch_0 move-exception p0 goto :goto_3 .line 14 :cond_1 sget-object p0, Lcom/applovin/impl/l0$a$a;->d:Lcom/applovin/impl/l0$a$a; :goto_1 invoke-virtual {v1, p0}, Lcom/applovin/impl/l0$a;->a(Lcom/applovin/impl/l0$a$a;)V :try_end_0 .catch Landroid/provider/Settings$SettingNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v1 :goto_2 const-string v1, "Unable to collect Fire OS IDFA" .line 25 invoke-static {v0, v1, p0}, Lcom/applovin/impl/sdk/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V goto :goto_4 :goto_3 const-string v1, "Unable to determine if Fire OS limited ad tracking is turned on" .line 26 invoke-static {v0, v1, p0}, Lcom/applovin/impl/sdk/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V :cond_2 :goto_4 sput-boolean v2, Lcom/applovin/impl/l0;->a:Z const/4 p0, 0x0 return-object p0 .end method .method private static collectGoogleAdvertisingInfo(Landroid/content/Context;)Lcom/applovin/impl/l0$a; .locals 5 .annotation build Landroidx/annotation/Nullable; .end annotation .line 1 invoke-static {}, Lcom/applovin/impl/yp;->a()V .line 3 invoke-static {}, Lcom/applovin/impl/l0;->a()Z move-result v0 const-string v1, "Could not collect Google Advertising ID - this will negatively impact your eCPMs! Please integrate the Google Play Services SDK into your application. More info can be found online at http://developer.android.com/google/play-services/setup.html. If you\'re sure you\'ve integrated the SDK and are still seeing this message, you may need to add a ProGuard exception: -keep public class com.google.android.gms.** { public protected *; }" const-string v2, "DataCollector" if-eqz v0, :cond_1 .line 7 :try_start_0 new-instance v0, Lcom/applovin/impl/l0$a; invoke-direct {v0}, Lcom/applovin/impl/l0$a;->()V .line 9 invoke-static {p0}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->getAdvertisingIdInfo(Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info; move-result-object v3 .line 10 invoke-virtual {v3}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->isLimitAdTrackingEnabled()Z move-result v4 .line 11 invoke-virtual {v0, v4}, Lcom/applovin/impl/l0$a;->a(Z)V if-eqz v4, :cond_0 .line 12 sget-object v4, Lcom/applovin/impl/l0$a$a;->c:Lcom/applovin/impl/l0$a$a; goto :goto_0 :catchall_0 move-exception v0 goto :goto_1 .line 13 :cond_0 sget-object v4, Lcom/applovin/impl/l0$a$a;->d:Lcom/applovin/impl/l0$a$a; :goto_0 invoke-virtual {v0, v4}, Lcom/applovin/impl/l0$a;->a(Lcom/applovin/impl/l0$a$a;)V .line 14 invoke-virtual {v3}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;->getId()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v3}, Lcom/applovin/impl/l0$a;->a(Ljava/lang/String;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 .line 20 :goto_1 invoke-static {p0}, Lcom/applovin/sdk/AppLovinSdkUtils;->isFireOS(Landroid/content/Context;)Z move-result p0 if-nez p0, :cond_2 .line 22 invoke-static {v2, v1, v0}, Lcom/applovin/impl/sdk/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V goto :goto_2 .line 27 :cond_1 invoke-static {p0}, Lcom/applovin/sdk/AppLovinSdkUtils;->isFireOS(Landroid/content/Context;)Z move-result p0 if-nez p0, :cond_2 .line 29 invoke-static {v2, v1}, Lcom/applovin/impl/sdk/n;->h(Ljava/lang/String;Ljava/lang/String;)V :cond_2 :goto_2 const/4 p0, 0x0 return-object p0 .end method