更新apktool版本
SmaliUtils可设置解包是否需要用加密
This commit is contained in:
parent
256d724150
commit
c310907a1b
Binary file not shown.
Binary file not shown.
BIN
libs/apktool_2.4.1.jar
Normal file
BIN
libs/apktool_2.4.1.jar
Normal file
Binary file not shown.
@ -190,13 +190,16 @@ public class SmaliUtils {
|
||||
}
|
||||
return old;
|
||||
}
|
||||
|
||||
private boolean isEncryption=false;
|
||||
public void unPack(String jarPath, SmaliApkToolsPath smaliApkToolsPath) {
|
||||
File path=new File(jarPath+".out");
|
||||
if(path.exists()&&path.isDirectory()) {
|
||||
Tools.deleteFiles(path.getAbsolutePath());
|
||||
}
|
||||
String[] args =new String[] {"d","-f",jarPath};
|
||||
if(isEncryption){
|
||||
args =new String[] {"d","-f",jarPath,"--only-main-classes"};
|
||||
}
|
||||
try {
|
||||
for (String arg : args) {
|
||||
System.out.print(arg+" ");
|
||||
|
Loading…
Reference in New Issue
Block a user