apkfuckery/com.discord/smali/com/adjust/sdk/j.smali

409 lines
8.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lcom/adjust/sdk/j;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "AdjustFactory.java"
2019-02-04 20:08:30 +00:00
# static fields
2019-05-03 18:53:54 +00:00
.field private static bO:Lcom/adjust/sdk/y; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static bQ:Lcom/adjust/sdk/x; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static bY:Lcom/adjust/sdk/w; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static bZ:Lcom/adjust/sdk/ab; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dh:Lcom/adjust/sdk/z; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static di:Lcom/adjust/sdk/v; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dj:Ljavax/net/ssl/HttpsURLConnection; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dk:J = -0x1L
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dl:J = -0x1L
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dm:J = -0x1L
2019-02-17 00:24:05 +00:00
2019-05-03 18:53:54 +00:00
.field private static dn:J = -0x1L
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static do:Lcom/adjust/sdk/q; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dp:Lcom/adjust/sdk/q; = null
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private static dq:J = -0x1L
2019-02-04 20:08:30 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public static X()Lcom/adjust/sdk/x;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->bQ:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/ae;
invoke-direct {v0}, Lcom/adjust/sdk/ae;-><init>()V
2019-05-03 18:53:54 +00:00
sput-object v0, Lcom/adjust/sdk/j;->bQ:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
:cond_0
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->bQ:Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
return-object v0
.end method
.method public static Y()J
.locals 5
2019-05-03 18:53:54 +00:00
sget-wide v0, Lcom/adjust/sdk/j;->dk:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0xea60
:cond_0
return-wide v0
.end method
.method public static Z()J
.locals 5
2019-05-03 18:53:54 +00:00
sget-wide v0, Lcom/adjust/sdk/j;->dl:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0xea60
:cond_0
return-wide v0
.end method
.method public static a(Lcom/adjust/sdk/v;Z)Lcom/adjust/sdk/ab;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->bZ:Lcom/adjust/sdk/ab;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 02:24:41 +00:00
new-instance v0, Lcom/adjust/sdk/as;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v0, p0, p1}, Lcom/adjust/sdk/as;-><init>(Lcom/adjust/sdk/v;Z)V
2019-02-04 20:08:30 +00:00
return-object v0
:cond_0
invoke-interface {v0, p0, p1}, Lcom/adjust/sdk/ab;->b(Lcom/adjust/sdk/v;Z)V
2019-05-03 18:53:54 +00:00
sget-object p0, Lcom/adjust/sdk/j;->bZ:Lcom/adjust/sdk/ab;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)Lcom/adjust/sdk/w;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->bY:Lcom/adjust/sdk/w;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/o;
invoke-direct {v0, p0, p1, p2}, Lcom/adjust/sdk/o;-><init>(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)V
return-object v0
:cond_0
invoke-interface {v0, p0, p1, p2}, Lcom/adjust/sdk/w;->b(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)V
2019-05-03 18:53:54 +00:00
sget-object p0, Lcom/adjust/sdk/j;->bY:Lcom/adjust/sdk/w;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/v;Landroid/content/Context;Z)Lcom/adjust/sdk/y;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->bO:Lcom/adjust/sdk/y;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 02:24:41 +00:00
new-instance v0, Lcom/adjust/sdk/ao;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v0, p0, p1, p2}, Lcom/adjust/sdk/ao;-><init>(Lcom/adjust/sdk/v;Landroid/content/Context;Z)V
2019-02-04 20:08:30 +00:00
return-object v0
:cond_0
invoke-interface {v0, p0, p1, p2}, Lcom/adjust/sdk/y;->b(Lcom/adjust/sdk/v;Landroid/content/Context;Z)V
2019-05-03 18:53:54 +00:00
sget-object p0, Lcom/adjust/sdk/j;->bO:Lcom/adjust/sdk/y;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/y;)Lcom/adjust/sdk/z;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->dh:Lcom/adjust/sdk/z;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-02-17 02:24:41 +00:00
new-instance v0, Lcom/adjust/sdk/aq;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v0, p0}, Lcom/adjust/sdk/aq;-><init>(Lcom/adjust/sdk/y;)V
2019-02-04 20:08:30 +00:00
return-object v0
:cond_0
invoke-interface {v0, p0}, Lcom/adjust/sdk/z;->b(Lcom/adjust/sdk/y;)V
2019-05-03 18:53:54 +00:00
sget-object p0, Lcom/adjust/sdk/j;->dh:Lcom/adjust/sdk/z;
2019-02-04 20:08:30 +00:00
return-object p0
.end method
.method public static a(Ljava/net/URL;)Ljavax/net/ssl/HttpsURLConnection;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->dj:Ljavax/net/ssl/HttpsURLConnection;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
invoke-virtual {p0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object p0
check-cast p0, Ljavax/net/ssl/HttpsURLConnection;
return-object p0
:cond_0
2019-02-04 20:29:01 +00:00
return-object v0
2019-02-04 20:08:30 +00:00
.end method
.method public static aa()J
.locals 5
2019-05-03 18:53:54 +00:00
sget-wide v0, Lcom/adjust/sdk/j;->dm:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0x1b7740
:cond_0
return-wide v0
.end method
.method public static ab()J
.locals 5
2019-05-03 18:53:54 +00:00
sget-wide v0, Lcom/adjust/sdk/j;->dn:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/16 v0, 0x3e8
:cond_0
return-wide v0
.end method
.method public static ac()Lcom/adjust/sdk/q;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->do:Lcom/adjust/sdk/q;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/q;->dA:Lcom/adjust/sdk/q;
2019-02-04 20:08:30 +00:00
:cond_0
return-object v0
.end method
.method public static ad()Lcom/adjust/sdk/q;
.locals 1
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->dp:Lcom/adjust/sdk/q;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/q;->dz:Lcom/adjust/sdk/q;
2019-02-04 20:08:30 +00:00
:cond_0
return-object v0
.end method
.method public static ae()J
.locals 5
2019-05-03 18:53:54 +00:00
sget-wide v0, Lcom/adjust/sdk/j;->dq:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/16 v0, 0x2710
:cond_0
return-wide v0
.end method
2019-02-17 02:24:41 +00:00
.method public static b(Lcom/adjust/sdk/f;)Lcom/adjust/sdk/v;
2019-02-04 20:08:30 +00:00
.locals 7
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/j;->di:Lcom/adjust/sdk/v;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez v0, :cond_5
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/adjust/sdk/f;->cG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v1, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x1
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-17 02:24:41 +00:00
:cond_0
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-17 02:24:41 +00:00
const/4 v3, 0x0
if-nez v0, :cond_1
2019-02-04 20:08:30 +00:00
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object p0
2019-05-03 18:53:54 +00:00
new-array v0, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "AdjustConfig not initialized correctly"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p0, v1, v0}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_1
iget-object v0, p0, Lcom/adjust/sdk/f;->processName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v0, :cond_4
2019-02-04 20:08:30 +00:00
invoke-static {}, Landroid/os/Process;->myPid()I
2019-02-17 02:24:41 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v4, p0, Lcom/adjust/sdk/f;->context:Landroid/content/Context;
2019-02-04 20:08:30 +00:00
const-string v5, "activity"
invoke-virtual {v4, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/app/ActivityManager;
2019-02-17 02:24:41 +00:00
if-nez v4, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_2
2019-02-04 20:08:30 +00:00
invoke-virtual {v4}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;
move-result-object v4
invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v4
2019-02-17 02:24:41 +00:00
:cond_3
2019-02-04 20:08:30 +00:00
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
2019-02-17 02:24:41 +00:00
if-eqz v5, :cond_4
2019-02-04 20:08:30 +00:00
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroid/app/ActivityManager$RunningAppProcessInfo;
iget v6, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->pid:I
2019-02-17 02:24:41 +00:00
if-ne v6, v0, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v0, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v4, p0, Lcom/adjust/sdk/f;->processName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez v0, :cond_4
2019-02-04 20:08:30 +00:00
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object p0
2019-05-03 18:53:54 +00:00
new-array v0, v1, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v1, v0, v2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "Skipping initialization in background process (%s)"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p0, v1, v0}, Lcom/adjust/sdk/x;->c(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_4
2019-02-04 20:08:30 +00:00
new-instance v0, Lcom/adjust/sdk/a;
2019-02-17 02:24:41 +00:00
invoke-direct {v0, p0}, Lcom/adjust/sdk/a;-><init>(Lcom/adjust/sdk/f;)V
2019-02-04 20:08:30 +00:00
return-object v0
2019-02-17 02:24:41 +00:00
:cond_5
invoke-interface {v0, p0}, Lcom/adjust/sdk/v;->a(Lcom/adjust/sdk/f;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sget-object p0, Lcom/adjust/sdk/j;->di:Lcom/adjust/sdk/v;
2019-02-04 20:08:30 +00:00
return-object p0
.end method