apkfuckery/com.discord/smali/com/adjust/sdk/ac.smali
2019-10-23 06:50:18 +02:00

1022 lines
23 KiB
Smali

.class public final Lcom/adjust/sdk/ac;
.super Ljava/lang/Object;
.source "InstallReferrer.java"
# interfaces
.implements Ljava/lang/reflect/InvocationHandler;
# instance fields
.field private ai:Lcom/adjust/sdk/x;
.field private bM:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/adjust/sdk/v;",
">;"
}
.end annotation
.end field
.field private cE:I
.field private cF:Z
.field private cG:Ljava/lang/Object;
.field private cH:Ljava/lang/Object;
.field private cI:Lcom/adjust/sdk/ay;
.field private context:Landroid/content/Context;
.field private retries:I
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/adjust/sdk/v;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0xbb8
iput v0, p0, Lcom/adjust/sdk/ac;->cE:I
invoke-static {}, Lcom/adjust/sdk/j;->Q()Lcom/adjust/sdk/x;
move-result-object v0
iput-object v0, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
iput-object p1, p0, Lcom/adjust/sdk/ac;->context:Landroid/content/Context;
new-instance p1, Ljava/lang/Object;
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/adjust/sdk/ac;->cH:Ljava/lang/Object;
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/adjust/sdk/ac;->cF:Z
iput p1, p0, Lcom/adjust/sdk/ac;->retries:I
new-instance p1, Lcom/adjust/sdk/ay;
new-instance v0, Lcom/adjust/sdk/ac$1;
invoke-direct {v0, p0}, Lcom/adjust/sdk/ac$1;-><init>(Lcom/adjust/sdk/ac;)V
const-string v1, "InstallReferrer"
invoke-direct {p1, v0, v1}, Lcom/adjust/sdk/ay;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
iput-object p1, p0, Lcom/adjust/sdk/ac;->cI:Lcom/adjust/sdk/ay;
new-instance p1, Ljava/lang/ref/WeakReference;
invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object p1, p0, Lcom/adjust/sdk/ac;->bM:Ljava/lang/ref/WeakReference;
invoke-virtual {p0}, Lcom/adjust/sdk/ac;->ae()V
return-void
.end method
.method private a(Ljava/lang/Class;)Ljava/lang/Object;
.locals 3
if-nez p1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
invoke-virtual {p1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Class;
const/4 v2, 0x0
aput-object p1, v1, v2
invoke-static {v0, v1, p0}, Ljava/lang/reflect/Proxy;->newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method private a(I)V
.locals 11
const/4 v0, -0x1
const/4 v1, 0x0
if-eq p1, v0, :cond_5
const/4 v0, 0x3
const/4 v2, 0x2
const/4 v3, 0x1
if-eqz p1, :cond_3
if-eq p1, v3, :cond_2
if-eq p1, v2, :cond_1
if-eq p1, v0, :cond_0
iget-object v0, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v2, v3, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v2, v1
const-string p1, "Unexpected response code of install referrer response: %d"
invoke-interface {v0, p1, v2}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_0
:cond_0
iget-object p1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v0, v1, [Ljava/lang/Object;
const-string v1, "Install referrer general errors caused by incorrect usage. Retrying ..."
invoke-interface {p1, v1, v0}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ah()V
goto/16 :goto_0
:cond_1
iget-object p1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v0, v1, [Ljava/lang/Object;
const-string v1, "Install referrer not available on the current Play Store app."
invoke-interface {p1, v1, v0}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
:cond_2
iget-object p1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v0, v1, [Ljava/lang/Object;
const-string v1, "Could not initiate connection to the Install Referrer service. Retrying ..."
invoke-interface {p1, v1, v0}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ah()V
goto :goto_0
:cond_3
:try_start_0
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ag()Ljava/lang/Object;
move-result-object p1
invoke-direct {p0, p1}, Lcom/adjust/sdk/ac;->d(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v9
invoke-direct {p0, p1}, Lcom/adjust/sdk/ac;->e(Ljava/lang/Object;)J
move-result-wide v5
invoke-direct {p0, p1}, Lcom/adjust/sdk/ac;->f(Ljava/lang/Object;)J
move-result-wide v7
iget-object p1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string v4, "installReferrer: %s, clickTime: %d, installBeginTime: %d"
new-array v0, v0, [Ljava/lang/Object;
aput-object v9, v0, v1
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v10
aput-object v10, v0, v3
invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v10
aput-object v10, v0, v2
invoke-interface {p1, v4, v0}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object p1, p0, Lcom/adjust/sdk/ac;->bM:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
move-object v4, p1
check-cast v4, Lcom/adjust/sdk/v;
if-eqz v4, :cond_4
invoke-interface/range {v4 .. v9}, Lcom/adjust/sdk/v;->a(JJLjava/lang/String;)V
:cond_4
iget-object p1, p0, Lcom/adjust/sdk/ac;->cH:Ljava/lang/Object;
monitor-enter p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
iput-boolean v3, p0, Lcom/adjust/sdk/ac;->cF:Z
monitor-exit p1
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
throw v0
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
move-exception p1
iget-object v0, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v2, v3, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v2, v1
const-string p1, "Couldn\'t get install referrer from client (%s). Retrying ..."
invoke-interface {v0, p1, v2}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ah()V
goto :goto_0
:cond_5
iget-object p1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v0, v1, [Ljava/lang/Object;
const-string v1, "Play Store service is not connected now. Retrying ..."
invoke-interface {p1, v1, v0}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ah()V
:goto_0
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ai()V
return-void
.end method
.method private a(Ljava/lang/Class;Ljava/lang/Object;)V
.locals 5
iget-object v0, p0, Lcom/adjust/sdk/ac;->cG:Ljava/lang/Object;
if-nez v0, :cond_0
return-void
:cond_0
if-eqz p1, :cond_2
if-nez p2, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
const/4 v2, 0x1
:try_start_0
const-string v3, "startConnection"
new-array v4, v2, [Ljava/lang/Class;
aput-object p1, v4, v1
new-array p1, v2, [Ljava/lang/Object;
aput-object p2, p1, v1
invoke-static {v0, v3, v4, p1}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
iget-object p2, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v0, v2, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v0, v1
const-string p1, "startConnection error (%s)"
invoke-interface {p2, p1, v0}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2
:goto_0
return-void
.end method
.method private af()Ljava/lang/Class;
.locals 4
:try_start_0
const-string v0, "com.android.installreferrer.a.a"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
iget-object v1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v2, v3
const-string v0, "getInstallReferrerStateListenerClass error (%s)"
invoke-interface {v1, v0, v2}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v0, 0x0
return-object v0
.end method
.method private ag()Ljava/lang/Object;
.locals 5
iget-object v0, p0, Lcom/adjust/sdk/ac;->cG:Ljava/lang/Object;
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
:cond_0
const/4 v2, 0x0
:try_start_0
const-string v3, "getInstallReferrer"
new-array v4, v2, [Ljava/lang/Object;
invoke-static {v0, v3, v1, v4}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
iget-object v3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v4, v2
const-string v0, "getInstallReferrer error (%s)"
invoke-interface {v3, v0, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v1
.end method
.method private ah()V
.locals 7
iget-object v0, p0, Lcom/adjust/sdk/ac;->cH:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/adjust/sdk/ac;->cF:Z
const/4 v2, 0x0
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string v3, "Install referrer has already been read"
new-array v2, v2, [Ljava/lang/Object;
invoke-interface {v1, v3, v2}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
monitor-exit v0
return-void
:cond_0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget v0, p0, Lcom/adjust/sdk/ac;->retries:I
const/4 v1, 0x1
add-int/2addr v0, v1
iput v0, p0, Lcom/adjust/sdk/ac;->retries:I
iget v0, p0, Lcom/adjust/sdk/ac;->retries:I
const/4 v3, 0x2
if-le v0, v3, :cond_1
iget-object v0, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v1, v2, [Ljava/lang/Object;
const-string v2, "Limit number of retry for install referrer surpassed"
invoke-interface {v0, v2, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_1
iget-object v0, p0, Lcom/adjust/sdk/ac;->cI:Lcom/adjust/sdk/ay;
invoke-virtual {v0}, Lcom/adjust/sdk/ay;->ay()J
move-result-wide v3
const-wide/16 v5, 0x0
cmp-long v0, v3, v5
if-lez v0, :cond_2
iget-object v0, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v1, v2
const-string v2, "Already waiting to retry to read install referrer in %d milliseconds"
invoke-interface {v0, v2, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_2
iget-object v0, p0, Lcom/adjust/sdk/ac;->cI:Lcom/adjust/sdk/ay;
iget v1, p0, Lcom/adjust/sdk/ac;->cE:I
int-to-long v1, v1
invoke-virtual {v0, v1, v2}, Lcom/adjust/sdk/ay;->f(J)V
return-void
:catchall_0
move-exception v1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
.method private ai()V
.locals 5
iget-object v0, p0, Lcom/adjust/sdk/ac;->cG:Ljava/lang/Object;
if-nez v0, :cond_0
return-void
:cond_0
const/4 v1, 0x0
const/4 v2, 0x0
:try_start_0
const-string v3, "endConnection"
new-array v4, v2, [Ljava/lang/Object;
invoke-static {v0, v3, v1, v4}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
iget-object v3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
aput-object v0, v4, v2
const-string v0, "closeReferrerClient error (%s)"
invoke-interface {v3, v0, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
iput-object v1, p0, Lcom/adjust/sdk/ac;->cG:Ljava/lang/Object;
return-void
.end method
.method private d(Ljava/lang/Object;)Ljava/lang/String;
.locals 4
const/4 v0, 0x0
if-nez p1, :cond_0
return-object v0
:cond_0
const/4 v1, 0x0
:try_start_0
const-string v2, "getInstallReferrer"
new-array v3, v1, [Ljava/lang/Object;
invoke-static {p1, v2, v0, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
iget-object v2, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v3, v1
const-string p1, "getStringInstallReferrer error (%s)"
invoke-interface {v2, p1, v3}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v0
.end method
.method private e(Ljava/lang/Object;)J
.locals 6
const-wide/16 v0, -0x1
if-nez p1, :cond_0
return-wide v0
:cond_0
const/4 v2, 0x0
:try_start_0
const-string v3, "getReferrerClickTimestampSeconds"
const/4 v4, 0x0
new-array v5, v2, [Ljava/lang/Object;
invoke-static {p1, v3, v4, v5}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Long;
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-wide v0
:catch_0
move-exception p1
iget-object v3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v4, v2
const-string p1, "getReferrerClickTimestampSeconds error (%s)"
invoke-interface {v3, p1, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-wide v0
.end method
.method private f(Ljava/lang/Object;)J
.locals 6
const-wide/16 v0, -0x1
if-nez p1, :cond_0
return-wide v0
:cond_0
const/4 v2, 0x0
:try_start_0
const-string v3, "getInstallBeginTimestampSeconds"
const/4 v4, 0x0
new-array v5, v2, [Ljava/lang/Object;
invoke-static {p1, v3, v4, v5}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Long;
invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
move-result-wide v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-wide v0
:catch_0
move-exception p1
iget-object v3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v4, v2
const-string p1, "getInstallBeginTimestampSeconds error (%s)"
invoke-interface {v3, p1, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-wide v0
.end method
.method private f(Landroid/content/Context;)Ljava/lang/Object;
.locals 7
const/4 v0, 0x0
if-nez p1, :cond_0
return-object v0
:cond_0
const/4 v1, 0x1
const/4 v2, 0x0
:try_start_0
const-string v3, "com.android.installreferrer.api.InstallReferrerClient"
const-string v4, "newBuilder"
new-array v5, v1, [Ljava/lang/Class;
const-class v6, Landroid/content/Context;
aput-object v6, v5, v2
new-array v6, v1, [Ljava/lang/Object;
aput-object p1, v6, v2
invoke-static {v3, v4, v5, v6}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
const-string v3, "build"
new-array v4, v2, [Ljava/lang/Object;
invoke-static {p1, v3, v0, v4}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
iget-object v3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v1, v2
const-string p1, "Couldn\'t create instance of referrer client (%s)"
invoke-interface {v3, p1, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public final ae()V
.locals 4
invoke-direct {p0}, Lcom/adjust/sdk/ac;->ai()V
iget-object v0, p0, Lcom/adjust/sdk/ac;->cH:Ljava/lang/Object;
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/adjust/sdk/ac;->cF:Z
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string v2, "Install referrer has already been read"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-interface {v1, v2, v3}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
monitor-exit v0
return-void
:cond_0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object v0, p0, Lcom/adjust/sdk/ac;->context:Landroid/content/Context;
invoke-direct {p0, v0}, Lcom/adjust/sdk/ac;->f(Landroid/content/Context;)Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/adjust/sdk/ac;->cG:Ljava/lang/Object;
invoke-direct {p0}, Lcom/adjust/sdk/ac;->af()Ljava/lang/Class;
move-result-object v0
invoke-direct {p0, v0}, Lcom/adjust/sdk/ac;->a(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v1
invoke-direct {p0, v0, v1}, Lcom/adjust/sdk/ac;->a(Ljava/lang/Class;Ljava/lang/Object;)V
return-void
:catchall_0
move-exception v1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
.method public final invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
const/4 p1, 0x1
const/4 v0, 0x0
:try_start_0
invoke-virtual {p2}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object p2
iget-object v1, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string v2, "InstallReferrer invoke method name: %s"
new-array v3, p1, [Ljava/lang/Object;
aput-object p2, v3, v0
invoke-interface {v1, v2, v3}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
array-length v1, p3
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, p3, v2
iget-object v4, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string v5, "InstallReferrer invoke arg: %s"
new-array v6, p1, [Ljava/lang/Object;
aput-object v3, v6, v0
invoke-interface {v4, v5, v6}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
const-string v1, "onInstallReferrerSetupFinished"
invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
aget-object p2, p3, v0
check-cast p2, Ljava/lang/Integer;
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
move-result p2
invoke-direct {p0, p2}, Lcom/adjust/sdk/ac;->a(I)V
goto :goto_1
:cond_1
const-string p3, "onInstallReferrerServiceDisconnected"
invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_2
iget-object p2, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
const-string p3, "InstallReferrer onInstallReferrerServiceDisconnected"
new-array v1, v0, [Ljava/lang/Object;
invoke-interface {p2, p3, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception p2
iget-object p3, p0, Lcom/adjust/sdk/ac;->ai:Lcom/adjust/sdk/x;
new-array p1, p1, [Ljava/lang/Object;
invoke-virtual {p2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p2
aput-object p2, p1, v0
const-string p2, "InstallReferrer invoke error (%s)"
invoke-interface {p3, p2, p1}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2
:goto_1
const/4 p1, 0x0
return-object p1
.end method