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

1638 lines
39 KiB
Smali
Raw Normal View History

2019-02-17 02:24:41 +00:00
.class public abstract Lcom/facebook/soloader/k;
.super Lcom/facebook/soloader/c;
.source "UnpackingSoSource.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/soloader/k$e;,
Lcom/facebook/soloader/k$d;,
Lcom/facebook/soloader/k$c;,
Lcom/facebook/soloader/k$b;,
Lcom/facebook/soloader/k$a;
}
.end annotation
# instance fields
2019-05-03 18:53:54 +00:00
.field protected WA:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-05-03 18:53:54 +00:00
.field WB:[Ljava/lang/String;
2019-02-17 02:24:41 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-05-03 18:53:54 +00:00
.field private final WC:Ljava/util/Map;
2019-02-17 02:24:41 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field protected final mContext:Landroid/content/Context;
# direct methods
.method protected constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 3
new-instance v0, Ljava/io/File;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v2
iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->dataDir:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "/"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
const/4 p2, 0x1
invoke-direct {p0, v0, p2}, Lcom/facebook/soloader/c;-><init>(Ljava/io/File;I)V
new-instance p2, Ljava/util/HashMap;
invoke-direct {p2}, Ljava/util/HashMap;-><init>()V
2019-05-03 18:53:54 +00:00
iput-object p2, p0, Lcom/facebook/soloader/k;->WC:Ljava/util/Map;
2019-02-17 02:24:41 +00:00
iput-object p1, p0, Lcom/facebook/soloader/k;->mContext:Landroid/content/Context;
return-void
.end method
.method private a(BLcom/facebook/soloader/k$b;Lcom/facebook/soloader/k$d;)V
2019-05-03 18:53:54 +00:00
.locals 17
2019-02-17 02:24:41 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-03 18:53:54 +00:00
move-object/from16 v1, p0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "regenerating DSO store "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual/range {p0 .. p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "fb-UnpackingSoSource"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
new-instance v0, Ljava/io/File;
2019-05-03 18:53:54 +00:00
iget-object v3, v1, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v4, "dso_manifest"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v3, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v3, Ljava/io/RandomAccessFile;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v4, "rw"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v3, v0, v4}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const/4 v6, 0x1
2019-02-17 02:24:41 +00:00
move/from16 v0, p1
2019-05-03 18:53:54 +00:00
if-ne v0, v6, :cond_0
2019-02-17 02:24:41 +00:00
:try_start_0
2019-05-03 18:53:54 +00:00
invoke-static {v3}, Lcom/facebook/soloader/k$b;->a(Ljava/io/DataInput;)Lcom/facebook/soloader/k$b;
2019-02-17 02:24:41 +00:00
move-result-object v0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
2019-05-03 18:53:54 +00:00
const/16 v16, 0x0
2019-02-17 02:24:41 +00:00
goto/16 :goto_b
:catch_0
move-exception v0
2019-05-03 18:53:54 +00:00
move-object v5, v0
2019-02-17 02:24:41 +00:00
goto/16 :goto_a
:catch_1
move-exception v0
2019-05-03 18:53:54 +00:00
move-object v7, v0
2019-02-17 02:24:41 +00:00
:try_start_1
2019-05-03 18:53:54 +00:00
const-string v0, "error reading existing DSO manifest"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, v0, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-17 02:24:41 +00:00
:cond_0
2019-05-03 18:53:54 +00:00
const/4 v0, 0x0
2019-02-17 02:24:41 +00:00
:goto_0
2019-05-03 18:53:54 +00:00
const/4 v7, 0x0
2019-02-17 02:24:41 +00:00
if-nez v0, :cond_1
new-instance v0, Lcom/facebook/soloader/k$b;
2019-05-03 18:53:54 +00:00
new-array v8, v7, [Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v8}, Lcom/facebook/soloader/k$b;-><init>([Lcom/facebook/soloader/k$a;)V
2019-02-17 02:24:41 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
move-object/from16 v8, p2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v9, v0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, v8, Lcom/facebook/soloader/k$b;->WK:[Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v1, v0}, Lcom/facebook/soloader/k;->a([Lcom/facebook/soloader/k$a;)V
2019-02-17 02:24:41 +00:00
const v0, 0x8000
2019-05-03 18:53:54 +00:00
new-array v8, v0, [B
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
:goto_1
2019-02-17 02:24:41 +00:00
invoke-virtual/range {p3 .. p3}, Lcom/facebook/soloader/k$d;->hasNext()Z
move-result v0
if-eqz v0, :cond_9
2019-04-16 23:08:16 +00:00
invoke-virtual/range {p3 .. p3}, Lcom/facebook/soloader/k$d;->jV()Lcom/facebook/soloader/k$c;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v10
2019-02-17 02:24:41 +00:00
:try_end_1
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 v0, 0x1
2019-05-03 18:53:54 +00:00
const/4 v11, 0x0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
:goto_2
2019-02-17 02:24:41 +00:00
if-eqz v0, :cond_3
:try_start_2
2019-05-03 18:53:54 +00:00
iget-object v12, v9, Lcom/facebook/soloader/k$b;->WK:[Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
array-length v12, v12
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-ge v11, v12, :cond_3
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v9, Lcom/facebook/soloader/k$b;->WK:[Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
aget-object v12, v12, v11
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v12, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v13, v10, Lcom/facebook/soloader/k$c;->WL:Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v13, v13, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v12
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v12, :cond_2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v9, Lcom/facebook/soloader/k$b;->WK:[Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
aget-object v12, v12, v11
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v12, Lcom/facebook/soloader/k$a;->WJ:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v13, v10, Lcom/facebook/soloader/k$c;->WL:Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v13, v13, Lcom/facebook/soloader/k$a;->WJ:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v12
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v12, :cond_2
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
:cond_2
2019-05-03 18:53:54 +00:00
add-int/lit8 v11, v11, 0x1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
goto :goto_2
2019-02-17 02:24:41 +00:00
:catchall_1
move-exception v0
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-17 02:24:41 +00:00
goto/16 :goto_7
:catch_2
move-exception v0
2019-05-03 18:53:54 +00:00
move-object v5, v0
2019-02-17 02:24:41 +00:00
goto/16 :goto_6
:cond_3
if-eqz v0, :cond_8
2019-05-03 18:53:54 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v11, "extracting DSO "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v11, v10, Lcom/facebook/soloader/k$c;->WL:Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v11, v11, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, v1, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v6, v6}, Ljava/io/File;->setWritable(ZZ)Z
2019-02-17 02:24:41 +00:00
move-result v0
if-eqz v0, :cond_6
2019-05-03 18:53:54 +00:00
new-instance v11, Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, v1, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v10, Lcom/facebook/soloader/k$c;->WL:Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v12, v12, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v11, v0, v12}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
:try_end_2
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:try_start_3
new-instance v0, Ljava/io/RandomAccessFile;
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v11, v4}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_2
.catchall {:try_start_3 .. :try_end_3} :catchall_1
2019-05-03 18:53:54 +00:00
:goto_3
move-object v12, v0
2019-02-17 02:24:41 +00:00
goto :goto_4
:catch_3
move-exception v0
:try_start_4
2019-05-03 18:53:54 +00:00
new-instance v12, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v13, "error overwriting "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v13, " trying to delete and start over"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v12
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, v12, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v11}, Lcom/facebook/soloader/SysUtil;->s(Ljava/io/File;)V
2019-02-17 02:24:41 +00:00
new-instance v0, Ljava/io/RandomAccessFile;
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v11, v4}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
:try_end_4
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_2
.catchall {:try_start_4 .. :try_end_4} :catchall_1
2019-05-03 18:53:54 +00:00
goto :goto_3
2019-02-17 02:24:41 +00:00
:goto_4
:try_start_5
2019-05-03 18:53:54 +00:00
iget-object v0, v10, Lcom/facebook/soloader/k$c;->WM:Ljava/io/InputStream;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0}, Ljava/io/InputStream;->available()I
move-result v0
2019-05-03 18:53:54 +00:00
if-le v0, v6, :cond_4
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12}, Ljava/io/RandomAccessFile;->getFD()Ljava/io/FileDescriptor;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v13
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
int-to-long v14, v0
2019-02-17 02:24:41 +00:00
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
2019-05-03 18:53:54 +00:00
const/16 v5, 0x15
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-lt v0, v5, :cond_4
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v13, v14, v15}, Lcom/facebook/soloader/SysUtil$LollipopSysdeps;->fallocateIfSupported(Ljava/io/FileDescriptor;J)V
2019-02-17 02:24:41 +00:00
:cond_4
2019-05-03 18:53:54 +00:00
iget-object v0, v10, Lcom/facebook/soloader/k$c;->WM:Ljava/io/InputStream;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v12, v0, v8}, Lcom/facebook/soloader/SysUtil;->a(Ljava/io/RandomAccessFile;Ljava/io/InputStream;[B)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12}, Ljava/io/RandomAccessFile;->getFilePointer()J
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-wide v13
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v12, v13, v14}, Ljava/io/RandomAccessFile;->setLength(J)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v11, v6, v7}, Ljava/io/File;->setExecutable(ZZ)Z
2019-02-17 02:24:41 +00:00
move-result v0
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4
.catchall {:try_start_5 .. :try_end_5} :catchall_2
if-eqz v0, :cond_5
:try_start_6
2019-05-03 18:53:54 +00:00
invoke-virtual {v12}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:try_end_6
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6} :catch_2
.catchall {:try_start_6 .. :try_end_6} :catchall_1
goto :goto_9
:cond_5
:try_start_7
new-instance v0, Ljava/io/IOException;
2019-05-03 18:53:54 +00:00
const-string v2, "cannot make file executable: "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
throw v0
:try_end_7
.catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_4
.catchall {:try_start_7 .. :try_end_7} :catchall_2
:catchall_2
move-exception v0
goto :goto_5
:catch_4
move-exception v0
:try_start_8
2019-05-03 18:53:54 +00:00
invoke-static {v11}, Lcom/facebook/soloader/SysUtil;->s(Ljava/io/File;)V
2019-02-17 02:24:41 +00:00
throw v0
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:goto_5
:try_start_9
2019-05-03 18:53:54 +00:00
invoke-virtual {v12}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
throw v0
:cond_6
new-instance v0, Ljava/io/IOException;
2019-05-03 18:53:54 +00:00
new-instance v2, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v4, "cannot make directory writable for us: "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v4, v1, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
throw v0
:try_end_9
.catch Ljava/lang/Throwable; {:try_start_9 .. :try_end_9} :catch_2
.catchall {:try_start_9 .. :try_end_9} :catchall_1
:goto_6
:try_start_a
2019-05-03 18:53:54 +00:00
throw v5
2019-02-17 02:24:41 +00:00
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_3
:catchall_3
move-exception v0
:goto_7
2019-05-03 18:53:54 +00:00
if-eqz v5, :cond_7
2019-02-17 02:24:41 +00:00
:try_start_b
2019-05-03 18:53:54 +00:00
invoke-virtual {v10}, Lcom/facebook/soloader/k$c;->close()V
2019-02-17 02:24:41 +00:00
:try_end_b
.catch Ljava/lang/Throwable; {:try_start_b .. :try_end_b} :catch_5
.catchall {:try_start_b .. :try_end_b} :catchall_0
goto :goto_8
:cond_7
:try_start_c
2019-05-03 18:53:54 +00:00
invoke-virtual {v10}, Lcom/facebook/soloader/k$c;->close()V
2019-02-17 02:24:41 +00:00
:catch_5
:goto_8
throw v0
:cond_8
:goto_9
2019-05-03 18:53:54 +00:00
invoke-virtual {v10}, Lcom/facebook/soloader/k$c;->close()V
2019-02-17 02:24:41 +00:00
:try_end_c
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_c} :catch_0
.catchall {:try_start_c .. :try_end_c} :catchall_0
2019-05-03 18:53:54 +00:00
goto/16 :goto_1
2019-02-17 02:24:41 +00:00
:cond_9
2019-05-03 18:53:54 +00:00
invoke-virtual {v3}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
const-string v3, "Finished regenerating DSO store "
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual/range {p0 .. p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2019-02-17 02:24:41 +00:00
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v3
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v2, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
return-void
:goto_a
:try_start_d
2019-05-03 18:53:54 +00:00
throw v5
2019-02-17 02:24:41 +00:00
:try_end_d
2019-05-03 18:53:54 +00:00
.catchall {:try_start_d .. :try_end_d} :catchall_4
:catchall_4
move-exception v0
move-object/from16 v16, v5
2019-02-17 02:24:41 +00:00
:goto_b
2019-05-03 18:53:54 +00:00
if-eqz v16, :cond_a
2019-02-17 02:24:41 +00:00
:try_start_e
2019-05-03 18:53:54 +00:00
invoke-virtual {v3}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:try_end_e
.catch Ljava/lang/Throwable; {:try_start_e .. :try_end_e} :catch_6
goto :goto_c
:cond_a
2019-05-03 18:53:54 +00:00
invoke-virtual {v3}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:catch_6
:goto_c
throw v0
return-void
.end method
.method static a(Ljava/io/File;B)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Ljava/io/RandomAccessFile;
const-string v1, "rw"
invoke-direct {v0, p0, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
const-wide/16 v1, 0x0
const/4 p0, 0x0
:try_start_0
invoke-virtual {v0, v1, v2}, Ljava/io/RandomAccessFile;->seek(J)V
invoke-virtual {v0, p1}, Ljava/io/RandomAccessFile;->write(I)V
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->getFilePointer()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Ljava/io/RandomAccessFile;->setLength(J)V
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->getFD()Ljava/io/FileDescriptor;
move-result-object p1
invoke-virtual {p1}, Ljava/io/FileDescriptor;->sync()V
:try_end_0
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V
return-void
:catchall_0
move-exception p1
goto :goto_0
:catch_0
move-exception p0
:try_start_1
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
if-eqz p0, :cond_0
:try_start_2
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V
:try_end_2
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_1
goto :goto_1
:cond_0
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V
:catch_1
:goto_1
throw p1
.end method
.method private a([Lcom/facebook/soloader/k$a;)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0}, Ljava/io/File;->list()[Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_4
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
array-length v3, v0
if-ge v2, v3, :cond_3
aget-object v3, v0, v2
const-string v4, "dso_state"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
const-string v4, "dso_lock"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
const-string v4, "dso_deps"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
const-string v4, "dso_manifest"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2
const/4 v4, 0x0
const/4 v5, 0x0
:goto_1
if-nez v4, :cond_1
array-length v6, p1
if-ge v5, v6, :cond_1
aget-object v6, p1, v5
iget-object v6, v6, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
invoke-virtual {v6, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
const/4 v4, 0x1
:cond_0
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_1
if-nez v4, :cond_2
new-instance v4, Ljava/io/File;
2019-05-03 18:53:54 +00:00
iget-object v5, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
invoke-direct {v4, v5, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
2019-02-17 02:24:41 +00:00
const-string v5, "deleting unaccounted-for file "
2019-05-03 18:53:54 +00:00
invoke-virtual {v5, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v3
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "fb-UnpackingSoSource"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v5, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
invoke-static {v4}, Lcom/facebook/soloader/SysUtil;->s(Ljava/io/File;)V
:cond_2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_3
return-void
:cond_4
new-instance p1, Ljava/io/IOException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "unable to list directory "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
return-void
.end method
.method private a(Lcom/facebook/soloader/f;I[B)Z
2019-05-03 18:53:54 +00:00
.locals 12
2019-02-17 02:24:41 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-03 18:53:54 +00:00
const-string v0, "fb-UnpackingSoSource"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v6, Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "dso_state"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v6, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v1, Ljava/io/RandomAccessFile;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "rw"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v1, v6, v2}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const/4 v8, 0x1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
2019-02-17 02:24:41 +00:00
:try_start_0
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->readByte()B
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-eq v5, v8, :cond_1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v5, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v7, "dso store "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v5, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v7, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v7, " regeneration interrupted: wiping clean"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_2
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_2
:catchall_0
move-exception p1
goto :goto_0
:catch_0
move-exception p1
2019-05-03 18:53:54 +00:00
move-object v3, p1
2019-02-17 02:24:41 +00:00
:try_start_1
2019-05-03 18:53:54 +00:00
throw v3
2019-02-17 02:24:41 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_0
2019-05-03 18:53:54 +00:00
if-eqz v3, :cond_0
2019-02-17 02:24:41 +00:00
:try_start_2
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:try_end_2
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_1
goto :goto_1
:cond_0
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:catch_1
:goto_1
throw p1
:catch_2
:goto_2
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
:cond_1
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v7, Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v9, "dso_deps"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v7, v1, v9}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance v1, Ljava/io/RandomAccessFile;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v1, v7, v2}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
:try_start_3
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->length()J
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-wide v9
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
long-to-int v2, v9
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-array v2, v2, [B
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v2}, Ljava/io/RandomAccessFile;->read([B)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v9
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
array-length v10, v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-eq v9, v10, :cond_2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "short read of so store deps file: marking unclean"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-17 02:24:41 +00:00
:cond_2
2019-05-03 18:53:54 +00:00
invoke-static {v2, p3}, Ljava/util/Arrays;->equals([B[B)Z
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-nez v2, :cond_3
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v2, "deps mismatch on deps store: regenerating"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-17 02:24:41 +00:00
:cond_3
2019-05-03 18:53:54 +00:00
if-eqz v5, :cond_5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
and-int/lit8 v2, p2, 0x2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-eqz v2, :cond_4
2019-02-17 02:24:41 +00:00
goto :goto_3
:cond_4
2019-05-03 18:53:54 +00:00
move-object v5, v3
2019-02-17 02:24:41 +00:00
goto :goto_4
:cond_5
:goto_3
2019-05-03 18:53:54 +00:00
const-string v2, "so store dirty: regenerating"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v0, v2}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v6, v4}, Lcom/facebook/soloader/k;->a(Ljava/io/File;B)V
2019-02-17 02:24:41 +00:00
2019-04-16 23:08:16 +00:00
invoke-virtual {p0}, Lcom/facebook/soloader/k;->jP()Lcom/facebook/soloader/k$e;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v0
2019-02-17 02:24:41 +00:00
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_7
.catchall {:try_start_3 .. :try_end_3} :catchall_5
:try_start_4
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/k$e;->jT()Lcom/facebook/soloader/k$b;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v2
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/k$e;->jU()Lcom/facebook/soloader/k$d;
2019-02-17 02:24:41 +00:00
move-result-object v9
:try_end_4
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_5
.catchall {:try_start_4 .. :try_end_4} :catchall_3
:try_start_5
2019-05-03 18:53:54 +00:00
invoke-direct {p0, v5, v2, v9}, Lcom/facebook/soloader/k;->a(BLcom/facebook/soloader/k$b;Lcom/facebook/soloader/k$d;)V
2019-02-17 02:24:41 +00:00
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_3
.catchall {:try_start_5 .. :try_end_5} :catchall_1
:try_start_6
invoke-virtual {v9}, Lcom/facebook/soloader/k$d;->close()V
:try_end_6
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6} :catch_5
.catchall {:try_start_6 .. :try_end_6} :catchall_3
:try_start_7
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/k$e;->close()V
2019-02-17 02:24:41 +00:00
:try_end_7
.catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_7} :catch_7
.catchall {:try_start_7 .. :try_end_7} :catchall_5
2019-05-03 18:53:54 +00:00
move-object v5, v2
2019-02-17 02:24:41 +00:00
:goto_4
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-nez v5, :cond_6
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
return v4
2019-02-17 02:24:41 +00:00
:cond_6
2019-05-03 18:53:54 +00:00
new-instance v0, Lcom/facebook/soloader/k$1;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v1, v0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v2, p0
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v3, v7
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v4, p3
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-object v7, p1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct/range {v1 .. v7}, Lcom/facebook/soloader/k$1;-><init>(Lcom/facebook/soloader/k;Ljava/io/File;[BLcom/facebook/soloader/k$b;Ljava/io/File;Lcom/facebook/soloader/f;)V
2019-02-17 02:24:41 +00:00
and-int/lit8 p1, p2, 0x1
if-eqz p1, :cond_7
new-instance p1, Ljava/lang/Thread;
new-instance p2, Ljava/lang/StringBuilder;
const-string p3, "SoSync:"
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-03 18:53:54 +00:00
iget-object p3, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
invoke-virtual {p3}, Ljava/io/File;->getName()Ljava/lang/String;
move-result-object p3
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
2019-05-03 18:53:54 +00:00
invoke-direct {p1, v0, p2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
invoke-virtual {p1}, Ljava/lang/Thread;->start()V
goto :goto_5
:cond_7
2019-05-03 18:53:54 +00:00
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
2019-02-17 02:24:41 +00:00
:goto_5
2019-05-03 18:53:54 +00:00
return v8
2019-02-17 02:24:41 +00:00
:catchall_1
move-exception p1
2019-05-03 18:53:54 +00:00
move-object p2, v3
2019-02-17 02:24:41 +00:00
goto :goto_6
:catch_3
move-exception p1
:try_start_8
throw p1
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:catchall_2
move-exception p2
2019-05-03 18:53:54 +00:00
move-object v11, p2
2019-02-17 02:24:41 +00:00
move-object p2, p1
2019-05-03 18:53:54 +00:00
move-object p1, v11
2019-02-17 02:24:41 +00:00
:goto_6
if-eqz p2, :cond_8
:try_start_9
invoke-virtual {v9}, Lcom/facebook/soloader/k$d;->close()V
:try_end_9
.catch Ljava/lang/Throwable; {:try_start_9 .. :try_end_9} :catch_4
.catchall {:try_start_9 .. :try_end_9} :catchall_3
goto :goto_7
:cond_8
:try_start_a
invoke-virtual {v9}, Lcom/facebook/soloader/k$d;->close()V
:catch_4
:goto_7
throw p1
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_a .. :try_end_a} :catch_5
.catchall {:try_start_a .. :try_end_a} :catchall_3
:catchall_3
move-exception p1
2019-05-03 18:53:54 +00:00
move-object p2, v3
2019-02-17 02:24:41 +00:00
goto :goto_8
:catch_5
move-exception p1
:try_start_b
throw p1
:try_end_b
.catchall {:try_start_b .. :try_end_b} :catchall_4
:catchall_4
move-exception p2
2019-05-03 18:53:54 +00:00
move-object v11, p2
2019-02-17 02:24:41 +00:00
move-object p2, p1
2019-05-03 18:53:54 +00:00
move-object p1, v11
2019-02-17 02:24:41 +00:00
:goto_8
if-eqz p2, :cond_9
:try_start_c
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/k$e;->close()V
2019-02-17 02:24:41 +00:00
:try_end_c
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_c} :catch_6
.catchall {:try_start_c .. :try_end_c} :catchall_5
goto :goto_9
:cond_9
:try_start_d
2019-05-03 18:53:54 +00:00
invoke-virtual {v0}, Lcom/facebook/soloader/k$e;->close()V
2019-02-17 02:24:41 +00:00
:catch_6
:goto_9
throw p1
:try_end_d
.catch Ljava/lang/Throwable; {:try_start_d .. :try_end_d} :catch_7
.catchall {:try_start_d .. :try_end_d} :catchall_5
:catchall_5
move-exception p1
goto :goto_a
:catch_7
move-exception p1
2019-05-03 18:53:54 +00:00
move-object v3, p1
2019-02-17 02:24:41 +00:00
:try_start_e
2019-05-03 18:53:54 +00:00
throw v3
2019-02-17 02:24:41 +00:00
:try_end_e
.catchall {:try_start_e .. :try_end_e} :catchall_5
:goto_a
2019-05-03 18:53:54 +00:00
if-eqz v3, :cond_a
2019-02-17 02:24:41 +00:00
:try_start_f
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:try_end_f
.catch Ljava/lang/Throwable; {:try_start_f .. :try_end_f} :catch_8
goto :goto_b
:cond_a
2019-05-03 18:53:54 +00:00
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->close()V
2019-02-17 02:24:41 +00:00
:catch_8
:goto_b
throw p1
.end method
2019-04-25 10:39:51 +00:00
.method private aE(Ljava/lang/String;)Ljava/lang/Object;
2019-02-17 02:24:41 +00:00
.locals 3
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k;->WC:Ljava/util/Map;
2019-02-17 02:24:41 +00:00
monitor-enter v0
:try_start_0
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k;->WC:Ljava/util/Map;
2019-02-17 02:24:41 +00:00
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
if-nez v1, :cond_0
new-instance v1, Ljava/lang/Object;
invoke-direct {v1}, Ljava/lang/Object;-><init>()V
2019-05-03 18:53:54 +00:00
iget-object v2, p0, Lcom/facebook/soloader/k;->WC:Ljava/util/Map;
2019-02-17 02:24:41 +00:00
invoke-interface {v2, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_0
monitor-exit v0
return-object v1
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
# virtual methods
.method public final a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-04-25 10:39:51 +00:00
invoke-direct {p0, p1}, Lcom/facebook/soloader/k;->aE(Ljava/lang/String;)Ljava/lang/Object;
2019-02-17 02:24:41 +00:00
move-result-object v0
monitor-enter v0
:try_start_0
2019-05-03 18:53:54 +00:00
iget-object v1, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
invoke-virtual {p0, p1, p2, v1, p3}, Lcom/facebook/soloader/k;->a(Ljava/lang/String;ILjava/io/File;Landroid/os/StrictMode$ThreadPolicy;)I
move-result p1
monitor-exit v0
return p1
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
2019-04-11 23:08:29 +00:00
.method protected final aB(I)V
2019-05-03 18:53:54 +00:00
.locals 7
2019-02-17 02:24:41 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-03 18:53:54 +00:00
const-string v0, "releasing dso store lock for "
const-string v1, " (syncer thread started)"
const-string v2, "not releasing dso store lock for "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v3, "fb-UnpackingSoSource"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v4, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/File;->mkdirs()Z
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result v5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
if-nez v5, :cond_1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Ljava/io/File;->isDirectory()Z
move-result v5
if-eqz v5, :cond_0
2019-02-17 02:24:41 +00:00
goto :goto_0
:cond_0
new-instance p1, Ljava/io/IOException;
2019-05-03 18:53:54 +00:00
invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
2019-02-17 02:24:41 +00:00
move-result-object v0
const-string v1, "cannot mkdir: "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
:goto_0
2019-05-03 18:53:54 +00:00
new-instance v4, Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v5, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v6, "dso_lock"
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v4, v5, v6}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v4}, Lcom/facebook/soloader/f;->q(Ljava/io/File;)Lcom/facebook/soloader/f;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-17 02:24:41 +00:00
:try_start_0
2019-05-03 18:53:54 +00:00
new-instance v5, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v6, "locked dso store "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v6, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, v5}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-04-16 23:08:16 +00:00
invoke-virtual {p0}, Lcom/facebook/soloader/k;->jQ()[B
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v5
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {p0, v4, p1, v5}, Lcom/facebook/soloader/k;->a(Lcom/facebook/soloader/f;I[B)Z
2019-02-17 02:24:41 +00:00
move-result p1
if-eqz p1, :cond_2
2019-05-03 18:53:54 +00:00
const/4 v4, 0x0
2019-02-17 02:24:41 +00:00
goto :goto_1
:cond_2
2019-05-03 18:53:54 +00:00
new-instance p1, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "dso store is up-to-date: "
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {p1, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v5, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object p1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_1
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_3
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
new-instance p1, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object p1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Lcom/facebook/soloader/f;->close()V
2019-02-17 02:24:41 +00:00
return-void
:cond_3
2019-05-03 18:53:54 +00:00
new-instance p1, Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-direct {p1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
move-result-object p1
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {v3, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
2019-02-17 02:24:41 +00:00
return-void
:catchall_0
move-exception p1
2019-05-03 18:53:54 +00:00
if-eqz v4, :cond_4
2019-02-17 02:24:41 +00:00
new-instance v1, Ljava/lang/StringBuilder;
2019-05-03 18:53:54 +00:00
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v0, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +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-17 02:24:41 +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-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v4}, Lcom/facebook/soloader/f;->close()V
2019-02-17 02:24:41 +00:00
goto :goto_2
:cond_4
new-instance v0, Ljava/lang/StringBuilder;
2019-05-03 18:53:54 +00:00
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
iget-object v2, p0, Lcom/facebook/soloader/k;->VW:Ljava/io/File;
2019-02-17 02:24:41 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
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-17 02:24:41 +00:00
:goto_2
throw p1
.end method
2019-04-25 10:39:51 +00:00
.method protected final declared-synchronized aF(Ljava/lang/String;)V
2019-02-17 02:24:41 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
2019-04-25 10:39:51 +00:00
invoke-direct {p0, p1}, Lcom/facebook/soloader/k;->aE(Ljava/lang/String;)Ljava/lang/Object;
2019-02-17 02:24:41 +00:00
move-result-object v0
monitor-enter v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
2019-05-03 18:53:54 +00:00
iput-object p1, p0, Lcom/facebook/soloader/k;->WA:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
const/4 p1, 0x2
2019-04-11 23:08:29 +00:00
invoke-virtual {p0, p1}, Lcom/facebook/soloader/k;->aB(I)V
2019-02-17 02:24:41 +00:00
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
:try_start_2
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:try_start_3
throw p1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:catchall_1
move-exception p1
monitor-exit p0
throw p1
.end method
2019-04-16 23:08:16 +00:00
.method protected abstract jP()Lcom/facebook/soloader/k$e;
2019-02-17 02:24:41 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
2019-04-16 23:08:16 +00:00
.method protected jQ()[B
2019-02-17 02:24:41 +00:00
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;
move-result-object v0
2019-04-16 23:08:16 +00:00
invoke-virtual {p0}, Lcom/facebook/soloader/k;->jP()Lcom/facebook/soloader/k$e;
2019-02-17 02:24:41 +00:00
move-result-object v1
const/4 v2, 0x0
:try_start_0
2019-04-16 23:08:16 +00:00
invoke-virtual {v1}, Lcom/facebook/soloader/k$e;->jT()Lcom/facebook/soloader/k$b;
2019-02-17 02:24:41 +00:00
move-result-object v3
2019-05-03 18:53:54 +00:00
iget-object v3, v3, Lcom/facebook/soloader/k$b;->WK:[Lcom/facebook/soloader/k$a;
2019-02-17 02:24:41 +00:00
const/4 v4, 0x1
invoke-virtual {v0, v4}, Landroid/os/Parcel;->writeByte(B)V
array-length v4, v3
invoke-virtual {v0, v4}, Landroid/os/Parcel;->writeInt(I)V
const/4 v4, 0x0
:goto_0
array-length v5, v3
if-ge v4, v5, :cond_0
aget-object v5, v3, v4
iget-object v5, v5, Lcom/facebook/soloader/k$a;->name:Ljava/lang/String;
invoke-virtual {v0, v5}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
aget-object v5, v3, v4
2019-05-03 18:53:54 +00:00
iget-object v5, v5, Lcom/facebook/soloader/k$a;->WJ:Ljava/lang/String;
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v5}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_0
invoke-virtual {v1}, Lcom/facebook/soloader/k$e;->close()V
invoke-virtual {v0}, Landroid/os/Parcel;->marshall()[B
move-result-object v1
invoke-virtual {v0}, Landroid/os/Parcel;->recycle()V
return-object v1
:catchall_0
move-exception v0
goto :goto_1
:catch_0
move-exception v0
move-object v2, v0
:try_start_1
throw v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
if-eqz v2, :cond_1
:try_start_2
invoke-virtual {v1}, Lcom/facebook/soloader/k$e;->close()V
:try_end_2
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_1
goto :goto_2
:cond_1
invoke-virtual {v1}, Lcom/facebook/soloader/k$e;->close()V
:catch_1
:goto_2
throw v0
return-void
.end method