Google’s Pixel phones are very much Nexus devices but only more focused on premium user experience. But that doesn’t change what runs inside these devices.

Google’s Pixel and Pixel XL phones can boot into bootloader and recovery mode just like Nexus devices does, and support bootloader unlock and relock as well.

Relocking bootloader on Pixel phone is as easier as it can be. You just have to connect the device to PC in bootloader mode and issue fastboot oem lock command from PC’s command line tool.

How to Relock Bootloader on Pixel and Pixel XL

  1. Setup ADB and Fastboot on your PC.
  2. Enable USB debugging on your Pixel device.
  3. Connect your Pixel device to the PC with a USB cable.
  4. Open a command window on your PC.
  5. Boot your Pixel device into bootloader mode using the following command:
    adb reboot bootloader

    └ You may get a request to authorize USB debugging on the device, accept it.

  6. Once your device is in bootloader mode, issue the following command to relock bootloader:
    fastboot oem lock
  7. Once bootloader locked, your device will reboot into bootloader mode. You need to boot into system now, either press Power button to reboot OR issue the following command:
    fastboot reboot

    └ This step won’t be needed if your Pixel phone automatically reboots into system after bootloader relock.

That’s it.

Image source: The Verge