Unlock the bootloader
-
Enable Developer options: Settings → About → tap “Build number” 7 times.
-
In Developer options, enable OEM unlocking and USB debugging.
-
Reboot into the bootloader:
Terminal window adb reboot bootloader -
Unlock the bootloader:
Terminal window fastboot flashing unlock -
Confirm on the device screen. It reboots and wipes its data.

