Android program decoding and XML file decoding detailed

Source: Internet
Author: User
Tags bz2 zip

First of all, with an extremely excited mood to write down this diary ...
Googles really give the force .... Let me have the opportunity to see the Android application of the internal source code ....
Now let's get to the bottom:
Android apps are made up of two parts.
1.*.class file
2.*.xml file decoding time need to use a different tool ...
The following begins with the introduction of *.class (decoding of class files)
Tools that need to be used:
Dex2jar and Jd-gui
Dex2jar Download Address: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip
Jd-gui Download Address:
Windows version Jd-gui:http://laichao.googlecode.com/files/jdgui.zip
Linux version jd-gui:http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz

A: The *.apk file suffix modified to *.zip, and then decompression, will be found in a folder called Classes.dex file
B: The Dex2jar will be unpacked and placed in the C-packing directory, and then put Classe.dex into this folder to
Then enter CMD at the start of the run,
Locate the path to the folder where Dex2jar.bat resides (Dex2jar.bat is a * that exists in the folder after the Dex2jar is unpacked. BAT file)
Then enter: Dex2jar.bat classes.dex
(There may be an error, if the error is a good look at the Java environment variables, the configuration of the right)
C: If everything works, it will decode a *.jar file.
D: Use the Jd-gui mentioned earlier to decode the *.jar file (Windows environment can be directly dragged up to)
E: Many companies developed the source code are modified class name, method name-This is more disgusting, there is no good way, can only pay a little look at the eyes carefully ....

The following is the decoding of the *.xml file
Tools that need to be used:
apktool1.4.1.tar.bz2
apktool-install-windows-r04-brut1.tar.bz2
These two tools can be provided at Google's official URL address: http://code.google.com/p/android-apktool/
Load down
And then unpack,
A: Two compressed package of all the files should be placed in the same path, I put or C packing directory
B: will need to decode the *.apk file and step A to extract the same path of the file (I put the still is the C-packing directory)
C: Start---> Run input cmd, then navigate to C Disk, in the command Prompt box input: Apktool d c:*.apk c:***
(*.apk for applications that need to be decoded, * * for folder names)
D: After decoding can be clearly seen in the program all the use of *. XML file ... Include layout files and Androidmanifest.xml files

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.