In this tutorial I will guide you how to decompile apk to source code in just one click.
APK file is compressed form of java classes, XML and several other files. As an android developer you may require to decompile apk file to get actual source code. Like if you saw an app with awesome design and you want to know how to implement that design in your project. We use reverse engineering process to get the source code.
There are several tools available on the internet like dex2jar, apktool, etc. that will help you to convert apk to soruce code. But for that you have to run several commands and follow lengthy process.
Luckily I found a great online apk decompiler tool www.javadecompilers.com. This tool uses an open sources APK and DEX decompiler known as jadx. It will help you to obtain source code from apk file in just one click.
How to Decompile APK to Source Code
1. First of all go the below link.
2. Now select the apk file by Choose File option and then click on Upload and Decompilebutton.
3. It will take time to decompile depending upon the size of the file.
4. After decompilation process finished, click on Save button to download the source code.
Isn’t it very simple? Yes off course. This tool will let you decompile any apk file, if still you are facing any issue then you can find the general long method at below link.
Comment below if you are facing any problem. If you found this tutorial useful then please take your few seconds to share it.
If you’ve ever modified precompiled applications, you have undoubtedly spent time with XDA Recognized Developer Brut.all‘s APKTool or one of its variants. APKTool works quite well, which is why after so many years, people still use it. However, using APKTool then requires you to use a separate app such as Notepad++ to edit the decompiled binaries. Once that’s done, you then have to go back to APKTool to recompile the modified app.
With APK Easy Tool, decompiling an APK is as simple as selecting the APK through the tool. It then decompiles the APK into a folder where you can modify things. Recompiling it again into an APK is also as easy as clicking a button. The interface also displays information about the APK such as package name, version, minimum SDK version, and version code. Here’s a full list of features currently included with version 1.5 of the tool.
- 7z Compression-level 0-9
- APK information with icon
- Background workers to get rid of lags
- Remember window position (SHIFT + Q to reset window position)
- Advanced log viewer, with .txt file selection
- Extract APK / Zip APK
- Switch between apksigner.jar by Google and signapk.jar by bootstrap online
- Quick help
- Full environment path support
- Adb process kill
- Apktool.jar version selections
- Decompile APK
- Modify AKP files
- Compile APK
- Sign APK after compile
- Sign selected APK (It will clone the selected APK, and sign it), compiled APK (If you forgot to sign your compiled APK, you can sign it), APK (signapk.jar v1.0)
- Remember path when closed (config will reset if EXE file was moved to somewhere else)
- Framework installer (uses apktool.jar’s commands)
- Logs tab
- Drag and drop file support
- Full options of decompiling and compiling
- Cancel button in the wait dialog box
- Clear logs on exit
- Allow path changes in the textbox
- Java heap option. Default 512m
- Options to rename the apk file
- Options to select apk tool version.
- Enable/Disable check for updates
- Enable/Disable tips and ToolTips
- Signing APK with keystore. Must be enabled in options.
- Remember the password of keystore. Password will be AES encrypted on exit
- Option to disable news and log
- Mass signing (drag and drop on Sign APK button)
Don’t MissHow to Manage and Fix Permissions on Android File System
- Stuck when decompiling Google Maps
- Windows 7 or newer (This tool will not work for Windows XP)
- .NET Framework 4.5 or newer
- Java SE/JDK. If you don’t have Java installed, you can only use Sign APK, Zipalign, Extract APK, Zip APK or Install APK. Decompiling and compiling can only be done when you have Java installed on your computer. You can download and install Java SE/JDK from this link.
In order to streamline things significantly, XDA Forum Member vaibhavpandeylive created APK Studio. Perhaps the best way to classify APK Studio would be to call it an IDE for .smali files, complete with syntax highlighting. But rather than simply allow you to edit and visualize the code, APK Studio also is able to decompile and recompile binaries from within the utility itself. Thus, it leads to a much more streamlined APK editing process, since now you only need one tool to do everything.
While ideally source-built development and app modification is the way to go, there are many times in which an app’s source code is not available, but you still wish to make a few tweaks for personal use. For situations like these, APK Studio will certainly come in handy. Head over to the utility thread to give it a shot. And if you think you can improve upon the app, download the app’s source code and have a go at it.