Recent studies and code obfuscation to decompile Android project. To do code obfuscation, decompilation first project to do first, so as to know how others see apk from the source.
It requires three steps:
1, download apktool.jar and apktool, download path:
https://ibotpeaches.github.io/Apktool/install/
Find mac release notes.
Mac OS X:
Download Mac wrapper script (Right click, Save Link As apktool)
Download apktool-2 (find newest here)
Rename downloaded jar to apktool.jar
Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)
Make sure both files are executable (chmod +x)
Try running apktool via cli
The first step to download the file wrapper script, right, Save As. After the mac download, look for apktool executable file.
The second step download apktool-2jar package.
The third step is heavy command apktool.jar.
The fourth step apktool and apktool.jar copied to / usr / local / bin / directory.
A fifth step, respectively, chmod + x apktool chmod + x apktool.jar
sixth step to operate apk file
apktool d -s app-release.apk
Then locate the folder: app-release
Where:
The second step download jar network is not very good, after downloading over the wall. Download path
https://bitbucket.org/iBotPeaches/apktool/downloads/
2, download dex2jar-2.0.zip
https://sourceforge.net/projects/dex2jar/files/
After extracting, copy the file to the classes.dex folder. Excuting an order:
sh d2j-dex2jar.sh classes.dex
Error:
d2j-dex2jar.sh: line 36: ./d2j_invoke.sh: Permission denied
Solution:
sudo chmod +x d2j_invoke.sh
Then in the implementation of the above step.
Then you can see one more classes-dex2jar.jar file.
3, download jd-gui
http://java-decompiler.github.io/
Download over the wall.
The second step is then to get the classes-dex2jar.jar drag jd-gui can be. You can see the class files.