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 .

Tips & Tricks

Tutorial For You

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

2018-07-11 14:14:42
69978 187

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.


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

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 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.) (4.49 MB, Downloads: 678) (1003.62 KB, Downloads: 759)
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

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...

Akash Sarkar

Related Reading:

What's hot on Mi Community:

Learn more about MIUI


Number of participants 4 Experience +32 Pack Reason

View Rating Log

2018-07-11 14:14:42
Favorites393 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     1220 Subscribers

Master Bunny

Samarth Soni | from Redmi Note 5


thanks for sharing this information
2018-07-12 01:43:26

Grandmaster Bunny

Solver13 | from Redmi Note 4


Truly Helpful Thread! Thanks For Sharing:-)
2018-07-12 01:44:55


MiAkash Author |


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

Thank you :)
2018-07-12 01:45:42
Error 404
Facebook | Instagram | Twitter

Read Only

1673857269 | from Redmi Note 5 Pro


Great information
2018-07-12 02:01:58

Semi Pro Bunny

Daniel Massko | from Redmi 4A


pum pumgg ez
2018-07-12 02:04:17
but how to install beta
2018-07-12 02:06:04
Mano Red

MIUI 10 Beta Tester

Kalpesh nagda | from Redmi Note 5 Pro


thanks for sharing
2018-07-12 02:15:33

Pro Bunny

Nems... | from Redmi Note 5 Pro


thanks for sharing
2018-07-12 02:20:52

Pro Bunny

Alwani1397 | from Redmi Note 5 Pro


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

Master Bunny

meetgour | from Redmi Note 5 Pro


Helpful! Thanks for sharing!!
2018-07-12 02:21: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
Mi Explorers
Xiaomi 7th Birthday
Mi Campus Superstars Entry
Dec-100 replies in a month
1st Anniversary
My Poster My Life
MIUI 7th Anniversary
2 million registered members
Mi A1 Review Contest
Newbie Member
Twitter Medal
Christmas 2017
2018 New Year Medal
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
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
Throwback With Mi 2018
Xiaomi's 9th Birthday
9 Years of MIUI

Read moreGet new
Copyright©2016-2019, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list