biy.smali

.class public Ldxoptimizer/biy;
.super Ldxoptimizer/akf;
.source "NetCorrectShieldDbInfo.java"


# direct methods
.method public constructor <init>()V
    .registers 3

    .prologue
    .line 38
    const-string v0, "ac_shield"

    invoke-direct {p0, v0}, Ldxoptimizer/akf;-><init>(Ljava/lang/String;)V

    .line 39
    const-wide/32 v0, 0x5265c00

    iput-wide v0, p0, Ldxoptimizer/biy;->f:J

    .line 40
    return-void
.end method

.method public static g(Landroid/content/Context;)V
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 43
    const-string v0, "correct_shield.dat"

    const-string v1, "ac_shield"

    invoke-static {p0, v0, v1, v2, v2}, Ldxoptimizer/cdc;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;II)V

    .line 47
    invoke-static {p0}, Ldxoptimizer/biy;->h(Landroid/content/Context;)V

    .line 48
    return-void
.end method

.method private static h(Landroid/content/Context;)V
    .registers 7

    .prologue
    .line 81
    const-string v1, ""

    .line 82
    invoke-static {p0}, Ldxoptimizer/biy;->i(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v3

    .line 83
    if-eqz v3, :cond_73

    .line 84
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    .line 85
    if-lez v4, :cond_73

    .line 86
    const/4 v0, 0x0

    move v5, v0

    move-object v0, v1

    move v1, v5

    :goto_12
    add-int/lit8 v2, v4, -0x1

    if-ge v1, v2, :cond_38

    .line 87
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "|"

    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 v2

    .line 86
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    move-object v0, v2

    goto :goto_12

    .line 89
    :cond_38
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    add-int/lit8 v0, v4, -0x1

    invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    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

    .line 91
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_73

    .line 92
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, 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 {p0, v0}, Ldxoptimizer/bjh;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 96
    :cond_73
    return-void
.end method

.method private static i(Landroid/content/Context;)Ljava/util/ArrayList;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

    .line 99
    .line 100
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 102
    :try_start_6
    new-instance v2, Ljava/io/ObjectInputStream;

    new-instance v3, Ljava/io/BufferedInputStream;

    new-instance v4, Ljava/util/zip/GZIPInputStream;

    const-string v5, "correct_shield.dat"

    invoke-virtual {p0, v5}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v3, v4}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v2, v3}, Ljava/io/ObjectInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_1b
    .catch Ljava/io/FileNotFoundException; {:try_start_6 .. :try_end_1b} :catch_78
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_6 .. :try_end_1b} :catch_49
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_1b} :catch_56
    .catchall {:try_start_6 .. :try_end_1b} :catchall_63

    .line 103
    :try_start_1b
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->readInt()I
    :try_end_1e
    .catch Ljava/io/FileNotFoundException; {:try_start_1b .. :try_end_1e} :catch_36
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_1b .. :try_end_1e} :catch_76
    .catch Ljava/io/IOException; {:try_start_1b .. :try_end_1e} :catch_74
    .catchall {:try_start_1b .. :try_end_1e} :catchall_72

    move-result v3

    .line 105
    const/4 v4, 0x1

    if-ge v3, v4, :cond_28

    .line 121
    if-eqz v2, :cond_27

    .line 123
    :try_start_24
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_27
    .catch Ljava/io/IOException; {:try_start_24 .. :try_end_27} :catch_6c

    .line 128
    :cond_27
    :goto_27
    return-object v0

    .line 108
    :cond_28
    :goto_28
    :try_start_28
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->available()I

    move-result v3

    if-lez v3, :cond_42

    .line 109
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->readUTF()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_35
    .catch Ljava/io/FileNotFoundException; {:try_start_28 .. :try_end_35} :catch_36
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_28 .. :try_end_35} :catch_76
    .catch Ljava/io/IOException; {:try_start_28 .. :try_end_35} :catch_74
    .catchall {:try_start_28 .. :try_end_35} :catchall_72

    goto :goto_28

    .line 111
    :catch_36
    move-exception v1

    .line 112
    :goto_37
    :try_start_37
    invoke-virtual {v1}, Ljava/io/FileNotFoundException;->printStackTrace()V
    :try_end_3a
    .catchall {:try_start_37 .. :try_end_3a} :catchall_72

    .line 121
    if-eqz v2, :cond_27

    .line 123
    :try_start_3c
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_3f
    .catch Ljava/io/IOException; {:try_start_3c .. :try_end_3f} :catch_40

    goto :goto_27

    .line 124
    :catch_40
    move-exception v1

    goto :goto_27

    .line 121
    :cond_42
    if-eqz v2, :cond_47

    .line 123
    :try_start_44
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_47
    .catch Ljava/io/IOException; {:try_start_44 .. :try_end_47} :catch_6e

    :cond_47
    :goto_47
    move-object v0, v1

    .line 128
    goto :goto_27

    .line 114
    :catch_49
    move-exception v1

    move-object v2, v0

    .line 115
    :goto_4b
    :try_start_4b
    invoke-virtual {v1}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V
    :try_end_4e
    .catchall {:try_start_4b .. :try_end_4e} :catchall_72

    .line 121
    if-eqz v2, :cond_27

    .line 123
    :try_start_50
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_53
    .catch Ljava/io/IOException; {:try_start_50 .. :try_end_53} :catch_54

    goto :goto_27

    .line 124
    :catch_54
    move-exception v1

    goto :goto_27

    .line 117
    :catch_56
    move-exception v1

    move-object v2, v0

    .line 118
    :goto_58
    :try_start_58
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
    :try_end_5b
    .catchall {:try_start_58 .. :try_end_5b} :catchall_72

    .line 121
    if-eqz v2, :cond_27

    .line 123
    :try_start_5d
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_60
    .catch Ljava/io/IOException; {:try_start_5d .. :try_end_60} :catch_61

    goto :goto_27

    .line 124
    :catch_61
    move-exception v1

    goto :goto_27

    .line 121
    :catchall_63
    move-exception v1

    move-object v2, v0

    move-object v0, v1

    :goto_66
    if-eqz v2, :cond_6b

    .line 123
    :try_start_68
    invoke-virtual {v2}, Ljava/io/ObjectInputStream;->close()V
    :try_end_6b
    .catch Ljava/io/IOException; {:try_start_68 .. :try_end_6b} :catch_70

    .line 125
    :cond_6b
    :goto_6b
    throw v0

    .line 124
    :catch_6c
    move-exception v1

    goto :goto_27

    :catch_6e
    move-exception v0

    goto :goto_47

    :catch_70
    move-exception v1

    goto :goto_6b

    .line 121
    :catchall_72
    move-exception v0

    goto :goto_66

    .line 117
    :catch_74
    move-exception v1

    goto :goto_58

    .line 114
    :catch_76
    move-exception v1

    goto :goto_4b

    .line 111
    :catch_78
    move-exception v1

    move-object v2, v0

    goto :goto_37
