In this post, I will show How to Extract source files from any APK in Windows.
Tools Required
For this, we need the following 5 files.- apktool.jar.zip
- apktool-install-windows-r05-ibot.tar.bz2
- dex2jar-0.0.9.15.zip
- jd-gui-0.3.6.windows.zip
- app.apk (any apk your want to extract)
Download Tools
Download the above mentioned tools from the following linkSteps
- Create New Folder and keep all the 5 files in it.
- Extract all the files. For APK, change .apk extension into .zip and extract it too.
- Again, change .zip extension into .apk for APK.
- Create New folder and move all the extracted files into it except jd-gui.
- Move your APK file too into the created folder.
- Open your Command Prompt and route that to your Created folder.
- Now, execute the following command in Command Prompt.
- Now, open your jd-gui and route it to your created folder and select classes.dex2jar.zip and hit enter.
- And select File --> Save All Sources and save your source file as .zip file.
- In your CMD, type the following command.
- Again, type the following command.
- Copy the folder with your apk name from the created folder which contains res folders and files.
- Copy the files from as mentioned in the step 9 and paste both res and src folders in one folder and delete smali folder if it is present.
- Now your Full Source Code for your APK is ready.
dex2jar classes.dex
apktool if framework-res.apk
apktool d app.apk
Komentar
Posting Komentar