Skip to content
Permalink
Browse files

fix: loading aar/jar files (#631) (PR #632)

  • Loading branch information
asashour authored and skylot committed Apr 25, 2019
1 parent 58365a8 commit db7f2cf54878159eb6975f6ac2edfd569e442a13
Showing with 2 additions and 1 deletion.
  1. +2 −1 jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
@@ -9,6 +9,7 @@
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -134,7 +135,7 @@ private boolean loadFromZip(String ext) throws IOException, DecodeException {
case ".jar":
index++;
Path jarFile = Files.createTempFile(entryName, ".jar");
Files.copy(inputStream, jarFile);
Files.copy(inputStream, jarFile, StandardCopyOption.REPLACE_EXISTING);
for (Dex dex : loadFromJar(jarFile)) {
addDexFile(entryName, dex);
}

0 comments on commit db7f2cf

Please sign in to comment.
You can’t perform that action at this time.