Although having an unlocked bootloader is useful in many ways like flashing firmware (factory images), installing TWRP, and getting root. But it can also lead to blocked services on your device because of security reasons, and hence you might want to relock bootloader to avail those services. In this article, we are going to talk about How to Relock Bootloader Through Fastboot on Android. Let’s begin!
Earlier today, Google released an update to SafetyNet which now also considers a device’s bootloader unlock status to trigger SafetyNet and disable certain services, Such as Android Pay.
Thankfully though, the relocking bootloader will solve the issue for you. But (of course) you will lose all the benefits that come with having an unlocked bootloader on your device.
The fastboot commands to relock bootloader are not the same for all the devices. So we have put together a list of all known Fastboot commands that you can use to relock bootloader on your device in the instructions below.
How to Relock Bootloader through Fastboot
- Setup ADB and Fastboot on your PC.
- Connect your device to the PC, and open a command window on the PC.
- Issue the following command to boot device into bootloader mode:
ADB reboot bootloader
- Now issue the following commands (anyone) to relock the bootloader. You do not need to use all the commands given below. If anyone works, stop there and follow the next step.
fastboot oem lock
fastboot flashing lock
fastboot oem relock
- Once the bootloader is locked. Reboot your device with the following command:
That’s all. If you have any suggestions to add to this page, let us know in the comments section below.
Alright, That was all Folks! I hope you guys like this article and find it helpful to you. Give us your feedback on it. Also if you guys have further queries related to this article. Then let us know in the comments section below. We will get back to you shortly.
Have a Great Day!