Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decompile an APK or DEX file on Android platform? [closed]

People also ask

Is it possible to decompile an Android app?

However, it is possible to modify an Android application by decompiling it to an intermediate language. This language, called smali, looks like the ASM language. This language is not very convenient to read, but with some experience, it is not so difficult to understand and manipulate the application.

Is it possible to decompile an APK file?

Decompilation of APK file is possible. But it might be difficult to understand the code if it is obfuscated.

How do I read DEX files on Android?

The DEX file opens in the Google Android SDK. To open the DEX file in a text editor, select the "Notepad" or "WordPad" option in the list of available programs. Tammy Clevenger works in the I.T. industry while maintaining creative outlets through film making, writing and audio production.


You need Three Tools to decompile an APK file.

  1. Dex2jar - Tools to work with android .dex and java .class files

  2. ApkTool - A tool for reverse engineering Android apk files

  3. JD-GUI - Java Decompiler is a tools to decompile and analyze Java 5 “byte code” and the later versions.

for more how-to-use-dextojar. Hope this will help You and all! :)


Online APK Decompiler
http://www.decompileandroid.com/
https://www.decompiler.com/
APK Decompiler App for Windows
http://forum.xda-developers.com/showthread.php?t=2493107

Update 2015/12/04
ClassyShark you can open APK/Zip/Class/Jar files and analyze their contents. https://github.com/google/android-classyshark

Update 2021/1/28
https://ibotpeaches.github.io/Apktool/
https://github.com/skylot/jadx


I have created a tool that combines dex2jar, jd-core and apktool: https://github.com/dirkvranckaert/AndroidDecompiler Just checkout the project locally and run the script as documented and you'll get all the resources and sources decompiled.


An APK is just in zip format. You can unzip it like any other .zip file.

You can decompile .dex files using the dexdump tool, which is provided in the Android SDK.

See https://stackoverflow.com/a/7750547/116938 for more dex info.