Skip to content

Conversation

Zetsu4i
Copy link

@Zetsu4i Zetsu4i commented Mar 29, 2025

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:

  1. Download APKEditor.jar and place it in a folder (e.g., C:\APKEditor\).
  2. Save the script as apkeditor.bat in the same folder.
  3. Add the folder to the system PATH:
    • Open System PropertiesAdvancedEnvironment Variables.
    • Under System variables, find Path, edit it, and add C:\APKEditor\.
  4. Use it from any terminal by typing apkeditor followed 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 place APKEditor.jar elsewhere.

Now, you have a user-friendly shell wrapper for APKEditor.jar! 🚀

Zetsu4i added 3 commits March 29, 2025 16:15
a Windows batch script that wraps the tool, allowing you to run all its commands easily from the command line. It also provides color-coded output for better readability.
added apkeditor docs
@REAndroid
Copy link
Owner

Thank you !
I am seeing two major works here:

  1. 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 gradle wrapper scripts
  2. 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

@Zetsu4i
Copy link
Author

Zetsu4i commented Mar 31, 2025

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

@VisionR1
Copy link

Nice idea.

Similar with menu added to registry in Windows 10.
APKEditor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants