.class final Landroidx/multidex/MultiDex$V14; .super Ljava/lang/Object; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/multidex/MultiDex; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "V14" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/multidex/MultiDex$V14$JBMR2ElementConstructor;, Landroidx/multidex/MultiDex$V14$JBMR11ElementConstructor;, Landroidx/multidex/MultiDex$V14$ICSElementConstructor;, Landroidx/multidex/MultiDex$V14$ElementConstructor; } .end annotation # static fields .field private static final EXTRACTED_SUFFIX_LENGTH:I = 0x4 # instance fields .field private final elementConstructor:Landroidx/multidex/MultiDex$V14$ElementConstructor; # direct methods .method static constructor ()V .locals 0 return-void .end method .method private constructor ()V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/ClassNotFoundException;, Ljava/lang/SecurityException;, Ljava/lang/NoSuchMethodException; } .end annotation invoke-direct {p0}, Ljava/lang/Object;->()V const-string v0, "dalvik.system.DexPathList$Element" invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 :try_start_0 new-instance v1, Landroidx/multidex/MultiDex$V14$ICSElementConstructor; invoke-direct {v1, v0}, Landroidx/multidex/MultiDex$V14$ICSElementConstructor;->(Ljava/lang/Class;)V :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 :try_start_1 new-instance v1, Landroidx/multidex/MultiDex$V14$JBMR11ElementConstructor; invoke-direct {v1, v0}, Landroidx/multidex/MultiDex$V14$JBMR11ElementConstructor;->(Ljava/lang/Class;)V :try_end_1 .catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1 goto :goto_0 :catch_1 new-instance v1, Landroidx/multidex/MultiDex$V14$JBMR2ElementConstructor; invoke-direct {v1, v0}, Landroidx/multidex/MultiDex$V14$JBMR2ElementConstructor;->(Ljava/lang/Class;)V :goto_0 iput-object v1, p0, Landroidx/multidex/MultiDex$V14;->elementConstructor:Landroidx/multidex/MultiDex$V14$ElementConstructor; return-void .end method .method static install(Ljava/lang/ClassLoader;Ljava/util/List;)V .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/ClassLoader;", "Ljava/util/List<", "+", "Ljava/io/File;", ">;)V" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Ljava/lang/SecurityException;, Ljava/lang/IllegalArgumentException;, Ljava/lang/ClassNotFoundException;, Ljava/lang/NoSuchMethodException;, Ljava/lang/InstantiationException;, Ljava/lang/IllegalAccessException;, Ljava/lang/reflect/InvocationTargetException;, Ljava/lang/NoSuchFieldException; } .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, Landroidx/multidex/MultiDex$V14; invoke-direct {v0}, Landroidx/multidex/MultiDex$V14;->()V invoke-direct {v0, p1}, Landroidx/multidex/MultiDex$V14;->makeDexElements(Ljava/util/List;)[Ljava/lang/Object; move-result-object p1 :try_start_0 const-string v0, "dexElements" invoke-static {p0, v0, p1}, Landroidx/multidex/MultiDex;->access$100(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V :try_end_0 .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0 return-void :catch_0 move-exception v0 const-string v1, "MultiDex" const-string v2, "Failed find field \'dexElements\' attempting \'pathElements\'" invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I const-string v0, "pathElements" invoke-static {p0, v0, p1}, Landroidx/multidex/MultiDex;->access$100(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V return-void .end method .method private makeDexElements(Ljava/util/List;)[Ljava/lang/Object; .locals 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "+", "Ljava/io/File;", ">;)[", "Ljava/lang/Object;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Ljava/lang/SecurityException;, Ljava/lang/IllegalArgumentException;, Ljava/lang/InstantiationException;, Ljava/lang/IllegalAccessException;, Ljava/lang/reflect/InvocationTargetException; } .end annotation invoke-interface {p1}, Ljava/util/List;->size()I move-result v0 new-array v0, v0, [Ljava/lang/Object; const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 array-length v3, v0 if-ge v2, v3, :cond_0 invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/io/File; iget-object v4, p0, Landroidx/multidex/MultiDex$V14;->elementConstructor:Landroidx/multidex/MultiDex$V14$ElementConstructor; invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String; move-result-object v5 invoke-static {v3}, Landroidx/multidex/MultiDex$V14;->optimizedPathFor(Ljava/io/File;)Ljava/lang/String; move-result-object v6 invoke-static {v5, v6, v1}, Ldalvik/system/DexFile;->loadDex(Ljava/lang/String;Ljava/lang/String;I)Ldalvik/system/DexFile; move-result-object v5 invoke-interface {v4, v3, v5}, Landroidx/multidex/MultiDex$V14$ElementConstructor;->newInstance(Ljava/io/File;Ldalvik/system/DexFile;)Ljava/lang/Object; move-result-object v3 aput-object v3, v0, v2 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 return-object v0 .end method .method private static optimizedPathFor(Ljava/io/File;)Ljava/lang/String; .locals 4 invoke-virtual {p0}, Ljava/io/File;->getParentFile()Ljava/io/File; move-result-object v0 invoke-virtual {p0}, Ljava/io/File;->getName()Ljava/lang/String; move-result-object p0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v2 sget v3, Landroidx/multidex/MultiDex$V14;->EXTRACTED_SUFFIX_LENGTH:I sub-int/2addr v2, v3 const/4 v3, 0x0 invoke-virtual {p0, v3, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p0 invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, ".dex" invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance v1, Ljava/io/File; invoke-direct {v1, v0, p0}, Ljava/io/File;->(Ljava/io/File;Ljava/lang/String;)V invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String; move-result-object p0 return-object p0 .end method