This tutorial will show you step by step how to successfully extract the contents of an .apk.
First of all download the following:
- android-apktool
- Download the first file and the windows file(if you run windows), linux(if you run linux) etc.
- dex2jar
- JD-GUI
- Place the android-apktool files you download on the root of your Windows installation drive (im my case C)
- Copy the apk there as well
- Open a terminal (cmd)
- Type:
- cd C:\
- apktool d C:\nameofapk.apk C:\NewFolder
- Hit enter and wait
- Once the process is done close the terminal (cmd)
- Thats it. Your apk is now extracted and you can find it inside the folder you created (NewFolder) in the step 4.2
- Extract dex2jar inside NewFolder from the previous step
- Open a terminal (cmd)
- Reach that folder
- Type:
- dex2jar classes.dex
- Hit enter
- Now you get classes_dex2jar.jar inside the same folder
- Go to the JD-GUI file you downloaded
- Run jd-gui.exe
- Click Open and choose the "classes_dex2jar.jar" file from the previous step
- Click Save All Sources
- Create a new folder and copy inside the extracted files from step 1 and step 3
- That's it! You can now see the entire source code
No comments:
Post a Comment