Skip to content

Commit

Permalink
fix: loading aar/jar files (#631) (PR #632)
Browse files Browse the repository at this point in the history
  • Loading branch information
asashour authored and skylot committed Apr 25, 2019
1 parent 58365a8 commit db7f2cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit db7f2cf

Please sign in to comment.