apkfuckery/com.discord/smali/androidx/multidex/MultiDex$V19.smali
2019-07-24 13:27:29 +02:00

258 lines
6.4 KiB
Smali

.class final Landroidx/multidex/MultiDex$V19;
.super Ljava/lang/Object;
.source "MultiDex.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/multidex/MultiDex;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "V19"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static install(Ljava/lang/ClassLoader;Ljava/util/List;Ljava/io/File;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/ClassLoader;",
"Ljava/util/List<",
"+",
"Ljava/io/File;",
">;",
"Ljava/io/File;",
")V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;,
Ljava/lang/IllegalAccessException;,
Ljava/lang/NoSuchFieldException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/NoSuchMethodException;,
Ljava/io/IOException;
}
.end annotation
const-string v0, "pathList"
invoke-static {p0, v0}, Landroidx/multidex/MultiDex;->access$000(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-static {p0, v1, p2, v0}, Landroidx/multidex/MultiDex$V19;->makeDexElements(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/io/File;Ljava/util/ArrayList;)[Ljava/lang/Object;
move-result-object p1
const-string p2, "dexElements"
invoke-static {p0, p2, p1}, Landroidx/multidex/MultiDex;->access$100(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result p1
if-lez p1, :cond_2
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Ljava/io/IOException;
const-string v1, "MultiDex"
const-string v2, "Exception in makeDexElement"
invoke-static {v1, v2, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_0
:cond_0
const-string p1, "dexElementsSuppressedExceptions"
invoke-static {p0, p1}, Landroidx/multidex/MultiDex;->access$000(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object p1
invoke-virtual {p1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/io/IOException;
check-cast p2, [Ljava/io/IOException;
const/4 v1, 0x0
if-nez p2, :cond_1
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result p2
new-array p2, p2, [Ljava/io/IOException;
invoke-virtual {v0, p2}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p2
check-cast p2, [Ljava/io/IOException;
goto :goto_1
:cond_1
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
array-length v3, p2
add-int/2addr v2, v3
new-array v2, v2, [Ljava/io/IOException;
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v3
array-length v4, p2
invoke-static {p2, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object p2, v2
:goto_1
invoke-virtual {p1, p0, p2}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
new-instance p0, Ljava/io/IOException;
const-string p1, "I/O exception during makeDexElement"
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p0, p1}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw p0
:cond_2
return-void
.end method
.method private static makeDexElements(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/io/File;Ljava/util/ArrayList;)[Ljava/lang/Object;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Ljava/io/File;",
">;",
"Ljava/io/File;",
"Ljava/util/ArrayList<",
"Ljava/io/IOException;",
">;)[",
"Ljava/lang/Object;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalAccessException;,
Ljava/lang/reflect/InvocationTargetException;,
Ljava/lang/NoSuchMethodException;
}
.end annotation
const/4 v0, 0x3
new-array v1, v0, [Ljava/lang/Class;
const-class v2, Ljava/util/ArrayList;
const/4 v3, 0x0
aput-object v2, v1, v3
const-class v2, Ljava/io/File;
const/4 v4, 0x1
aput-object v2, v1, v4
const-class v2, Ljava/util/ArrayList;
const/4 v5, 0x2
aput-object v2, v1, v5
const-string v2, "makeDexElements"
invoke-static {p0, v2, v1}, Landroidx/multidex/MultiDex;->access$200(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
new-array v0, v0, [Ljava/lang/Object;
aput-object p1, v0, v3
aput-object p2, v0, v4
aput-object p3, v0, v5
invoke-virtual {v1, p0, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/Object;
check-cast p0, [Ljava/lang/Object;
return-object p0
.end method