f.smali
.class public Lcom/cmcm/xiaobao/phone/infoc/f;
.super Ljava/lang/Object;
# static fields
.field public 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 f:I
.field private static g:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 2
const/4 v1, 0x0
const-string/jumbo v0, "0"
sput-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->b:Ljava/lang/String;
sput-object v1, Lcom/cmcm/xiaobao/phone/infoc/f;->c:Ljava/lang/String;
sput-object v1, Lcom/cmcm/xiaobao/phone/infoc/f;->d:Ljava/lang/String;
sput-object v1, Lcom/cmcm/xiaobao/phone/infoc/f;->e:Ljava/lang/String;
const/4 v0, -0x1
sput v0, Lcom/cmcm/xiaobao/phone/infoc/f;->f:I
sput-object v1, Lcom/cmcm/xiaobao/phone/infoc/f;->g:Ljava/lang/String;
sput-object v1, Lcom/cmcm/xiaobao/phone/infoc/f;->a:Ljava/lang/String;
return-void
.end method
.method public static a()I
.registers 1
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/h;->c()I
move-result v0
return v0
.end method
.method public static a(Landroid/content/Context;)Ljava/lang/String;
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x8
.end annotation
const-string/jumbo v0, ""
:try_start_3
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v1
const-string/jumbo v2, "android_id"
invoke-static {v1, v2}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
:try_end_d
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_d} :catch_f
move-result-object v0
:goto_e
return-object v0
:catch_f
move-exception v1
:try_start_10
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
:try_end_13
.catch Ljava/lang/Exception; {:try_start_10 .. :try_end_13} :catch_14
goto :goto_e
:catch_14
move-exception v1
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_e
.end method
.method public static b(Landroid/content/Context;)I
.registers 6
const/4 v3, 0x3
const/4 v1, 0x0
if-nez p0, :cond_6
move v0, v1
:goto_5
return v0
:cond_6
:try_start_6
const-string/jumbo 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;->getSimOperator()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_33
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v2
if-lt v2, v3, :cond_33
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const/4 v3, 0x0
const/4 v4, 0x3
invoke-virtual {v2, v0, v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
:try_end_30
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_30} :catch_32
move-result v0
goto :goto_5
:catch_32
move-exception v0
:cond_33
move v0, v1
goto :goto_5
.end method
.method public static b()Ljava/lang/String;
.registers 1
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/h;->a()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static c()Ljava/lang/String;
.registers 1
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/h;->b()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static d()Ljava/lang/String;
.registers 1
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/h;->d()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static e()Ljava/lang/String;
.registers 2
sget-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->a:Ljava/lang/String;
if-nez v0, :cond_a
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/f;->f()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->a:Ljava/lang/String;
:cond_a
sget-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->a:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_15
const-string/jumbo v0, "100"
:cond_15
return-object v0
.end method
.method public static f()Ljava/lang/String;
.registers 2
sget-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->g:Ljava/lang/String;
if-eqz v0, :cond_7
sget-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->g:Ljava/lang/String;
:cond_6
:goto_6
return-object v0
:cond_7
invoke-static {}, Lcom/cmcm/xiaobao/phone/infoc/f;->g()Ljava/lang/String;
move-result-object v0
const-string/jumbo v1, "100"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_6
sput-object v0, Lcom/cmcm/xiaobao/phone/infoc/f;->g:Ljava/lang/String;
goto :goto_6
.end method
.method private static g()Ljava/lang/String;
.registers 5
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;
move-result-object v0
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getAppContext()Landroid/content/Context;
move-result-object v0
if-nez v0, :cond_e
const-string/jumbo v0, "100"
:goto_d
return-object v0
:cond_e
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v0
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
const-string/jumbo v1, ""
const/4 v3, 0x0
:try_start_18
new-instance v2, Ljava/util/zip/ZipFile;
invoke-direct {v2, v0}, Ljava/util/zip/ZipFile;-><init>(Ljava/lang/String;)V
:try_end_1d
.catch Ljava/io/IOException; {:try_start_18 .. :try_end_1d} :catch_5f
.catchall {:try_start_18 .. :try_end_1d} :catchall_71
:try_start_1d
invoke-virtual {v2}, Ljava/util/zip/ZipFile;->entries()Ljava/util/Enumeration;
move-result-object v3
:cond_21
invoke-interface {v3}, Ljava/util/Enumeration;->hasMoreElements()Z
move-result v0
if-eqz v0, :cond_88
invoke-interface {v3}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/zip/ZipEntry;
invoke-virtual {v0}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
move-result-object v0
const-string/jumbo v4, "META-INF/cmcar_"
invoke-virtual {v0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
:try_end_37
.catch Ljava/io/IOException; {:try_start_1d .. :try_end_37} :catch_84
.catchall {:try_start_1d .. :try_end_37} :catchall_82
move-result v4
if-eqz v4, :cond_21
:goto_3a
if-eqz v2, :cond_3f
:try_start_3c
invoke-virtual {v2}, Ljava/util/zip/ZipFile;->close()V
:try_end_3f
.catch Ljava/io/IOException; {:try_start_3c .. :try_end_3f} :catch_5a
:cond_3f
:goto_3f
const-string/jumbo v1, "_"
invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_7e
array-length v2, v1
const/4 v3, 0x2
if-lt v2, v3, :cond_7e
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v0
goto :goto_d
:catch_5a
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_3f
:catch_5f
move-exception v0
move-object v2, v3
:goto_61
:try_start_61
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_64
.catchall {:try_start_61 .. :try_end_64} :catchall_82
if-eqz v2, :cond_86
:try_start_66
invoke-virtual {v2}, Ljava/util/zip/ZipFile;->close()V
:try_end_69
.catch Ljava/io/IOException; {:try_start_66 .. :try_end_69} :catch_6b
move-object v0, v1
goto :goto_3f
:catch_6b
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
move-object v0, v1
goto :goto_3f
:catchall_71
move-exception v0
move-object v2, v3
:goto_73
if-eqz v2, :cond_78
:try_start_75
invoke-virtual {v2}, Ljava/util/zip/ZipFile;->close()V
:try_end_78
.catch Ljava/io/IOException; {:try_start_75 .. :try_end_78} :catch_79
:cond_78
:goto_78
throw v0
:catch_79
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_78
:cond_7e
const-string/jumbo v0, "100"
goto :goto_d
:catchall_82
move-exception v0
goto :goto_73
:catch_84
move-exception v0
goto :goto_61
:cond_86
move-object v0, v1
goto :goto_3f
:cond_88
move-object v0, v1
goto :goto_3a
.end method