APKEditor
APKEditor copied to clipboard
added user-friendly shell wrapper
Here’s a Windows batch script that wraps the APKEditor.jar tool, allowing you to run all its commands easily from the command line. It also provides color-coded output for better readability.
Steps to Set Up:
- Download
APKEditor.jarand place it in a folder (e.g.,C:\APKEditor\). - Save the script as
apkeditor.batin the same folder. - Add the folder to the system PATH:
- Open System Properties → Advanced → Environment Variables.
- Under System variables, find Path, edit it, and add
C:\APKEditor\.
- Use it from any terminal by typing
apkeditorfollowed by the desired command.
Usage Examples
Now you can use the tool anywhere in Command Prompt or PowerShell:
- Decompile an APK
apkeditor d -i myapp.apk - Build APK from decompiled JSON/XML
apkeditor b -i decompiled-folder - Merge multiple APK files
apkeditor m -i apks-folder - Refactor obfuscated resources
apkeditor x -i myapp.apk - Protect APK resources
apkeditor p -i myapp.apk - Get APK information
apkeditor info -v -resources -i myapp.apk
Notes
- Colored output is supported on Windows 10+ with ANSI escape codes.
- If color codes don’t work in
cmd, use Windows Terminal or Git Bash. - You can modify the
set "JAR_PATH=..."line if you placeAPKEditor.jarelsewhere.
Now, you have a user-friendly shell wrapper for APKEditor.jar! 🚀
Thank you ! I am seeing two major works here:
- Wrapper script
I think it is better to consider other platforms also (linux, windows, ...). Maybe it is good idea to adopt proven scripts from Apktool or
gradlewrapper scripts - Terminal formatting (ANSI color) There are cases where end users do not want this feature, like running in wrapped systems where the std output strings is parsed and processed literary. Thus this should consider user preferences and terminal detection. Check NO_COLOR
For easy tracking, it is best if you can split this PR based on the above two points
I see I appreciate ur feedback 🙏🏻 I will try to improve it At first i just made this just for me and thought it would be handy for others that's y its only for windows
Nice idea.
Similar with menu added to registry in Windows 10.