apkfuckery/com.discord/smali/androidx/multidex/MultiDex$V19.smali
2019-02-04 21:29:01 +01:00

254 lines
6.3 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
const-string v1, "dexElements"
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-static {p0, v2, 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
invoke-static {p0, v1, 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;
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 7
.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-string v0, "makeDexElements"
const/4 v1, 0x3
new-array v2, v1, [Ljava/lang/Class;
const-class v3, Ljava/util/ArrayList;
const/4 v4, 0x0
aput-object v3, v2, v4
const-class v3, Ljava/io/File;
const/4 v5, 0x1
aput-object v3, v2, v5
const-class v3, Ljava/util/ArrayList;
const/4 v6, 0x2
aput-object v3, v2, v6
invoke-static {p0, v0, v2}, Landroidx/multidex/MultiDex;->access$200(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
aput-object p1, v1, v4
aput-object p2, v1, v5
aput-object p3, v1, v6
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/Object;
return-object p0
.end method