First, write this log with great excitement .....
Googles is really awesome... let me have the honor to see the internal source code of the android application ....
Let's get down to the truth:
Android applications are composed of two parts.
1. *. Class File
2. * different tools are required for decoding XML files...
The following describes *. Class (class file decoding)
Required tools:
Dex2jar and JD-GUI
Dex2jar: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip
JD-GUI:
Windows JD-GUI: http://laichao.googlecode.com/files/jdgui.zip
Linux JD-GUI: http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz
A: Change the suffix of the *. APK file to *. Zip and decompress the file. A file named "classes. Dex" is found in the folder.
B: Decompress dex2jar and put it in the C root directory. Then, put Classe. Dex in this folder.
Then, Enter cmd at the start of running,
Locate the path to the folder where dex2jar. bat is located (dex2jar. bat is a *. BAT file in the folder after dex2jar is decompressed)
Enter dex2jar. Bat classes. Dex.
(An error may be reported here. If an error is reported, check what the Java environment variable is and whether the configuration is correct)
C: if everything is normal, A *. jar file will be decoded.
D: Use the JD-GUI mentioned above to decode *. jar file (Windows environment can be dragged directly)
E: the source code developed by many companies is to modify the class name and method name-this is disgusting and there is no good way to do it. I have to look carefully at it ....
Below is the decoding of the *. xml file
Required tools:
Apktool1.4.1.tar.bz2
Apktool-install-windows-r04-brut1.tar.bz2
These two tools can be available at the url officially provided by Google: http://code.google.com/p/android-apktool/
Download
Decompress the package,
A: All files in the two packages must be stored in the same path. I still put the C root directory.
B: Put the *. APK file to be decoded in the same path as the file decompressed in step a (I still put the C root directory)
C: Start ---> Run and Enter cmd, then locate drive C, and enter apktool d c: \ *. APK c: \ *** in the command prompt box :\***
(*. APK is the application to be decoded, and *** is the folder name)
D: After decoding, you can clearly see all the. xml files used in the program... Including layout files and androidmanifest. XML files.
Pai_^