Unlocking the bootloader is legal in most countries (the US DMCA has exemptions for jailbreaking). However:
If securestate returns locked and OEM Unlocking is grayed out, you are out of luck unless an exploit exists. unlock bootloader command
Brands like use a different system (Odin/Download Mode) and don't typically use standard Fastboot commands. Others, like Sony or Xiaomi , require you to obtain a unique "Unlock Key" from their official websites before the command will work. Conclusion Unlocking the bootloader is legal in most countries
Once in fastboot mode, run:
By default, most manufacturers ship devices with a bootloader. This is a security feature designed to prevent unauthorized firmware from accessing your data. However, for those who want to install custom ROMs (like LineageOS), root their device, or install custom recoveries (like TWRP), the bootloader must be "unlocked." The Universal Tool: Fastboot Others, like Sony or Xiaomi , require you