Extract source code from APK file.

Publicado em: 05 Agosto 2012
no canal de: Mumen Shabaro
91,274
312

NOTE: This method will no longer work since the application source code now is obfuscated before shipped to play store.

Hello,

This is a tutorial of how to extract an APK source code

Requirments tools:
1. dex2jar: http://www.mediafire.com/?gd9ijj22b1m...
2. jd-gui: http://www.mediafire.com/?ar530z2ogbt...

Note: all the tools links is in the description section.

I will show you how to extract the source code for a game called "Magic Piano".
First of all, download the apk file from the internet.
after the download finish, you will have a file called "Magic-Piano-v1.0.1.apk",
rename it to "Magic-Piano-v1.0.1.zip", we changed the apk to zip, then extract the zip file.

Open the "Magic-Piano-v1.0.1" folder, you will see many folders and files, we need the files named "classes.dex"
Note: all the game assets, graphics and sound are accessible, you can take and use them.

We need this file, this is the file that contain the source code.

Extract the "dex2jar-0.0.9.8.tar.gz", that will produce a folder called "dex2jar-0.0.9.8", copy the "classes.dex" to it.
Now, open the Terminal and navigate to "dex2jar-0.0.9.8" folder. then write this command "sh dex2jar.sh classes.dex"

Now, you will get a file named "classes_dex2jar.jar". :P

After that, we will use "java decompiler", the jd-gui tool, double click on jd-gui and click on open file then open "classes_dex2jar.jar" file from that folder, now you get classes files... save all these classs file (click on file then click "save all sources" in jd-gui), by src name, at this stage you get source


Thank you for watching this video, hope you enjoy and learn something useful for you,
Please if you like it, share it and if you didn't get anything, just comment and i will answer you.

T.C.


Nesta página do site você pode assistir ao vídeo on-line Extract source code from APK file. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Mumen Shabaro 05 Agosto 2012, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 91,274 vezes e gostou 312 espectadores. Boa visualização!