ConsentInformation.smali
.class public Lcom/google/ads/consent/ConsentInformation;
.super Ljava/lang/Object;
.source "ConsentInformation.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ads/consent/ConsentInformation$ConsentInfoUpdateTask;,
Lcom/google/ads/consent/ConsentInformation$ServerResponse;,
Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;,
Lcom/google/ads/consent/ConsentInformation$ConsentInfoUpdateResponse;
}
.end annotation
# static fields
.field private static final CONSENT_DATA_KEY:Ljava/lang/String; = "consent_string"
.field private static final MOBILE_ADS_SERVER_URL:Ljava/lang/String; = "https://adservice.google.com/getconfig/pubvendors"
.field private static final PREFERENCES_FILE_KEY:Ljava/lang/String; = "mobileads_consent"
.field private static final TAG:Ljava/lang/String; = "ConsentInformation"
.field private static instance:Lcom/google/ads/consent/ConsentInformation;
# instance fields
.field private final context:Landroid/content/Context;
.field private debugGeography:Lcom/google/ads/consent/DebugGeography;
.field private hashedDeviceId:Ljava/lang/String;
.field private testDevices:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Landroid/content/Context;)V
.registers 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lcom/google/ads/consent/ConsentInformation;->context:Landroid/content/Context;
.line 3
sget-object p1, Lcom/google/ads/consent/DebugGeography;->DEBUG_GEOGRAPHY_DISABLED:Lcom/google/ads/consent/DebugGeography;
iput-object p1, p0, Lcom/google/ads/consent/ConsentInformation;->debugGeography:Lcom/google/ads/consent/DebugGeography;
.line 4
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lcom/google/ads/consent/ConsentInformation;->testDevices:Ljava/util/List;
.line 5
invoke-direct {p0}, Lcom/google/ads/consent/ConsentInformation;->f()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/google/ads/consent/ConsentInformation;->hashedDeviceId:Ljava/lang/String;
return-void
.end method
.method public static declared-synchronized a(Landroid/content/Context;)Lcom/google/ads/consent/ConsentInformation;
.registers 3
const-class v0, Lcom/google/ads/consent/ConsentInformation;
monitor-enter v0
.line 2
:try_start_3
sget-object v1, Lcom/google/ads/consent/ConsentInformation;->instance:Lcom/google/ads/consent/ConsentInformation;
if-nez v1, :cond_e
.line 3
new-instance v1, Lcom/google/ads/consent/ConsentInformation;
invoke-direct {v1, p0}, Lcom/google/ads/consent/ConsentInformation;-><init>(Landroid/content/Context;)V
sput-object v1, Lcom/google/ads/consent/ConsentInformation;->instance:Lcom/google/ads/consent/ConsentInformation;
.line 4
:cond_e
sget-object p0, Lcom/google/ads/consent/ConsentInformation;->instance:Lcom/google/ads/consent/ConsentInformation;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v0
return-object p0
:catchall_12
move-exception p0
monitor-exit v0
throw p0
.end method
.method private a(Ljava/lang/String;)Ljava/lang/String;
.registers 11
const/4 v0, 0x0
const/4 v1, 0x0
:goto_2
const/4 v2, 0x3
const/4 v3, 0x0
if-ge v1, v2, :cond_2e
:try_start_6
const-string v2, "MD5"
.line 5
invoke-static {v2}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object v2
.line 6
invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B
move-result-object v4
invoke-virtual {v2, v4}, Ljava/security/MessageDigest;->update([B)V
.line 7
sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v5, "%032X"
const/4 v6, 0x1
new-array v7, v6, [Ljava/lang/Object;
new-instance v8, Ljava/math/BigInteger;
invoke-virtual {v2}, Ljava/security/MessageDigest;->digest()[B
move-result-object v2
invoke-direct {v8, v6, v2}, Ljava/math/BigInteger;-><init>(I[B)V
aput-object v8, v7, v0
invoke-static {v4, v5, v7}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
:try_end_29
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_6 .. :try_end_29} :catch_2b
.catch Ljava/lang/ArithmeticException; {:try_start_6 .. :try_end_29} :catch_2a
return-object p1
:catch_2a
return-object v3
:catch_2b
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_2e
return-object v3
.end method
.method private a(Ljava/util/List;Ljava/util/HashSet;)Ljava/util/HashSet;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/google/ads/consent/AdProvider;",
">;",
"Ljava/util/HashSet<",
"Ljava/lang/String;",
">;)",
"Ljava/util/HashSet<",
"Lcom/google/ads/consent/AdProvider;",
">;"
}
.end annotation
.line 37
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 38
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_9
:goto_9
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_23
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/ads/consent/AdProvider;
.line 39
invoke-virtual {v1}, Lcom/google/ads/consent/AdProvider;->a()Ljava/lang/String;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_9
.line 40
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_9
.line 41
:cond_23
new-instance p1, Ljava/util/HashSet;
invoke-direct {p1, v0}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
return-object p1
.end method
.method private a(Lcom/google/ads/consent/ConsentData;)V
.registers 5
.line 71
iget-object v0, p0, Lcom/google/ads/consent/ConsentInformation;->context:Landroid/content/Context;
const-string v1, "mobileads_consent"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v0
.line 72
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
.line 73
new-instance v1, Lcom/google/gson/j;
invoke-direct {v1}, Lcom/google/gson/j;-><init>()V
invoke-virtual {v1, p1}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string v1, "consent_string"
.line 74
invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
.line 75
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
return-void
.end method
.method private a(Lcom/google/ads/consent/ConsentInformation$ServerResponse;)V
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 12
iget-object v0, p1, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->isRequestLocationInEeaOrUnknown:Ljava/lang/Boolean;
const-string v1, "Could not parse Event FE preflight response."
if-eqz v0, :cond_a7
.line 13
iget-object v2, p1, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->companies:Ljava/util/List;
if-nez v2, :cond_17
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-nez v0, :cond_11
goto :goto_17
.line 14
:cond_11
new-instance p1, Ljava/lang/Exception;
invoke-direct {p1, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
throw p1
.line 15
:cond_17
:goto_17
iget-object v0, p1, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->isRequestLocationInEeaOrUnknown:Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-nez v0, :cond_20
return-void
.line 16
:cond_20
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 17
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 18
iget-object p1, p1, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->adNetworkLookupResponses:Ljava/util/List;
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_30
:goto_30
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_57
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;
.line 19
invoke-static {v2}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->a(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Z
move-result v3
if-eqz v3, :cond_49
.line 20
invoke-static {v2}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->b(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
.line 21
:cond_49
invoke-static {v2}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->c(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Z
move-result v3
if-eqz v3, :cond_30
.line 22
invoke-static {v2}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->b(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
goto :goto_30
.line 23
:cond_57
invoke-virtual {v0}, Ljava/util/HashSet;->isEmpty()Z
move-result p1
if-eqz p1, :cond_64
invoke-virtual {v1}, Ljava/util/HashSet;->isEmpty()Z
move-result p1
if-eqz p1, :cond_64
return-void
.line 24
:cond_64
new-instance p1, Ljava/lang/StringBuilder;
const-string v2, "Response error."
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 25
invoke-virtual {v0}, Ljava/util/HashSet;->isEmpty()Z
move-result v2
const/4 v3, 0x0
const/4 v4, 0x1
const-string v5, ","
if-nez v2, :cond_86
.line 26
invoke-static {v5, v0}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
move-result-object v0
.line 27
new-array v2, v4, [Ljava/lang/Object;
aput-object v0, v2, v3
const-string v0, " Lookup failure for: %s."
.line 28
invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 29
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 30
:cond_86
invoke-virtual {v1}, Ljava/util/HashSet;->isEmpty()Z
move-result v0
if-nez v0, :cond_9d
.line 31
invoke-static {v5, v1}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
move-result-object v0
.line 32
new-array v1, v4, [Ljava/lang/Object;
aput-object v0, v1, v3
const-string v0, " Publisher Ids not found: %s"
.line 33
invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 34
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 35
:cond_9d
new-instance v0, Ljava/lang/Exception;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
throw v0
.line 36
:cond_a7
new-instance p1, Ljava/lang/Exception;
invoke-direct {p1, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
goto :goto_ae
:goto_ad
throw p1
:goto_ae
goto :goto_ad
.end method
.method static synthetic a(Lcom/google/ads/consent/ConsentInformation;Ljava/lang/String;Ljava/util/List;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/ads/consent/ConsentInformation;->a(Ljava/lang/String;Ljava/util/List;)V
return-void
.end method
.method private declared-synchronized a(Ljava/lang/String;Ljava/util/List;)V
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
monitor-enter p0
.line 42
:try_start_1
new-instance v0, Lcom/google/gson/j;
invoke-direct {v0}, Lcom/google/gson/j;-><init>()V
const-class v1, Lcom/google/ads/consent/ConsentInformation$ServerResponse;
invoke-virtual {v0, p1, v1}, Lcom/google/gson/j;->a(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;
.line 43
invoke-direct {p0, v0}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentInformation$ServerResponse;)V
.line 44
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 45
iget-object v2, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->adNetworkLookupResponses:Ljava/util/List;
const/4 v3, 0x1
const/4 v4, 0x0
if-eqz v2, :cond_41
.line 46
iget-object v2, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->adNetworkLookupResponses:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
const/4 v5, 0x0
:goto_23
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_42
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;
.line 47
invoke-static {v6}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->d(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Z
move-result v7
if-nez v7, :cond_36
goto :goto_23
.line 48
:cond_36
invoke-static {v6}, Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;->e(Lcom/google/ads/consent/ConsentInformation$AdNetworkLookupResponse;)Ljava/util/List;
move-result-object v5
if-eqz v5, :cond_3f
.line 49
invoke-virtual {v1, v5}, Ljava/util/HashSet;->addAll(Ljava/util/Collection;)Z
:cond_3f
const/4 v5, 0x1
goto :goto_23
:cond_41
const/4 v5, 0x0
.line 50
:cond_42
iget-object v2, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->companies:Ljava/util/List;
if-nez v2, :cond_4c
.line 51
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
goto :goto_5c
:cond_4c
if-eqz v5, :cond_55
.line 52
iget-object v2, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->companies:Ljava/util/List;
.line 53
invoke-direct {p0, v2, v1}, Lcom/google/ads/consent/ConsentInformation;->a(Ljava/util/List;Ljava/util/HashSet;)Ljava/util/HashSet;
move-result-object v1
goto :goto_5c
.line 54
:cond_55
new-instance v1, Ljava/util/HashSet;
iget-object v2, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->companies:Ljava/util/List;
invoke-direct {v1, v2}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
.line 55
:goto_5c
invoke-virtual {p0}, Lcom/google/ads/consent/ConsentInformation;->e()Lcom/google/ads/consent/ConsentData;
move-result-object v2
.line 56
invoke-virtual {v2}, Lcom/google/ads/consent/ConsentData;->f()Z
move-result v6
if-eq v6, v5, :cond_67
goto :goto_68
:cond_67
const/4 v3, 0x0
.line 57
:goto_68
invoke-virtual {v2, v5}, Lcom/google/ads/consent/ConsentData;->a(Z)V
.line 58
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->b(Ljava/lang/String;)V
.line 59
new-instance p1, Ljava/util/HashSet;
invoke-direct {p1, p2}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->c(Ljava/util/HashSet;)V
.line 60
invoke-virtual {v2, v1}, Lcom/google/ads/consent/ConsentData;->a(Ljava/util/HashSet;)V
.line 61
iget-object p1, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->isRequestLocationInEeaOrUnknown:Ljava/lang/Boolean;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->b(Z)V
.line 62
iget-object p1, v0, Lcom/google/ads/consent/ConsentInformation$ServerResponse;->isRequestLocationInEeaOrUnknown:Ljava/lang/Boolean;
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
move-result p1
if-nez p1, :cond_8f
.line 63
invoke-direct {p0, v2}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentData;)V
:try_end_8d
.catchall {:try_start_1 .. :try_end_8d} :catchall_b6
.line 64
monitor-exit p0
return-void
.line 65
:cond_8f
:try_start_8f
invoke-virtual {v2}, Lcom/google/ads/consent/ConsentData;->a()Ljava/util/HashSet;
move-result-object p1
invoke-virtual {v2}, Lcom/google/ads/consent/ConsentData;->c()Ljava/util/HashSet;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/util/HashSet;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_9f
if-eqz v3, :cond_b1
:cond_9f
const-string p1, "sdk"
.line 66
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->a(Ljava/lang/String;)V
.line 67
sget-object p1, Lcom/google/ads/consent/ConsentStatus;->UNKNOWN:Lcom/google/ads/consent/ConsentStatus;
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->a(Lcom/google/ads/consent/ConsentStatus;)V
.line 68
new-instance p1, Ljava/util/HashSet;
invoke-direct {p1}, Ljava/util/HashSet;-><init>()V
invoke-virtual {v2, p1}, Lcom/google/ads/consent/ConsentData;->b(Ljava/util/HashSet;)V
.line 69
:cond_b1
invoke-direct {p0, v2}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentData;)V
:try_end_b4
.catchall {:try_start_8f .. :try_end_b4} :catchall_b6
.line 70
monitor-exit p0
return-void
:catchall_b6
move-exception p1
monitor-exit p0
goto :goto_ba
:goto_b9
throw p1
:goto_ba
goto :goto_b9
.end method
.method private f()Ljava/lang/String;
.registers 3
.line 1
iget-object v0, p0, Lcom/google/ads/consent/ConsentInformation;->context:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
if-nez v0, :cond_a
const/4 v0, 0x0
goto :goto_10
:cond_a
const-string v1, "android_id"
.line 2
invoke-static {v0, v1}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
:goto_10
if-eqz v0, :cond_18
.line 3
invoke-direct {p0}, Lcom/google/ads/consent/ConsentInformation;->g()Z
move-result v1
if-eqz v1, :cond_1a
:cond_18
const-string v0, "emulator"
:cond_1a
invoke-direct {p0, v0}, Lcom/google/ads/consent/ConsentInformation;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private g()Z
.registers 5
.line 1
sget-object v0, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;
const-string v1, "generic"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;
const-string v2, "unknown"
.line 2
invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;
const-string v2, "google_sdk"
.line 3
invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;
const-string v3, "Emulator"
.line 4
invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;
const-string v3, "Android SDK built for x86"
.line 5
invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
const-string v3, "Genymotion"
.line 6
invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_57
sget-object v0, Landroid/os/Build;->BRAND:Ljava/lang/String;
.line 7
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_4c
sget-object v0, Landroid/os/Build;->DEVICE:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_57
:cond_4c
sget-object v0, Landroid/os/Build;->PRODUCT:Ljava/lang/String;
.line 8
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_55
goto :goto_57
:cond_55
const/4 v0, 0x0
goto :goto_58
:cond_57
:goto_57
const/4 v0, 0x1
:goto_58
return v0
.end method
# virtual methods
.method public declared-synchronized a()Lcom/google/ads/consent/ConsentStatus;
.registers 2
monitor-enter p0
.line 85
:try_start_1
invoke-virtual {p0}, Lcom/google/ads/consent/ConsentInformation;->e()Lcom/google/ads/consent/ConsentData;
move-result-object v0
.line 86
invoke-virtual {v0}, Lcom/google/ads/consent/ConsentData;->b()Lcom/google/ads/consent/ConsentStatus;
move-result-object v0
:try_end_9
.catchall {:try_start_1 .. :try_end_9} :catchall_b
monitor-exit p0
return-object v0
:catchall_b
move-exception v0
monitor-exit p0
throw v0
.end method
.method public a(Lcom/google/ads/consent/ConsentStatus;)V
.registers 3
const-string v0, "programmatic"
.line 76
invoke-virtual {p0, p1, v0}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentStatus;Ljava/lang/String;)V
return-void
.end method
.method protected declared-synchronized a(Lcom/google/ads/consent/ConsentStatus;Ljava/lang/String;)V
.registers 5
monitor-enter p0
.line 77
:try_start_1
invoke-virtual {p0}, Lcom/google/ads/consent/ConsentInformation;->e()Lcom/google/ads/consent/ConsentData;
move-result-object v0
.line 78
sget-object v1, Lcom/google/ads/consent/ConsentStatus;->UNKNOWN:Lcom/google/ads/consent/ConsentStatus;
if-ne p1, v1, :cond_12
.line 79
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
invoke-virtual {v0, v1}, Lcom/google/ads/consent/ConsentData;->b(Ljava/util/HashSet;)V
goto :goto_19
.line 80
:cond_12
invoke-virtual {v0}, Lcom/google/ads/consent/ConsentData;->a()Ljava/util/HashSet;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/ads/consent/ConsentData;->b(Ljava/util/HashSet;)V
.line 81
:goto_19
invoke-virtual {v0, p2}, Lcom/google/ads/consent/ConsentData;->a(Ljava/lang/String;)V
.line 82
invoke-virtual {v0, p1}, Lcom/google/ads/consent/ConsentData;->a(Lcom/google/ads/consent/ConsentStatus;)V
.line 83
invoke-direct {p0, v0}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentData;)V
:try_end_22
.catchall {:try_start_1 .. :try_end_22} :catchall_24
.line 84
monitor-exit p0
return-void
:catchall_24
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized a(Z)V
.registers 3
monitor-enter p0
.line 8
:try_start_1
invoke-virtual {p0}, Lcom/google/ads/consent/ConsentInformation;->e()Lcom/google/ads/consent/ConsentData;
move-result-object v0
.line 9
invoke-virtual {v0, p1}, Lcom/google/ads/consent/ConsentData;->c(Z)V
.line 10
invoke-direct {p0, v0}, Lcom/google/ads/consent/ConsentInformation;->a(Lcom/google/ads/consent/ConsentData;)V
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_d
.line 11
monitor-exit p0
return-void
:catchall_d
move-exception p1
monitor-exit p0
throw p1
.end method
.method public b()Lcom/google/ads/consent/DebugGeography;
.registers 2
.line 1
iget-object v0, p0, Lcom/google/ads/consent/ConsentInformation;->debugGeography:Lcom/google/ads/consent/DebugGeography;
return-object v0
.end method
.method public c()Z
.registers 2
.line 1
invoke-virtual {p0}, Lcom/google/ads/consent/ConsentInformation;->e()Lcom/google/ads/consent/ConsentData;
move-result-object v0
.line 2
invoke-virtual {v0}, Lcom/google/ads/consent/ConsentData;->g()Z
move-result v0
return v0
.end method
.method public d()Z
.registers 3
.line 1
invoke-direct {p0}, Lcom/google/ads/consent/ConsentInformation;->g()Z
move-result v0
if-nez v0, :cond_13
iget-object v0, p0, Lcom/google/ads/consent/ConsentInformation;->testDevices:Ljava/util/List;
iget-object v1, p0, Lcom/google/ads/consent/ConsentInformation;->hashedDeviceId:Ljava/lang/String;
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_11
goto :goto_13
:cond_11
const/4 v0, 0x0
goto :goto_14
:cond_13
:goto_13
const/4 v0, 0x1
:goto_14
return v0
.end method
.method protected e()Lcom/google/ads/consent/ConsentData;
.registers 4
.line 1
iget-object v0, p0, Lcom/google/ads/consent/ConsentInformation;->context:Landroid/content/Context;
const-string v1, "mobileads_consent"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v0
const-string v1, "consent_string"
const-string v2, ""
.line 2
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/S