351 lines
7 KiB
Smali
351 lines
7 KiB
Smali
.class public Lf/g/m/f$c;
|
|
.super Lf/g/m/n$f;
|
|
.source "ExtractFromZipSoSource.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lf/g/m/f;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = "c"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/g/m/f$c$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public d:[Lf/g/m/f$b;
|
|
|
|
.field public final e:Ljava/util/zip/ZipFile;
|
|
|
|
.field public final f:Lf/g/m/n;
|
|
|
|
.field public final synthetic g:Lf/g/m/f;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/g/m/f;Lf/g/m/n;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lf/g/m/f$c;->g:Lf/g/m/f;
|
|
|
|
invoke-direct {p0}, Lf/g/m/n$f;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/zip/ZipFile;
|
|
|
|
iget-object p1, p1, Lf/g/m/f;->f:Ljava/io/File;
|
|
|
|
invoke-direct {v0, p1}, Ljava/util/zip/ZipFile;-><init>(Ljava/io/File;)V
|
|
|
|
iput-object v0, p0, Lf/g/m/f$c;->e:Ljava/util/zip/ZipFile;
|
|
|
|
iput-object p2, p0, Lf/g/m/f$c;->f:Lf/g/m/n;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Lf/g/m/n$c;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lf/g/m/n$c;
|
|
|
|
invoke-virtual {p0}, Lf/g/m/f$c;->c()[Lf/g/m/f$b;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lf/g/m/n$c;-><init>([Lf/g/m/n$b;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final b()Lf/g/m/n$e;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lf/g/m/f$c$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lf/g/m/f$c$a;-><init>(Lf/g/m/f$c;Lf/g/m/f$a;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c()[Lf/g/m/f$b;
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lf/g/m/f$c;->d:[Lf/g/m/f$b;
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
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
|
|
|
|
iget-object v2, p0, Lf/g/m/f$c;->g:Lf/g/m/f;
|
|
|
|
iget-object v2, v2, Lf/g/m/f;->g:Ljava/lang/String;
|
|
|
|
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$LollipopSysdeps;->getSupportedAbis()[Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p0, Lf/g/m/f$c;->e:Ljava/util/zip/ZipFile;
|
|
|
|
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
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
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 v7
|
|
|
|
invoke-virtual {v2, v7}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_0
|
|
|
|
const/4 v8, 0x1
|
|
|
|
invoke-virtual {v7, v8}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const/4 v9, 0x2
|
|
|
|
invoke-virtual {v7, v9}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
:goto_1
|
|
array-length v9, v3
|
|
|
|
if-ge v6, v9, :cond_2
|
|
|
|
aget-object v9, v3, v6
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
aget-object v9, v3, v6
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v6, -0x1
|
|
|
|
:goto_2
|
|
if-ltz v6, :cond_0
|
|
|
|
invoke-virtual {v0, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-virtual {v1, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lf/g/m/f$b;
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
iget v8, v8, Lf/g/m/f$b;->g:I
|
|
|
|
if-ge v6, v8, :cond_0
|
|
|
|
:cond_3
|
|
new-instance v8, Lf/g/m/f$b;
|
|
|
|
invoke-direct {v8, v7, v5, v6}, Lf/g/m/f$b;-><init>(Ljava/lang/String;Ljava/util/zip/ZipEntry;I)V
|
|
|
|
invoke-virtual {v1, v7, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object v2, p0, Lf/g/m/f$c;->f:Lf/g/m/n;
|
|
|
|
invoke-virtual {v0}, Ljava/util/HashSet;->size()I
|
|
|
|
move-result v3
|
|
|
|
new-array v3, v3, [Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v3}, Ljava/util/AbstractCollection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Ljava/lang/String;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz v2, :cond_9
|
|
|
|
invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1}, Ljava/util/HashMap;->size()I
|
|
|
|
move-result v1
|
|
|
|
new-array v1, v1, [Lf/g/m/f$b;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Lf/g/m/f$b;
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->sort([Ljava/lang/Object;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_3
|
|
array-length v4, v1
|
|
|
|
if-ge v2, v4, :cond_6
|
|
|
|
aget-object v4, v1, v2
|
|
|
|
iget-object v5, v4, Lf/g/m/f$b;->f:Ljava/util/zip/ZipEntry;
|
|
|
|
iget-object v4, v4, Lf/g/m/n$b;->d:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, v5, v4}, Lf/g/m/f$c;->d(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
aput-object v0, v1, v2
|
|
|
|
:goto_4
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
new-array v0, v3, [Lf/g/m/f$b;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_5
|
|
array-length v3, v1
|
|
|
|
if-ge v6, v3, :cond_8
|
|
|
|
aget-object v3, v1, v6
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
add-int/lit8 v4, v2, 0x1
|
|
|
|
aput-object v3, v0, v2
|
|
|
|
move v2, v4
|
|
|
|
:cond_7
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_8
|
|
iput-object v0, p0, Lf/g/m/f$c;->d:[Lf/g/m/f$b;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_9
|
|
throw v0
|
|
|
|
:cond_a
|
|
:goto_6
|
|
iget-object v0, p0, Lf/g/m/f$c;->d:[Lf/g/m/f$b;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf/g/m/f$c;->e:Ljava/util/zip/ZipFile;
|
|
|
|
invoke-virtual {v0}, Ljava/util/zip/ZipFile;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract d(Ljava/util/zip/ZipEntry;Ljava/lang/String;)Z
|
|
.end method
|