I recently wrote about how to deodex an odex file
. Part of the instructions were a series of commands to unpack (decode+disassemble) an APK into some sort of a "source package". I've attached a short shell script (for linux/unix systems) that will use
to extract and disassemble the contents of all APKs in the current working directory. It can be useful eg. to disassemble all system apps copied over to your PC from the
directory on your phone. And having the sources you can start looking around and track down bugs, etc. Of course you could just download the original (Java) sources from android.googlesource.com, but that would take quite a long time and several gigabytes on your drive.