Google Pixel 7 and 7 Pro

We have previously written an article on how to unlock the Google Pixel 7 Bootloader. Unlocking the bootloader of an Android smartphone or tablet allows you to install code on the device that has not been signed by the OEM who created it but it is required in order to install any third-party software modifications like Magisk Manager, a custom rom or even a custom kernel.

But doing so comes with some drawbacks not only does it put up some roadblocks when it comes to SafetyNet checks but it also makes the device less secure. For many of us, the added features are worth the drawbacks but there are times when re-locking the bootloader of the Google Pixel 7 or the Pixel 7 Pro is going to be required. There are a number of reasons why someone would want to lock the bootloader of their smartphone. Whether you are done experimenting with a custom rom or just needed to unlock it so that you could downgrade to an older version of Android. Or if you ever intend to sell the device or give it away to a friend or family member then it’s ideal to lock the bootloader beforehand. So, in this article, we will be showing you how to lock Google Pixel 7 or the Pixel 7 Pro bootloader if you have already unlocked the bootloader.

Before we begin, we do want to point out that relocking the bootloader will result in the device performing a factory data reset. This is a security measure put in place by Android so be sure to back up as much of your data as possible before you proceed with this tutorial.

Also, remember that, do not attempt to lock the bootloader of your Google Pixel 7 if you still have Magisk installed or if you are currently running a custom rom or a custom kernel or anything custom on your device. You need to be running 100 percent stock firmware if you plan to lock the bootloader of your Google Pixel 7 or the Pixel 7 Pro.

If you have custom ROM installed on your device then you first need to go and manually flash the stock firmware images through the fastboot mode before locking the bootloader. This is necessary because the custom ROM or firmware made so many changes to Android via root apps and much more.

Lock Google Pixel 7 bootloader:

As you are going to lock the bootloader, we assume that you already have ADB and fastboot tools installed on your pc which are also required to unlock the bootloader.

Here is the step-by-step guide to locking the bootloader:

  • Boot The Google Pixel 7 or the Pixel 7 Pro into fastboot mode. In order to boot into the fastboot mode. We need to follow the steps below:-
  • Long press the power button to open the boot menu.
  • Tap on the restart/reboot option in the boot menu. And also press and hold the volume down button while your device is booting up. This will take you into the fastboot mode when your device reboots.
  • Next, connect your device to your PC via a USB cable. Open a Windows PowerShell or command prompt in the same folder where you install ADB and the fastboot tool.
  • Type the command “fastboot devices” into the command prompt in order to make sure that our fastboot tools can connect to our Google Pixel 7 and hit enter.
  • If you get a return message with some letters and numbers and the word fastboot that means the connection is successful. If you don’t get the message then do the above steps again or change the USB cable.
  • Next up, type out the command “fastboot flashing lock” in the command prompt and hit enter.
  • When you type the command and hit enter, the screen on your Google Pixel 7 or the Pixel 7 Pro changes and you should get an ok message right there.
  • After that, your device will boot and you will see a new screen on your device.
  • Here you will see different options at the top of the display next to the power button.
  • By default, you will see the option “Do not lock the bootloader”. You can change the option by using the volume up and down button.
  • Press the volume up or volume down button until you see “Lock the Bootloader”.
  • When the “Lock the Bootloader” option is highlighted, press the power button to select this option.
  • As mentioned previously, it is going to do a factory data reset which it had just done on that reboot.
  • You will again be booted back into the Fastboot mode once your device bootloader is locked. There is a “Start” option highlighted at the top, press the power button to select the “Start” option.
  • Your device will boot back into Android. It is the first boot into Android so it will take a little bit longer, just be patient and wait.
  • Set up your device like how you normally set up your Android devices.

Remember that you just did a factory data reset so all your device data will be formatted. That’s it. You have now relocked the Bootloader on your Google Pixel 7 or the Pixel 7 Pro.

Experiencing difficulties with your Device, check out our “How To” page on how to resolve some of these issues.

LEAVE A REPLY

Please enter your comment!
Please enter your name here