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

692 lines
15 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lcom/adjust/sdk/t;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "DeviceInfo.java"
2019-02-04 20:08:30 +00:00
# instance fields
.field clientSdk:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
.field country:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
.field dL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dM:Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field private dN:Z
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dO:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dP:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dQ:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dR:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dS:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dT:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dU:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dV:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dW:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dX:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dY:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field dZ:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field deviceName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ea:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field eb:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ec:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ed:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ee:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ef:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field eg:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field eh:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field ei:Ljava/lang/String;
2019-02-21 02:16:48 +00:00
2019-05-03 18:53:54 +00:00
.field ej:Ljava/util/Map;
2019-03-26 19:13:28 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-02-04 20:08:30 +00:00
.field language:Ljava/lang/String;
.field packageName:Ljava/lang/String;
# direct methods
.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
.locals 12
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
2019-05-03 18:53:54 +00:00
iput-boolean v0, p0, Lcom/adjust/sdk/t;->dN:Z
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v2
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v1
2019-02-17 02:24:41 +00:00
invoke-static {v1}, Lcom/adjust/sdk/az;->c(Landroid/content/res/Configuration;)Ljava/util/Locale;
2019-02-04 20:08:30 +00:00
move-result-object v3
iget v1, v1, Landroid/content/res/Configuration;->screenLayout:I
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
invoke-virtual {p0, p1}, Lcom/adjust/sdk/t;->a(Landroid/content/Context;)V
invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v4
iput-object v4, p0, Lcom/adjust/sdk/t;->packageName:Ljava/lang/String;
invoke-static {p1}, Lcom/adjust/sdk/t;->b(Landroid/content/Context;)Ljava/lang/String;
move-result-object v4
2019-05-03 18:53:54 +00:00
iput-object v4, p0, Lcom/adjust/sdk/t;->dS:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
and-int/lit8 v4, v1, 0xf
2019-05-03 18:53:54 +00:00
const/4 v5, 0x4
const/4 v6, 0x3
const/4 v7, 0x2
const/4 v8, 0x1
const/4 v9, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v4, v8, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v4, v7, :cond_1
if-eq v4, v6, :cond_0
if-eq v4, v5, :cond_0
move-object v10, v9
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-05-03 18:53:54 +00:00
:cond_0
const-string v10, "tablet"
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-05-03 18:53:54 +00:00
:cond_1
const-string v10, "phone"
2019-02-04 20:08:30 +00:00
:goto_0
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->dT:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sget-object v10, Landroid/os/Build;->MODEL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->deviceName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sget-object v10, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->dU:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v10, "android"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->dV:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sget-object v10, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->dW:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v10, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
sget v11, Landroid/os/Build$VERSION;->SDK_INT:I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v10
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->dX:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v3}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;
2019-05-03 18:53:54 +00:00
move-result-object v10
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v10, p0, Lcom/adjust/sdk/t;->language:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-virtual {v3}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object v3
2019-02-17 02:24:41 +00:00
iput-object v3, p0, Lcom/adjust/sdk/t;->country:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v3, "normal"
if-eq v4, v8, :cond_5
if-eq v4, v7, :cond_4
if-eq v4, v6, :cond_3
if-eq v4, v5, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object v4, v9
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_2
const-string v4, "xlarge"
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_3
const-string v4, "large"
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_4
move-object v4, v3
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-05-03 18:53:54 +00:00
:cond_5
const-string v4, "small"
2019-02-04 20:08:30 +00:00
:goto_1
2019-05-03 18:53:54 +00:00
iput-object v4, p0, Lcom/adjust/sdk/t;->dY:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
and-int/lit8 v1, v1, 0x30
2019-05-03 18:53:54 +00:00
const/16 v4, 0x10
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-eq v1, v4, :cond_7
2019-02-04 20:08:30 +00:00
const/16 v3, 0x20
2019-05-03 18:53:54 +00:00
if-eq v1, v3, :cond_6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object v1, v9
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-05-03 18:53:54 +00:00
:cond_6
2019-02-04 20:08:30 +00:00
const-string v1, "long"
goto :goto_2
2019-05-03 18:53:54 +00:00
:cond_7
move-object v1, v3
2019-02-04 20:08:30 +00:00
:goto_2
2019-05-03 18:53:54 +00:00
iput-object v1, p0, Lcom/adjust/sdk/t;->dZ:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget v1, v2, Landroid/util/DisplayMetrics;->densityDpi:I
2019-05-03 18:53:54 +00:00
if-nez v1, :cond_8
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-05-03 18:53:54 +00:00
:cond_8
2019-02-04 20:08:30 +00:00
const/16 v3, 0x8c
2019-05-03 18:53:54 +00:00
if-ge v1, v3, :cond_9
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v9, "low"
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-05-03 18:53:54 +00:00
:cond_9
2019-02-04 20:08:30 +00:00
const/16 v3, 0xc8
2019-05-03 18:53:54 +00:00
if-le v1, v3, :cond_a
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v9, "high"
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-05-03 18:53:54 +00:00
:cond_a
const-string v9, "medium"
2019-02-04 20:08:30 +00:00
:goto_3
2019-05-03 18:53:54 +00:00
iput-object v9, p0, Lcom/adjust/sdk/t;->ea:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget v1, v2, Landroid/util/DisplayMetrics;->widthPixels:I
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
iput-object v1, p0, Lcom/adjust/sdk/t;->eb:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
iget v1, v2, Landroid/util/DisplayMetrics;->heightPixels:I
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
iput-object v1, p0, Lcom/adjust/sdk/t;->ec:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v1, "android4.12.0"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez p2, :cond_b
2019-02-04 20:08:30 +00:00
goto :goto_4
2019-05-03 18:53:54 +00:00
:cond_b
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-array v3, v7, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
aput-object p2, v3, v0
2019-05-03 18:53:54 +00:00
aput-object v1, v3, v8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string p2, "%s@%s"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, p2, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v1
2019-02-04 20:08:30 +00:00
:goto_4
2019-05-03 18:53:54 +00:00
iput-object v1, p0, Lcom/adjust/sdk/t;->clientSdk:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Lcom/adjust/sdk/t;->c(Landroid/content/Context;)Ljava/lang/String;
move-result-object p2
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->dR:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1}, Lcom/adjust/sdk/az;->l(Landroid/content/Context;)Ljava/util/Map;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->ej:Ljava/util/Map;
2019-02-04 20:08:30 +00:00
sget-object p2, Landroid/os/Build;->DISPLAY:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->ed:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {}, Lcom/adjust/sdk/az;->getSupportedAbis()[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-05-03 18:53:54 +00:00
if-eqz p2, :cond_d
2019-02-04 20:08:30 +00:00
array-length v1, p2
2019-05-03 18:53:54 +00:00
if-nez v1, :cond_c
2019-02-04 20:08:30 +00:00
goto :goto_5
2019-05-03 18:53:54 +00:00
:cond_c
2019-02-04 20:08:30 +00:00
aget-object p2, p2, v0
goto :goto_6
2019-05-03 18:53:54 +00:00
:cond_d
2019-02-04 20:08:30 +00:00
:goto_5
2019-02-17 02:24:41 +00:00
invoke-static {}, Lcom/adjust/sdk/az;->ax()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p2
:goto_6
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->ee:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
sget-object p2, Landroid/os/Build;->ID:Ljava/lang/String;
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->ef:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {}, Lcom/adjust/sdk/az;->aw()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->eg:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Lcom/adjust/sdk/t;->d(Landroid/content/Context;)Ljava/lang/String;
move-result-object p2
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/adjust/sdk/t;->eh:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Lcom/adjust/sdk/t;->e(Landroid/content/Context;)Ljava/lang/String;
move-result-object p1
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/adjust/sdk/t;->ei:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method private static b(Landroid/content/Context;)Ljava/lang/String;
.locals 2
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/4 v1, 0x0
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p0
iget-object p0, p0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
const/4 p0, 0x0
return-object p0
.end method
.method private static c(Landroid/content/Context;)Ljava/lang/String;
2019-05-03 18:53:54 +00:00
.locals 8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v0, "aid"
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
const-string p0, "content://com.facebook.katana.provider.AttributionIdProvider"
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
2019-05-03 18:53:54 +00:00
move-result-object v3
2019-02-04 20:08:30 +00:00
const/4 p0, 0x1
2019-05-03 18:53:54 +00:00
new-array v4, p0, [Ljava/lang/String;
2019-02-04 20:08:30 +00:00
const/4 p0, 0x0
2019-05-03 18:53:54 +00:00
aput-object v0, v4, p0
2019-02-04 20:08:30 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
2019-05-03 18:53:54 +00:00
const/4 v7, 0x0
invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
2019-02-04 20:08:30 +00:00
move-result-object p0
if-nez p0, :cond_0
2019-05-03 18:53:54 +00:00
return-object v1
2019-02-04 20:08:30 +00:00
:cond_0
invoke-interface {p0}, Landroid/database/Cursor;->moveToFirst()Z
2019-05-03 18:53:54 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-nez v2, :cond_1
2019-02-04 20:08:30 +00:00
invoke-interface {p0}, Landroid/database/Cursor;->close()V
2019-05-03 18:53:54 +00:00
return-object v1
2019-02-04 20:08:30 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
invoke-interface {p0, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p0, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
invoke-interface {p0}, Landroid/database/Cursor;->close()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
2019-05-03 18:53:54 +00:00
return-object v0
2019-02-04 20:08:30 +00:00
:catch_0
2019-05-03 18:53:54 +00:00
return-object v1
2019-02-04 20:08:30 +00:00
.end method
.method private static d(Landroid/content/Context;)Ljava/lang/String;
.locals 4
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/16 v1, 0x1000
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p0
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/az;->fh:Ljava/text/SimpleDateFormat;
2019-02-04 20:08:30 +00:00
new-instance v1, Ljava/util/Date;
iget-wide v2, p0, Landroid/content/pm/PackageInfo;->firstInstallTime:J
invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V
invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
const/4 p0, 0x0
return-object p0
.end method
.method private static e(Landroid/content/Context;)Ljava/lang/String;
.locals 4
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/16 v1, 0x1000
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p0
2019-05-03 18:53:54 +00:00
sget-object v0, Lcom/adjust/sdk/az;->fh:Ljava/text/SimpleDateFormat;
2019-02-04 20:08:30 +00:00
new-instance v1, Ljava/util/Date;
iget-wide v2, p0, Landroid/content/pm/PackageInfo;->lastUpdateTime:J
invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V
invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
const/4 p0, 0x0
return-object p0
.end method
.method private static f(Ljava/lang/String;)Ljava/lang/String;
.locals 0
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
:cond_0
2019-02-17 02:24:41 +00:00
invoke-static {p0}, Lcom/adjust/sdk/az;->n(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p0
return-object p0
.end method
.method private static g(Ljava/lang/String;)Ljava/lang/String;
.locals 2
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
:cond_0
const-string v0, ":"
const-string v1, ""
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
2019-02-17 02:24:41 +00:00
invoke-static {p0}, Lcom/adjust/sdk/az;->p(Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p0
return-object p0
.end method
# virtual methods
.method final a(Landroid/content/Context;)V
.locals 3
2019-02-17 02:24:41 +00:00
invoke-static {p1}, Lcom/adjust/sdk/az;->h(Landroid/content/Context;)Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
iput-object v0, p0, Lcom/adjust/sdk/t;->dM:Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1}, Lcom/adjust/sdk/az;->g(Landroid/content/Context;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-05-03 18:53:54 +00:00
iput-object v0, p0, Lcom/adjust/sdk/t;->dL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/adjust/sdk/t;->dL:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
2019-05-03 18:53:54 +00:00
iget-boolean v0, p0, Lcom/adjust/sdk/t;->dN:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_1
const-string v0, "android.permission.ACCESS_WIFI_STATE"
2019-02-17 02:24:41 +00:00
invoke-static {p1, v0}, Lcom/adjust/sdk/az;->a(Landroid/content/Context;Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
move-result v0
if-nez v0, :cond_0
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
move-result-object v0
2019-05-03 18:53:54 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-array v1, v1, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "Missing permission: ACCESS_WIFI_STATE"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v0, v2, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
:cond_0
2019-02-17 02:24:41 +00:00
invoke-static {p1}, Lcom/adjust/sdk/az;->i(Landroid/content/Context;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v0
invoke-static {v0}, Lcom/adjust/sdk/t;->f(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
2019-05-03 18:53:54 +00:00
iput-object v1, p0, Lcom/adjust/sdk/t;->dO:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Lcom/adjust/sdk/t;->g(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
2019-05-03 18:53:54 +00:00
iput-object v0, p0, Lcom/adjust/sdk/t;->dP:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p1}, Lcom/adjust/sdk/az;->j(Landroid/content/Context;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/adjust/sdk/t;->dQ:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
const/4 p1, 0x1
2019-05-03 18:53:54 +00:00
iput-boolean p1, p0, Lcom/adjust/sdk/t;->dN:Z
2019-02-04 20:08:30 +00:00
:cond_1
return-void
.end method