I wrote another post with the same title here and it got a lot of comments and people wanted to know more, and some point some visitors was confused. so here is the easiest copy-paste solution.
- Download dex2jar from http://code.google.com/p/dex2jar/downloads/list
- Extract dex2jar-version.zip to a folder. for example /home/codexplo/( for linux), or C:\ (for windows)
unzip -x dex2jar-version.zip -d /home/codexplo
- use dex2jar to generate .jar file. dex2jar will generate a file named someApk-dex2jar.jar in the working folder.
linux sh /home/codexplo/dex2jar-version/d2j-dex2jar.sh /home/codexplo/someApk.apk windows C:\dex2jar-version\d2j-dex2jar.bat someApk.apk
Reference : http://code.google.com/p/dex2jar/wiki/UserGuide