.end method


# virtual methods
.method public a()I
    .registers 2

    .prologue
    .line 77
    const/16 v0, 0x1119

    return v0
.end method

.method public a(Landroid/content/Context;)I
    .registers 4

    .prologue
    .line 52
    iget-object v0, p0, Ldxoptimizer/biy;->a:Ljava/lang/String;

    const/4 v1, 0x1

    invoke-static {p1, v0, v1}, Ldxoptimizer/ccm;->b(Landroid/content/Context;Ljava/lang/String;I)I

    move-result v0

    return v0
.end method

.method public a(Landroid/content/Context;I)V
    .registers 4

    .prologue
    .line 57
    iget-object v0, p0, Ldxoptimizer/biy;->a:Ljava/lang/String;

    invoke-static {p1, v0, p2}, Ldxoptimizer/ccm;->a(Landroid/content/Context;Ljava/lang/String;I)V

    .line 58
    return-void
.end method

.method public a(Landroid/content/Context;Ljava/io/File;)Z
    .registers 4

    .prologue
    .line 67
    const-string v0, "correct_shield.dat"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getFileStreamPath(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 68
    invoke-virtual {p2, v0}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    .line 69
    if-eqz v0, :cond_f

    .line 70
    invoke-static {p1}, Ldxoptimizer/biy;->g(Landroid/content/Context;)V

    .line 72
    :cond_f
    return v0
.end method

.method public b(Landroid/content/Context;)I
    .registers 3

    .prologue
    .line 62
    const/4 v0, 0x1

    return v0
.end method