apkfuckery/com.discord/smali/com/adjust/sdk/j.smali
2019-02-04 21:32:01 +01:00

437 lines
9.1 KiB
Smali

.class public final Lcom/adjust/sdk/j;
.super Ljava/lang/Object;
.source "AdjustFactory.java"
# static fields
.field private static ch:Lcom/adjust/sdk/y; = null
.field private static cj:Lcom/adjust/sdk/x; = null
.field private static cr:Lcom/adjust/sdk/w; = null
.field private static cs:Lcom/adjust/sdk/ab; = null
.field private static dB:Lcom/adjust/sdk/z; = null
.field private static dC:Lcom/adjust/sdk/v; = null
.field private static dD:Ljavax/net/ssl/HttpsURLConnection; = null
.field private static dE:J = -0x1L
.field private static dF:J = -0x1L
.field private static dG:J = -0x1L
.field private static dH:J = -0x1L
.field private static dI:Lcom/adjust/sdk/q; = null
.field private static dJ:Lcom/adjust/sdk/q; = null
.field private static dK:J = -0x1L
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public static X()Lcom/adjust/sdk/x;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->cj:Lcom/adjust/sdk/x;
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/ae;
invoke-direct {v0}, Lcom/adjust/sdk/ae;-><init>()V
sput-object v0, Lcom/adjust/sdk/j;->cj:Lcom/adjust/sdk/x;
:cond_0
sget-object v0, Lcom/adjust/sdk/j;->cj:Lcom/adjust/sdk/x;
return-object v0
.end method
.method public static Y()J
.locals 5
sget-wide v0, Lcom/adjust/sdk/j;->dE:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0xea60
return-wide v0
:cond_0
return-wide v0
.end method
.method public static Z()J
.locals 5
sget-wide v0, Lcom/adjust/sdk/j;->dF:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0xea60
return-wide v0
:cond_0
return-wide v0
.end method
.method public static a(Lcom/adjust/sdk/v;Z)Lcom/adjust/sdk/ab;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->cs:Lcom/adjust/sdk/ab;
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/ar;
invoke-direct {v0, p0, p1}, Lcom/adjust/sdk/ar;-><init>(Lcom/adjust/sdk/v;Z)V
return-object v0
:cond_0
invoke-interface {v0, p0, p1}, Lcom/adjust/sdk/ab;->b(Lcom/adjust/sdk/v;Z)V
sget-object p0, Lcom/adjust/sdk/j;->cs:Lcom/adjust/sdk/ab;
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)Lcom/adjust/sdk/w;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->cr:Lcom/adjust/sdk/w;
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
sget-object p0, Lcom/adjust/sdk/j;->cr:Lcom/adjust/sdk/w;
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/v;Landroid/content/Context;Z)Lcom/adjust/sdk/y;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->ch:Lcom/adjust/sdk/y;
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/an;
invoke-direct {v0, p0, p1, p2}, Lcom/adjust/sdk/an;-><init>(Lcom/adjust/sdk/v;Landroid/content/Context;Z)V
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
sget-object p0, Lcom/adjust/sdk/j;->ch:Lcom/adjust/sdk/y;
return-object p0
.end method
.method public static a(Lcom/adjust/sdk/y;)Lcom/adjust/sdk/z;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->dB:Lcom/adjust/sdk/z;
if-nez v0, :cond_0
new-instance v0, Lcom/adjust/sdk/ap;
invoke-direct {v0, p0}, Lcom/adjust/sdk/ap;-><init>(Lcom/adjust/sdk/y;)V
return-object v0
:cond_0
invoke-interface {v0, p0}, Lcom/adjust/sdk/z;->b(Lcom/adjust/sdk/y;)V
sget-object p0, Lcom/adjust/sdk/j;->dB:Lcom/adjust/sdk/z;
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
sget-object v0, Lcom/adjust/sdk/j;->dD:Ljavax/net/ssl/HttpsURLConnection;
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
return-object v0
.end method
.method public static aa()J
.locals 5
sget-wide v0, Lcom/adjust/sdk/j;->dG:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/32 v0, 0x1b7740
return-wide v0
:cond_0
return-wide v0
.end method
.method public static ab()J
.locals 5
sget-wide v0, Lcom/adjust/sdk/j;->dH:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/16 v0, 0x3e8
return-wide v0
:cond_0
return-wide v0
.end method
.method public static ac()Lcom/adjust/sdk/q;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->dI:Lcom/adjust/sdk/q;
if-nez v0, :cond_0
sget-object v0, Lcom/adjust/sdk/q;->dU:Lcom/adjust/sdk/q;
return-object v0
:cond_0
return-object v0
.end method
.method public static ad()Lcom/adjust/sdk/q;
.locals 1
sget-object v0, Lcom/adjust/sdk/j;->dJ:Lcom/adjust/sdk/q;
if-nez v0, :cond_0
sget-object v0, Lcom/adjust/sdk/q;->dT:Lcom/adjust/sdk/q;
return-object v0
:cond_0
return-object v0
.end method
.method public static ae()J
.locals 5
sget-wide v0, Lcom/adjust/sdk/j;->dK:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-wide/16 v0, 0x2710
return-wide v0
:cond_0
return-wide v0
.end method
.method public static b(Lcom/adjust/sdk/AdjustConfig;)Lcom/adjust/sdk/v;
.locals 7
sget-object v0, Lcom/adjust/sdk/j;->dC:Lcom/adjust/sdk/v;
if-nez v0, :cond_6
const/4 v0, 0x0
const/4 v1, 0x0
if-nez p0, :cond_0
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object p0
const-string v2, "AdjustConfig missing"
new-array v1, v1, [Ljava/lang/Object;
invoke-interface {p0, v2, v1}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v0
:cond_0
iget-object v2, p0, Lcom/adjust/sdk/AdjustConfig;->cZ:Ljava/lang/String;
const/4 v3, 0x1
if-eqz v2, :cond_1
const/4 v2, 0x1
goto :goto_0
:cond_1
const/4 v2, 0x0
:goto_0
if-nez v2, :cond_2
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object p0
const-string v2, "AdjustConfig not initialized correctly"
new-array v1, v1, [Ljava/lang/Object;
invoke-interface {p0, v2, v1}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v0
:cond_2
iget-object v2, p0, Lcom/adjust/sdk/AdjustConfig;->processName:Ljava/lang/String;
if-eqz v2, :cond_5
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v2
iget-object v4, p0, Lcom/adjust/sdk/AdjustConfig;->context:Landroid/content/Context;
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;
if-nez v4, :cond_3
return-object v0
:cond_3
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
:cond_4
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v5
if-eqz v5, :cond_5
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
if-ne v6, v2, :cond_4
iget-object v2, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
iget-object v4, p0, Lcom/adjust/sdk/AdjustConfig;->processName:Ljava/lang/String;
invoke-virtual {v2, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-nez v2, :cond_5
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object p0
const-string v2, "Skipping initialization in background process (%s)"
new-array v3, v3, [Ljava/lang/Object;
iget-object v4, v5, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
aput-object v4, v3, v1
invoke-interface {p0, v2, v3}, Lcom/adjust/sdk/x;->c(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v0
:cond_5
new-instance v0, Lcom/adjust/sdk/a;
invoke-direct {v0, p0}, Lcom/adjust/sdk/a;-><init>(Lcom/adjust/sdk/AdjustConfig;)V
return-object v0
:cond_6
invoke-interface {v0, p0}, Lcom/adjust/sdk/v;->a(Lcom/adjust/sdk/AdjustConfig;)V
sget-object p0, Lcom/adjust/sdk/j;->dC:Lcom/adjust/sdk/v;
return-object p0
.end method