The hottest method is prevention. Buy phones with unlockable bootloaders (Google Pixel, Nothing Phone, OnePlus) and use the official fastboot oem unlock from a PC or a second Termux device. Hacks break; official methods don't.

Note: Verify the installation by running termux-adb or termux-fastboot .

on your Android device.