diff --git a/libs/apktool_2.3.3.jar b/libs/apktool_2.3.3.jar deleted file mode 100755 index 6270407..0000000 Binary files a/libs/apktool_2.3.3.jar and /dev/null differ diff --git a/libs/apktool_2.3.4.jar b/libs/apktool_2.3.4.jar deleted file mode 100755 index 000e599..0000000 Binary files a/libs/apktool_2.3.4.jar and /dev/null differ diff --git a/libs/apktool_2.4.1.jar b/libs/apktool_2.4.1.jar new file mode 100644 index 0000000..2eca808 Binary files /dev/null and b/libs/apktool_2.4.1.jar differ diff --git a/src/com/qy/utils/SmaliUtils.java b/src/com/qy/utils/SmaliUtils.java index b9d9c6b..50e10c1 100755 --- a/src/com/qy/utils/SmaliUtils.java +++ b/src/com/qy/utils/SmaliUtils.java @@ -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+" ");