Monday, April 28, 2014

Reverse Engineering : Android Dex files to Class files

Reverse Engineering : Android Dex files to Class files
In my previous post, we have seen how to extract the contents of img file.
After extraction, you will find that most of the files have ".dex" extension. These are Compiled Android application code files.
In order to convert them into executable format (.class or .jar), you can use dex2jar tool.
Extract it to a proper location and open the terminal to this location.
Now run the following command:
./d2j-dex2jar.sh <Path-to-dex_file>
It will bundle the dex files into a jar file, and stores it in the current directory.
dex2jar can also be used to convert dex files into variuos other formats.
For detailed info, click here.