The bootloader in any device is a code that executes at very first when the device is turn on. It contains the instructions to load the operating system kernel to boot up the device. Bootloader status can be locked or unlocked.
Today almost all of the android manufacturers provide their smartphones with a locked bootloader for security purposes. To install a custom ROM or rooting a device you must first unlock the bootloader. Bootloader status sometimes tell the integrity of a device like for companies like Samsung and Huawei unlocking bootloader may void the warranty and your device will not be trusted anymore.
For some devices relocking a bootloader is possible so if you want to send your device back to the company for any particular issue and you don’t know whether the bootloader is locked or unlocked you can perform following methods to confirm it.
Check Status of Bootloader Whether Locked or Unlocked
Below are the two methods to check if the bootloader is locked or unlocked you can perform any of the operations to check the status of the bootloader. These methods will work for any android device or android version.
If you’re able to boot your device correctly, then you should go for this as it’s the easiest and most straightforward method to check the status of the bootloader.
Step 1: Open phones dialer
Step 2: Now dial the following code,
Step 3: It will automatically open a new window. Now navigate to Service Info >> Configuration, and see if there is:
Bootloader unlock allowed - Yes << this means that your Bootloader is Locked Bootloader Unlocked - Yes << this means that your bootloader is unlocked
Note: If dialing the code doesn’t open anything, please use “Method 2”.
Method 2 :
Step 1: Download and install your device drivers on your PC.
Step 2: Download and install ADB & fastboot package for your device. (You can install ADB & fastboot system-wide by following this method)
Step 3: Boot your device in “fastboot” mode and connect it with your PC.
Step 4: Now open the folder where your ADB & fastboot package is extracted, press Shift key on your keyboard and right-click on the folder and select “Open command prompt here.“
Step 5: To check whether the device is appropriately connected enter following command in the Command prompt window and press enter.
Step 6: If it doesn’t show any device, try reinstalling device drivers or check whether the cable is connected correctly or not and try again.
Step 7: If your device is shown in the list, then enter the following command to check bootloader status.
fastboot oem device-info
For locked devices, it’ll show “<bootloader> device unlocked: false.”
If you face any error, please do mention it in comments. Enjoy!