d.smali
.class Lcom/keniu/security/update/d;
.super Ljava/lang/Thread;
.source "AssetsFileVersionControll.java"
# instance fields
.field final synthetic a:Landroid/content/Context;
.field final synthetic b:Lcom/keniu/security/update/c;
# direct methods
.method constructor <init>(Lcom/keniu/security/update/c;Landroid/content/Context;)V
.registers 3
.prologue
.line 327
iput-object p1, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
iput-object p2, p0, Lcom/keniu/security/update/d;->a:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 7
.prologue
const/4 v2, 0x0
.line 332
.line 335
:try_start_1
iget-object v0, p0, Lcom/keniu/security/update/d;->a:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
iget-object v1, p0, Lcom/keniu/security/update/d;->a:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
const/4 v3, 0x0
invoke-virtual {v0, v1, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
:try_end_11
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_11} :catch_15
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_11} :catch_1a
move-result-object v0
.line 341
if-nez v0, :cond_1c
.line 410
:cond_14
:goto_14
return-void
.line 336
:catch_15
move-exception v0
.line 337
:try_start_16
invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
goto :goto_14
.line 408
:catch_1a
move-exception v0
goto :goto_14
.line 346
:cond_1c
iget-object v0, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
invoke-static {v0}, Lcom/keniu/security/update/c;->a(Lcom/keniu/security/update/c;)Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
move-result-object v0
if-nez v0, :cond_13d
.line 347
iget-object v0, p0, Lcom/keniu/security/update/d;->a:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;
move-result-object v0
.line 352
new-instance v4, Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
invoke-direct {v4}, Lcom/cleanmaster/hpsharelib/security/update/IniResolver;-><init>()V
:try_end_2f
.catch Ljava/lang/Exception; {:try_start_16 .. :try_end_2f} :catch_1a
.line 355
:try_start_2f
const-string/jumbo v1, "version.ini"
invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
:try_end_35
.catch Ljava/io/UnsupportedEncodingException; {:try_start_2f .. :try_end_35} :catch_ee
.catch Ljava/io/IOException; {:try_start_2f .. :try_end_35} :catch_10a
.catchall {:try_start_2f .. :try_end_35} :catchall_126
move-result-object v3
.line 356
:try_start_36
new-instance v1, Ljava/io/InputStreamReader;
const-string/jumbo v0, "utf-8"
invoke-direct {v1, v3, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/lang/String;)V
:try_end_3e
.catch Ljava/io/UnsupportedEncodingException; {:try_start_36 .. :try_end_3e} :catch_159
.catch Ljava/io/IOException; {:try_start_36 .. :try_end_3e} :catch_154
.catchall {:try_start_36 .. :try_end_3e} :catchall_14b
.line 358
:try_start_3e
invoke-virtual {v4, v1}, Lcom/cleanmaster/hpsharelib/security/update/IniResolver;->load(Ljava/io/Reader;)Z
:try_end_41
.catch Ljava/io/UnsupportedEncodingException; {:try_start_3e .. :try_end_41} :catch_15d
.catch Ljava/io/IOException; {:try_start_3e .. :try_end_41} :catch_156
.catchall {:try_start_3e .. :try_end_41} :catchall_14d
move-result v0
if-nez v0, :cond_59
.line 366
if-eqz v1, :cond_49
.line 368
:try_start_46
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:try_end_49
.catch Ljava/io/IOException; {:try_start_46 .. :try_end_49} :catch_54
.catch Ljava/lang/Exception; {:try_start_46 .. :try_end_49} :catch_1a
.line 373
:cond_49
:goto_49
if-eqz v3, :cond_14
.line 375
:try_start_4b
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_4e
.catch Ljava/io/IOException; {:try_start_4b .. :try_end_4e} :catch_4f
.catch Ljava/lang/Exception; {:try_start_4b .. :try_end_4e} :catch_1a
goto :goto_14
.line 376
:catch_4f
move-exception v0
.line 377
:try_start_50
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_14
.line 369
:catch_54
move-exception v0
.line 370
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_58
.catch Ljava/lang/Exception; {:try_start_50 .. :try_end_58} :catch_1a
goto :goto_49
.line 366
:cond_59
if-eqz v1, :cond_5e
.line 368
:try_start_5b
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:try_end_5e
.catch Ljava/io/IOException; {:try_start_5b .. :try_end_5e} :catch_e2
.catch Ljava/lang/Exception; {:try_start_5b .. :try_end_5e} :catch_1a
.line 373
:cond_5e
:goto_5e
if-eqz v3, :cond_63
.line 375
:try_start_60
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_63
.catch Ljava/io/IOException; {:try_start_60 .. :try_end_63} :catch_e8
.catch Ljava/lang/Exception; {:try_start_60 .. :try_end_63} :catch_1a
.line 385
:cond_63
:goto_63
:try_start_63
invoke-static {}, Lcom/keniu/security/update/s;->a()Lcom/keniu/security/update/s;
move-result-object v0
invoke-virtual {v0}, Lcom/keniu/security/update/s;->k()Ljava/lang/String;
move-result-object v1
.line 387
iget-object v0, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
invoke-static {v0}, Lcom/keniu/security/update/c;->a(Lcom/keniu/security/update/c;)Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
move-result-object v0
if-eqz v0, :cond_144
iget-object v0, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
invoke-static {v0}, Lcom/keniu/security/update/c;->a(Lcom/keniu/security/update/c;)Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/security/update/IniResolver;->getAllSection()Ljava/util/Collection;
move-result-object v0
.line 388
:goto_7d
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v2
.line 390
:cond_81
:goto_81
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_14
.line 391
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 392
const-string v3, "data"
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_81
const-string v3, "config"
.line 393
invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_81
.line 397
new-instance v3, Lcom/keniu/security/update/s$a;
invoke-direct {v3}, Lcom/keniu/security/update/s$a;-><init>()V
.line 398
iget-object v4, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
invoke-static {v4}, Lcom/keniu/security/update/c;->a(Lcom/keniu/security/update/c;)Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
move-result-object v4
invoke-virtual {v3, v4, v0}, Lcom/keniu/security/update/s$a;->a(Lcom/cleanmaster/hpsharelib/security/update/IniResolver;Ljava/lang/String;)V
.line 400
const/4 v0, 0x3
iget v4, v3, Lcom/keniu/security/update/s$a;->a:I
if-ne v0, v4, :cond_81
.line 404
new-instance v0, Ljava/io/File;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
iget-object v5, v3, Lcom/keniu/security/update/s$a;->b:Ljava/lang/String;
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-direct {v0, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 405
invoke-virtual {v0}, Ljava/io/File;->delete()Z
.line 406
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v3, v3, Lcom/keniu/security/update/s$a;->b:Ljava/lang/String;
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/keniu/security/update/s;->m(Ljava/lang/String;)V
goto :goto_81
.line 369
:catch_e2
move-exception v0
.line 370
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto/16 :goto_5e
.line 376
:catch_e8
move-exception v0
.line 377
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_ec
.catch Ljava/lang/Exception; {:try_start_63 .. :try_end_ec} :catch_1a
goto/16 :goto_63
.line 361
:catch_ee
move-exception v0
move-object v1, v2
.line 362
:goto_f0
:try_start_f0
invoke-virtual {v0}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V
:try_end_f3
.catchall {:try_start_f0 .. :try_end_f3} :catchall_150
.line 366
if-eqz v1, :cond_f8
.line 368
:try_start_f5
invoke-virtual {v1}, Ljava/io/InputStreamReader;->close()V
:try_end_f8
.catch Ljava/io/IOException; {:try_start_f5 .. :try_end_f8} :catch_105
.catch Ljava/lang/Exception; {:try_start_f5 .. :try_end_f8} :catch_1a
.line 373
:cond_f8
:goto_f8
if-eqz v2, :cond_63
.line 375
:try_start_fa
invoke-virtual {v2}, Ljava/io/InputStream;->close()V
:try_end_fd
.catch Ljava/io/IOException; {:try_start_fa .. :try_end_fd} :catch_ff
.catch Ljava/lang/Exception; {:try_start_fa .. :try_end_fd} :catch_1a
goto/16 :goto_63
.line 376
:catch_ff
move-exception v0
.line 377
:try_start_100
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto/16 :goto_63
.line 369
:catch_105
move-exception v0
.line 370
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_109
.catch Ljava/lang/Exception; {:try_start_100 .. :try_end_109} :catch_1a
goto :goto_f8
.line 363
:catch_10a
move-exception v0
move-object v3, v2
.line 364
:goto_10c
:try_start_10c
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_10f
.catchall {:try_start_10c .. :try_end_10f} :catchall_14b
.line 366
if-eqz v2, :cond_114
.line 368
:try_start_111
invoke-virtual {v2}, Ljava/io/InputStreamReader;->close()V
:try_end_114
.catch Ljava/io/IOException; {:try_start_111 .. :try_end_114} :catch_121
.catch Ljava/lang/Exception; {:try_start_111 .. :try_end_114} :catch_1a
.line 373
:cond_114
:goto_114
if-eqz v3, :cond_63
.line 375
:try_start_116
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_119
.catch Ljava/io/IOException; {:try_start_116 .. :try_end_119} :catch_11b
.catch Ljava/lang/Exception; {:try_start_116 .. :try_end_119} :catch_1a
goto/16 :goto_63
.line 376
:catch_11b
move-exception v0
.line 377
:try_start_11c
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto/16 :goto_63
.line 369
:catch_121
move-exception v0
.line 370
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_125
.catch Ljava/lang/Exception; {:try_start_11c .. :try_end_125} :catch_1a
goto :goto_114
.line 366
:catchall_126
move-exception v0
move-object v3, v2
:goto_128
if-eqz v2, :cond_12d
.line 368
:try_start_12a
invoke-virtual {v2}, Ljava/io/InputStreamReader;->close()V
:try_end_12d
.catch Ljava/io/IOException; {:try_start_12a .. :try_end_12d} :catch_133
.catch Ljava/lang/Exception; {:try_start_12a .. :try_end_12d} :catch_1a
.line 373
:cond_12d
:goto_12d
if-eqz v3, :cond_132
.line 375
:try_start_12f
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_132
.catch Ljava/io/IOException; {:try_start_12f .. :try_end_132} :catch_138
.catch Ljava/lang/Exception; {:try_start_12f .. :try_end_132} :catch_1a
.line 378
:cond_132
:goto_132
:try_start_132
throw v0
.line 369
:catch_133
move-exception v1
.line 370
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_12d
.line 376
:catch_138
move-exception v1
.line 377
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_132
.line 382
:cond_13d
iget-object v0, p0, Lcom/keniu/security/update/d;->b:Lcom/keniu/security/update/c;
invoke-static {v0}, Lcom/keniu/security/update/c;->a(Lcom/keniu/security/update/c;)Lcom/cleanmaster/hpsharelib/security/update/IniResolver;
goto/16 :goto_63
.line 387
:cond_144
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
:try_end_149
.catch Ljava/lang/Exception; {:try_start_132 .. :try_end_149} :catch_1a
goto/16 :goto_7d
.line 366
:catchall_14b
move-exception v0
goto :goto_128
:catchall_14d
move-exception v0
move-object v2, v1
goto :goto_128
:catchall_150
move-exception v0
move-object v3, v2
move-object v2, v1
goto :goto_128
.line 363
:catch_154
move-exception v0
goto :goto_10c
:catch_156
move-exception v0
move-object v2, v1
goto :goto_10c
.line 361
:catch_159
move-exception v0
move-object v1, v2
move-object v2, v3
goto :goto_f0
:catch_15d
move-exception v0
move-object v2, v3
goto :goto_f0
.end method