2019-02-04 20:08:30 +00:00
|
|
|
.class public Lcom/facebook/soloader/SoLoader;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "SoLoader.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/facebook/soloader/SoLoader$Api14Utils;,
|
|
|
|
Lcom/facebook/soloader/SoLoader$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/ThreadSafe;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-02-06 20:30:57 +00:00
|
|
|
.field static final VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field static VR:Lcom/facebook/soloader/h;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static final VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "sSoSourcesLock"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static VV:[Lcom/facebook/soloader/k;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "sSoSourcesLock"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "sSoSourcesLock"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static final VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/HashSet<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "SoLoader.class"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static final VY:Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "SoLoader.class"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static final VZ:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static Wa:Lcom/facebook/soloader/j;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.field private static Wb:I
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation build Ljavax/annotation/concurrent/GuardedBy;
|
|
|
|
value = "sSoSourcesLock"
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v0, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput v1, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/util/HashSet;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v2, Lcom/facebook/soloader/SoLoader;->VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v2, Lcom/facebook/soloader/SoLoader;->VY:Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v2, Lcom/facebook/soloader/SoLoader;->VZ:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v0, Lcom/facebook/soloader/SoLoader;->Wa:Lcom/facebook/soloader/j;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
const/16 v2, 0x12
|
|
|
|
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
:cond_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-boolean v1, Lcom/facebook/soloader/SoLoader;->VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private static declared-synchronized a(Lcom/facebook/soloader/h;)V
|
|
|
|
.locals 10
|
|
|
|
.param p0 # Lcom/facebook/soloader/h;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class p0, Lcom/facebook/soloader/SoLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:try_start_0
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/SoLoader;->jU()Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v5, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/SoLoader$Api14Utils;->jV()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
move-object v3, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_1
|
|
|
|
if-nez v3, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v6, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
|
|
|
const-string v2, ":"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance v6, Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
array-length v7, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v6, v7}, Ljava/util/ArrayList;-><init>(I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
array-length v7, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_2
|
|
|
|
if-ge v0, v7, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
aget-object v8, v2, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v9, "!"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v9, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_4
|
|
|
|
const-string v0, ":"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0, v6}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v6, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_3
|
|
|
|
new-instance v7, Lcom/facebook/soloader/SoLoader$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v0, v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v2, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-object v3, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/facebook/soloader/SoLoader$1;-><init>(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/Runtime;Ljava/lang/reflect/Method;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v7, Lcom/facebook/soloader/SoLoader;->VR:Lcom/facebook/soloader/h;
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z
|
|
|
|
.locals 3
|
|
|
|
.param p1 # Ljava/lang/String;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Ljava/lang/String;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p4 # Landroid/os/StrictMode$ThreadPolicy;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez p2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p2, Lcom/facebook/soloader/SoLoader;->VZ:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p2, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
|
|
|
const-class p2, Lcom/facebook/soloader/SoLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VY:Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {v1, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VY:Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
|
|
|
new-instance v1, Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v1}, Ljava/lang/Object;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->VY:Ljava/util/Map;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {v2, p0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_0
|
|
|
|
monitor-exit p2
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_1
|
|
|
|
const-class p2, Lcom/facebook/soloader/SoLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter p2
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_2
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v2, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v2, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit p2
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_3
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
|
|
|
:try_start_4
|
|
|
|
monitor-exit p2
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_5
|
|
|
|
const-string p2, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "About to load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, p3, p4}, Lcom/facebook/soloader/SoLoader;->c(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V
|
|
|
|
:try_end_5
|
|
|
|
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1
|
|
|
|
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_5 .. :try_end_5} :catch_0
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_6
|
|
|
|
const-class p2, Lcom/facebook/soloader/SoLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter p2
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_7
|
|
|
|
const-string p3, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p4, "Loaded: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p4, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p3, p4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p3, Lcom/facebook/soloader/SoLoader;->VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p3, p0}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit p2
|
|
|
|
:try_end_7
|
|
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_8
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez p0, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p0, Lcom/facebook/soloader/SoLoader;->VZ:Ljava/util/Set;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-interface {p0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_4
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_8
|
|
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 p0, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_9
|
|
|
|
monitor-exit p2
|
|
|
|
:try_end_9
|
|
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_a
|
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/UnsatisfiedLinkError;->getMessage()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz p1, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "unexpected e_machine:"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz p1, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Lcom/facebook/soloader/SoLoader$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Lcom/facebook/soloader/SoLoader$a;-><init>(Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_5
|
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catch_1
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_a
|
|
|
|
.catchall {:try_start_a .. :try_end_a} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_b
|
|
|
|
monitor-exit p2
|
|
|
|
:try_end_b
|
|
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_c
|
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_2
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-exit v1
|
|
|
|
:try_end_c
|
|
|
|
.catchall {:try_start_c .. :try_end_c} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
|
|
|
|
|
|
|
:catchall_3
|
2019-02-04 20:08:30 +00:00
|
|
|
move-exception p0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_d
|
|
|
|
monitor-exit p2
|
|
|
|
:try_end_d
|
|
|
|
.catchall {:try_start_d .. :try_end_d} :catchall_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method public static aA(Ljava/lang/String;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p0}, Lcom/facebook/soloader/SoLoader;->aB(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static aB(Ljava/lang/String;)Z
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/lang/UnsatisfiedLinkError;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v0, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "http://www.android.com/"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "java.vendor.url"
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_1
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
:try_start_2
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_3
|
|
|
|
new-instance p0, Ljava/lang/RuntimeException;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "SoLoader.init() not yet called"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_4
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
const-class v0, Lcom/facebook/soloader/SoLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
monitor-enter v0
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_5
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VX:Ljava/util/HashSet;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
xor-int/lit8 v1, v1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v1, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->Wa:Lcom/facebook/soloader/j;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v2, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
|
|
|
monitor-exit v0
|
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_6
|
|
|
|
monitor-exit v0
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_7
|
|
|
|
throw p0
|
|
|
|
:try_end_7
|
|
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
|
|
|
:goto_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/System;->mapLibraryName(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v1, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0, p0, v2, v1, v2}, Lcom/facebook/soloader/SoLoader;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_2
|
|
|
|
move-exception p0
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method static b(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V
|
|
|
|
.locals 1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, v0, v0, p1, p2}, Lcom/facebook/soloader/SoLoader;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method private static c(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-06 20:30:57 +00:00
|
|
|
.locals 10
|
2019-02-04 20:32:01 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v0, :cond_15
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskReads()Landroid/os/StrictMode$ThreadPolicy;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-boolean v3, Lcom/facebook/soloader/SoLoader;->VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v3, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v4, "SoLoader.loadLibrary["
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v4, "]"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {v3}, Lcom/facebook/soloader/Api18TraceUtils;->az(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 v3, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
|
|
|
const/4 v4, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_1
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v5, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v5}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget v5, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:32:01 +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_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v6, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_1
|
2019-02-06 20:30:57 +00:00
|
|
|
if-nez v3, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_2
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v7, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
array-length v7, v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ge v6, v7, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v7, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
aget-object v7, v7, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v7, p0, p1, p2}, Lcom/facebook/soloader/i;->a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ne v3, v4, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v7, Lcom/facebook/soloader/SoLoader;->VV:[Lcom/facebook/soloader/k;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v7, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v6, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v7, "Trying backup SoSource for "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VV:[Lcom/facebook/soloader/k;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
array-length v7, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v8, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:goto_2
|
|
|
|
if-ge v8, v7, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aget-object v9, v6, v8
|
|
|
|
|
|
|
|
invoke-virtual {v9, p0}, Lcom/facebook/soloader/k;->aE(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v9, p0, p1, p2}, Lcom/facebook/soloader/k;->a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I
|
|
|
|
|
|
|
|
move-result v9
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ne v9, v1, :cond_3
|
|
|
|
|
|
|
|
move v3, v9
|
|
|
|
|
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
2019-02-06 20:30:57 +00:00
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
2019-02-04 20:32:01 +00:00
|
|
|
add-int/lit8 v6, v6, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_3
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_5
|
|
|
|
:goto_3
|
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
and-int/lit8 v6, p1, 0x2
|
|
|
|
|
|
|
|
const/4 v7, 0x2
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_8
|
|
|
|
|
|
|
|
if-nez v3, :cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V
|
|
|
|
:try_end_3
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_4
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v6, :cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v6}, Lcom/facebook/soloader/b;->jO()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v6, :cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget v6, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
add-int/2addr v6, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput v6, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_6
|
|
|
|
sget v6, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eq v6, v5, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_7
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:goto_4
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_5
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v6, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_5
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_0
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_8
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:goto_5
|
2019-02-04 20:32:01 +00:00
|
|
|
if-nez v5, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-boolean p1, Lcom/facebook/soloader/SoLoader;->VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz p1, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_9
|
|
|
|
if-eqz v2, :cond_a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_a
|
|
|
|
if-eqz v3, :cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eq v3, v4, :cond_b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_b
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "couldn\'t find DSO to load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/UnsatisfiedLinkError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_2
|
|
|
|
move-exception p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-boolean v0, Lcom/facebook/soloader/SoLoader;->VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v0, :cond_c
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_c
|
|
|
|
if-eqz v2, :cond_d
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_d
|
|
|
|
if-eqz v3, :cond_f
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ne v3, v4, :cond_e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_e
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_f
|
|
|
|
:goto_6
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "couldn\'t find DSO to load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/UnsatisfiedLinkError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-boolean v0, Lcom/facebook/soloader/SoLoader;->VQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v0, :cond_10
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_10
|
|
|
|
if-eqz v2, :cond_11
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_11
|
|
|
|
if-eqz v3, :cond_13
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ne v3, v4, :cond_12
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_12
|
|
|
|
:goto_7
|
2019-02-06 20:30:57 +00:00
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
:goto_8
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "couldn\'t find DSO to load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-nez p2, :cond_14
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_14
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p0, " caused by: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/UnsatisfiedLinkError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_15
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_6
|
|
|
|
const-string p1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, "Could not load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v0, " because no SO source exists"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance p1, Ljava/lang/UnsatisfiedLinkError;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p2, "couldn\'t find DSO to load: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p1
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_3
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method private static jT()I
|
2019-02-04 20:32:01 +00:00
|
|
|
.locals 2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget v0, Lcom/facebook/soloader/SoLoader;->Wb:I
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
and-int/lit8 v0, v0, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v0, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_0
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw v0
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
.method private static jU()Ljava/lang/reflect/Method;
|
|
|
|
.locals 7
|
2019-02-04 20:32:01 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/16 v2, 0x17
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-lt v0, v2, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/16 v2, 0x1b
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-le v0, v2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-08 08:21:44 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_0
|
|
|
|
:try_start_0
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class v0, Ljava/lang/Runtime;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "nativeLoad"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v3, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-array v3, v3, [Ljava/lang/Class;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v4, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-class v5, Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aput-object v5, v3, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-class v4, Ljava/lang/ClassLoader;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aput-object v4, v3, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v4, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-class v6, Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aput-object v6, v3, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v0, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
|
|
:try_end_0
|
2019-02-08 08:21:44 +00:00
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
|
2019-02-04 20:32:01 +00:00
|
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-08 08:21:44 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v3, "Cannot get nativeLoad method"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v2, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-object v1
|
2019-02-06 20:30:57 +00:00
|
|
|
|
|
|
|
:cond_1
|
2019-02-08 08:21:44 +00:00
|
|
|
:goto_1
|
2019-02-06 20:30:57 +00:00
|
|
|
return-object v1
|
2019-02-04 20:32:01 +00:00
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
.method public static x(Landroid/content/Context;)V
|
2019-02-06 20:30:57 +00:00
|
|
|
.locals 14
|
2019-02-04 20:32:01 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskWrites()Landroid/os/StrictMode$ThreadPolicy;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const/4 v1, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_0
|
|
|
|
invoke-static {v1}, Lcom/facebook/soloader/SoLoader;->a(Lcom/facebook/soloader/h;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_1
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-nez v2, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v2, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v3, "init start"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput v2, Lcom/facebook/soloader/SoLoader;->Wb:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v4, "LD_LIBRARY_PATH"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {v4}, Ljava/lang/System;->getenv(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-nez v4, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v4, "/vendor/lib:/system/lib"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_0
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v5, ":"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_0
|
2019-02-06 20:30:57 +00:00
|
|
|
array-length v6, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-ge v5, v6, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v6, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v7, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v8, "adding system library source: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aget-object v8, v4, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v6, Ljava/io/File;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aget-object v7, v4, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v6, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v7, Lcom/facebook/soloader/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v8, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v7, v6, v8}, Lcom/facebook/soloader/c;-><init>(Ljava/io/File;I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v3, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
add-int/lit8 v5, v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_1
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v4, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz p0, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget v6, v5, Landroid/content/pm/ApplicationInfo;->flags:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
and-int/2addr v6, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v6, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget v5, v5, Landroid/content/pm/ApplicationInfo;->flags:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
and-int/lit16 v5, v5, 0x80
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-nez v5, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_2
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_1
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v5, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_3
|
2019-02-06 20:30:57 +00:00
|
|
|
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/16 v6, 0x11
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-gt v5, v6, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
goto :goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:cond_4
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_2
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v6, Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v6, p0, v5}, Lcom/facebook/soloader/b;-><init>(Landroid/content/Context;I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v6, Lcom/facebook/soloader/SoLoader;->VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v5, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v7, "adding application source: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v7, Lcom/facebook/soloader/SoLoader;->VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v7}, Lcom/facebook/soloader/b;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {v5, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v5, Lcom/facebook/soloader/SoLoader;->VW:Lcom/facebook/soloader/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v3, v2, v5}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const/4 v5, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:goto_3
|
2019-02-06 20:30:57 +00:00
|
|
|
sget v6, Lcom/facebook/soloader/SoLoader;->Wb:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
and-int/lit8 v6, v6, 0x8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-eqz v6, :cond_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput-object v1, Lcom/facebook/soloader/SoLoader;->VV:[Lcom/facebook/soloader/k;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto/16 :goto_5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_5
|
|
|
|
new-instance v1, Ljava/io/File;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move-result-object v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
iget-object v6, v6, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v1, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v6, Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v7, Lcom/facebook/soloader/a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v8, "lib-main"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-direct {v7, p0, v1, v8, v5}, Lcom/facebook/soloader/a;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;I)V
|
2019-02-04 20:29:01 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v6, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
const-string v1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
new-instance v8, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v9, "adding backup source from : "
|
|
|
|
|
|
|
|
invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Lcom/facebook/soloader/a;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-static {v1, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v7, 0x15
|
|
|
|
|
|
|
|
if-lt v1, v7, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->splitSourceDirs:[Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
const-string v1, "SoLoader"
|
|
|
|
|
|
|
|
const-string v7, "adding backup sources from split apks"
|
|
|
|
|
|
|
|
invoke-static {v1, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->splitSourceDirs:[Ljava/lang/String;
|
|
|
|
|
|
|
|
array-length v7, v1
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-ge v8, v7, :cond_6
|
|
|
|
|
|
|
|
aget-object v10, v1, v8
|
|
|
|
|
|
|
|
new-instance v11, Lcom/facebook/soloader/a;
|
|
|
|
|
|
|
|
new-instance v12, Ljava/io/File;
|
|
|
|
|
|
|
|
invoke-direct {v12, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
new-instance v10, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v13, "lib-"
|
|
|
|
|
|
|
|
invoke-direct {v10, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
add-int/lit8 v13, v9, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v10, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
|
|
|
invoke-direct {v11, p0, v12, v9, v5}, Lcom/facebook/soloader/a;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;I)V
|
|
|
|
|
|
|
|
const-string v9, "SoLoader"
|
|
|
|
|
|
|
|
new-instance v10, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v12, "adding backup source: "
|
|
|
|
|
|
|
|
invoke-direct {v10, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v11}, Lcom/facebook/soloader/a;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v10
|
|
|
|
|
|
|
|
invoke-static {v9, v10}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {v6, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
|
|
|
|
move v9, v13
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
new-array p0, p0, [Lcom/facebook/soloader/k;
|
|
|
|
|
|
|
|
invoke-virtual {v6, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, [Lcom/facebook/soloader/k;
|
|
|
|
|
|
|
|
sput-object p0, Lcom/facebook/soloader/SoLoader;->VV:[Lcom/facebook/soloader/k;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v6}, Ljava/util/ArrayList;->addAll(ILjava/util/Collection;)Z
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-array p0, p0, [Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-virtual {v3, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
check-cast p0, [Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
invoke-static {}, Lcom/facebook/soloader/SoLoader;->jT()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
array-length v2, p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:goto_6
|
|
|
|
add-int/lit8 v3, v2, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
if-lez v2, :cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v6, "Preparing SO source: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aget-object v6, p0, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v2, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
aget-object v2, p0, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v2, v1}, Lcom/facebook/soloader/i;->aC(I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
move v2, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
goto :goto_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_8
|
|
|
|
sput-object p0, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget p0, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
add-int/2addr p0, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sput p0, Lcom/facebook/soloader/SoLoader;->VU:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string p0, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "init finish: "
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v2, Lcom/facebook/soloader/SoLoader;->VT:[Lcom/facebook/soloader/i;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
array-length v2, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, " SO sources prepared"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
:cond_9
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_2
|
|
|
|
const-string p0, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v1, "init exiting"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object p0, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_0
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:try_start_3
|
|
|
|
const-string v1, "SoLoader"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
const-string v2, "init exiting"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-06 20:30:57 +00:00
|
|
|
sget-object v1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
:catchall_1
|
|
|
|
move-exception p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
throw p0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:32:01 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|