Weather/smali_classes4/com/tencent/smtt/sdk/TbsLogReport$a.smali
2021-05-10 10:13:34 +02:00

589 lines
13 KiB
Smali

.class Lcom/tencent/smtt/sdk/TbsLogReport$a;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tencent/smtt/sdk/TbsLogReport;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "a"
.end annotation
# instance fields
.field private final a:Ljava/lang/String;
.field private final b:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/tencent/smtt/sdk/TbsLogReport$a;->a:Ljava/lang/String;
iput-object p2, p0, Lcom/tencent/smtt/sdk/TbsLogReport$a;->b:Ljava/lang/String;
return-void
.end method
.method private static a(Ljava/io/File;)V
.locals 5
const/4 v0, 0x0
:try_start_0
new-instance v1, Ljava/io/RandomAccessFile;
const-string v2, "rw"
invoke-direct {v1, p0, v2}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
const-string p0, "00001000"
const/4 v0, 0x2
invoke-static {p0, v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
move-result p0
const-wide/16 v2, 0x7
invoke-virtual {v1, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->read()I
move-result v0
and-int v4, v0, p0
if-lez v4, :cond_0
invoke-virtual {v1, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V
xor-int/lit8 p0, p0, -0x1
and-int/lit16 p0, p0, 0xff
and-int/2addr p0, v0
invoke-virtual {v1, p0}, Ljava/io/RandomAccessFile;->write(I)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:cond_0
:try_start_2
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
goto :goto_1
:catchall_0
move-exception p0
goto :goto_2
:catch_0
move-exception p0
move-object v0, v1
goto :goto_0
:catchall_1
move-exception p0
move-object v1, v0
goto :goto_2
:catch_1
move-exception p0
:goto_0
:try_start_3
invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
if-eqz v0, :cond_1
:try_start_4
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2
goto :goto_1
:catch_2
move-exception p0
invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
:cond_1
:goto_1
return-void
:goto_2
if-eqz v1, :cond_2
:try_start_5
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
goto :goto_3
:catch_3
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:cond_2
:goto_3
throw p0
.end method
# virtual methods
.method public a()V
.locals 10
const/4 v0, 0x0
:try_start_0
new-instance v1, Ljava/io/FileOutputStream;
iget-object v2, p0, Lcom/tencent/smtt/sdk/TbsLogReport$a;->b:Ljava/lang/String;
invoke-direct {v1, v2}, Ljava/io/FileOutputStream;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_c
.catchall {:try_start_0 .. :try_end_0} :catchall_4
:try_start_1
new-instance v2, Ljava/util/zip/ZipOutputStream;
new-instance v3, Ljava/io/BufferedOutputStream;
invoke-direct {v3, v1}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;)V
invoke-direct {v2, v3}, Ljava/util/zip/ZipOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_b
.catchall {:try_start_1 .. :try_end_1} :catchall_3
const/16 v3, 0x800
:try_start_2
new-array v4, v3, [B
iget-object v5, p0, Lcom/tencent/smtt/sdk/TbsLogReport$a;->a:Ljava/lang/String;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_a
.catchall {:try_start_2 .. :try_end_2} :catchall_5
:try_start_3
new-instance v6, Ljava/io/FileInputStream;
invoke-direct {v6, v5}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_4
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:try_start_4
new-instance v7, Ljava/io/BufferedInputStream;
invoke-direct {v7, v6, v3}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;I)V
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:try_start_5
new-instance v0, Ljava/util/zip/ZipEntry;
const-string v8, "/"
invoke-virtual {v5, v8}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I
move-result v8
add-int/lit8 v8, v8, 0x1
invoke-virtual {v5, v8}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v5
invoke-direct {v0, v5}, Ljava/util/zip/ZipEntry;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, v0}, Ljava/util/zip/ZipOutputStream;->putNextEntry(Ljava/util/zip/ZipEntry;)V
:goto_0
const/4 v0, 0x0
invoke-virtual {v7, v4, v0, v3}, Ljava/io/BufferedInputStream;->read([BII)I
move-result v5
const/4 v8, -0x1
if-eq v5, v8, :cond_0
invoke-virtual {v2, v4, v0, v5}, Ljava/util/zip/ZipOutputStream;->write([BII)V
goto :goto_0
:cond_0
invoke-virtual {v2}, Ljava/util/zip/ZipOutputStream;->flush()V
invoke-virtual {v2}, Ljava/util/zip/ZipOutputStream;->closeEntry()V
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
.catchall {:try_start_5 .. :try_end_5} :catchall_2
:try_start_6
invoke-virtual {v7}, Ljava/io/BufferedInputStream;->close()V
:try_end_6
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_0
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_a
.catchall {:try_start_6 .. :try_end_6} :catchall_5
goto :goto_1
:catch_0
move-exception v0
:try_start_7
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_7
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_a
.catchall {:try_start_7 .. :try_end_7} :catchall_5
:goto_1
:try_start_8
invoke-virtual {v6}, Ljava/io/FileInputStream;->close()V
:try_end_8
.catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_1
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_a
.catchall {:try_start_8 .. :try_end_8} :catchall_5
goto :goto_7
:catch_1
move-exception v0
:goto_2
:try_start_9
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_9
.catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_a
.catchall {:try_start_9 .. :try_end_9} :catchall_5
goto :goto_7
:catch_2
move-exception v0
goto :goto_5
:catchall_0
move-exception v3
move-object v7, v0
goto :goto_3
:catch_3
move-exception v3
move-object v7, v0
goto :goto_4
:catchall_1
move-exception v3
move-object v6, v0
move-object v7, v6
:goto_3
move-object v0, v3
goto :goto_9
:catch_4
move-exception v3
move-object v6, v0
move-object v7, v6
:goto_4
move-object v0, v3
:goto_5
:try_start_a
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_2
if-eqz v7, :cond_1
:try_start_b
invoke-virtual {v7}, Ljava/io/BufferedInputStream;->close()V
:try_end_b
.catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_5
.catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_a
.catchall {:try_start_b .. :try_end_b} :catchall_5
goto :goto_6
:catch_5
move-exception v0
:try_start_c
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_c
.catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_a
.catchall {:try_start_c .. :try_end_c} :catchall_5
:cond_1
:goto_6
if-eqz v6, :cond_2
:try_start_d
invoke-virtual {v6}, Ljava/io/FileInputStream;->close()V
:try_end_d
.catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_6
.catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_a
.catchall {:try_start_d .. :try_end_d} :catchall_5
goto :goto_7
:catch_6
move-exception v0
goto :goto_2
:cond_2
:goto_7
:try_start_e
new-instance v0, Ljava/io/File;
iget-object v3, p0, Lcom/tencent/smtt/sdk/TbsLogReport$a;->b:Ljava/lang/String;
invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Lcom/tencent/smtt/sdk/TbsLogReport$a;->a(Ljava/io/File;)V
:try_end_e
.catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_a
.catchall {:try_start_e .. :try_end_e} :catchall_5
:try_start_f
invoke-virtual {v2}, Ljava/util/zip/ZipOutputStream;->close()V
:try_end_f
.catch Ljava/io/IOException; {:try_start_f .. :try_end_f} :catch_7
goto :goto_8
:catch_7
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:goto_8
:try_start_10
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_10
.catch Ljava/io/IOException; {:try_start_10 .. :try_end_10} :catch_e
goto :goto_e
:catchall_2
move-exception v0
:goto_9
if-eqz v7, :cond_3
:try_start_11
invoke-virtual {v7}, Ljava/io/BufferedInputStream;->close()V
:try_end_11
.catch Ljava/io/IOException; {:try_start_11 .. :try_end_11} :catch_8
.catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_a
.catchall {:try_start_11 .. :try_end_11} :catchall_5
goto :goto_a
:catch_8
move-exception v3
:try_start_12
invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V
:try_end_12
.catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_a
.catchall {:try_start_12 .. :try_end_12} :catchall_5
:cond_3
:goto_a
if-eqz v6, :cond_4
:try_start_13
invoke-virtual {v6}, Ljava/io/FileInputStream;->close()V
:try_end_13
.catch Ljava/io/IOException; {:try_start_13 .. :try_end_13} :catch_9
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_a
.catchall {:try_start_13 .. :try_end_13} :catchall_5
goto :goto_b
:catch_9
move-exception v3
:try_start_14
invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V
:cond_4
:goto_b
throw v0
:try_end_14
.catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_a
.catchall {:try_start_14 .. :try_end_14} :catchall_5
:catch_a
move-exception v0
goto :goto_c
:catchall_3
move-exception v2
move-object v9, v2
move-object v2, v0
move-object v0, v9
goto :goto_f
:catch_b
move-exception v2
move-object v9, v2
move-object v2, v0
move-object v0, v9
goto :goto_c
:catchall_4
move-exception v1
move-object v2, v0
move-object v0, v1
move-object v1, v2
goto :goto_f
:catch_c
move-exception v1
move-object v2, v0
move-object v0, v1
move-object v1, v2
:goto_c
:try_start_15
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_15
.catchall {:try_start_15 .. :try_end_15} :catchall_5
if-eqz v2, :cond_5
:try_start_16
invoke-virtual {v2}, Ljava/util/zip/ZipOutputStream;->close()V
:try_end_16
.catch Ljava/io/IOException; {:try_start_16 .. :try_end_16} :catch_d
goto :goto_d
:catch_d
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:cond_5
:goto_d
if-eqz v1, :cond_6
:try_start_17
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_17
.catch Ljava/io/IOException; {:try_start_17 .. :try_end_17} :catch_e
goto :goto_e
:catch_e
move-exception v0
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:cond_6
:goto_e
return-void
:catchall_5
move-exception v0
:goto_f
if-eqz v2, :cond_7
:try_start_18
invoke-virtual {v2}, Ljava/util/zip/ZipOutputStream;->close()V
:try_end_18
.catch Ljava/io/IOException; {:try_start_18 .. :try_end_18} :catch_f
goto :goto_10
:catch_f
move-exception v2
invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V
:cond_7
:goto_10
if-eqz v1, :cond_8
:try_start_19
invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V
:try_end_19
.catch Ljava/io/IOException; {:try_start_19 .. :try_end_19} :catch_10
goto :goto_11
:catch_10
move-exception v1
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
:cond_8
:goto_11
throw v0
.end method