1896 lines
42 KiB
Smali
1896 lines
42 KiB
Smali
.class public final Lcom/adjust/sdk/az;
|
|
.super Ljava/lang/Object;
|
|
.source "Util.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final fg:Ljava/text/DecimalFormat;
|
|
|
|
.field public static final fh:Ljava/text/SimpleDateFormat;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/text/DecimalFormat;
|
|
|
|
const-string v1, "0.0"
|
|
|
|
invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lcom/adjust/sdk/az;->fg:Ljava/text/DecimalFormat;
|
|
|
|
new-instance v0, Ljava/text/SimpleDateFormat;
|
|
|
|
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v2, "yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'Z"
|
|
|
|
invoke-direct {v0, v2, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
|
|
|
|
sput-object v0, Lcom/adjust/sdk/az;->fh:Ljava/text/SimpleDateFormat;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;I)I
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, p2}, Ljava/io/ObjectInputStream$GetField;->get(Ljava/lang/String;I)I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, p1
|
|
|
|
const-string p0, "Unable to read \'%s\' field in migration device with message (%s)"
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Boolean;)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Boolean;->hashCode()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Enum;)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Enum;->hashCode()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Long;)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Long;->hashCode()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(ILcom/adjust/sdk/q;)J
|
|
.locals 6
|
|
|
|
iget v0, p1, Lcom/adjust/sdk/q;->minRetries:I
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
const-wide/16 p0, 0x0
|
|
|
|
return-wide p0
|
|
|
|
:cond_0
|
|
iget v0, p1, Lcom/adjust/sdk/q;->minRetries:I
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
const-wide/high16 v0, 0x4000000000000000L # 2.0
|
|
|
|
int-to-double v2, p0
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-long v0, v0
|
|
|
|
iget-wide v2, p1, Lcom/adjust/sdk/q;->milliSecondMultiplier:J
|
|
|
|
mul-long v0, v0, v2
|
|
|
|
iget-wide v2, p1, Lcom/adjust/sdk/q;->maxWait:J
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
iget-wide v2, p1, Lcom/adjust/sdk/q;->minRange:D
|
|
|
|
iget-wide p0, p1, Lcom/adjust/sdk/q;->maxRange:D
|
|
|
|
new-instance v4, Ljava/util/Random;
|
|
|
|
invoke-direct {v4}, Ljava/util/Random;-><init>()V
|
|
|
|
sub-double/2addr p0, v2
|
|
|
|
invoke-virtual {v4}, Ljava/util/Random;->nextDouble()D
|
|
|
|
move-result-wide v4
|
|
|
|
mul-double v4, v4, p0
|
|
|
|
add-double/2addr v4, v2
|
|
|
|
long-to-double p0, v0
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double p0, p0, v4
|
|
|
|
double-to-long p0, p0
|
|
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Landroid/content/Context;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p1}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_7
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_6
|
|
|
|
:try_start_1
|
|
new-instance p1, Ljava/io/BufferedInputStream;
|
|
|
|
invoke-direct {p1, p0}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
|
|
:try_end_1
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_8
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_5
|
|
|
|
:try_start_2
|
|
new-instance p0, Ljava/io/ObjectInputStream;
|
|
|
|
invoke-direct {p0, p1}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
|
|
:try_end_2
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_4
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
|
|
|
|
:try_start_3
|
|
invoke-virtual {p0}, Ljava/io/ObjectInputStream;->readObject()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p3, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p3, "Read %s: %s"
|
|
|
|
new-array v4, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v2
|
|
|
|
aput-object v0, v4, v3
|
|
|
|
invoke-interface {p1, p3, v4}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
:try_end_3
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_3 .. :try_end_3} :catch_2
|
|
.catch Ljava/lang/ClassCastException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_8
|
|
|
|
goto/16 :goto_2
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
:try_start_4
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v4, "Failed to read %s object (%s)"
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v5, v2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v5, v3
|
|
|
|
invoke-interface {p3, v4, v5}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v4, "Failed to cast %s object (%s)"
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v5, v2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ClassCastException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v5, v3
|
|
|
|
invoke-interface {p3, v4, v5}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v4, "Failed to find %s class (%s)"
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v5, v2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ClassNotFoundException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v5, v3
|
|
|
|
invoke-interface {p3, v4, v5}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
:try_end_4
|
|
.catch Ljava/io/FileNotFoundException; {:try_start_4 .. :try_end_4} :catch_8
|
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_5
|
|
|
|
goto :goto_2
|
|
|
|
:catch_3
|
|
move-exception p0
|
|
|
|
move-object v6, p1
|
|
|
|
move-object p1, p0
|
|
|
|
move-object p0, v6
|
|
|
|
goto :goto_0
|
|
|
|
:catch_4
|
|
move-object p0, p1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_5
|
|
move-exception p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_6
|
|
move-exception p1
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p3
|
|
|
|
new-array v4, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, v4, v2
|
|
|
|
aput-object p1, v4, v3
|
|
|
|
const-string p1, "Failed to open %s file for reading (%s)"
|
|
|
|
invoke-interface {p3, p1, v4}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_7
|
|
move-object p0, v0
|
|
|
|
:catch_8
|
|
:goto_1
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p1
|
|
|
|
new-array p3, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p2, p3, v2
|
|
|
|
const-string v4, "%s file not found"
|
|
|
|
invoke-interface {p1, v4, p3}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_2
|
|
if-eqz p0, :cond_0
|
|
|
|
:try_start_5
|
|
invoke-interface {p0}, Ljava/io/Closeable;->close()V
|
|
:try_end_5
|
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_9
|
|
|
|
goto :goto_3
|
|
|
|
:catch_9
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p1
|
|
|
|
new-array p3, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p2, p3, v2
|
|
|
|
aput-object p0, p3, v3
|
|
|
|
const-string p0, "Failed to close %s file for reading (%s)"
|
|
|
|
invoke-interface {p1, p0, p3}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
:goto_3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/io/ObjectInputStream$GetField;",
|
|
"Ljava/lang/String;",
|
|
"TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, p2}, Ljava/io/ObjectInputStream$GetField;->get(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, p1
|
|
|
|
const-string p0, "Unable to read \'%s\' field in migration device with message (%s)"
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/ContentResolver;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
const-string v1, "advertising_id"
|
|
|
|
invoke-static {p0, v1}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)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
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/telephony/TelephonyManager;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->c(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
const/16 v2, 0xa
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->c(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v2}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v1, 0x7fffffff
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->c(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const-string p0, ","
|
|
|
|
invoke-static {p0, v0}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {p0, p1, v0}, Lcom/adjust/sdk/az;->a(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const/4 v3, 0x2
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v3, v0
|
|
|
|
aput-object p1, v3, v1
|
|
|
|
const-string p0, "%s: %s"
|
|
|
|
invoke-static {v2, p0, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget-object p1, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v1, v0
|
|
|
|
const-string p0, "%s"
|
|
|
|
invoke-static {p1, p0, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 v3, 0x4
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v3, v4
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v2, v3, v4
|
|
|
|
const/4 v2, 0x2
|
|
|
|
aput-object p2, v3, v2
|
|
|
|
const/4 v2, 0x3
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v3, v2
|
|
|
|
const-string v1, "Key %s with value %s from %s parameter was replaced by value %s"
|
|
|
|
invoke-interface {p0, v1, v3}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Lcom/adjust/sdk/ah;)V
|
|
.locals 4
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
new-array v1, v3, [Ljava/lang/Object;
|
|
|
|
const-string v2, "GoogleAdId being read in the background"
|
|
|
|
invoke-interface {v0, v2, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->g(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "GoogleAdId read "
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
|
|
|
invoke-interface {v0, v1, v2}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
invoke-interface {p1, p0}, Lcom/adjust/sdk/ah;->onGoogleAdIdRead(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-array v1, v3, [Ljava/lang/Object;
|
|
|
|
const-string v2, "GoogleAdId being read in the foreground"
|
|
|
|
invoke-interface {v0, v2, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
new-instance v0, Lcom/adjust/sdk/az$2;
|
|
|
|
invoke-direct {v0, p1}, Lcom/adjust/sdk/az$2;-><init>(Lcom/adjust/sdk/ah;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
new-array p1, p1, [Landroid/content/Context;
|
|
|
|
aput-object p0, p1, v3
|
|
|
|
invoke-virtual {v0, p1}, Lcom/adjust/sdk/az$2;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Object;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;",
|
|
"Landroid/content/Context;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p1, p2, v2}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
|
|
|
|
:try_start_1
|
|
new-instance p2, Ljava/io/BufferedOutputStream;
|
|
|
|
invoke-direct {p2, p1}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
|
|
|
|
:try_start_2
|
|
new-instance p1, Ljava/io/ObjectOutputStream;
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/ObjectOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
:try_start_3
|
|
invoke-virtual {p1, p0}, Ljava/io/ObjectOutputStream;->writeObject(Ljava/lang/Object;)V
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v3, "Wrote %s: %s"
|
|
|
|
new-array v4, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p3, v4, v2
|
|
|
|
aput-object p0, v4, v1
|
|
|
|
invoke-interface {p2, v3, v4}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
:try_end_3
|
|
.catch Ljava/io/NotSerializableException; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
:try_start_4
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, "Failed to serialize %s"
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
aput-object p3, v3, v2
|
|
|
|
invoke-interface {p0, p2, v3}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
:try_end_4
|
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
move-object p1, p2
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_3
|
|
move-exception p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p2
|
|
|
|
new-array v3, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p3, v3, v2
|
|
|
|
aput-object p0, v3, v1
|
|
|
|
const-string p0, "Failed to open %s for writing (%s)"
|
|
|
|
invoke-interface {p2, p0, v3}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_1
|
|
if-eqz p1, :cond_0
|
|
|
|
:try_start_5
|
|
invoke-interface {p1}, Ljava/io/Closeable;->close()V
|
|
:try_end_5
|
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4
|
|
|
|
goto :goto_2
|
|
|
|
:catch_4
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p1
|
|
|
|
new-array p2, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p3, p2, v2
|
|
|
|
aput-object p0, p2, v1
|
|
|
|
const-string p0, "Failed to close %s file for writing (%s)"
|
|
|
|
invoke-interface {p1, p0, p2}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Runnable;)V
|
|
.locals 3
|
|
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/lang/Runnable;->run()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/adjust/sdk/az$1;
|
|
|
|
invoke-direct {v0}, Lcom/adjust/sdk/az$1;-><init>()V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object p0, v1, v2
|
|
|
|
invoke-virtual {v0, v1}, Lcom/adjust/sdk/az$1;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;Z)Z
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, p2}, Ljava/io/ObjectInputStream$GetField;->get(Ljava/lang/String;Z)Z
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, p1
|
|
|
|
const-string p0, "Unable to read \'%s\' field in migration device with message (%s)"
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Boolean;Ljava/lang/Boolean;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/adjust/sdk/az;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Enum;Ljava/lang/Enum;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/adjust/sdk/az;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Integer;Ljava/lang/Integer;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/adjust/sdk/az;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Long;Ljava/lang/Long;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/adjust/sdk/az;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-nez p0, :cond_2
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static a(Ljava/util/List;Ljava/lang/String;)Z
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
")Z"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method protected static aH()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static aw()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/ap;->aw()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static ax()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/ap;->ax()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static b(Ljava/io/ObjectInputStream$GetField;Ljava/lang/String;)J
|
|
.locals 5
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, v0, v1}, Ljava/io/ObjectInputStream$GetField;->get(Ljava/lang/String;J)J
|
|
|
|
move-result-wide p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object p1, v3, v4
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v3, p1
|
|
|
|
const-string p0, "Unable to read \'%s\' field in migration device with message (%s)"
|
|
|
|
invoke-interface {v2, p0, v3}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/ContentResolver;)Ljava/lang/Boolean;
|
|
.locals 1
|
|
|
|
:try_start_0
|
|
const-string v0, "limit_ad_tracking"
|
|
|
|
invoke-static {p0, v0}, Landroid/provider/Settings$Secure;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
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 public static b(Landroid/telephony/TelephonyManager;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->a(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
const/16 v2, 0xa
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->a(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v2}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v1, 0x7fffffff
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->a(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const-string p0, ","
|
|
|
|
invoke-static {p0, v0}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1}, Lcom/adjust/sdk/az;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static c(Landroid/telephony/TelephonyManager;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->b(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
const/16 v2, 0xa
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->b(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v2}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const v1, 0x7fffffff
|
|
|
|
invoke-static {p0, v1}, Lcom/adjust/sdk/ap;->b(Landroid/telephony/TelephonyManager;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Lcom/adjust/sdk/az;->a(Ljava/util/List;Ljava/lang/String;)Z
|
|
|
|
const-string p0, ","
|
|
|
|
invoke-static {p0, v0}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
:try_start_0
|
|
const-string v0, "UTF-8"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
|
|
|
|
move-result-object p1
|
|
|
|
array-length v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, p0, v1, v0}, Ljava/security/MessageDigest;->update([BII)V
|
|
|
|
invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/math/BigInteger;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p1, v0, p0}, Ljava/math/BigInteger;-><init>(I[B)V
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "%0"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
array-length p0, p0
|
|
|
|
shl-int/2addr p0, v0
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, "x"
|
|
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p1, v0, v1
|
|
|
|
invoke-static {v2, p0, v0}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static c(Landroid/content/res/Configuration;)Ljava/util/Locale;
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->a(Landroid/content/res/Configuration;)Ljava/util/Locale;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->b(Landroid/content/res/Configuration;)Ljava/util/Locale;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static g(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->g(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getSupportedAbis()[Ljava/lang/String;
|
|
.locals 1
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/ap;->getSupportedAbis()[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static h(Landroid/content/Context;)Ljava/lang/Boolean;
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->h(Landroid/content/Context;)Ljava/lang/Boolean;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static i(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->i(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static j(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
invoke-static {p0}, Lcom/adjust/sdk/ap;->j(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static l(Landroid/content/Context;)Ljava/util/Map;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
")",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance p0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/ap;->ay()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/adjust/sdk/a/a;
|
|
|
|
invoke-interface {v1}, Lcom/adjust/sdk/a/a;->aI()Ljava/util/Map$Entry;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {p0}, Ljava/util/Map;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_2
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static m(Landroid/content/Context;)I
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
const-string v0, "connectivity"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/net/ConnectivityManager;
|
|
|
|
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/net/NetworkInfo;->getType()I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, v2
|
|
|
|
const-string p0, "Couldn\'t read connectivity type (%s)"
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 p0, -0x1
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static m(Ljava/lang/String;)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static n(Landroid/content/Context;)I
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
const-string v0, "phone"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/telephony/TelephonyManager;
|
|
|
|
invoke-virtual {p0}, Landroid/telephony/TelephonyManager;->getNetworkType()I
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
aput-object p0, v1, v2
|
|
|
|
const-string p0, "Couldn\'t read network type (%s)"
|
|
|
|
invoke-interface {v0, p0, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const/4 p0, -0x1
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static n(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "SHA-1"
|
|
|
|
invoke-static {p0, v0}, Lcom/adjust/sdk/az;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static o(Ljava/lang/Object;)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static o(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
const-string v2, "phone"
|
|
|
|
invoke-virtual {p0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/telephony/TelephonyManager;
|
|
|
|
invoke-virtual {p0}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v2, "Couldn\'t receive networkOperator string to read MCC"
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
invoke-interface {p0, v2, v3}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x3
|
|
|
|
invoke-virtual {p0, v1, v2}, Ljava/lang/String;->substring(II)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
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Couldn\'t return mcc"
|
|
|
|
invoke-interface {p0, v2, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static o(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "SHA-256"
|
|
|
|
invoke-static {p0, v0}, Lcom/adjust/sdk/az;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static p(Landroid/content/Context;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
const-string v2, "phone"
|
|
|
|
invoke-virtual {p0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/telephony/TelephonyManager;
|
|
|
|
invoke-virtual {p0}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v2, "Couldn\'t receive networkOperator string to read MNC"
|
|
|
|
new-array v3, v1, [Ljava/lang/Object;
|
|
|
|
invoke-interface {p0, v2, v3}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x3
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->substring(I)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
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
move-result-object p0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const-string v2, "Couldn\'t return mnc"
|
|
|
|
invoke-interface {p0, v2, v1}, Lcom/adjust/sdk/x;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static p(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "MD5"
|
|
|
|
invoke-static {p0, v0}, Lcom/adjust/sdk/az;->c(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|