Magic ToolFlash
An android CLI flash tool without custom recoveries. Usage in Terminal Emulator or Termux with Root access:
flash [ZIP...]
If some zips fail to flash, you can try:
export NOSYSTEM=1; flash [ZIP...]
Path to ZIP should be full and multiple ZIP at same time are allowed. Busybox must be installed!!
Flash will not be processed in Android environment. Instead, Magic FlashTool will create a new environment and flashing will be performed in isolated chroot environment to match with Custom Recovery environment.
IMPORTANT: Only use this for flashing mods zip. It can be magisk module, magisk app, system mods zip, ... Do not use this tool to flash ROM while Android system is running because it will lead to bootloop
For testing, you can open shell in chroot enviroment with this command:
vmshell
Known issues
- (Solved)
The flashable zip that uses/tmp
as temporary directory will not work as/tmp
does not exist on Android root directory. Please prefer to use/dev/tmp
as temporary directory. - (Solved)
The flashable zip hardcoded/sbin
in command might not work because/sbin
doesn't always exist on Android 11+