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

278 lines
6.2 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Lf/c/a/n1;
.super Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
.source "SdkClickHandler.java"
2020-05-17 12:40:10 +00:00
# interfaces
2020-07-08 16:44:49 +00:00
.implements Ljava/lang/Runnable;
2020-05-17 12:40:10 +00:00
# instance fields
2020-07-08 16:44:49 +00:00
.field public final synthetic d:Lf/c/a/p;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.field public final synthetic e:Lf/c/a/k1;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Lf/c/a/k1;Lf/c/a/p;)V
.locals 0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/c/a/n1;->e:Lf/c/a/k1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object p2, p0, Lf/c/a/n1;->d:Lf/c/a/p;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# virtual methods
.method public run()V
.locals 15
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lf/c/a/n1;->e:Lf/c/a/k1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lf/c/a/n1;->d:Lf/c/a/p;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v2, v0, Lf/c/a/k1;->f:Ljava/lang/ref/WeakReference;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v2, Lf/c/a/o0;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3, v1, Lf/c/a/p;->parameters:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v4, "source"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v3, Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v3, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v6, "reftag"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v6, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v6, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
iget-object v7, v1, Lf/c/a/p;->parameters:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v8, "raw_referrer"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v7, v8}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v7, Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v6, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v8, Lf/c/a/r1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v2}, Lf/c/a/o0;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v9
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v8, v9}, Lf/c/a/r1;-><init>(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-wide v9, v1, Lf/c/a/p;->clickTimeInMilliseconds:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v8, v7, v9, v10}, Lf/c/a/r1;->b(Ljava/lang/String;J)Lorg/json/JSONArray;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v8, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto/16 :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
if-eqz v3, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v8, "install_referrer"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v3, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v3, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v4, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-wide/16 v8, -0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v4, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-wide v8, v1, Lf/c/a/p;->clickTimeInSeconds:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-wide v10, v1, Lf/c/a/p;->installBeginTimeInSeconds:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3, v1, Lf/c/a/p;->parameters:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v12, "referrer"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v3, v12}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v3, Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
move-wide v10, v8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
const-string v12, "https://app.adjust.com"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v12}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v13, v1, Lf/c/a/p;->path:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:try_start_0
iget-object v13, v0, Lf/c/a/k1;->d:Ljava/util/List;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v13}, Ljava/util/List;->size()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v13
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sub-int/2addr v13, v5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v12, v1, v13}, Ld0/a/b/b/a;->u(Ljava/lang/String;Lf/c/a/p;I)Lf/c/a/j1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v12, Lf/c/a/o1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v13, v12, Lf/c/a/j1;->f:Lorg/json/JSONObject;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v13, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
if-nez v2, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
if-eqz v6, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v6, Lf/c/a/r1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v2}, Lf/c/a/o0;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v13
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v6, v13}, Lf/c/a/r1;-><init>(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-wide v13, v1, Lf/c/a/p;->clickTimeInMilliseconds:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v6, v7, v13, v14}, Lf/c/a/r1;->g(Ljava/lang/String;J)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
if-eqz v4, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-wide v8, v12, Lf/c/a/o1;->i:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-wide v10, v12, Lf/c/a/o1;->j:J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v3, v12, Lf/c/a/o1;->k:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-boolean v5, v12, Lf/c/a/o1;->h:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
invoke-interface {v2, v12}, Lf/c/a/o0;->b(Lf/c/a/j1;)V
:try_end_0
.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-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:catchall_0
move-exception v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "Sdk_click runtime exception"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:catch_0
move-exception v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "Sdk_click request failed. Will retry later"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:catch_1
move-exception v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "Sdk_click request timed out. Will retry later"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Lf/c/a/k1;->b(Lf/c/a/p;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:catch_2
move-exception v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "Sdk_click failed to encode parameters"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/k1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_2
iget-object v0, p0, Lf/c/a/n1;->e:Lf/c/a/k1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, v0, Lf/c/a/k1;->e:Lf/c/a/l0;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Lf/c/a/m1;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v0}, Lf/c/a/m1;-><init>(Lf/c/a/k1;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, v1, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
2020-05-17 12:40:10 +00:00
return-void
.end method