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

231 lines
5.2 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Lf/c/a/p1;
.super Ljava/lang/Object;
2020-07-25 02:57:47 +00:00
.source "RequestHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
2020-05-17 12:40:10 +00:00
# instance fields
2020-07-25 02:57:47 +00:00
.field public final synthetic d:Lf/c/a/u;
.field public final synthetic e:I
.field public final synthetic f:Lf/c/a/q1;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-25 02:57:47 +00:00
.method public constructor <init>(Lf/c/a/q1;Lf/c/a/u;I)V
2020-07-08 16:44:49 +00:00
.locals 0
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iput-object p1, p0, Lf/c/a/p1;->f:Lf/c/a/q1;
iput-object p2, p0, Lf/c/a/p1;->d:Lf/c/a/u;
iput p3, p0, Lf/c/a/p1;->e:I
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
2020-07-25 02:57:47 +00:00
.method public run()V
.locals 7
iget-object v0, p0, Lf/c/a/p1;->f:Lf/c/a/q1;
iget-object v1, p0, Lf/c/a/p1;->d:Lf/c/a/u;
iget v2, p0, Lf/c/a/p1;->e:I
if-eqz v0, :cond_7
iget-object v3, v1, Lf/c/a/u;->activityKind:Lf/c/a/t;
sget-object v4, Lf/c/a/t;->l:Lf/c/a/t;
if-ne v3, v4, :cond_0
const-string v3, "https://gdpr.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->f:Ljava/lang/String;
if-eqz v4, :cond_2
2020-11-02 23:44:01 +00:00
invoke-static {v3}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v3
iget-object v4, v0, Lf/c/a/q1;->f:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
2020-07-25 02:57:47 +00:00
sget-object v4, Lf/c/a/t;->o:Lf/c/a/t;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
if-ne v3, v4, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
const-string v3, "https://subscription.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->g:Ljava/lang/String;
if-eqz v4, :cond_2
2020-11-02 23:44:01 +00:00
invoke-static {v3}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-07-25 02:57:47 +00:00
move-result-object v3
iget-object v4, v0, Lf/c/a/q1;->g:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
2020-07-25 02:57:47 +00:00
const-string v3, "https://app.adjust.com"
iget-object v4, v0, Lf/c/a/q1;->e:Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
if-eqz v4, :cond_2
2020-11-02 23:44:01 +00:00
invoke-static {v3}, Lf/e/c/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 v3
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-object v4, v0, Lf/c/a/q1;->e:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
2020-07-25 02:57:47 +00:00
:goto_0
2020-11-02 23:44:01 +00:00
invoke-static {v3}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-object v4, v1, Lf/c/a/u;->path:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
:try_start_0
2020-11-09 19:03:49 +00:00
invoke-static {v3, v1, v2}, Ls/a/b/b/a;->p(Ljava/lang/String;Lf/c/a/u;I)Lf/c/a/r1;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
iget-object v3, v0, Lf/c/a/q1;->b:Ljava/lang/ref/WeakReference;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lf/c/a/x0;
if-nez v3, :cond_3
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
2020-07-25 02:57:47 +00:00
iget-object v4, v0, Lf/c/a/q1;->c:Ljava/lang/ref/WeakReference;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-virtual {v4}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
check-cast v4, Lf/c/a/u0;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
if-nez v4, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
2020-07-25 02:57:47 +00:00
iget-object v5, v2, Lf/c/a/r1;->g:Lf/c/a/a2;
sget-object v6, Lf/c/a/a2;->d:Lf/c/a/a2;
if-ne v5, v6, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v4}, Lf/c/a/u0;->n()V
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
:cond_5
iget-object v4, v2, Lf/c/a/r1;->f:Lorg/json/JSONObject;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
if-nez v4, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-interface {v3, v2, v1}, Lf/c/a/x0;->i(Lf/c/a/r1;Lf/c/a/u;)V
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
:cond_6
invoke-interface {v3, v2}, Lf/c/a/x0;->f(Lf/c/a/r1;)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-25 02:57:47 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
:catchall_0
move-exception v2
const-string v3, "Runtime exception"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_0
move-exception v2
const-string v3, "Request failed"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->a(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_1
move-exception v2
const-string v3, "Request timed out"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->a(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_1
:catch_2
move-exception v2
const-string v3, "Failed to encode parameters"
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/q1;->b(Lf/c/a/u;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_1
return-void
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
:cond_7
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method