For HyperOS devices, ensure you're using the F-Droid version of Termux, as the Play Store version has known compatibility issues.
An unlocked bootloader allows unauthorized parties to flash malicious code if they gain physical access to your device. Google's Factory Reset Protection (FRP) is bypassed more easily. unlock bootloader using termux hot