Let’s get started.
We will need the following tools in order to start working:
Dex2jar - download from here: https://sourceforge.net/projects/dex2jar/
Jd-gui - download from here: http://jd.benow.ca/
Follow the steps below:
- Rename your apk from name.apk to name.zip
- Extract the contents
- Copy class.dex and paste it into your dex2jar directory (You might have multiple class.dex files depending on the app)
- Open CMD and navigate to dex2jar’s path.
- Execute the following command: d2j-dex2jar.bat class.dex or d2j-dex2jar.bat class.dex class2.dex etc. if you have more than one .dex files.
- This should spawn new .jar files. Run jd-gui and open the jar files.
- That’s it.
Happy learning!