How to lock the bootloader
This topic will be useful for those who want to block the bootloader.
It’s not a secret to anyone (and for many it’s a discovery) that Android Pay works with an NFC module, on stable firmware, without root and with a locked bootloader. You can check the bootloader status in the ‘For Developers’ settings, it looks like this:
So, if you need to lock the bootloader, there are two options. One with data loss, the other without data loss (But this is not accurate). First, I’ll tell you about which without data loss)
1. Lock the bootloader without data loss (on some models the data is erased, it is not clear what it depends on)
Before you begin, you need to know about some points.
Firstly: this does not work on all phones. But on most recent phones it works. And judging by the comments on the forum, it works on a lot of people.
Secondly: it works correctly on official firmware if they have not been subjected to changes in system files (root access, recovery patch, TWRP, etc.) Otherwise, the command will not work or you will get a bootlap (perpetual download).
Thirdly: the team does not work on almost all unofficial firmware, get a bootlap (perpetual download).
Attention: You do everything at your own peril and risk, backup is required.
1. Check if the adb and fastboot drivers are installed on the PC. Usually lie on the disk "FROM" in the ‘adb’ folder. If not installed, we type in Google or Yandex ‘how to install adb and fastboot’ and follow the instructions.
2. Enter the phone in fastboot mode (in the off state, hold down the power on and volume down button at the same time until you see the hare and the fastboot sign) and connect it to the computer.
Video: Lock Bootloader Xiaomi Redmi 6 Pro
3. Go to the folder with adb and fastboot installed (usually in the adb folder on drive C), hold down Shift and right-click on the free space in the folder and select ‘Open command window’ or who has Power Shell respectively ‘Open through Power Shell ”
4. We begin to prescribe:
After should issue a phone ID
5. Next, check the status of the bootloader with the command:
fastboot oem device-info
If the bootloader is unlocked, the answer will be like this:
6. Next, we write the lock command:
fastboot oem lock
And if everything is fine, we get OKAY
7. Check the bootloader state again with the command:
fastboot oem device-info
If everything went correctly it will be false on all points: We reboot into the system with the command:
That’s it, it’s done!
2. We block the loader with data loss.
This method erases all data from the phone since this is a regular flashing with the choice of the bootloader lock function, so check that everything is in sync (contacts, calendar, notes, etc.; backup applications and drop them onto the computer; photos, music, important documents on the computer).
1. Download and install the Mi Flash program
2. Download your firmware from the official site (firmware must be for fastboot) and drop it into a new folder on drive ‘C’ (the name of the folder should not have Russian letters and symbols)
3. Enter the phone in fastboot mode (above it is written as) and connect the phone to the computer.
4. Open the program, press select or open (depending on the version of the program) and select the folder in which the firmware files are located, this is very important, because as I recall the firmware is in the folder that lies in another folder.
5. Press refresh, the phone information should be displayed.
6. The most important step that should not be missed; otherwise everything was done in vain;) select the ‘clean all and lock’ program below
7. Press flash and wait for the phone to load. That’s all. Next you are waiting for the first setup and recovery from backups.
That’s all, good luck to everyone! Leave your questions in the comments!