hu.smali
.class public Lcom/xiaomi/push/hu;
.super Ljava/lang/Object;
# static fields
.field private static a:Ljava/lang/String;
.field private static b:Ljava/lang/String;
.field private static c:Ljava/lang/String;
.field private static d:Ljava/lang/String;
.field private static e:Ljava/lang/String;
.field private static volatile f:Z
# direct methods
.method static constructor <clinit>()V
.registers 2
const/4 v1, 0x0
sput-object v1, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
const-string v0, ""
sput-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
sput-object v1, Lcom/xiaomi/push/hu;->c:Ljava/lang/String;
sput-object v1, Lcom/xiaomi/push/hu;->d:Ljava/lang/String;
sput-object v1, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
const/4 v0, 0x0
sput-boolean v0, Lcom/xiaomi/push/hu;->f:Z
return-void
.end method
.method public static a()Ljava/lang/String;
.registers 4
const/4 v0, 0x0
const/16 v3, 0x1a
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x8
if-le v1, v2, :cond_10
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
if-ge v1, v3, :cond_10
sget-object v0, Landroid/os/Build;->SERIAL:Ljava/lang/String;
:cond_f
:goto_f
return-object v0
:cond_10
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v1, v3, :cond_f
const-string v1, "android.os.Build"
const-string v2, "getSerial"
check-cast v0, [Ljava/lang/Object;
invoke-static {v1, v2, v0}, Lcom/xiaomi/push/aa;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
goto :goto_f
.end method
.method public static a(Landroid/content/Context;)Ljava/lang/String;
.registers 5
const/4 v3, 0x0
const-string v0, ""
invoke-static {p0}, Lcom/xiaomi/push/hu;->e(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "a-"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/push/af;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static a(Landroid/content/Context;Z)Ljava/lang/String;
.registers 7
sget-object v0, Lcom/xiaomi/push/hu;->c:Ljava/lang/String;
if-nez v0, :cond_4a
const-string v0, ""
invoke-static {}, Lcom/xiaomi/push/jz;->g()Z
move-result v1
if-nez v1, :cond_12
if-eqz p1, :cond_4d
invoke-static {p0}, Lcom/xiaomi/push/hu;->f(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
:cond_12
:goto_12
const-string v1, ""
invoke-static {p0}, Lcom/xiaomi/push/hu;->e(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
invoke-static {}, Lcom/xiaomi/push/hu;->a()Ljava/lang/String;
move-result-object v2
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "a-"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/push/af;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/xiaomi/push/hu;->c:Ljava/lang/String;
:cond_4a
sget-object v0, Lcom/xiaomi/push/hu;->c:Ljava/lang/String;
return-object v0
:cond_4d
invoke-static {p0}, Lcom/xiaomi/push/hu;->q(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
goto :goto_12
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;)V
.registers 6
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "update vdevid = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->c(Ljava/lang/String;)V
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_1d
:cond_1c
:goto_1c
return-void
:cond_1d
sput-object p1, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
const/4 v1, 0x0
:try_start_20
invoke-static {p0}, Lcom/xiaomi/push/hu;->p(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_53
new-instance v0, Ljava/io/File;
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v2
const-string v3, "/Xiaomi/"
invoke-direct {v0, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v2
if-eqz v2, :cond_40
invoke-virtual {v0}, Ljava/io/File;->isFile()Z
move-result v2
if-eqz v2, :cond_40
invoke-virtual {v0}, Ljava/io/File;->delete()Z
:cond_40
new-instance v2, Ljava/io/File;
const-string v3, ".vdevid"
invoke-direct {v2, v0, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-static {p0, v2}, Lcom/xiaomi/push/kl;->a(Landroid/content/Context;Ljava/io/File;)Lcom/xiaomi/push/kl;
move-result-object v1
invoke-static {v2}, Lcom/xiaomi/push/kq;->a(Ljava/io/File;)V
sget-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v2, v0}, Lcom/xiaomi/push/kq;->a(Ljava/io/File;Ljava/lang/String;)V
:cond_53
new-instance v0, Ljava/io/File;
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v2
const-string v3, ".vdevid"
invoke-direct {v0, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
sget-object v2, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v0, v2}, Lcom/xiaomi/push/kq;->a(Ljava/io/File;Ljava/lang/String;)V
:try_end_63
.catch Ljava/io/IOException; {:try_start_20 .. :try_end_63} :catch_69
.catchall {:try_start_20 .. :try_end_63} :catchall_8a
if-eqz v1, :cond_1c
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
goto :goto_1c
:catch_69
move-exception v0
:try_start_6a
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "update vdevid failure :"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
:try_end_84
.catchall {:try_start_6a .. :try_end_84} :catchall_8a
if-eqz v1, :cond_1c
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
goto :goto_1c
:catchall_8a
move-exception v0
if-eqz v1, :cond_90
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
:cond_90
throw v0
.end method
.method private static a(Ljava/lang/String;)Z
.registers 4
const/4 v0, 0x0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_8
:cond_7
:goto_7
return v0
:cond_8
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
const/16 v2, 0xf
if-gt v1, v2, :cond_7
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
const/16 v2, 0xe
if-lt v1, v2, :cond_7
invoke-static {p0}, Lcom/xiaomi/push/af;->e(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_7
invoke-static {p0}, Lcom/xiaomi/push/af;->f(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_7
const/4 v0, 0x1
goto :goto_7
.end method
.method public static b()I
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x11
.end annotation
const/4 v0, -0x1
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x11
if-ge v1, v2, :cond_8
:cond_7
:goto_7
return v0
:cond_8
const-string v1, "android.os.UserHandle"
const-string v2, "myUserId"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v1, v2, v3}, Lcom/xiaomi/push/aa;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
if-eqz v1, :cond_7
const-class v0, Ljava/lang/Integer;
invoke-virtual {v0, v1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
goto :goto_7
.end method
.method public static b(Landroid/content/Context;)Ljava/lang/String;
.registers 4
:try_start_0
invoke-static {p0}, Lcom/xiaomi/push/ia;->a(Landroid/content/Context;)Lcom/xiaomi/push/ia$a;
move-result-object v0
invoke-virtual {v0}, Lcom/xiaomi/push/ia$a;->a()Ljava/lang/String;
:try_end_7
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_7} :catch_9
move-result-object v0
:goto_8
return-object v0
:catch_9
move-exception v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "failure to get gaid:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
const/4 v0, 0x0
goto :goto_8
.end method
.method private static b(Ljava/lang/String;)Z
.registers 7
const/4 v1, 0x1
const/4 v2, 0x0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_a
move v1, v2
:cond_9
:goto_9
return v1
:cond_a
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/16 v3, 0x11
if-eq v0, v3, :cond_14
move v1, v2
goto :goto_9
:cond_14
const-string v0, "^([A-Fa-f0-9]{2}[-,:]){5}[A-Fa-f0-9]{2}$"
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v0
invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
move-result v0
if-nez v0, :cond_26
move v1, v2
goto :goto_9
:cond_26
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
move-result v3
const/16 v0, 0x30
if-eq v3, v0, :cond_36
const/16 v0, 0x66
if-eq v3, v0, :cond_36
const/16 v0, 0x46
if-ne v3, v0, :cond_69
:cond_36
move v0, v1
:goto_37
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v4
if-ge v0, v4, :cond_69
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
move-result v4
if-eq v4, v3, :cond_48
move v0, v2
:goto_44
if-eqz v0, :cond_9
move v1, v2
goto :goto_9
:cond_48
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v4
add-int/lit8 v4, v4, -0x1
if-ge v0, v4, :cond_66
add-int/lit8 v4, v0, 0x1
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
move-result v4
const/16 v5, 0x2d
if-eq v4, v5, :cond_64
add-int/lit8 v4, v0, 0x1
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
move-result v4
const/16 v5, 0x3a
if-ne v4, v5, :cond_66
:cond_64
add-int/lit8 v0, v0, 0x1
:cond_66
add-int/lit8 v0, v0, 0x1
goto :goto_37
:cond_69
move v0, v1
goto :goto_44
.end method
.method public static c(Landroid/content/Context;)Ljava/lang/String;
.registers 6
const/4 v0, 0x0
invoke-static {p0}, Lcom/xiaomi/push/hu;->p(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_8
:cond_7
:goto_7
return-object v0
:cond_8
sget-object v1, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_13
sget-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
goto :goto_7
:cond_13
new-instance v1, Ljava/io/File;
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v2
const-string v3, ".vdevid"
invoke-direct {v1, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-static {v1}, Lcom/xiaomi/push/kq;->b(Ljava/io/File;)Ljava/lang/String;
move-result-object v1
sput-object v1, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
sget-object v1, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_2f
sget-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
goto :goto_7
:cond_2f
:try_start_2f
new-instance v1, Ljava/io/File;
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v2
const-string v3, "/Xiaomi/"
invoke-direct {v1, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
new-instance v2, Ljava/io/File;
const-string v3, ".vdevid"
invoke-direct {v2, v1, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-static {p0, v2}, Lcom/xiaomi/push/kl;->a(Landroid/content/Context;Ljava/io/File;)Lcom/xiaomi/push/kl;
:try_end_44
.catch Ljava/io/IOException; {:try_start_2f .. :try_end_44} :catch_59
.catchall {:try_start_2f .. :try_end_44} :catchall_7f
move-result-object v1
:try_start_45
const-string v0, ""
sput-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v2}, Lcom/xiaomi/push/kq;->b(Ljava/io/File;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_51
sput-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
:cond_51
sget-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
:try_end_53
.catch Ljava/io/IOException; {:try_start_45 .. :try_end_53} :catch_8b
.catchall {:try_start_45 .. :try_end_53} :catchall_89
if-eqz v1, :cond_7
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
goto :goto_7
:catch_59
move-exception v1
move-object v4, v1
move-object v1, v0
move-object v0, v4
:goto_5d
:try_start_5d
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "getVDevID failure :"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
:try_end_77
.catchall {:try_start_5d .. :try_end_77} :catchall_89
if-eqz v1, :cond_7c
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
:cond_7c
sget-object v0, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
goto :goto_7
:catchall_7f
move-exception v1
move-object v4, v1
move-object v1, v0
move-object v0, v4
:goto_83
if-eqz v1, :cond_88
invoke-virtual {v1}, Lcom/xiaomi/push/kl;->a()V
:cond_88
throw v0
:catchall_89
move-exception v0
goto :goto_83
:catch_8b
move-exception v0
goto :goto_5d
.end method
.method public static d(Landroid/content/Context;)Ljava/lang/String;
.registers 7
const/4 v1, 0x0
invoke-static {p0}, Lcom/xiaomi/push/hu;->p(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_b
sget-boolean v0, Lcom/xiaomi/push/hu;->f:Z
if-eqz v0, :cond_c
:cond_b
:goto_b
return-object v1
:cond_c
const/4 v0, 0x1
sput-boolean v0, Lcom/xiaomi/push/hu;->f:Z
new-instance v0, Ljava/io/File;
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
move-result-object v2
const-string v3, ".vdevid"
invoke-direct {v0, v2, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-static {v0}, Lcom/xiaomi/push/kq;->b(Ljava/io/File;)Ljava/lang/String;
move-result-object v3
:try_start_1e
new-instance v0, Ljava/io/File;
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v2
const-string v4, "/Xiaomi/"
invoke-direct {v0, v2, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
new-instance v4, Ljava/io/File;
const-string v2, ".vdevid"
invoke-direct {v4, v0, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-static {p0, v4}, Lcom/xiaomi/push/kl;->a(Landroid/content/Context;Ljava/io/File;)Lcom/xiaomi/push/kl;
:try_end_33
.catch Ljava/io/IOException; {:try_start_1e .. :try_end_33} :catch_90
.catchall {:try_start_1e .. :try_end_33} :catchall_b3
move-result-object v2
:try_start_34
invoke-static {v4}, Lcom/xiaomi/push/kq;->b(Ljava/io/File;)Ljava/lang/String;
:try_end_37
.catch Ljava/io/IOException; {:try_start_34 .. :try_end_37} :catch_d4
.catchall {:try_start_34 .. :try_end_37} :catchall_d2
move-result-object v0
if-eqz v2, :cond_3d
invoke-virtual {v2}, Lcom/xiaomi/push/kl;->a()V
:cond_3d
:goto_3d
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_c9
sput-object v3, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_53
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v2
const/16 v4, 0x80
if-le v2, v4, :cond_bb
:cond_53
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "recover vid :"
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
invoke-static {p0, v3}, Lcom/xiaomi/push/hu;->a(Landroid/content/Context;Ljava/lang/String;)V
:cond_6c
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "vdevid = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
sget-object v3, Lcom/xiaomi/push/hu;->e:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, " "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->c(Ljava/lang/String;)V
goto/16 :goto_b
:catch_90
move-exception v0
move-object v2, v1
:goto_92
:try_start_92
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "check id failure :"
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
:try_end_ac
.catchall {:try_start_92 .. :try_end_ac} :catchall_d2
if-eqz v2, :cond_d6
invoke-virtual {v2}, Lcom/xiaomi/push/kl;->a()V
move-object v0, v1
goto :goto_3d
:catchall_b3
move-exception v0
move-object v2, v1
:goto_b5
if-eqz v2, :cond_ba
invoke-virtual {v2}, Lcom/xiaomi/push/kl;->a()V
:cond_ba
throw v0
:cond_bb
invoke-static {v3, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_6c
const-string v1, "vid changed, need sync"
invoke-static {v1}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
move-object v1, v0
goto/16 :goto_b
:cond_c9
const-string v0, "empty local vid"
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/String;)V
const-string v1, "F*"
goto/16 :goto_b
:catchall_d2
move-exception v0
goto :goto_b5
:catch_d4
move-exception v0
goto :goto_92
:cond_d6
move-object v0, v1
goto/16 :goto_3d
.end method
.method public static e(Landroid/content/Context;)Ljava/lang/String;
.registers 4
const/4 v0, 0x0
:try_start_1
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string v2, "android_id"
invoke-static {v1, v2}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_a} :catch_c
move-result-object v0
:goto_b
return-object v0
:catch_c
move-exception v1
invoke-static {v1}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V
goto :goto_b
.end method
.method public static f(Landroid/content/Context;)Ljava/lang/String;
.registers 4
const/16 v1, 0xa
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
:goto_6
if-nez v0, :cond_19
add-int/lit8 v2, v1, -0x1
if-lez v1, :cond_19
const-wide/16 v0, 0x1f4
:try_start_e
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
:try_end_11
.catch Ljava/lang/InterruptedException; {:try_start_e .. :try_end_11} :catch_17
:goto_11
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
move v1, v2
goto :goto_6
:catch_17
move-exception v0
goto :goto_11
:cond_19
return-object v0
.end method
.method public static g(Landroid/content/Context;)Ljava/lang/String;
.registers 6
const/4 v2, 0x0
invoke-static {}, Lcom/xiaomi/push/jz;->g()Z
move-result v0
if-eqz v0, :cond_a
const-string v0, ""
:goto_9
return-object v0
:cond_a
sget-object v0, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
if-eqz v0, :cond_11
sget-object v0, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
goto :goto_9
:cond_11
:try_start_11
invoke-static {}, Lcom/xiaomi/push/jz;->a()Z
move-result v0
if-eqz v0, :cond_93
const-string v0, "miui.telephony.TelephonyManager"
const-string v0, "miui.telephony.TelephonyManager"
const-string v1, "getDefault"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v0, v1, v3}, Lcom/xiaomi/push/aa;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_93
const-string v1, "getMiuiDeviceId"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v0, v1, v3}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_93
instance-of v1, v0, Ljava/lang/String;
if-eqz v1, :cond_93
const-class v1, Ljava/lang/String;
invoke-virtual {v1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
move-object v1, v0
:goto_3e
if-nez v1, :cond_91
invoke-static {p0}, Lcom/xiaomi/push/hu;->r(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_91
const-string v0, "phone"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/telephony/TelephonyManager;
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v4, 0x1a
if-ge v3, v4, :cond_67
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;
move-result-object v0
:goto_58
invoke-static {v0}, Lcom/xiaomi/push/hu;->a(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_8d
sput-object v0, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
:try_end_60
.catch Ljava/lang/Throwable; {:try_start_11 .. :try_end_60} :catch_61
goto :goto_9
:catch_61
move-exception v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V
move-object v0, v2
goto :goto_9
:cond_67
const/4 v3, 0x1
:try_start_68
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I
move-result v4
if-ne v3, v4, :cond_7a
const-string v3, "getImei"
const/4 v1, 0x0
check-cast v1, [Ljava/lang/Object;
invoke-static {v0, v3, v1}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
goto :goto_58
:cond_7a
const/4 v3, 0x2
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I
move-result v4
if-ne v3, v4, :cond_91
const-string v3, "getMeid"
const/4 v1, 0x0
check-cast v1, [Ljava/lang/Object;
invoke-static {v0, v3, v1}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
goto :goto_58
:cond_8d
const-string v0, ""
:try_end_8f
.catch Ljava/lang/Throwable; {:try_start_68 .. :try_end_8f} :catch_61
goto/16 :goto_9
:cond_91
move-object v0, v1
goto :goto_58
:cond_93
move-object v1, v2
goto :goto_3e
.end method
.method public static h(Landroid/content/Context;)Ljava/lang/String;
.registers 4
const/16 v1, 0xa
invoke-static {p0}, Lcom/xiaomi/push/hu;->j(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
:goto_6
if-nez v0, :cond_19
add-int/lit8 v2, v1, -0x1
if-lez v1, :cond_19
const-wide/16 v0, 0x1f4
:try_start_e
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
:try_end_11
.catch Ljava/lang/InterruptedException; {:try_start_e .. :try_end_11} :catch_17
:goto_11
invoke-static {p0}, Lcom/xiaomi/push/hu;->j(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
move v1, v2
goto :goto_6
:catch_17
move-exception v0
goto :goto_11
:cond_19
return-object v0
.end method
.method public static i(Landroid/content/Context;)Ljava/lang/String;
.registers 10
const/4 v7, 0x1
const/4 v2, 0x0
invoke-static {}, Lcom/xiaomi/push/jz;->g()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, ""
:goto_a
return-object v0
:cond_b
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x16
if-ge v0, v1, :cond_14
const-string v0, ""
goto :goto_a
:cond_14
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1f
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
goto :goto_a
:cond_1f
invoke-static {p0}, Lcom/xiaomi/push/hu;->r(Landroid/content/Context;)Z
move-result v0
if-nez v0, :cond_28
const-string v0, ""
goto :goto_a
:cond_28
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
sget-object v0, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_36
const-string v0, ""
goto :goto_a
:cond_36
:try_start_36
const-string v0, "phone"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/telephony/TelephonyManager;
const-string v1, "getPhoneCount"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-static {v0, v1, v3}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
if-eqz v1, :cond_100
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v3
if-le v3, v7, :cond_100
const/4 v3, 0x0
move v8, v2
move-object v2, v3
move v3, v8
:goto_55
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v4
if-ge v3, v4, :cond_dd
sget v4, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v5, 0x1a
if-ge v4, v5, :cond_a8
const-string v2, "getDeviceId"
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
const/4 v5, 0x0
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v4, v5
invoke-static {v0, v2, v4}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
move-object v4, v2
:goto_74
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_a3
sget-object v2, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
invoke-static {v2, v4}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_a3
invoke-static {v4}, Lcom/xiaomi/push/hu;->a(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_a3
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
sget-object v5, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v5, ","
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
sput-object v2, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
:cond_a3
add-int/lit8 v2, v3, 0x1
move v3, v2
move-object v2, v4
goto :goto_55
:cond_a8
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I
move-result v4
if-ne v7, v4, :cond_c2
const-string v2, "getImei"
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
const/4 v5, 0x0
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v4, v5
invoke-static {v0, v2, v4}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
move-object v4, v2
goto :goto_74
:cond_c2
const/4 v4, 0x2
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I
move-result v5
if-ne v4, v5, :cond_104
const-string v2, "getMeid"
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
const/4 v5, 0x0
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
aput-object v6, v4, v5
invoke-static {v0, v2, v4}, Lcom/xiaomi/push/aa;->a(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
move-object v4, v2
goto :goto_74
:cond_dd
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_f0
sget-object v1, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
const/4 v2, 0x0
add-int/lit8 v0, v0, -0x1
invoke-virtual {v1, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
:cond_f0
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
:try_end_f2
.catch Ljava/lang/Exception; {:try_start_36 .. :try_end_f2} :catch_f4
goto/16 :goto_a
:catch_f4
move-exception v0
invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->d(Ljava/lang/String;)V
const-string v0, ""
goto/16 :goto_a
:cond_100
const-string v0, ""
goto/16 :goto_a
:cond_104
move-object v4, v2
goto/16 :goto_74
.end method
.method public static j(Landroid/content/Context;)Ljava/lang/String;
.registers 8
const/4 v2, 0x0
invoke-static {p0}, Lcom/xiaomi/push/hu;->i(Landroid/content/Context;)Ljava/lang/String;
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_f
const-string v0, ""
:cond_e
:goto_e
return-object v0
:cond_f
sget-object v0, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
const-string v1, ","
invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v3
const-string v0, ""
array-length v4, v3
move v1, v2
:goto_1b
if-ge v1, v4, :cond_44
aget-object v5, v3, v1
invoke-static {v5}, Lcom/xiaomi/push/hu;->a(Ljava/lang/String;)Z
move-result v6
if-nez v6, :cond_28
:goto_25
add-int/lit8 v1, v1, 0x1
goto :goto_1b
:cond_28
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {v5}, Lcom/xiaomi/push/af;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v5, ","
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_25
:cond_44
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
if-lez v1, :cond_e
add-int/lit8 v1, v1, -0x1
invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
goto :goto_e
.end method
.method public static k(Landroid/content/Context;)Ljava/util/ArrayList;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/ArrayList",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
invoke-static {p0}, Lcom/xiaomi/push/hu;->i(Landroid/content/Context;)Ljava/lang/String;
sget-object v0, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_10
const/4 v0, 0x0
:cond_f
return-object v0
:cond_10
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
sget-object v1, Lcom/xiaomi/push/hu;->a:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
sget-object v1, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_f
sget-object v1, Lcom/xiaomi/push/hu;->b:Ljava/lang/String;
const-string v2, ","
invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v2
array-length v3, v2
const/4 v1, 0x0
:goto_2c
if-ge v1, v3, :cond_f
aget-object v4, v2, v1
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_2c
.end method
.method public static declared-synchronized l(Landroid/content/Context;)Ljava/lang/String;
.registers 5
const-class v1, Lcom/xiaomi/push/hu;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/xiaomi/push/hu;->d:Ljava/lang/String;
if-eqz v0, :cond_b
sget-object v0, Lcom/xiaomi/push/hu;->d:Ljava/lang/String;
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_2d
:goto_9
monitor-exit v1
return-object v0
:cond_b
:try_start_b
invoke-static {p0}, Lcom/xiaomi/push/hu;->e(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
invoke-static {}, Lcom/xiaomi/push/hu;->a()Ljava/lang/String;
move-result-object v2
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/push/af;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/xiaomi/push/hu;->d:Ljava/lang/String;
sget-object v0, Lcom/xiaomi/push/hu;->d:Ljava/lang/String;
:try_end_2c
.catchall {:try_start_b .. :try_end_2c} :catchall_2d
goto :goto_9
:catchall_2d
move-exception v0
monitor-exit v1
throw v0
.end method
.method public static declared-synchronized m(Landroid/content/Context;)Ljava/lang/String;
.registers 5
const-class v1, Lcom/xiaomi/push/hu;
monitor-enter v1
:try_start_3
invoke-static {p0}, Lcom/xiaomi/push/hu;->e(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
const/4 v2, 0x0
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/push/af;->b(Ljava/lang/String;)Ljava/lang/String;
:try_end_1c
.catchall {:try_start_3 .. :try_end_1c} :catchall_1f
move-result-object v0
monitor-exit v1
return-object v0
:catchall_1f
move-exception v0
monitor-exit v1
throw v0
.end method
.method public static n(Landroid/content/Context;)Ljava/lang/String;
.registers 2
const-string v0, "phone"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/telephony/TelephonyManager;
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getSimOperatorName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static o(Landroid/content/Context;)Ljava/lang/String;
.registers 3
invoke-static {}, Lcom/xiaomi/push/jz;->g()Z
move-result v0
if-eqz v0, :cond_9
const-string v0, ""
:goto_8
return-object v0
:cond_9
:try_start_9
const-string v0, "wifi"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/wifi/WifiManager;
invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;
move-result-object v0
invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/push/hu;->b(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_24
invoke-static {v0}, Lcom/xiaomi/push/af;->g(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
goto :goto_8
:cond_24
const-string v0, ""
:try_end_26
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_26} :catch_27
goto :goto_8
:catch_27
move-exception v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V
const/4 v0, 0x0
goto :goto_8
.end method
.method private static p(Landroid/content/Context;)Z
.registers 4
const/4 v0, 0x0
const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"
invoke-static {p0, v1}, Lcom/xiaomi/push/kb;->a(Landroid/content/Context;Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_a
:cond_9
:goto_9
return v0
:cond_a
invoke-static {}, Lcom/xiaomi/push/jz;->a()Z
move-result v1
if-nez v1, :cond_9
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x1a
if-lt v1, v2, :cond_17
const/4 v0, 0x1
:cond_17
if-nez v0, :cond_9
invoke-static {p0}, Lcom/xiaomi/push/kk;->b(Landroid/content/Context;)Z
move-result v0
goto :goto_9
.end method
.method private static q(Landroid/content/Context;)Ljava/lang/String;
.registers 4
const/16 v1, 0xa
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
:goto_6
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_1d
add-int/lit8 v2, v1, -0x1
if-lez v1, :cond_1d
const-wide/16 v0, 0x1f4
:try_start_12
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
:try_end_15
.catch Ljava/lang/InterruptedException; {:try_start_12 .. :try_end_15} :catch_1b
:goto_15
invoke-static {p0}, Lcom/xiaomi/push/hu;->g(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
move v1, v2
goto :goto_6
:catch_1b
move-exception v0
goto :goto_15
:cond_1d
return-object v0
.end method
.method private static r(Landroid/content/Context;)Z
.registers 4
const-string v0, "android.permission.READ_PHONE_STATE"
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
const-string v2, "android.permission.READ_PHONE_STATE"
invoke-virtual {v1, v2, v0}, Landroid/content/pm/PackageManager;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I
move-result v0
if-nez v0, :cond_14
const/4 v0, 0x1
:goto_13
return v0
:cond_14
const/4 v0, 0x0
goto :goto_13
.end method