2020-07-23 01:06:17 +00:00
|
|
|
.class public Lf/g/m/a$a;
|
|
|
|
.super Lf/g/m/f$c;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "ApkSoSource.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-07-23 01:06:17 +00:00
|
|
|
value = Lf/g/m/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x1
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public h:Ljava/io/File;
|
|
|
|
|
|
|
|
.field public final i:I
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public final synthetic j:Lf/g/m/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public constructor <init>(Lf/g/m/a;Lf/g/m/f;)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
|
|
|
iput-object p1, p0, Lf/g/m/a$a;->j:Lf/g/m/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
invoke-direct {p0, p1, p2}, Lf/g/m/f$c;-><init>(Lf/g/m/f;Lf/g/m/n;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance p2, Ljava/io/File;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v0, p1, Lf/g/m/n;->c:Landroid/content/Context;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->nativeLibraryDir:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object p2, p0, Lf/g/m/a$a;->h:Ljava/io/File;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget p1, p1, Lf/g/m/a;->h:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput p1, p0, Lf/g/m/a$a;->i:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public d(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 8
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v1, p0, Lf/g/m/a$a;->j:Lf/g/m/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v1, v1, Lf/g/m/n;->d:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object p1, p0, Lf/g/m/a$a;->j:Lf/g/m/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p1, Lf/g/m/n;->d:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-array p1, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object p2, p1, v2
|
|
|
|
|
|
|
|
const-string p2, "allowing consideration of corrupted lib %s"
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
iget v1, p0, Lf/g/m/a$a;->i:I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
and-int/2addr v1, v3
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
const-string p1, "allowing consideration of "
|
|
|
|
|
|
|
|
const-string p2, ": self-extraction preferred"
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {p1, v0, p2}, Lf/e/b/a/a;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object v4, p0, Lf/g/m/a$a;->h:Ljava/io/File;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {v1, v4, p2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->isFile()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x2
|
|
|
|
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
|
|
|
|
new-array p1, v5, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v0, p1, v2
|
|
|
|
|
|
|
|
aput-object p2, p1, v3
|
|
|
|
|
|
|
|
const-string p2, "allowing considering of %s: %s not in system lib dir"
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->length()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getSize()J
|
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
cmp-long v4, v6, p1
|
|
|
|
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
aput-object p1, v0, v5
|
|
|
|
|
|
|
|
const-string p1, "allowing consideration of %s: sysdir file length is %s, but the file is %s bytes long in the APK"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "not allowing consideration of "
|
|
|
|
|
|
|
|
const-string p2, ": deferring to libdir"
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-static {p1, v0, p2}, Lf/e/b/a/a;->r(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_1
|
2020-05-17 12:40:10 +00:00
|
|
|
const-string p2, "ApkSoSource"
|
|
|
|
|
|
|
|
invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
return v2
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|