Skip to main content

Posts

Showing posts with the label dex2jar

How To Decompile Android APK file(.apk) and Get Source Code

Sometimes you may be amazed to see beautiful android apps with great design and simplicity. You may want to look into the source code of that app and to design the same way they have done. Usually APK file is not readable because its in dex format (Dalvik excutable file) which can be read by dalvik compiler. So there is a trick I found on stackoverflow to decompile any apk file. Just follow the below steps to get source code of any android app, if you have got .apk file Step 1: Create a new folder in your pc and copy over the .apk file that you want to decode. Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it.  Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue. Step 2: Now extract this .zip file in the same folder (or NEW FOLDER). Download dex2jar and extract it to the same folder (or NEW FOLDER). Move the classes.dex f...