411 lines
8.9 KiB
Smali
411 lines
8.9 KiB
Smali
.class public final Lf/j/m/e$b;
|
|
.super Lf/j/m/m$f;
|
|
.source "ExoSoSource.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lf/j/m/e;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x11
|
|
name = "b"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/j/m/e$b$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:[Lf/j/m/e$c;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/j/m/e;Lf/j/m/m;)V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct/range {p0 .. p0}, Lf/j/m/m$f;-><init>()V
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
iget-object v0, v0, Lf/j/m/m;->c:Landroid/content/Context;
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
const-string v2, "/data/local/tmp/exopackage/"
|
|
|
|
invoke-static {v2}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "/native-libs/"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v2, Ljava/util/LinkedHashSet;
|
|
|
|
invoke-direct {v2}, Ljava/util/LinkedHashSet;-><init>()V
|
|
|
|
invoke-static {}, Ls/a/b/b/a;->d()[Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
array-length v4, v3
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
if-ge v6, v4, :cond_8
|
|
|
|
aget-object v7, v3, v6
|
|
|
|
new-instance v8, Ljava/io/File;
|
|
|
|
invoke-direct {v8, v1, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v8}, Ljava/io/File;->isDirectory()Z
|
|
|
|
move-result v9
|
|
|
|
if-nez v9, :cond_0
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_0
|
|
invoke-interface {v2, v7}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Ljava/io/File;
|
|
|
|
const-string v9, "metadata.txt"
|
|
|
|
invoke-direct {v7, v8, v9}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v7}, Ljava/io/File;->isFile()Z
|
|
|
|
move-result v9
|
|
|
|
if-nez v9, :cond_1
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_1
|
|
new-instance v9, Ljava/io/FileReader;
|
|
|
|
invoke-direct {v9, v7}, Ljava/io/FileReader;-><init>(Ljava/io/File;)V
|
|
|
|
:try_start_0
|
|
new-instance v7, Ljava/io/BufferedReader;
|
|
|
|
invoke-direct {v7, v9}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
|
|
|
:goto_1
|
|
:try_start_1
|
|
invoke-virtual {v7}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
if-eqz v10, :cond_7
|
|
|
|
invoke-virtual {v10}, Ljava/lang/String;->length()I
|
|
|
|
move-result v11
|
|
|
|
if-nez v11, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v11, 0x20
|
|
|
|
invoke-virtual {v10, v11}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, -0x1
|
|
|
|
if-eq v11, v12, :cond_6
|
|
|
|
new-instance v12, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v10, v5, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v13, ".so"
|
|
|
|
invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v13
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_2
|
|
if-ge v14, v13, :cond_4
|
|
|
|
invoke-virtual {v0, v14}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v15
|
|
|
|
check-cast v15, Lf/j/m/e$c;
|
|
|
|
iget-object v15, v15, Lf/j/m/m$b;->d:Ljava/lang/String;
|
|
|
|
invoke-virtual {v15, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v15
|
|
|
|
if-eqz v15, :cond_3
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v13, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v13, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
invoke-virtual {v10, v11}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
new-instance v11, Lf/j/m/e$c;
|
|
|
|
new-instance v13, Ljava/io/File;
|
|
|
|
invoke-direct {v13, v8, v10}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v11, v12, v10, v13}, Lf/j/m/e$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)V
|
|
|
|
invoke-virtual {v0, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "illegal line in exopackage metadata: ["
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "]"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:cond_7
|
|
:try_start_2
|
|
invoke-virtual {v7}, Ljava/io/BufferedReader;->close()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_3
|
|
|
|
invoke-virtual {v9}, Ljava/io/FileReader;->close()V
|
|
|
|
:goto_4
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
move-object v1, v0
|
|
|
|
:try_start_3
|
|
throw v1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
move-object v2, v0
|
|
|
|
:try_start_4
|
|
invoke-virtual {v7}, Ljava/io/BufferedReader;->close()V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
goto :goto_5
|
|
|
|
:catchall_2
|
|
move-exception v0
|
|
|
|
move-object v3, v0
|
|
|
|
:try_start_5
|
|
invoke-virtual {v1, v3}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_5
|
|
throw v2
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
|
|
|
:catchall_3
|
|
move-exception v0
|
|
|
|
move-object v1, v0
|
|
|
|
:try_start_6
|
|
throw v1
|
|
:try_end_6
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_4
|
|
|
|
:catchall_4
|
|
move-exception v0
|
|
|
|
move-object v2, v0
|
|
|
|
:try_start_7
|
|
invoke-virtual {v9}, Ljava/io/FileReader;->close()V
|
|
:try_end_7
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_5
|
|
|
|
goto :goto_6
|
|
|
|
:catchall_5
|
|
move-exception v0
|
|
|
|
move-object v3, v0
|
|
|
|
invoke-virtual {v1, v3}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:goto_6
|
|
throw v2
|
|
|
|
:cond_8
|
|
invoke-interface {v2}, Ljava/util/Set;->size()I
|
|
|
|
move-result v1
|
|
|
|
new-array v1, v1, [Ljava/lang/String;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/String;
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
invoke-virtual {v2, v1}, Lf/j/m/m;->a([Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v1
|
|
|
|
new-array v1, v1, [Lf/j/m/e$c;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lf/j/m/e$c;
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
iput-object v0, v1, Lf/j/m/e$b;->d:[Lf/j/m/e$c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lf/j/m/m$c;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lf/j/m/m$c;
|
|
|
|
iget-object v1, p0, Lf/j/m/e$b;->d:[Lf/j/m/e$c;
|
|
|
|
invoke-direct {v0, v1}, Lf/j/m/m$c;-><init>([Lf/j/m/m$b;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b()Lf/j/m/m$e;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lf/j/m/e$b$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lf/j/m/e$b$a;-><init>(Lf/j/m/e$b;Lf/j/m/e$a;)V
|
|
|
|
return-object v0
|
|
.end method
|