This tool is specifically designed for use on Android phones via Termux and works without a PC.
You need to install the necessary tools ( adb and fastboot ) within Termux to communicate with your target device in its bootloader/fastboot state. on the Host device.
: Ensure the --region parameter matches the region used when logging into the MiAccount APK. Available options are india , global , china , russia , and europe .
:
Still in Developer Options, go to and:
In Termux he installed a few packages: a basic shell environment, curl, and a small helper script he'd vetted from an open-source repository. The script wrapped fastboot-like commands and used the phone’s own adbd interface over USB to emulate a PC-side unlock sequence. He knew some devices required an unlock key from the manufacturer; others accepted a standard fastboot oem unlock command. This particular phone gave no key URL, only cryptic forum threads and one promising GitHub gist.
This tool is specifically designed for Termux on Android devices and offers a menu-based interface for Xiaomi/Redmi/POCO devices. Features include device info checking, bootloader unlocking (official method), unlock permission requests, Fastboot ROM flashing, and ZIP sideloading.
: Required to connect the host (OTG end) to the target device . Developer Settings (Target Device) :
This command downloads the unlock script from GitHub into a new folder and then moves you into that folder to run the commands within it.
Look at the screen of your target device. It will display a warning warning you about security risks. Use the physical Volume Keys to highlight "Unlock the bootloader" and press the Power Button to select it.
termux-hotunlock --prepare # Hot Mode staging: copies unlock payload to misc partition termux-hotunlock --unlock # Device reboots to bootloader, applies unlock, reboots back termux-hotunlock --clean # Removes any temporary unlock data