AFd1zSDK.smali
.class public abstract Lcom/appsflyer/internal/AFd1zSDK;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public final AFInAppEventParameterName:Lcom/appsflyer/internal/AFd1nSDK;
.field public final AFInAppEventType:Ljava/util/concurrent/FutureTask;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/FutureTask<",
"TT;>;"
}
.end annotation
.end field
.field public final AFKeystoreWrapper:Landroid/content/Context;
.field public final valueOf:Ljava/lang/String;
.field private final values:[Ljava/lang/String;
# direct methods
.method public varargs constructor <init>(Landroid/content/Context;Lcom/appsflyer/internal/AFd1nSDK;Ljava/lang/String;[Ljava/lang/String;)V
.registers 7
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/concurrent/FutureTask;
new-instance v1, Lcom/appsflyer/internal/AFd1zSDK$1;
invoke-direct {v1, p0}, Lcom/appsflyer/internal/AFd1zSDK$1;-><init>(Lcom/appsflyer/internal/AFd1zSDK;)V
invoke-direct {v0, v1}, Ljava/util/concurrent/FutureTask;-><init>(Ljava/util/concurrent/Callable;)V
iput-object v0, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFInAppEventType:Ljava/util/concurrent/FutureTask;
iput-object p1, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFKeystoreWrapper:Landroid/content/Context;
iput-object p3, p0, Lcom/appsflyer/internal/AFd1zSDK;->valueOf:Ljava/lang/String;
iput-object p4, p0, Lcom/appsflyer/internal/AFd1zSDK;->values:[Ljava/lang/String;
iput-object p2, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFInAppEventParameterName:Lcom/appsflyer/internal/AFd1nSDK;
return-void
.end method
# virtual methods
.method public final AFInAppEventParameterName()Z
.registers 6
const/4 v0, 0x1
const/4 v1, 0x0
:try_start_2
iget-object v2, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFKeystoreWrapper:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
iget-object v3, p0, Lcom/appsflyer/internal/AFd1zSDK;->valueOf:Ljava/lang/String;
const/16 v4, 0x80
invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
move-result-object v2
if-eqz v2, :cond_2b
iget-object v3, p0, Lcom/appsflyer/internal/AFd1zSDK;->values:[Ljava/lang/String;
invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v3
iget-object v4, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFKeystoreWrapper:Landroid/content/Context;
invoke-virtual {v4}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v4
iget-object v2, v2, Landroid/content/pm/PackageItemInfo;->packageName:Ljava/lang/String;
invoke-static {v4, v2}, Lcom/appsflyer/internal/AFb1qSDK;->AFInAppEventParameterName(Landroid/content/pm/PackageManager;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-interface {v3, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v2
:try_end_28
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_28} :catch_30
.catch Ljava/security/cert/CertificateException; {:try_start_2 .. :try_end_28} :catch_2e
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_2 .. :try_end_28} :catch_2c
if-eqz v2, :cond_2b
return v0
:cond_2b
return v1
:catch_2c
move-exception v2
goto :goto_31
:catch_2e
move-exception v2
goto :goto_31
:catch_30
move-exception v2
:goto_31
invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v3
invoke-static {v3, v2, v1, v0}, Lcom/appsflyer/AFLogger;->afErrorLog(Ljava/lang/String;Ljava/lang/Throwable;ZZ)V
return v1
.end method
.method protected abstract AFInAppEventType()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.end method
.method public valueOf()Ljava/lang/Object;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
:try_start_2
iget-object v2, p0, Lcom/appsflyer/internal/AFd1zSDK;->AFInAppEventType:Ljava/util/concurrent/FutureTask;
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
const-wide/16 v4, 0x1f4
invoke-virtual {v2, v4, v5, v3}, Ljava/util/concurrent/FutureTask;->get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
move-result-object v0
:try_end_c
.catch Ljava/util/concurrent/TimeoutException; {:try_start_2 .. :try_end_c} :catch_19
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_c} :catch_f
.catch Ljava/util/concurrent/ExecutionException; {:try_start_2 .. :try_end_c} :catch_d
return-object v0
:catch_d
move-exception v2
goto :goto_10
:catch_f
move-exception v2
:goto_10
invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v3
const/4 v4, 0x1
invoke-static {v3, v2, v1, v4}, Lcom/appsflyer/AFLogger;->afErrorLog(Ljava/lang/String;Ljava/lang/Throwable;ZZ)V
return-object v0
:catch_19
move-exception v2
invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v3
invoke-static {v3, v2, v1, v1}, Lcom/appsflyer/AFLogger;->afErrorLog(Ljava/lang/String;Ljava/lang/Throwable;ZZ)V
return-object v0
.end method