1. Download the anti-compilation tool dex2jar and Jd-gui from http://download.csdn.net/detail/dingyuming1991/9618125 (you can also download Google search);
2. the APK package to be anti-compilation to the extension zip (apk package is actually a zip package), unzip the zip file;
3. In the extracted folder there will be a classes.dex file (binary file of the program), in the download dex2jar and Jd-gui found DEX2jar Program, in the cmd window Mouth run dex2jar classes.dex , my dex2jar and Jd-gui in d:/android data/dex2jar& Jd-gui "directory, my test package is in" D:/activity_test ", so dex2jar classes.dex on my machine is Dex2jard:/ activity_test/classes.dex, effects such as
4. After the above steps in My computer is in the D:/activity_test directory will be more than a classes.dex. Dex2jar file, and then use the
Jd-gui tool, execute Jd-gui.exe directly, then "File->open File ..." Find the classes.dex. Dex2jar file just now, and you'll see something like that.
And my original code comparison, basically all the same, just in the resource ID replaced by the real number, actually ID name replaced by the ID value, happy bar ...
Note: If you use the Dex2 Jar tool I provided above togenerate an empty file, it is recommended that Baidu download the latest version.
Copyright, reproduced Please specify the source http://blog.csdn.net/dream19861009/archive/2010/12/22/6090693.aspx
Anti-compilation Android APK package get source code (using tools: Dex2jar and Jd-gui)