2020-07-23 01:06:17 +00:00
|
|
|
.class public Lf/g/m/b;
|
|
|
|
.super Lf/g/m/l;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "ApplicationSoSource.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public a:Landroid/content/Context;
|
|
|
|
|
|
|
|
.field public b:I
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;I)V
|
|
|
|
.locals 2
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {p0}, Lf/g/m/l;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const-string v0, "SoLoader"
|
|
|
|
|
|
|
|
const-string v1, "context.getApplicationContext returned null, holding reference to original context."
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p1, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
iput p2, p0, Lf/g/m/b;->b:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance p1, Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v1, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->nativeLibraryDir:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {p1, v0, p2}, Lf/g/m/c;-><init>(Ljava/io/File;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p1, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lf/g/m/c;->a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public b(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0, p1}, Lf/g/m/l;->b(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public c()Z
|
2020-09-16 21:45:36 +00:00
|
|
|
.locals 6
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
:try_start_0
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, v0, Lf/g/m/c;->a:Ljava/io/File;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v1, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
iget-object v2, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-09 19:21:20 +00:00
|
|
|
move-result-object v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Ljava/io/File;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->nativeLibraryDir:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {v2, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
invoke-virtual {v0, v2}, Ljava/io/File;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
move-result v4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
if-nez v4, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v3, "SoLoader"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
const-string v5, "Native library directory updated from "
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const-string v0, " to "
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v3, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget v0, p0, Lf/g/m/b;->b:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput v0, p0, Lf/g/m/b;->b:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
new-instance v4, Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {v4, v2, v0}, Lf/g/m/c;-><init>(Ljava/io/File;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v4, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v1, p0, Lf/g/m/b;->a:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2020-09-16 21:45:36 +00:00
|
|
|
:cond_0
|
|
|
|
return v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p0, Lf/g/m/b;->c:Lf/g/m/c;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-virtual {v0}, Lf/g/m/c;->toString()Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|