apkfuckery/com.discord/smali/f/c/a/c1.smali

350 lines
7.3 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Lf/c/a/c1;
.super Ljava/lang/Object;
2020-11-14 03:19:56 +00:00
.source "SdkClickHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-14 03:19:56 +00:00
.field public final synthetic d:Lf/c/a/l;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.field public final synthetic e:Lf/c/a/z0;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
# direct methods
.method public constructor <init>(Lf/c/a/z0;Lf/c/a/l;)V
.locals 0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object p1, p0, Lf/c/a/c1;->e:Lf/c/a/z0;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object p2, p0, Lf/c/a/c1;->d:Lf/c/a/l;
2020-11-12 02:11:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-14 03:19:56 +00:00
return-void
.end method
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
# virtual methods
.method public run()V
.locals 15
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Lf/c/a/c1;->e:Lf/c/a/z0;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v1, p0, Lf/c/a/c1;->d:Lf/c/a/l;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v2, v0, Lf/c/a/z0;->g:Ljava/lang/ref/WeakReference;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v2, Lf/c/a/h0;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->i()Ljava/util/Map;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v4, "source"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v3, Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v4, 0x0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v3, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v5, "reftag"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result v5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v5, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const/4 v5, 0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_0
2020-11-12 02:11:44 +00:00
:cond_0
2020-11-14 03:19:56 +00:00
const/4 v5, 0x0
:goto_0
invoke-virtual {v1}, Lf/c/a/l;->i()Ljava/util/Map;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v6
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v7, "raw_referrer"
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-interface {v6, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v6
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v6, Ljava/lang/String;
if-eqz v5, :cond_1
new-instance v7, Lf/c/a/g1;
invoke-interface {v2}, Lf/c/a/h0;->getContext()Landroid/content/Context;
move-result-object v8
invoke-direct {v7, v8}, Lf/c/a/g1;-><init>(Landroid/content/Context;)V
invoke-virtual {v1}, Lf/c/a/l;->c()J
move-result-wide v8
invoke-virtual {v7, v6, v8, v9}, Lf/c/a/g1;->e(Ljava/lang/String;J)Lorg/json/JSONArray;
move-result-object v7
if-nez v7, :cond_1
goto/16 :goto_6
2020-11-12 02:11:44 +00:00
:cond_1
2020-11-14 03:19:56 +00:00
if-eqz v3, :cond_2
const-string v7, "install_referrer"
invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_2
const/4 v4, 0x1
:cond_2
2020-11-12 02:11:44 +00:00
const/4 v3, 0x0
2020-11-14 03:19:56 +00:00
const-wide/16 v7, -0x1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v4, :cond_3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->d()J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-wide v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->h()J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-wide v9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->i()Ljava/util/Map;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v11, "referrer"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-interface {v3, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v3, Ljava/lang/String;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->i()Ljava/util/Map;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v12, "referrer_api"
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-interface {v11, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v11
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v11, Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_3
move-object v11, v3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-wide v9, v7
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_1
const-string v12, "https://app.adjust.com"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v13, v0, Lf/c/a/z0;->d:Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v13, :cond_4
invoke-static {v12}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
move-result-object v12
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v13, v0, Lf/c/a/z0;->d:Ljava/lang/String;
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v12
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_4
invoke-static {v12}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v12
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Lf/c/a/l;->k()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v13
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v12
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:try_start_0
iget-object v13, v0, Lf/c/a/z0;->e:Ljava/util/List;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-interface {v13}, Ljava/util/List;->size()I
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
move-result v13
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
add-int/lit8 v13, v13, -0x1
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v12, v1, v13}, Ls/a/b/b/a;->o(Ljava/lang/String;Lf/c/a/l;I)Lf/c/a/y0;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v12
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
check-cast v12, Lf/c/a/d1;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v13, v12, Lf/c/a/y0;->f:Lorg/json/JSONObject;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
if-nez v13, :cond_5
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1}, Lf/c/a/z0;->c(Lf/c/a/l;)V
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_6
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_5
if-nez v2, :cond_6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_6
iget-object v13, v12, Lf/c/a/y0;->g:Lf/c/a/h1;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
sget-object v14, Lf/c/a/h1;->d:Lf/c/a/h1;
if-ne v13, v14, :cond_7
invoke-interface {v2}, Lf/c/a/h0;->n()V
goto :goto_6
:cond_7
if-eqz v5, :cond_8
new-instance v5, Lf/c/a/g1;
invoke-interface {v2}, Lf/c/a/h0;->getContext()Landroid/content/Context;
move-result-object v13
invoke-direct {v5, v13}, Lf/c/a/g1;-><init>(Landroid/content/Context;)V
invoke-virtual {v1}, Lf/c/a/l;->c()J
move-result-wide v13
invoke-virtual {v5, v6, v13, v14}, Lf/c/a/g1;->j(Ljava/lang/String;J)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:cond_8
if-eqz v4, :cond_9
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v7, v12, Lf/c/a/d1;->j:J
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v9, v12, Lf/c/a/d1;->k:J
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v3, v12, Lf/c/a/d1;->l:Ljava/lang/String;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object v11, v12, Lf/c/a/d1;->m:Ljava/lang/String;
const/4 v3, 0x1
iput-boolean v3, v12, Lf/c/a/d1;->i:Z
:cond_9
invoke-interface {v2, v12}, Lf/c/a/h0;->e(Lf/c/a/y0;)V
2020-11-12 02:11:44 +00:00
:try_end_0
2020-11-14 03:19:56 +00:00
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
2020-11-12 02:11:44 +00:00
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-11-14 03:19:56 +00:00
goto :goto_6
2020-11-12 02:11:44 +00:00
:catchall_0
2020-11-14 03:19:56 +00:00
move-exception v2
2020-11-12 02:11:44 +00:00
goto :goto_2
:catch_0
2020-11-14 03:19:56 +00:00
move-exception v2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_3
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:catch_1
move-exception v2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_4
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:catch_2
move-exception v2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_5
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_2
const-string v3, "Sdk_click runtime exception"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/z0;->b(Lf/c/a/l;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_6
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_3
const-string v3, "Sdk_click request failed. Will retry later"
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/z0;->b(Lf/c/a/l;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1}, Lf/c/a/z0;->c(Lf/c/a/l;)V
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
goto :goto_6
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
:goto_4
const-string v3, "Sdk_click request timed out. Will retry later"
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/z0;->b(Lf/c/a/l;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v0, v1}, Lf/c/a/z0;->c(Lf/c/a/l;)V
goto :goto_6
:goto_5
const-string v3, "Sdk_click failed to encode parameters"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/z0;->b(Lf/c/a/l;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_6
iget-object v0, p0, Lf/c/a/c1;->e:Lf/c/a/z0;
iget-object v1, v0, Lf/c/a/z0;->f:Lf/c/a/n1/h;
new-instance v2, Lf/c/a/b1;
invoke-direct {v2, v0}, Lf/c/a/b1;-><init>(Lf/c/a/z0;)V
check-cast v1, Lf/c/a/n1/c;
invoke-virtual {v1, v2}, Lf/c/a/n1/c;->c(Ljava/lang/Runnable;)V
return-void
2020-11-12 02:11:44 +00:00
.end method