Different manufacturers have distinct unlocking mechanisms:
termux-setup-storage
Once unlocked, Termux can:
# This command confirms your phone is in fastboot mode mi-fastboot devices unlock bootloader using termux link
On the target device, go to Settings > About Phone and tap "Build Number" seven times. Then, in Developer Options , enable USB Debugging and OEM Unlocking . Step-by-Step Guide to Unlocking 1. Install Termux
(Note: Xiaomi requires official permission via Mi Unlock tool, which cannot be bypassed with Termux)
Unlock Bootloader of any Device using PC or Android. - GitHub Prerequisites: What You Need
Lock and unlock the bootloader | Android Open Source Project
Your phone will display a warning screen. Use the volume keys to select or "Unlock the bootloader" and press the power button to confirm. 6. Reboot the System
You would need:
You can run fastboot oem unlock in Termux on your phone and instantly unlock it.
Features like Google Wallet, banking apps, and high-definition streaming (Widevine L1) may stop working or require advanced workarounds to restore. Prerequisites: What You Need