apkfuckery/com.discord/smali/com/facebook/soloader/e$b.smali

330 lines
7.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Lcom/facebook/soloader/e$b;
.super Lcom/facebook/soloader/k$e;
.source "ExtractFromZipSoSource.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/soloader/e;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4
name = "b"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/soloader/e$b$a;
}
.end annotation
# instance fields
2019-08-01 23:08:43 +00:00
.field ZQ:[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-08-01 23:08:43 +00:00
.field final ZR:Ljava/util/zip/ZipFile;
2019-07-24 11:27:29 +00:00
2019-08-01 23:08:43 +00:00
.field private final ZS:Lcom/facebook/soloader/k;
2019-07-24 11:27:29 +00:00
2019-08-01 23:08:43 +00:00
.field final synthetic ZT:Lcom/facebook/soloader/e;
2019-07-24 11:27:29 +00:00
# direct methods
.method constructor <init>(Lcom/facebook/soloader/e;Lcom/facebook/soloader/k;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-08-01 23:08:43 +00:00
iput-object p1, p0, Lcom/facebook/soloader/e$b;->ZT:Lcom/facebook/soloader/e;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/facebook/soloader/k$e;-><init>()V
new-instance v0, Ljava/util/zip/ZipFile;
2019-08-01 23:08:43 +00:00
iget-object p1, p1, Lcom/facebook/soloader/e;->ZM:Ljava/io/File;
2019-07-24 11:27:29 +00:00
invoke-direct {v0, p1}, Ljava/util/zip/ZipFile;-><init>(Ljava/io/File;)V
2019-08-01 23:08:43 +00:00
iput-object v0, p0, Lcom/facebook/soloader/e$b;->ZR:Ljava/util/zip/ZipFile;
2019-07-24 11:27:29 +00:00
2019-08-01 23:08:43 +00:00
iput-object p2, p0, Lcom/facebook/soloader/e$b;->ZS:Lcom/facebook/soloader/k;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method protected a(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-08-01 23:08:43 +00:00
iget-object v0, p0, Lcom/facebook/soloader/e$b;->ZR:Ljava/util/zip/ZipFile;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Ljava/util/zip/ZipFile;->close()V
return-void
.end method
2019-08-01 02:26:13 +00:00
.method final kj()[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
.locals 9
2019-08-01 23:08:43 +00:00
iget-object v0, p0, Lcom/facebook/soloader/e$b;->ZQ:[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_7
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
2019-08-01 23:08:43 +00:00
iget-object v2, p0, Lcom/facebook/soloader/e$b;->ZT:Lcom/facebook/soloader/e;
2019-07-24 11:27:29 +00:00
2019-08-01 23:08:43 +00:00
iget-object v2, v2, Lcom/facebook/soloader/e;->ZN:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-static {v2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object v2
invoke-static {}, Lcom/facebook/soloader/SysUtil;->getSupportedAbis()[Ljava/lang/String;
move-result-object v3
2019-08-01 23:08:43 +00:00
iget-object v4, p0, Lcom/facebook/soloader/e$b;->ZR:Ljava/util/zip/ZipFile;
2019-07-24 11:27:29 +00:00
invoke-virtual {v4}, Ljava/util/zip/ZipFile;->entries()Ljava/util/Enumeration;
move-result-object v4
:cond_0
:goto_0
invoke-interface {v4}, Ljava/util/Enumeration;->hasMoreElements()Z
move-result v5
if-eqz v5, :cond_2
invoke-interface {v4}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/util/zip/ZipEntry;
invoke-virtual {v5}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;
move-result-object v6
invoke-virtual {v2, v6}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v6
invoke-virtual {v6}, Ljava/util/regex/Matcher;->matches()Z
move-result v7
if-eqz v7, :cond_0
const/4 v7, 0x1
invoke-virtual {v6, v7}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v7
const/4 v8, 0x2
invoke-virtual {v6, v8}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v6
invoke-static {v3, v7}, Lcom/facebook/soloader/SysUtil;->a([Ljava/lang/String;Ljava/lang/String;)I
move-result v8
if-ltz v8, :cond_0
invoke-interface {v0, v7}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
invoke-virtual {v1, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lcom/facebook/soloader/e$a;
if-eqz v7, :cond_1
2019-08-01 23:08:43 +00:00
iget v7, v7, Lcom/facebook/soloader/e$a;->ZP:I
2019-07-24 11:27:29 +00:00
if-ge v8, v7, :cond_0
:cond_1
new-instance v7, Lcom/facebook/soloader/e$a;
invoke-direct {v7, v6, v5, v8}, Lcom/facebook/soloader/e$a;-><init>(Ljava/lang/String;Ljava/util/zip/ZipEntry;I)V
invoke-virtual {v1, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_2
2019-08-01 23:08:43 +00:00
iget-object v2, p0, Lcom/facebook/soloader/e$b;->ZS:Lcom/facebook/soloader/k;
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v3
new-array v3, v3, [Ljava/lang/String;
invoke-interface {v0, v3}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
2019-08-01 23:08:43 +00:00
iput-object v0, v2, Lcom/facebook/soloader/k;->aaq:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-virtual {v1}, Ljava/util/HashMap;->size()I
move-result v1
new-array v1, v1, [Lcom/facebook/soloader/e$a;
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/soloader/e$a;
invoke-static {v0}, Ljava/util/Arrays;->sort([Ljava/lang/Object;)V
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
:goto_1
array-length v4, v0
if-ge v2, v4, :cond_4
aget-object v4, v0, v2
2019-08-01 23:08:43 +00:00
iget-object v5, v4, Lcom/facebook/soloader/e$a;->ZO:Ljava/util/zip/ZipEntry;
2019-07-24 11:27:29 +00:00
iget-object v4, v4, Lcom/facebook/soloader/e$a;->name:Ljava/lang/String;
invoke-virtual {p0, v5, v4}, Lcom/facebook/soloader/e$b;->a(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
move-result v4
if-eqz v4, :cond_3
add-int/lit8 v3, v3, 0x1
goto :goto_2
:cond_3
const/4 v4, 0x0
aput-object v4, v0, v2
:goto_2
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_4
new-array v2, v3, [Lcom/facebook/soloader/e$a;
const/4 v3, 0x0
:goto_3
array-length v4, v0
if-ge v1, v4, :cond_6
aget-object v4, v0, v1
if-eqz v4, :cond_5
add-int/lit8 v5, v3, 0x1
aput-object v4, v2, v3
move v3, v5
:cond_5
add-int/lit8 v1, v1, 0x1
goto :goto_3
:cond_6
2019-08-01 23:08:43 +00:00
iput-object v2, p0, Lcom/facebook/soloader/e$b;->ZQ:[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
:cond_7
2019-08-01 23:08:43 +00:00
iget-object v0, p0, Lcom/facebook/soloader/e$b;->ZQ:[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-08-01 02:26:13 +00:00
.method protected final kk()Lcom/facebook/soloader/k$b;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Lcom/facebook/soloader/k$b;
2019-08-01 02:26:13 +00:00
invoke-virtual {p0}, Lcom/facebook/soloader/e$b;->kj()[Lcom/facebook/soloader/e$a;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-direct {v0, v1}, Lcom/facebook/soloader/k$b;-><init>([Lcom/facebook/soloader/k$a;)V
return-object v0
.end method
2019-08-01 02:26:13 +00:00
.method protected final kl()Lcom/facebook/soloader/k$d;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Lcom/facebook/soloader/e$b$a;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/facebook/soloader/e$b$a;-><init>(Lcom/facebook/soloader/e$b;B)V
return-object v0
.end method