apkfuckery/com.discord/smali/com/adjust/sdk/ap.smali
2019-10-11 23:55:41 +02:00

699 lines
16 KiB
Smali

.class public final Lcom/adjust/sdk/ap;
.super Ljava/lang/Object;
.source "Reflection.java"
# direct methods
.method private static varargs a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
invoke-virtual {p0, p1, p3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object p0
if-nez p0, :cond_0
const/4 p0, 0x0
return-object p0
:cond_0
invoke-virtual {p0, p2, p4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static varargs a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-static {v0, p1, p0, p2, p3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method private static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
invoke-static {p0}, Lcom/adjust/sdk/ap;->h(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p0
const/4 v0, 0x0
if-nez p0, :cond_0
return-object v0
:cond_0
invoke-virtual {p0, p1}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object p0
if-nez p0, :cond_1
return-object v0
:cond_1
invoke-virtual {p0, p2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static varargs a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p0
const/4 v0, 0x0
invoke-static {p0, p1, v0, p2, p3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static a(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
.locals 5
:try_start_0
const-string v0, "getImei"
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
sget-object v3, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const/4 v4, 0x0
aput-object v3, v2, v4
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v1, v4
invoke-static {p0, v0, v2, v1}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, 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 public static a(Landroid/content/res/Configuration;)Ljava/util/Locale;
.locals 6
const/4 v0, 0x0
:try_start_0
const-string v1, "getLocales"
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Object;
invoke-static {p0, v1, v0, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
if-nez p0, :cond_0
return-object v0
:cond_0
const-string v1, "get"
const/4 v3, 0x1
new-array v4, v3, [Ljava/lang/Class;
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v5, v4, v2
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
aput-object v5, v3, v2
invoke-static {p0, v1, v4, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/util/Locale;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-object p0, v0
:goto_0
return-object p0
.end method
.method private static ao()Ljava/lang/Object;
.locals 4
const/4 v0, 0x0
:try_start_0
const-string v1, "dalvik.system.VMRuntime"
const-string v2, "getRuntime"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v1, v2, v0, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:catchall_0
return-object v0
.end method
.method public static ap()Ljava/lang/String;
.locals 4
const/4 v0, 0x0
:try_start_0
invoke-static {}, Lcom/adjust/sdk/ap;->ao()Ljava/lang/Object;
move-result-object v1
const-string v2, "vmInstructionSet"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v1, v2, v0, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object v1
:catchall_0
return-object v0
.end method
.method public static aq()Ljava/lang/String;
.locals 3
const/4 v0, 0x0
:try_start_0
const-string v1, "android.os.Build"
const-string v2, "CPU_ABI"
invoke-static {v1, v2, v0}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
move-object v0, v1
:catchall_0
return-object v0
.end method
.method static ar()Ljava/util/List;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/adjust/sdk/a/a;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
sget-object v1, Lcom/adjust/sdk/r;->bX:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
sget-object v1, Lcom/adjust/sdk/r;->bX:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_0
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
invoke-static {v2}, Lcom/adjust/sdk/ap;->h(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v2
invoke-static {v2}, Lcom/adjust/sdk/ap;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_0
instance-of v3, v2, Lcom/adjust/sdk/a/a;
if-eqz v3, :cond_0
check-cast v2, Lcom/adjust/sdk/a/a;
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
return-object v0
.end method
.method private static b(Ljava/lang/Class;)Ljava/lang/Object;
.locals 0
:try_start_0
invoke-virtual {p0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
const/4 p0, 0x0
return-object p0
.end method
.method public static b(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
.locals 5
:try_start_0
const-string v0, "getMeid"
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
sget-object v3, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const/4 v4, 0x0
aput-object v3, v2, v4
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v1, v4
invoke-static {p0, v0, v2, v1}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, 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 public static b(Landroid/content/res/Configuration;)Ljava/util/Locale;
.locals 2
:try_start_0
const-string v0, "android.content.res.Configuration"
const-string v1, "locale"
invoke-static {v0, v1, p0}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/util/Locale;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
const/4 p0, 0x0
:goto_0
return-object p0
.end method
.method public static c(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
.locals 5
:try_start_0
const-string v0, "getDeviceId"
const/4 v1, 0x1
new-array v2, v1, [Ljava/lang/Class;
sget-object v3, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const/4 v4, 0x0
aput-object v3, v2, v4
new-array v1, v1, [Ljava/lang/Object;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v1, v4
invoke-static {p0, v0, v2, v1}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, 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 public static g(Landroid/content/Context;)Ljava/lang/String;
.locals 3
const/4 v0, 0x0
:try_start_0
invoke-static {p0}, Lcom/adjust/sdk/ap;->k(Landroid/content/Context;)Ljava/lang/Object;
move-result-object p0
const-string v1, "getId"
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {p0, v1, v0, v2}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
return-object v0
.end method
.method public static getSupportedAbis()[Ljava/lang/String;
.locals 3
const/4 v0, 0x0
:try_start_0
const-string v1, "android.os.Build"
const-string v2, "SUPPORTED_ABIS"
invoke-static {v1, v2, v0}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [Ljava/lang/String;
check-cast v1, [Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
move-object v0, v1
:catchall_0
return-object v0
.end method
.method public static h(Landroid/content/Context;)Ljava/lang/Boolean;
.locals 4
const/4 v0, 0x0
:try_start_0
invoke-static {p0}, Lcom/adjust/sdk/ap;->k(Landroid/content/Context;)Ljava/lang/Object;
move-result-object p0
const-string v1, "isLimitAdTrackingEnabled"
const/4 v2, 0x0
new-array v3, v2, [Ljava/lang/Object;
invoke-static {p0, v1, v0, v3}, Lcom/adjust/sdk/ap;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Boolean;
if-nez p0, :cond_0
return-object v0
:cond_0
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
move-result p0
if-nez p0, :cond_1
const/4 v2, 0x1
:cond_1
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
return-object v0
.end method
.method private static h(Ljava/lang/String;)Ljava/lang/Class;
.locals 0
:try_start_0
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
const/4 p0, 0x0
return-object p0
.end method
.method public static i(Landroid/content/Context;)Ljava/lang/String;
.locals 6
:try_start_0
const-string v0, "com.adjust.sdk.plugin.MacAddressUtil"
const-string v1, "getMacAddress"
const/4 v2, 0x1
new-array v3, v2, [Ljava/lang/Class;
const-class v4, Landroid/content/Context;
const/4 v5, 0x0
aput-object v4, v3, v5
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v5
invoke-static {v0, v1, v3, v2}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
const/4 p0, 0x0
return-object p0
.end method
.method public static j(Landroid/content/Context;)Ljava/lang/String;
.locals 6
:try_start_0
const-string v0, "com.adjust.sdk.plugin.AndroidIdUtil"
const-string v1, "getAndroidId"
const/4 v2, 0x1
new-array v3, v2, [Ljava/lang/Class;
const-class v4, Landroid/content/Context;
const/4 v5, 0x0
aput-object v4, v3, v5
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v5
invoke-static {v0, v1, v3, v2}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p0
:catchall_0
const/4 p0, 0x0
return-object p0
.end method
.method private static k(Landroid/content/Context;)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
const/4 v0, 0x1
new-array v1, v0, [Ljava/lang/Class;
const-class v2, Landroid/content/Context;
const/4 v3, 0x0
aput-object v2, v1, v3
new-array v0, v0, [Ljava/lang/Object;
aput-object p0, v0, v3
const-string p0, "com.google.android.gms.ads.identifier.AdvertisingIdClient"
const-string v2, "getAdvertisingIdInfo"
invoke-static {p0, v2, v1, v0}, Lcom/adjust/sdk/ap;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method