In this guide, we will show you a nifty method using which you can do ADB sideload, and flash recovery, boot, vbmeta, and even a Custom ROM via Termux. Generally, you carry out all these tasks with the help of a PC. But there can be some instances wherein a PC might not be accessible, and you are in urgent need to carry out any of the aforementioned tweaks.
Well, in such cases, you can use the Termux-Root-Recovery-Tool, which allows you to carry out all these tasks via the Termux app installed on a secondary Android device, without any need for a PC whatsoever. So without any further ado, let’s check out all the features that this tool beholds, after which, we will list out its usage instructions. Follow along.
Features of Termux-Root-Recovery-Tool
Let’s have a look at some of the noteworthy features of this tool:
- Flash Recovery: Flash a custom recovery like TWRP on your device.
- Flash vbmeta: Flash the vbmeta file to disable Android Verified Boot.
- Flash Boot Image: Flash Magisk Patched Boot.img to root your device.
- Check ADB Devices: Verify ADB Connection
- Check Fastboot Devices: Verify Fastboot Connection
- Tool for AB Device: Enter into the AB Partition menu of this Tool.
- Flash Boot: Flash Stock/Patched Boot Image file
- Check Active Slot: Check your current active slot, whether A or B.
- Flash Boot_a: Flash the stock/patch boot in Slot A.
- Flash Boot_b: Flash the stock/patch boot in Slot B.
- Flash ZIP ADB Sideload: Install a ROM ZIP file via ADB Sideload.
- Boot TWRP Recovery: Boot your device to TWRP Recovery
- Activate Slot A: Make Slot A your current active slot.
- Activate Slot B: Make Slot B your current active slot.
- Main Page: Go back to the main menu.
- Flash ZIP ADB Sideload: Install a ROM ZIP file via ADB Sideload.
- Reboot System (From Fastboot): Reboot to the OS from Fastboot.
- Reboot to Recovery Mode: Reboot to Recovery Mode [either Stock or Custom]
- Reboot to Fastboot Mode: Reboot your device to Fastboot Mode.
- Flash Fastboot ROM: Flash the Fastboot ROM onto your device.
- Flash GSI ROM: Flash a Generic System Image onto your device.
Flash Recovery, Boot, Vbmeta, ROM, Do ADB Sideload via Termux
Now that you are aware of all the features of Termux-Root-Recovery-Tool, let’s make you aware of the steps to put this tool to the test. Follow along. Before starting, please take a complete device backup. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
- To begin with, pick up a secondary Android device.
- Then connect that device to your primary device using an OTG.
- Now, install Termux and Termux API apps on your device.
You might have to turn off Play Protect before installing Termux API.
- Now launch Termux and execute the following four commands:
SETUP TERMUX: yes | pkg update && upgrade termux-setup-storage pkg install termux-api yes | pkg install git INSTALL TERMUX-ROOT-RECOVERY-TOOL: git clone https://github.com/Ishu43642/Termux-Root-Recovery-Tool.git cd Termux-Root-Recovery-Tool chmod +x flash.sh && chmod +x flash-stock-rom.sh && chmod +x flashAB.sh && chmod +x gsi-flash.sh INSTALL ADB IN TERMUX: bash installadb.sh RUN TOOL: ./flash.sh
- As soon as the four commands are executed, the tool will open in Termux.
- You may now choose the desired option and get going!
- NOTE: The file that you want to flash should be on your secondary device.
- NOTE 2: You may use the Material File Manager app, as it gives you a one-click option to copy the path of the file that you want to flash via Termux.
That’s it. These were the steps to do ADB sideload, flash recovery, boot, vbmeta, and even a Custom ROM via Termux. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.
How to Flash a Fastboot ROM using Termux
- First off, rename your fastboot rom folder to stock-rom.
- After that, transfer this stock-rom folder to Downloads.
- Now select the ‘Flash Fastboot ROM’ to flash this ROM.
- How to Fix termux-setup-storage on Android
- Termux Not Working on Android 15 OnePlus/Realme/Oppo [Fixed]
- How to Access Internal Storage via cd command in Termux
- How to Enable Expressive Design in Android 16/15
The post Flash Recovery, Boot, Vbmeta, ROM, Do ADB Sideload via Termux appeared first on DroidWin.