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
that’s it
Reference : http://code.google.com/p/dex2jar/wiki/UserGuide
One thought on “How to decompile android apk to java source code?”