Connect the host and target devices using the OTG cable. Once connected, check if the host recognises the target by typing: adb devices Use code with caution.

These devices usually require a specific "Unlock Key" and a waiting period (often 168 hours) linked to a Mi Account. While Termux can flash the command, you may still need to use official tools or modified scripts to bypass these server-side restrictions.

Accept the USB debugging prompt that appears on the device's screen. 3. Reboot to Fastboot Mode