In the process of Android development, it is sometimes difficult to refer to other people's Code, ideas, or layout. This is the time to decompile other people's apk. Many of the Internet is to download this tool, the tool, but also run DOS command, feel good confusion, and for DOS command unfamiliar people are not convenient, nonsense not much to say, direct description.
First, you need to download a tool to decompile the APK. http://download.csdn.net/detail/a1010012805/8886281
Note that this tool was developed by the Android developer community, specifically forgotten, so I uploaded the tool in Csdn. I think the biggest advantage of this tool is that there is no need to download too much stuff, the previous article will let you download apktool ,Dex2jar,Jd-gui Tools, You also need some DOS commands, and of course you can do the anti-compilation, just too complex.
Download the files that you will see after unpacking is opened
Just run the first file directly,
Click the Select apk file, select the directory where the APK resides, and then select a directory to store the post-compilation files.
Select All to decompile all the files and start the decompile. Once the anti-compilation succeeds, the interface will return to its original state. In this case, a folder with the same name as the APK and a jar file with the same name will be generated in your directory.
This is the time to run Jd-gui.exe,
Then click on the file to find the anti-compilation jar file from the directory,
As you can see, the original code is mixed, so many classes are replaced with ABCD, but for people with a certain Android base, this does not affect our understanding of the code idea. Android folders are support jar packages provided by Android and are not confused when adding confusing code. The following folder is the code. After opening it is the relevant code,
As you can see, the variables and methods of the same property are both initialized in the same block of code, or executed. To this, decompile to this basic end. As for the anti-compilation of the resource folder can be opened directly to view, pictures and XML files are original files, not be confused. As for the hope to see the entire original code reader, or do not think more. Finally thanks to the Android developer community to provide convenient tools, additional tools to download 2 points, do not want to spend points readers can leave a message to me, directly to you.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Anti-compilation (easy to operate, easy to use)