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

304 lines
7.1 KiB
Smali
Raw Normal View History

2020-05-11 19:22:21 +00:00
.class public Lf/c/a/n1;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "RequestHandler.java"
# interfaces
2020-05-11 19:22:21 +00:00
.implements Lf/c/a/w0;
2019-12-06 03:29:40 +00:00
# instance fields
2020-05-11 19:22:21 +00:00
.field public a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
.field public b:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
2020-05-11 19:22:21 +00:00
"Lf/c/a/v0;",
2019-12-06 03:29:40 +00:00
">;"
}
.end annotation
.end field
2020-05-11 19:22:21 +00:00
.field public c:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
# direct methods
2020-05-11 19:22:21 +00:00
.method public constructor <init>(Lf/c/a/v0;)V
2019-12-06 03:29:40 +00:00
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-11 19:22:21 +00:00
invoke-static {}, Lf/c/a/z;->a()Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/n1;->c:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
new-instance v0, Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
const-string v1, "RequestHandler"
const/4 v2, 0x0
2020-05-11 19:22:21 +00:00
invoke-direct {v0, v1, v2}, Lf/c/a/p0;-><init>(Ljava/lang/String;Z)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/n1;->a:Lf/c/a/p0;
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/n1;->b:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
2020-05-11 19:22:21 +00:00
.method public final a(Lf/c/a/s;I)V
2019-12-06 03:29:40 +00:00
.locals 2
const-string v0, "https://app.adjust.com"
2020-05-11 19:22:21 +00:00
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-05-11 19:22:21 +00:00
invoke-virtual {p1}, Lf/c/a/s;->k()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:try_start_0
2020-05-11 19:22:21 +00:00
invoke-static {v0, p1, p2}, Ls/a/b/b/a;->a(Ljava/lang/String;Lf/c/a/s;I)Lf/c/a/o1;
2019-12-06 03:29:40 +00:00
move-result-object p2
2020-05-11 19:22:21 +00:00
iget-object v0, p0, Lf/c/a/n1;->b:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/v0;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
return-void
:cond_0
2020-05-11 19:22:21 +00:00
iget-object v1, p2, Lf/c/a/o1;->f:Lorg/json/JSONObject;
2019-12-06 03:29:40 +00:00
: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
if-nez v1, :cond_1
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/k1;
2019-12-06 03:29:40 +00:00
:try_start_1
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, p2, p1}, Lf/c/a/k1;->a(Lf/c/a/o1;Lf/c/a/s;)V
2019-12-06 03:29:40 +00:00
:try_end_1
.catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_2
.catch Ljava/net/SocketTimeoutException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
return-void
:cond_1
2020-05-11 19:22:21 +00:00
check-cast v0, Lf/c/a/k1;
2019-12-06 03:29:40 +00:00
:try_start_2
2020-05-11 19:22:21 +00:00
invoke-virtual {v0, p2}, Lf/c/a/k1;->a(Lf/c/a/o1;)V
2019-12-06 03:29:40 +00:00
:try_end_2
.catch Ljava/io/UnsupportedEncodingException; {:try_start_2 .. :try_end_2} :catch_2
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_0
:catchall_0
move-exception p2
const-string v0, "Runtime exception"
2020-05-11 19:22:21 +00:00
invoke-virtual {p0, p1, v0, p2}, Lf/c/a/n1;->b(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:catch_0
move-exception p2
const-string v0, "Request failed"
2020-05-11 19:22:21 +00:00
invoke-virtual {p0, p1, v0, p2}, Lf/c/a/n1;->a(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:catch_1
move-exception p2
const-string v0, "Request timed out"
2020-05-11 19:22:21 +00:00
invoke-virtual {p0, p1, v0, p2}, Lf/c/a/n1;->a(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
goto :goto_0
:catch_2
move-exception p2
const-string v0, "Failed to encode parameters"
2020-05-11 19:22:21 +00:00
invoke-virtual {p0, p1, v0, p2}, Lf/c/a/n1;->b(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
:goto_0
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public final a(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
.locals 2
2020-05-11 19:22:21 +00:00
invoke-virtual {p1}, Lf/c/a/s;->g()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-05-11 19:22:21 +00:00
invoke-static {p2, p3}, Lf/c/a/a2;->a(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p2
const/4 p3, 0x2
new-array p3, p3, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object v0, p3, v1
const/4 v0, 0x1
aput-object p2, p3, v0
const-string p2, "%s. (%s) Will retry later"
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
2020-05-11 19:22:21 +00:00
iget-object p3, p0, Lf/c/a/n1;->c:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v0, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
check-cast p3, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {p3, p2, v0}, Lf/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-static {p1}, Lf/c/a/o1;->a(Lf/c/a/s;)Lf/c/a/o1;
2019-12-06 03:29:40 +00:00
move-result-object p3
2020-05-11 19:22:21 +00:00
iput-object p2, p3, Lf/c/a/o1;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p2, p0, Lf/c/a/n1;->b:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
2020-05-11 19:22:21 +00:00
check-cast p2, Lf/c/a/v0;
2019-12-06 03:29:40 +00:00
if-nez p2, :cond_0
return-void
:cond_0
2020-05-11 19:22:21 +00:00
check-cast p2, Lf/c/a/k1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {p2, p3, p1}, Lf/c/a/k1;->a(Lf/c/a/o1;Lf/c/a/s;)V
2019-12-06 03:29:40 +00:00
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public a(Lf/c/a/v0;)V
2019-12-06 03:29:40 +00:00
.locals 1
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
2020-05-11 19:22:21 +00:00
iput-object v0, p0, Lf/c/a/n1;->b:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
return-void
.end method
2020-05-11 19:22:21 +00:00
.method public final b(Lf/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
2019-12-06 03:29:40 +00:00
.locals 2
2020-05-11 19:22:21 +00:00
invoke-virtual {p1}, Lf/c/a/s;->g()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-05-11 19:22:21 +00:00
invoke-static {p2, p3}, Lf/c/a/a2;->a(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p2
const/4 p3, 0x2
new-array p3, p3, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object v0, p3, v1
const/4 v0, 0x1
aput-object p2, p3, v0
const-string p2, "%s. (%s)"
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
2020-05-11 19:22:21 +00:00
iget-object p3, p0, Lf/c/a/n1;->c:Lf/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v0, v1, [Ljava/lang/Object;
2020-05-11 19:22:21 +00:00
check-cast p3, Lf/c/a/b1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {p3, p2, v0}, Lf/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-static {p1}, Lf/c/a/o1;->a(Lf/c/a/s;)Lf/c/a/o1;
2019-12-06 03:29:40 +00:00
move-result-object p1
2020-05-11 19:22:21 +00:00
iput-object p2, p1, Lf/c/a/o1;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
iget-object p2, p0, Lf/c/a/n1;->b:Ljava/lang/ref/WeakReference;
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p2
2020-05-11 19:22:21 +00:00
check-cast p2, Lf/c/a/v0;
2019-12-06 03:29:40 +00:00
if-nez p2, :cond_0
return-void
:cond_0
2020-05-11 19:22:21 +00:00
check-cast p2, Lf/c/a/k1;
2019-12-06 03:29:40 +00:00
2020-05-11 19:22:21 +00:00
invoke-virtual {p2, p1}, Lf/c/a/k1;->a(Lf/c/a/o1;)V
2019-12-06 03:29:40 +00:00
return-void
.end method