Decompilation of APK file is possible. But it might be difficult to understand the code if it is obfuscated.
ApkTool to view resources inside APK File
- Extracts AndroidManifest.xml and everything in res folder(layout xml files, images, htmls used on webview etc..)
- command :
apktool.bat d sampleApp.apk
- NOTE: You can achieve this by using zip utility like 7-zip. But, It also extracts the .smali file of all .class files.
Using dex2jar
- Generates .jar file from .apk file, we need JD-GUI to view the source code from this .jar.
- command :
dex2jar sampleApp.apk
Decompiling .jar using JD-GUI
- decompiles the .class files (obfuscated- in a case of the android app, but a readable original code is obtained in a case of other .jar file). i.e., we get .java back from the application.