267 lines
6.6 KiB
Smali
267 lines
6.6 KiB
Smali
.class public Lf/j/m/m$a;
|
|
.super Ljava/lang/Object;
|
|
.source "UnpackingSoSource.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lf/j/m/m;->a(Lf/j/m/g;I[B)Z
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Ljava/io/File;
|
|
|
|
.field public final synthetic e:[B
|
|
|
|
.field public final synthetic f:Lf/j/m/m$c;
|
|
|
|
.field public final synthetic g:Ljava/io/File;
|
|
|
|
.field public final synthetic h:Lf/j/m/g;
|
|
|
|
.field public final synthetic i:Lf/j/m/m;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/j/m/m;Ljava/io/File;[BLf/j/m/m$c;Ljava/io/File;Lf/j/m/g;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/j/m/m$a;->i:Lf/j/m/m;
|
|
|
|
iput-object p2, p0, Lf/j/m/m$a;->d:Ljava/io/File;
|
|
|
|
iput-object p3, p0, Lf/j/m/m$a;->e:[B
|
|
|
|
iput-object p4, p0, Lf/j/m/m$a;->f:Lf/j/m/m$c;
|
|
|
|
iput-object p5, p0, Lf/j/m/m$a;->g:Ljava/io/File;
|
|
|
|
iput-object p6, p0, Lf/j/m/m$a;->h:Lf/j/m/g;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 7
|
|
|
|
const-string v0, " (from syncer thread)"
|
|
|
|
const-string v1, "rw"
|
|
|
|
const-string v2, "releasing dso store lock for "
|
|
|
|
const-string v3, "fb-UnpackingSoSource"
|
|
|
|
:try_start_0
|
|
const-string v4, "starting syncer worker"
|
|
|
|
invoke-static {v3, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
new-instance v4, Ljava/io/RandomAccessFile;
|
|
|
|
iget-object v5, p0, Lf/j/m/m$a;->d:Ljava/io/File;
|
|
|
|
invoke-direct {v4, v5, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
iget-object v5, p0, Lf/j/m/m$a;->e:[B
|
|
|
|
invoke-virtual {v4, v5}, Ljava/io/RandomAccessFile;->write([B)V
|
|
|
|
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->getFilePointer()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual {v4, v5, v6}, Ljava/io/RandomAccessFile;->setLength(J)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_4
|
|
|
|
:try_start_2
|
|
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
|
|
|
|
new-instance v4, Ljava/io/File;
|
|
|
|
iget-object v5, p0, Lf/j/m/m$a;->i:Lf/j/m/m;
|
|
|
|
iget-object v5, v5, Lf/j/m/c;->a:Ljava/io/File;
|
|
|
|
const-string v6, "dso_manifest"
|
|
|
|
invoke-direct {v4, v5, v6}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
new-instance v5, Ljava/io/RandomAccessFile;
|
|
|
|
invoke-direct {v5, v4, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:try_start_3
|
|
iget-object v1, p0, Lf/j/m/m$a;->f:Lf/j/m/m$c;
|
|
|
|
invoke-virtual {v1, v5}, Lf/j/m/m$c;->a(Ljava/io/DataOutput;)V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
:try_start_4
|
|
invoke-virtual {v5}, Ljava/io/RandomAccessFile;->close()V
|
|
|
|
iget-object v1, p0, Lf/j/m/m$a;->i:Lf/j/m/m;
|
|
|
|
iget-object v1, v1, Lf/j/m/c;->a:Ljava/io/File;
|
|
|
|
invoke-static {v1}, Ls/a/b/b/a;->d(Ljava/io/File;)V
|
|
|
|
iget-object v1, p0, Lf/j/m/m$a;->g:Ljava/io/File;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
invoke-static {v1, v4}, Lf/j/m/m;->a(Ljava/io/File;B)V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
:try_start_5
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lf/j/m/m$a;->i:Lf/j/m/m;
|
|
|
|
iget-object v2, v2, Lf/j/m/c;->a:Ljava/io/File;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
iget-object v0, p0, Lf/j/m/m$a;->h:Lf/j/m/g;
|
|
|
|
invoke-virtual {v0}, Lf/j/m/g;->close()V
|
|
:try_end_5
|
|
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
:try_start_6
|
|
throw v1
|
|
:try_end_6
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception v4
|
|
|
|
:try_start_7
|
|
invoke-virtual {v5}, Ljava/io/RandomAccessFile;->close()V
|
|
:try_end_7
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_3
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_3
|
|
move-exception v5
|
|
|
|
:try_start_8
|
|
invoke-virtual {v1, v5}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
throw v4
|
|
:try_end_8
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_0
|
|
|
|
:catchall_4
|
|
move-exception v1
|
|
|
|
:try_start_9
|
|
throw v1
|
|
:try_end_9
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_5
|
|
|
|
:catchall_5
|
|
move-exception v5
|
|
|
|
:try_start_a
|
|
invoke-virtual {v4}, Ljava/io/RandomAccessFile;->close()V
|
|
:try_end_a
|
|
.catchall {:try_start_a .. :try_end_a} :catchall_6
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_6
|
|
move-exception v4
|
|
|
|
:try_start_b
|
|
invoke-virtual {v1, v4}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_1
|
|
throw v5
|
|
:try_end_b
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_0
|
|
|
|
:goto_2
|
|
:try_start_c
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lf/j/m/m$a;->i:Lf/j/m/m;
|
|
|
|
iget-object v2, v2, Lf/j/m/c;->a:Ljava/io/File;
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
iget-object v0, p0, Lf/j/m/m$a;->h:Lf/j/m/g;
|
|
|
|
invoke-virtual {v0}, Lf/j/m/g;->close()V
|
|
|
|
throw v1
|
|
:try_end_c
|
|
.catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_0
|
|
|
|
:catch_0
|
|
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
|