apkfuckery/com.discord/smali/f/c/a/g0.smali
2020-09-09 19:21:20 +00:00

232 lines
4.5 KiB
Smali

.class public Lf/c/a/g0;
.super Ljava/lang/Object;
.source "AdjustSigner.java"
# static fields
.field public static volatile a:Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a()V
.locals 3
sget-object v0, Lf/c/a/g0;->a:Ljava/lang/Object;
if-nez v0, :cond_2
const-class v0, Lf/c/a/g0;
monitor-enter v0
:try_start_0
sget-object v1, Lf/c/a/g0;->a:Ljava/lang/Object;
if-nez v1, :cond_1
const-string v1, "com.adjust.sdk.sig.Signer"
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
const/4 v2, 0x0
:try_start_1
invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
move-object v1, v2
:goto_0
if-nez v1, :cond_0
goto :goto_1
:cond_0
:try_start_2
invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
:goto_1
:try_start_3
sput-object v2, Lf/c/a/g0;->a:Ljava/lang/Object;
:cond_1
monitor-exit v0
goto :goto_2
:catchall_2
move-exception v1
monitor-exit v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
throw v1
:cond_2
:goto_2
return-void
.end method
.method public static b(Lf/c/a/w0;)V
.locals 5
invoke-static {}, Lf/c/a/g0;->a()V
sget-object v0, Lf/c/a/g0;->a:Ljava/lang/Object;
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
:try_start_0
sget-object v1, Lf/c/a/g0;->a:Ljava/lang/Object;
const-string v2, "onResume"
const/4 v3, 0x0
new-array v4, v0, [Ljava/lang/Object;
invoke-static {v1, v2, v3, v4}, Le0/a/b/b/a;->I(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v1
aput-object v1, v2, v0
const-string v0, "Invoking Signer onResume() received an error [%s]"
invoke-interface {p0, v0, v2}, Lf/c/a/w0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public static c(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;Lf/c/a/w0;)V
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Landroid/content/Context;",
"Lf/c/a/w0;",
")V"
}
.end annotation
const-class v0, Ljava/lang/String;
invoke-static {}, Lf/c/a/g0;->a()V
sget-object v1, Lf/c/a/g0;->a:Ljava/lang/Object;
if-nez v1, :cond_0
return-void
:cond_0
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x2
:try_start_0
sget-object v4, Lf/c/a/g0;->a:Ljava/lang/Object;
const-string v5, "sign"
const/4 v6, 0x4
new-array v7, v6, [Ljava/lang/Class;
const-class v8, Landroid/content/Context;
aput-object v8, v7, v2
const-class v8, Ljava/util/Map;
aput-object v8, v7, v1
aput-object v0, v7, v3
const/4 v8, 0x3
aput-object v0, v7, v8
new-array v0, v6, [Ljava/lang/Object;
aput-object p3, v0, v2
aput-object p0, v0, v1
aput-object p1, v0, v3
aput-object p2, v0, v8
invoke-static {v4, v5, v7, v0}, Le0/a/b/b/a;->I(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
new-array p2, v3, [Ljava/lang/Object;
aput-object p1, p2, v2
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p0
aput-object p0, p2, v1
const-string p0, "Invoking Signer sign() for %s received an error [%s]"
invoke-interface {p4, p0, p2}, Lf/c/a/w0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method