You can perform the unlock anywhere without needing a laptop.
Are you planning to immediately after the unlock, or are you just looking to install a custom ROM ?
Standard Termux doesn't come with ADB (Android Debug Bridge) or Fastboot pre-installed. You need to install a repository that hosts these binaries. pkg update && pkg upgrade Use code with caution. unlock bootloader using termux better
Most users prefer the community-maintained platform tools for Termux. pkg install android-tools Use code with caution.
Accept the prompt on the Target device to "Allow USB Debugging." adb reboot bootloader Use code with caution. You can perform the unlock anywhere without needing a laptop
In , toggle OEM Unlocking and USB Debugging to ON. Phase 2: Setting Up the Termux Environment
The phone you want to unlock. Note: You connect them via a USB-C to USB-C cable or an OTG adapter. On the Target Device: Go to Settings > About Phone . Tap Build Number 7 times to enable Developer Options. You need to install a repository that hosts these binaries
To unlock a bootloader using Termux, you technically need two devices: The phone running Termux.