2019-12-06 03:29:40 +00:00
|
|
|
.class public Lcom/facebook/soloader/SoLoader$Api14Utils;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "SoLoader.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
|
|
value = 0xe
|
|
|
|
.end annotation
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/facebook/soloader/SoLoader;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x9
|
2019-07-24 11:27:29 +00:00
|
|
|
name = "Api14Utils"
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Le/j/m/d;
|
|
|
|
.end annotation
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static a()Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const-class v0, Lcom/facebook/soloader/SoLoader;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Ldalvik/system/BaseDexClassLoader;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
check-cast v0, Ldalvik/system/BaseDexClassLoader;
|
|
|
|
|
|
|
|
const-class v1, Ldalvik/system/BaseDexClassLoader;
|
|
|
|
|
|
|
|
const-string v2, "getLdLibraryPath"
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v2, "Cannot call getLdLibraryPath"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v2, "ClassLoader "
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-static {v2}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v0, " should be of type BaseDexClassLoader"
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|