Some older MediaTek devices (pre-2020) allow bootloader commands via mtkclient:
pkg install python clang git libusb
git clone https://github.com/bkerler/mtkclient
cd mtkclient
pip install -r requirements.txt
For Xiaomi devices, you can run official Termux scripts to: unlock bootloader using termux hot
Not for unlocking. But once unlocked, Termux + pkg install android-tools lets you: But to initially unlock
But to initially unlock? No. You need a real computer. unlock bootloader using termux hot
| Issue | Solution |
|-------|----------|
| remote: oem unlock is not allowed | Enable OEM Unlocking in Developer Options |
| waiting for any device in fastboot | Install proper USB drivers on PC |
| Termux ADB won't connect | Disable WiFi isolation on router |
| command not allowed | Device may have locked bootloader (no bypass) |