The actual unlocking process cannot happen while Android is fully booted. You must send the target phone into its bootloader environment. Execute this command in Termux: adb reboot bootloader Use code with caution.
To unlock the bootloader using Termux, you will need: unlock bootloader using termux link
Now, command the target device to reboot out of its standard Android operating system and enter its bootloader interface: adb reboot bootloader Use code with caution. The actual unlocking process cannot happen while Android
In a traditional setup, you connect your Android phone to a Windows, Mac, or Linux PC to execute Android Debug Bridge (ADB) and Fastboot commands. you will need: Now
Use the physical on the target phone to highlight "Unlock the bootloader" . Press the Power button to select it and confirm.
./get_token.sh --region=REGION --product=PRODUCT_NAME --token=YOUR_DEVICE_TOKEN YOUR_XIAOMI_ACCOUNT_DATA