apkfuckery/com.discord/smali/com/facebook/soloader/k$1.smali

279 lines
7.5 KiB
Smali
Raw Normal View History

2019-02-17 02:24:41 +00:00
.class final Lcom/facebook/soloader/k$1;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "UnpackingSoSource.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2019-02-17 02:24:41 +00:00
value = Lcom/facebook/soloader/k;->a(Lcom/facebook/soloader/f;I[B)Z
2019-02-04 20:08:30 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
2019-05-03 18:53:54 +00:00
.field final synthetic WD:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field final synthetic WE:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field final synthetic WF:Lcom/facebook/soloader/k$b;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field final synthetic WG:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field final synthetic WH:Lcom/facebook/soloader/f;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
.field final synthetic WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
# direct methods
2019-02-17 02:24:41 +00:00
.method constructor <init>(Lcom/facebook/soloader/k;Ljava/io/File;[BLcom/facebook/soloader/k$b;Ljava/io/File;Lcom/facebook/soloader/f;)V
2019-02-04 20:08:30 +00:00
.locals 0
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/facebook/soloader/k$1;->WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/facebook/soloader/k$1;->WD:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p3, p0, Lcom/facebook/soloader/k$1;->WE:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p4, p0, Lcom/facebook/soloader/k$1;->WF:Lcom/facebook/soloader/k$b;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p5, p0, Lcom/facebook/soloader/k$1;->WG:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p6, p0, Lcom/facebook/soloader/k$1;->WH:Lcom/facebook/soloader/f;
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
2019-05-03 18:53:54 +00:00
.locals 8
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v0, " (from syncer thread)"
const-string v1, "rw"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "releasing dso store lock for "
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v3, "fb-UnpackingSoSource"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
:try_start_0
const-string v4, "starting syncer worker"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v4, Ljava/io/RandomAccessFile;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v5, p0, Lcom/facebook/soloader/k$1;->WD:Ljava/io/File;
invoke-direct {v4, v5, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-04 20:08:30 +00:00
:try_start_1
2019-05-03 18:53:54 +00:00
iget-object v6, p0, Lcom/facebook/soloader/k$1;->WE:[B
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4, v6}, Ljava/io/RandomAccessFile;->write([B)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->getFilePointer()J
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-wide v6
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4, v6, v7}, Ljava/io/RandomAccessFile;->setLength(J)V
2019-02-04 20:08:30 +00:00
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_2
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:try_start_2
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v4, Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v6, p0, Lcom/facebook/soloader/k$1;->WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v6, v6, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v7, "dso_manifest"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v4, v6, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-instance v6, Ljava/io/RandomAccessFile;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v6, v4, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
:try_start_3
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k$1;->WF:Lcom/facebook/soloader/k$b;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v6}, Lcom/facebook/soloader/k$b;->a(Ljava/io/DataOutput;)V
2019-02-04 20:08:30 +00:00
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
2019-05-03 18:53:54 +00:00
invoke-virtual {v6}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k$1;->WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, v1, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v1}, Lcom/facebook/soloader/SysUtil;->t(Ljava/io/File;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k$1;->WG:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v4, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v1, v4}, Lcom/facebook/soloader/k;->a(Ljava/io/File;B)V
2019-02-04 20:08:30 +00:00
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_2
:try_start_5
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
iget-object v2, p0, Lcom/facebook/soloader/k$1;->WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v2, v2, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k$1;->WH:Lcom/facebook/soloader/f;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/f;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
return-void
:catchall_0
2019-05-03 18:53:54 +00:00
move-exception v1
2019-02-04 20:08:30 +00:00
goto :goto_0
:catch_0
2019-05-03 18:53:54 +00:00
move-exception v1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-object v5, v1
2019-02-04 20:08:30 +00:00
:try_start_6
2019-05-03 18:53:54 +00:00
throw v5
2019-02-04 20:08:30 +00:00
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
:goto_0
2019-05-03 18:53:54 +00:00
if-eqz v5, :cond_0
2019-02-04 20:08:30 +00:00
:try_start_7
2019-05-03 18:53:54 +00:00
invoke-virtual {v6}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
:try_end_7
.catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_7} :catch_1
.catchall {:try_start_7 .. :try_end_7} :catchall_2
goto :goto_1
:cond_0
:try_start_8
2019-05-03 18:53:54 +00:00
invoke-virtual {v6}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
:catch_1
:goto_1
2019-05-03 18:53:54 +00:00
throw v1
2019-02-04 20:08:30 +00:00
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:catchall_1
2019-05-03 18:53:54 +00:00
move-exception v1
2019-02-04 20:08:30 +00:00
goto :goto_2
:catch_2
move-exception v1
2019-05-03 18:53:54 +00:00
move-object v5, v1
2019-02-04 20:08:30 +00:00
:try_start_9
2019-05-03 18:53:54 +00:00
throw v5
2019-02-04 20:08:30 +00:00
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_1
:goto_2
2019-05-03 18:53:54 +00:00
if-eqz v5, :cond_1
2019-02-04 20:08:30 +00:00
:try_start_a
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_a .. :try_end_a} :catch_3
.catchall {:try_start_a .. :try_end_a} :catchall_2
goto :goto_3
:cond_1
:try_start_b
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
2019-02-04 20:08:30 +00:00
:catch_3
:goto_3
2019-05-03 18:53:54 +00:00
throw v1
2019-02-04 20:08:30 +00:00
:try_end_b
.catchall {:try_start_b .. :try_end_b} :catchall_2
:catchall_2
2019-05-03 18:53:54 +00:00
move-exception v1
2019-02-04 20:08:30 +00:00
:try_start_c
2019-05-03 18:53:54 +00:00
new-instance v4, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v4, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v2, p0, Lcom/facebook/soloader/k$1;->WI:Lcom/facebook/soloader/k;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v2, v2, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k$1;->WH:Lcom/facebook/soloader/f;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/f;->close()V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
throw v1
2019-02-04 20:08:30 +00:00
:try_end_c
.catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_4
:catch_4
move-exception v0
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method