apkfuckery/com.discord/smali/com/facebook/soloader/a$a.smali

219 lines
5.4 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lcom/facebook/soloader/a$a;
.super Lcom/facebook/soloader/e$b;
2019-02-04 20:29:01 +00:00
.source "ApkSoSource.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/soloader/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4
name = "a"
.end annotation
# instance fields
2019-04-03 00:06:05 +00:00
.field private Xb:Ljava/io/File;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
.field final synthetic Xc:Lcom/facebook/soloader/a;
2019-02-04 20:08:30 +00:00
.field private final mFlags:I
# direct methods
.method constructor <init>(Lcom/facebook/soloader/a;Lcom/facebook/soloader/e;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-04-03 00:06:05 +00:00
iput-object p1, p0, Lcom/facebook/soloader/a$a;->Xc:Lcom/facebook/soloader/a;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {p0, p1, p2}, Lcom/facebook/soloader/e$b;-><init>(Lcom/facebook/soloader/e;Lcom/facebook/soloader/k;)V
2019-02-04 20:08:30 +00:00
new-instance p2, Ljava/io/File;
iget-object v0, p1, Lcom/facebook/soloader/a;->mContext:Landroid/content/Context;
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
2019-04-03 00:06:05 +00:00
iput-object p2, p0, Lcom/facebook/soloader/a$a;->Xb:Ljava/io/File;
2019-02-04 20:08:30 +00:00
iget p1, p1, Lcom/facebook/soloader/a;->mFlags:I
iput p1, p0, Lcom/facebook/soloader/a$a;->mFlags:I
return-void
.end method
# virtual methods
.method protected final a(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
.locals 8
invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
move-result-object v0
2019-04-03 00:06:05 +00:00
iget-object v1, p0, Lcom/facebook/soloader/a$a;->Xc:Lcom/facebook/soloader/a;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v1, v1, Lcom/facebook/soloader/a;->XI:Ljava/lang/String;
2019-02-04 20:08:30 +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
2019-04-03 00:06:05 +00:00
iget-object p1, p0, Lcom/facebook/soloader/a$a;->Xc:Lcom/facebook/soloader/a;
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-04-03 00:06:05 +00:00
iput-object v0, p1, Lcom/facebook/soloader/a;->XI:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
const-string p1, "allowing consideration of corrupted lib %s"
new-array v0, v3, [Ljava/lang/Object;
aput-object p2, v0, v2
invoke-static {p1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_0
iget v1, p0, Lcom/facebook/soloader/a$a;->mFlags:I
and-int/2addr v1, v3
if-nez v1, :cond_1
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "allowing consideration of "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, ": self-extraction preferred"
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_1
new-instance v1, Ljava/io/File;
2019-04-03 00:06:05 +00:00
iget-object v4, p0, Lcom/facebook/soloader/a$a;->Xb:Ljava/io/File;
2019-02-04 20:08:30 +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
const-string p1, "allowing considering of %s: %s not in system lib dir"
new-array v1, v5, [Ljava/lang/Object;
aput-object v0, v1, v2
aput-object p2, v1, v3
invoke-static {p1, v1}, 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-string v0, "allowing consideration of %s: sysdir file length is %s, but the file is %s bytes long in the APK"
const/4 v4, 0x3
new-array v4, v4, [Ljava/lang/Object;
aput-object v1, v4, v2
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
aput-object v1, v4, v3
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
aput-object p1, v4, v5
invoke-static {v0, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_3
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "not allowing consideration of "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, ": deferring to libdir"
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const/4 v3, 0x0
:goto_0
const-string p2, "ApkSoSource"
invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
return v3
.end method