1.下载开源工具apktool
http://code.google.com/p/android-apktool/
注意其中的apktool.jar也在该站点例如apktool1.4.1.tar.bz2
解压夺成zip改名为.jar即可
然后使用命令行:
./apktool d ~/testdeJava/Contacts.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /Users/xiebin/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
2.下载dex2jar
http://code.google.com/p/dex2jar/
解压
给权限chmod +x dex2jar.sh
运行./dex2jar.sh ~/testdeJava/Contacts.apk
3.下载jd-gui
http://java.decompiler.free.fr/
运行jd-gui打开Contacts.apk.dex2jar.jar