Extract source code from APK file.

Pubblicato il: 05 agosto 2012
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Extract source code from APK file. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mumen Shabaro 05 agosto 2012, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 91,274 volte e gli è piaciuto 312 spettatori. Buona visione!