提交 db7f2cf5 编写于 作者: A Ahmed Ashour 提交者: skylot

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

上级 58365a89
......@@ -9,6 +9,7 @@ import java.io.IOException;
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 @@ public class InputFile {
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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册