In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .
Agree

Tips & Tricks

Tutorial For You
Subscribed
Subscribe

[Tutorial] How to Re-lock Bootloader of Any Xiaomi Devices without Flashing

2018-07-11 23:44:42
61110 182

Hello Mi Fans!
With queries from lot of users on how to unlock the bootloader here is a simple tutorial that you can perform if you feel that you have installed and discovered your desired ROM and now you want to re-lock your bootloader.

This method of unlocking bootloader will give you quite flexibility because you really don't need to perform the official flashing.

Prerequisites:

(For this tutorial I am using Minimal ADB and Fastboot v1.4, Windows 10 Pro and my Xiaomi Mi 5)

Warning!
My humble request to all of you, please don't try to lock your bootloader if you have installed TWRP or any custom recovery. It might cause unrecoverable hard brick, as I don’t take any responsibility if you do anything wrong in this process.

Now don’t waste your time and let's start without getting late!

1. Configure ADB Binary or Minimal ADB and Fastboot on your PC. Download ADB.zip or Minimal ADB and Fastboot from here and extract it to any folder in your PC. (For Minimal ADB and Fastboot, you will need to install the .exe setup file.)
ADB.zip (4.49 MB, Downloads: 559)
minimal_adb_fastboot_v1.4.3_setup.zip (1003.62 KB, Downloads: 607)
2. Install the USB drivers (Skip if you already installed).

How to Enable Developer Mode:
1. Open "Settings".
2. Go to "About phone".
3. Tap on "MIUI version" 6-7 times.
4. Hurrah! Now you are a Developer.

How to Check My Current Bootloader Status from My Phone:
1. Open "Settings".
2. Now from "Settings" go to "Additional settings".
3. Then go to "Developer options".
4. Then go to "Mi Unlock status".
5. From here you can see the current bootloader status of your phone.


Steps to Enable USB Debugging:
1. From "Additional settings" go to "Developer options".
2. Enable "USB Debugging" from here.
3. Tap on "OK".

How to Lock Bootloader:
1. After enabling USB Debugging Mode boot your device into Fastboot Mode (First switch off your device then boot your device into fastboot mode by pressing Volume Down (-) + Power Button simultaneously or use ADB commands if you're an advanced user.)
2. Now connect your device to your PC via original Mi USB Cable.
3. If you have installed Minimal ADB and Fastboot setup then simply open it from your installed directory or if you are using ADB Binarry then click on the address/location bar as shown in the screenshot.
4. Type "CMD" and hit ENTER key from your keyboard.


5. Now enter the following command in the command prompt window which will show the serial number of your device and status of connection.

(From here I will use Minimal ADB and Fastboot, you can use ADB Binary also)
fastboot devices


From here also you can check your device status. Just simply enter following command in the command prompt window. If your bootloader is unlocked, you'll get the following status as shown in the below screenshot.
fastboot oem device-info


6. Now if you want to lock your bootloader again simply type the command below and press ENTER!
fastboot oem lock


Yippee!!! Your bootloader is now locked...

7. Now again enter the following command and see the result
fastboot oem device-info


8. Finally enter the following command to reboot your device
fastboot reboot


FAQ:
Q. Is there no chances to re-lock my bootloader if I have installed custom recovery?
A. Yes, you can but you will need to flash stock Mi Recovery zip via your custom recovery. Bootloaders should always be locked with stock recoveries.

That's all for today, see you again with another interesting tutorial. Hope you all like this thread. If you have any queries, you can ask me in the comments section, I will try to answer them...

Regards,
Akash Sarkar

Related Reading:

What's hot on Mi Community:

Learn more about MIUI

Rate

Number of participants 4 Experience +32 Pack Reason

View Rating Log

2018-07-11 23:44:42
Favorites389 RateRate
Tutorial For You
In the sea of knowledge, let us seek some oysters together. I'm here to share some tutorials on gadgets and software.
50 Article Description     1112 Subscribers
Subscribed
Subscribe

Master Bunny

Samarth Soni | from Redmi Note 5

#1

thanks for sharing this information
2018-07-12 11:13:26

Intern Moderator

Solver13 | from Redmi Note 4

#2

Truly Helpful Thread! Thanks For Sharing:-)
2018-07-12 11:14:55

Moderator

MiAkash Author |

#3

Solver13 replied at 2018-07-12 11:14:55
Truly Helpful Thread! Thanks For Sharing:-)

Thank you :)
2018-07-12 11:15:42
Akash Sarkar - A Mi Fan
Facebook |  Instagram

Read Only

1673857269 | from Redmi Note 5 Pro

#4

Great information
2018-07-12 11:31:58
sivakumar

Semi Pro Bunny

Daniel Massko | from Redmi 4A

#5

pum pumgg ez
2018-07-12 11:34:17
but how to install beta
2018-07-12 11:36:04
Mano Red

MIUI 10 Beta Tester

Kalpesh nagda | from Redmi Note 5 Pro

#7

thanks for sharing
2018-07-12 11:45:33

Pro Bunny

Nems... | from Redmi Note 5 Pro

#8

thanks for sharing
2018-07-12 11:50:52

Pro Bunny

Alwani1397 | from Redmi Note 5 Pro

#9

Nice thread, a much needed one,
Thanks a lot for the thread and info
2018-07-12 11:51:01

Moderator

meetgour | from Redmi Note 5 Pro

#10

Helpful! Thanks for sharing!!
2018-07-12 11:51:57
please sign in to reply.
Sign In Sign Up
3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
Shake!!Shake!!
Mi Explorers
Xiaomi 7th Birthday
Mi Campus Superstars Entry
Dec-100 replies in a month
1st Anniversary
Columnist
My Poster My Life
MIUI 9
MIUI 7th Anniversary
2 million registered members
Mi A1 Review Contest
Newbie Member
Diwali
Twitter Medal
Christmas 2017
2018 New Year Medal
ThrowBackWithMiCommunity
MIUI Instagram
2017 Xiaomi Annual Bill
400 000 пользователей
MIUI Beta Tester
Mi Community Updater
Color Your Planet
Big Change
Color Our Planet Game
April Participation
The Motivator
MIUI 10
Golden Mi Bunny
MIUI Subscriber
MIUI 8th Anniversary
Go Bunny Master
Eid Mubarak
5 Million Registered Users
Mi Music: 20 FREE Downloads
Ringtones Mania
10 Million Downloads
2019
Throwback With Mi 2018
Xiaomi's 9th Birthday

Copyright©2016-2019 Xiaomi.com, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list