q.smali
.class public final Lcom/cmcm/common/kinfoc/q;
.super Ljava/lang/Object;
.source "KInfocUtil.java"
# direct methods
.method public static U(Ljava/lang/String;)J
.registers 3
.prologue
.line 35
:try_start_0
invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
:try_end_3
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3} :catch_5
move-result-wide v0
.line 37
:goto_4
return-wide v0
:catch_5
move-exception v0
const-wide/16 v0, 0x0
goto :goto_4
.end method
.method public static c(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z
.registers 11
.prologue
const/4 v2, 0x0
const/4 v0, 0x1
const/4 v1, 0x0
.line 102
if-eqz p0, :cond_7
if-nez p2, :cond_9
:cond_7
move v0, v1
.line 157
:cond_8
:goto_8
return v0
.line 110
:cond_9
:try_start_9
invoke-virtual {p0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v4
.line 112
new-instance v5, Ljava/io/File;
invoke-direct {v5, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 113
invoke-virtual {v5}, Ljava/io/File;->exists()Z
move-result v3
if-eqz v3, :cond_44
.line 114
invoke-virtual {v5}, Ljava/io/File;->isFile()Z
move-result v3
if-eqz v3, :cond_4f
.line 117
invoke-static {v5}, Lcom/cmcm/safewallet/data/coinprovider/a/b;->n(Ljava/io/File;)Ljava/lang/String;
:try_end_21
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_21} :catch_36
move-result-object v6
.line 120
:try_start_22
invoke-virtual {v4, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
:try_end_25
.catch Ljava/io/IOException; {:try_start_22 .. :try_end_25} :catch_39
.catch Ljava/lang/Exception; {:try_start_22 .. :try_end_25} :catch_36
move-result-object v3
.line 125
:goto_26
:try_start_26
invoke-static {v3}, Lcom/cmcm/safewallet/data/coinprovider/a/b;->e(Ljava/io/InputStream;)Ljava/lang/String;
move-result-object v7
.line 126
invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_3c
.line 127
if-eqz v3, :cond_8
.line 128
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
goto :goto_8
:catch_36
move-exception v0
move v0, v1
goto :goto_8
:catch_39
move-exception v3
move-object v3, v2
goto :goto_26
.line 132
:cond_3c
if-eqz v3, :cond_41
.line 133
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
.line 136
:cond_41
invoke-virtual {v5}, Ljava/io/File;->delete()Z
:try_end_44
.catch Ljava/lang/Exception; {:try_start_26 .. :try_end_44} :catch_36
.line 144
:cond_44
:goto_44
:try_start_44
invoke-virtual {v4, p1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
:try_end_47
.catch Ljava/io/IOException; {:try_start_44 .. :try_end_47} :catch_53
.catch Ljava/lang/Exception; {:try_start_44 .. :try_end_47} :catch_36
move-result-object v2
.line 149
:goto_48
:try_start_48
invoke-static {p2, v2}, Lcom/cmcm/common/kinfoc/n;->a(Ljava/lang/String;Ljava/io/InputStream;)Z
.line 151
invoke-virtual {v2}, Ljava/io/InputStream;->close()V
goto :goto_8
.line 139
:cond_4f
invoke-static {p2}, Lcom/cmcm/common/kinfoc/e;->Q(Ljava/lang/String;)V
:try_end_52
.catch Ljava/lang/Exception; {:try_start_48 .. :try_end_52} :catch_36
goto :goto_44
:catch_53
move-exception v3
goto :goto_48
.end method