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

332 lines
7.2 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Lf/c/a/v1;
2020-07-08 16:44:49 +00:00
.super Ljava/lang/Object;
2020-07-25 02:57:47 +00:00
.source "SdkClickHandler.java"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
# interfaces
.implements Ljava/lang/Runnable;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
# instance fields
.field public final synthetic d:Lf/c/a/u;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
.field public final synthetic e:Lf/c/a/s1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
# direct methods
.method public constructor <init>(Lf/c/a/s1;Lf/c/a/u;)V
.locals 0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-object p1, p0, Lf/c/a/v1;->e:Lf/c/a/s1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-object p2, p0, Lf/c/a/v1;->d:Lf/c/a/u;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
return-void
2020-07-08 16:44:49 +00:00
.end method
2020-07-25 02:57:47 +00:00
# virtual methods
.method public run()V
.locals 15
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v0, p0, Lf/c/a/v1;->e:Lf/c/a/s1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v1, p0, Lf/c/a/v1;->d:Lf/c/a/u;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v2, v0, Lf/c/a/s1;->g:Ljava/lang/ref/WeakReference;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v2, Lf/c/a/u0;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v3, v1, Lf/c/a/u;->parameters:Ljava/util/Map;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v4, "source"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v3
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v3, Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const/4 v4, 0x0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v3, :cond_0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v5, "reftag"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result v5
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v5, :cond_0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const/4 v5, 0x1
2020-07-08 16:44:49 +00:00
goto :goto_0
:cond_0
2020-07-25 02:57:47 +00:00
const/4 v5, 0x0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_0
iget-object v6, v1, Lf/c/a/u;->parameters:Ljava/util/Map;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v7, "raw_referrer"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v6, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v6, Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v5, :cond_1
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
new-instance v7, Lf/c/a/z1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v2}, Lf/c/a/u0;->getContext()Landroid/content/Context;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v8
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-direct {v7, v8}, Lf/c/a/z1;-><init>(Landroid/content/Context;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-wide v8, v1, Lf/c/a/u;->clickTimeInMilliseconds:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v7, v6, v8, v9}, Lf/c/a/z1;->e(Ljava/lang/String;J)Lorg/json/JSONArray;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v7
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-nez v7, :cond_1
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto/16 :goto_6
2020-07-08 16:44:49 +00:00
:cond_1
2020-07-25 02:57:47 +00:00
if-eqz v3, :cond_2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v7, "install_referrer"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result v3
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v3, :cond_2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const/4 v4, 0x1
2020-07-08 16:44:49 +00:00
:cond_2
2020-07-25 02:57:47 +00:00
const/4 v3, 0x0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-wide/16 v7, -0x1
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v4, :cond_3
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-wide v7, v1, Lf/c/a/u;->clickTimeInSeconds:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-wide v9, v1, Lf/c/a/u;->installBeginTimeInSeconds:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v3, v1, Lf/c/a/u;->parameters:Ljava/util/Map;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v11, "referrer"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v3, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-07-25 02:57:47 +00:00
check-cast v3, Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v11, v1, Lf/c/a/u;->parameters:Ljava/util/Map;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
const-string v12, "referrer_api"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v11, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v11
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v11, Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_1
2020-07-08 16:44:49 +00:00
:cond_3
2020-07-25 02:57:47 +00:00
move-object v11, v3
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-wide v9, v7
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_1
const-string v12, "https://app.adjust.com"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v13, v0, Lf/c/a/s1;->d:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v13, :cond_4
2020-07-08 16:44:49 +00:00
2020-10-27 04:20:34 +00:00
invoke-static {v12}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v12
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v13, v0, Lf/c/a/s1;->d:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v12
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_4
2020-10-27 04:20:34 +00:00
invoke-static {v12}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v12
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v13, v1, Lf/c/a/u;->path:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v12
2020-07-08 16:44:49 +00:00
:try_start_0
2020-07-25 02:57:47 +00:00
iget-object v13, v0, Lf/c/a/s1;->e:Ljava/util/List;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v13}, Ljava/util/List;->size()I
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result v13
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
add-int/lit8 v13, v13, -0x1
2020-07-08 16:44:49 +00:00
2020-09-29 21:44:44 +00:00
invoke-static {v12, v1, v13}, Lv/a/b/b/a;->p(Ljava/lang/String;Lf/c/a/u;I)Lf/c/a/r1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v12
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v12, Lf/c/a/w1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v13, v12, Lf/c/a/r1;->f:Lorg/json/JSONObject;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-nez v13, :cond_5
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1}, Lf/c/a/s1;->c(Lf/c/a/u;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_5
if-nez v2, :cond_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_6
iget-object v13, v12, Lf/c/a/r1;->g:Lf/c/a/a2;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
sget-object v14, Lf/c/a/a2;->d:Lf/c/a/a2;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
if-ne v13, v14, :cond_7
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v2}, Lf/c/a/u0;->n()V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_7
if-eqz v5, :cond_8
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
new-instance v5, Lf/c/a/z1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v2}, Lf/c/a/u0;->getContext()Landroid/content/Context;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v13
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-direct {v5, v13}, Lf/c/a/z1;-><init>(Landroid/content/Context;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-wide v13, v1, Lf/c/a/u;->clickTimeInMilliseconds:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v5, v6, v13, v14}, Lf/c/a/z1;->j(Ljava/lang/String;J)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_8
if-eqz v4, :cond_9
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-wide v7, v12, Lf/c/a/w1;->j:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-wide v9, v12, Lf/c/a/w1;->k:J
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-object v3, v12, Lf/c/a/w1;->l:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iput-object v11, v12, Lf/c/a/w1;->m:Ljava/lang/String;
2020-07-08 16:44:49 +00:00
const/4 v3, 0x1
2020-07-25 02:57:47 +00:00
iput-boolean v3, v12, Lf/c/a/w1;->i:Z
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:cond_9
invoke-interface {v2, v12}, Lf/c/a/u0;->e(Lf/c/a/r1;)V
2020-07-08 16:44:49 +00:00
:try_end_0
2020-07-25 02:57:47 +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
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:catchall_0
move-exception v2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_2
2020-07-08 16:44:49 +00:00
:catch_0
2020-07-25 02:57:47 +00:00
move-exception v2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_3
2020-07-08 16:44:49 +00:00
:catch_1
2020-07-25 02:57:47 +00:00
move-exception v2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_4
2020-07-08 16:44:49 +00:00
:catch_2
2020-07-25 02:57:47 +00:00
move-exception v2
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_5
2020-07-08 16:44:49 +00:00
:goto_2
2020-07-25 02:57:47 +00:00
const-string v3, "Sdk_click runtime exception"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/s1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_3
const-string v3, "Sdk_click request failed. Will retry later"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/s1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1}, Lf/c/a/s1;->c(Lf/c/a/u;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_4
const-string v3, "Sdk_click request timed out. Will retry later"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/s1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1}, Lf/c/a/s1;->c(Lf/c/a/u;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_6
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_5
const-string v3, "Sdk_click failed to encode parameters"
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/s1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
:goto_6
iget-object v0, p0, Lf/c/a/v1;->e:Lf/c/a/s1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
iget-object v1, v0, Lf/c/a/s1;->f:Lf/c/a/f2/h;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
new-instance v2, Lf/c/a/u1;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-direct {v2, v0}, Lf/c/a/u1;-><init>(Lf/c/a/s1;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
check-cast v1, Lf/c/a/f2/c;
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v1, v2}, Lf/c/a/f2/c;->c(Ljava/lang/Runnable;)V
2020-07-08 16:44:49 +00:00
2020-07-25 02:57:47 +00:00
return-void
2020-07-08 16:44:49 +00:00
.end method