Fastboot on AndroidI am trying to unlock my Android smartphone’s bootloader but keep getting the “FAILED (remote: oem unlock is not allowed)” message in the command line. I know that my smartphone’s bootloader can be unlocked because I can see many other people are unlocking it successfully. Resolution: 

Usually when you enter the fastboot oem unlock command and it fails, it’s because you haven’t enabled Developer Options or the USB Debugging Mode. Even if you have installed Fastboot correctly, you still need to prepare the smartphone because it does not accept Fastboot commands by default.

See also: What Is Fastboot OEM Unlock?

To unlock the Developer Options, do the following:

1. Open Settings.

2. Tap on About Phone/About Device.

3. Tap on the build number at least seven times.

4. When you get the message letting you know that you are now a developer is when you have unlocked Developer Options in the Settings menu.

To enable USB Debugging Mode, do the following:

1. Navigate back to Settings.

2. Open Developer Options, which is now a new option available from the Settings menu.

3. Tap to enable USB Debugging.

In conclusion, that is how to fix failed (remote: oem unlock is not allowed) error you get from the command line when running Fastboot commands.