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

MIUI Tips & Tricks

[] [Official Flashing Guide] - How to Unlock the Bootloader and flash Xiaomi Phones using Fastboot Mode

2019-02-07 06:32:51
70486 38
OFFICIAL FLASHING GUIDE
HOW TO UNLOCK THE BOOTLOADER AND FLASH XIAOMI PHONES USING FASTBOOT MODE

Dear Mi Fans,

I decided to come up with an Official Flashing Guide that can be helpful to anyone wondering on how to flash Xiaomi Phones using Fastboot Mode, and therefore a Fastboot Rom (.tgz).

First of all, let me share with you some useful information related to Bootloader and Fastboot.

BOOTLOADER

The bootloader is the component in the operating system of a smartphone (or a computer, for that matter) that is, in general terms, instructs the operating system (Android, iOS, Linux, Windows, etc) kernel to boot normally.

As you may know, all the latest Xiaomi smartphones now come with a locked bootloader.
But, what does it mean?

If you are able to modify the bootloader of your device, then you are able to load whatever (supported) operating system you want. That means “unlocked bootloader”.

A “locked bootloader”, which is intentionally LOCKED by the manufacturer or the cell phone operator, would not allow you to modify that bootloader. Android devices come with locked bootloaders for a reason. It’s not just that carriers and manufacturers want to own your hardware and prevent you from installing custom ROMS on it – although they do – there are good security reasons.

A device with a locked bootloader will only boot the operating system currently on it. You can’t install a custom operating system – the bootloader will refuse to load it.

FASTBOOT MODE

Fastboot is a tool/protocol for writing data directly to your phone's flash memory. In practical use, it is used to flash images such as recoveries, bootloaders, and kernels to your Android device.
On Xiaomi devices, you can access to Fastboot mode following these steps:
  • Turn OFF your Xiaomi Phone.
  • Press and hold the Volume Down and Power button.
  • The phone will now boot into Fastboot mode.
  • Once you see your Fastboot screen, you can now connect your phone to your PC and access it via the Fastboot tool.

XiaoMiFlash

To unlock the bootloader on Xiaomi devices and flash Fastboot ROMS via Fastboot Mode, you will need to use Xiaomi Official flashing tool "XiaoMiFlash". This tool works only on unlocked bootloader devices.

I have divided this thread into two guides, one is for unlocking the bootloader and flashing a Fastboot ROM, the other one is for flashing a Fastboot ROM on already unlocked devices.

GUIDE 1 - Flashing Guide for Locked Bootloader

Note: A Windows PC/laptop will be needed for the following steps. Make sure that your device is fully charged or has enough power (70% Battery) for this process. This guide will help you update your device to the latest MIUI ROM version. All user data will be purged in this process. Please back up your data and think twice before proceeding. Follow these procedures at your own risk.

1) BOOTLOADER UNLOCK PERMISSION

The first thing to do is to unlock the Fastboot of your device. In order to do that, you will need permissions. Click here to apply to unlock your device. Remember, after you unlock the device, it will become less secure. Your personal data might be leaked or lost.



Fill the application form with your forum nickname. You will get an SMS notification when you got the permission to unlock.
You will then be able to download the Mi Unlock app on your PC.
Please note, time to get permission to unlock may vary.


2) NECESSARY FILES:

Once you received the unlock permission you will need to download 3 files:

  • Xiaomi Flashing Tool Miflash v2018.5.28.0 -  Link
  • Mi Unlock to unlock your device Bootloader - Link
  • Fastboot ROM (.tgz) for your device - Link

3) ROM File:

Make sure to download the right Fastboot ROM (.tgz). Once you downloaded it, decompress it and move its content into C: folder on your computer.

4) DEVICE IN FASTBOOT MODE:

Now we need to boot your device in Fastboot Mode, as already explained above, follow these steps:
  • Turn OFF your Xiaomi Phone.
  • Press and hold the Volume Down and Power button.
  • The phone will now boot into Fastboot mode.
  • Once you see your Fastboot screen, you can now connect your phone to your PC and access it via the Fastboot tool.



5) Mi Unlock:

Now that we are in Fastboot Mode we can unlock the bootloader of the device. To do so we will need Mi Unlock, that you downloaded in Step 2. Remember?
Open and run it.



Agree to the disclaimer if you intend to proceed.



Log in with your Mi Account and Password



Let Mi Unlock check if you Mi Account has permissions.



Phone Connected and ready to unlock. Click "Unlock".



Click "Unlock anyway"





You just successfully unlocked your device.

6) FLASHING:

You don’t need to reboot your device after the unlock. However, if you reboot your device, make sure you then follow Step 4 again to go into Fastboot Mode.

Decompress Xiaomi Flashing Tool Miflash v2018.5.28.0 downloaded in Step 2, and double click on it to install it (if there is security warning, select 'Run').
After the installation is completed, open MiFlash.exe

This is how the app looks like:



Now you need to copy the directory of the Fastboot ROM from Step 3 and paste it in the top address bar as in the picture below. Alternatively, you can click select and browse the Fastboot ROM, make sure you select all images.



As your device should be in Fastboot Mode and connected to the computer already, click Refresh to refresh the app and detect the device.
If your device is correctly set in Fastboot Mode, with bootloader unlocked and connected to the computer, MiFlash should automatically recognise the device as in the image below.
If this doesn’t happen, go back and make sure you followed all the steps correctly.



At the bottom of the window, select the type of flash option that you prefer.

Clean all will erase all the data present in your phone leaving your bootloader unlocked.

Save user data will erase all the data present in your phone without wiping the data partition, leaving your bootloader unlocked.

Clean all and lock will erase all the data present in your phone and lock your bootloader.


Now click “Flash” to Flash the ROM file into the device.





Your device will now automatically reboot running the new ROM.

GUIDE 2 - Flashing Guide for Unlocked Bootloader

Note: A Windows PC/laptop will be needed for the following steps. Make sure that your device is fully charged or has enough power (70% Battery) for this process. This guide will help you update your device to the latest MIUI ROM version. All user data will be purged in this process. Please back up your data and think twice before proceeding. Follow these procedures at your own risk.

1) NECESSARY FILES

You will need to download 2 files only:

  • Xiaomi Flashing Tool Miflash v2018.5.28.0 -  Link
  • Fastboot ROM (.tgz) for your device - Link

2) ROM File

Make sure to download the right Fastboot ROM (.tgz). Once you downloaded it, decompress it and move its content into C: folder on your computer.

3) DEVICE IN FASTBOOT MODE

Now we need to boot your device in Fastboot Mode, as already explained above, follow these steps:
  • Turn OFF your Xiaomi Phone.
  • Press and hold the Volume Down and Power button.
  • The phone will now boot into Fastboot mode.
  • Once you see your Fastboot screen, you can now connect your phone to your PC and access to it via the Fastboot tool.



4) FLASHING

Decompress Xiaomi Flashing Tool Miflash v2018.5.28.0 downloaded in Step1, and double click on it to install it (if there is security warning, select 'Run').
After the installation is completed, open MiFlash.exe

This is how the app looks like:



Now you need to copy the directory of the Fastboot ROM from Step 2 and paste it in the top address bar as in the picture below. Alternatively, you can click select and browse the Fastboot ROM, make sure you select all images.



As your device should be in Fastboot Mode and connected to the computer already, click Refresh to refresh the app and detect the device.
If your device is correctly set in Fastboot Mode, with bootloader unlocked and connected to the computer, MiFlash should automatically recognise the device as in the image below.
If this doesn’t happen, go back and make sure you followed all the steps correctly.



At the bottom of the window, select the type of flash option that you prefer.

Clean all will erase all the data present in your phone leaving your bootloader unlocked.

Save user data will erase all the data present in your phone without wiping the data partition, leaving your bootloader unlocked.

Clean all and lock will erase all the data present in your phone and lock your bootloader.


Now click “Flash” to Flash the ROM file into the device.





Your device will now automatically reboot running the new ROM.

I hope you will find this guide useful.

Source:
All credits go to msalauddins, en.miui BD Community Moderator who wrote this fantastic guide.



Rate

Number of participants 2 Experience +2 Pack Reason

View Rating Log

2019-02-07 06:32:51
Favorites61 RateRate

Moderador

GunplaMad | from app

#1

Fantastic! Thank Alessandro.. Gives me something to do tonight..
2019-02-07 09:46:32
I'd be super interested to see if people replace the OS on the Mi Tab 4 with a straight Android OS of some sort, rather than MIUI - I'm dying to play Fortnite on it even though the specs are there hardware-wise, it won't work.. at least yet.
2019-02-07 10:21:16

Pro Bunny

tomachas | from app

#3

Unreal! Many thanks for this step by step guide.
2019-02-07 10:25:04

News Reporter

spud77 | from app

#4

I was advised to check 'clean all 'and NOT 'clean all and lock' because if something goes wrong you might not be able to unlock it again and if you can't unlock it you have upgraded your phone to a brick
2019-02-08 08:01:26
spud77 replied at 2019-02-08 13:01:26
I was advised to check 'clean all 'and NOT 'clean all and lock' because if something goes wrong you  ...

Hey Spud, you're right. It is suggested to lock the bootloader afterwards for security reasons and I never had problems with that option but people may want to leave it unlocked if unsure.

I added a description of the 3 options, thank you!

2019-02-08 08:25:42

Pro Bunny

Cartwheelbob | from app

#6

I'm stuck at the 1st hurdle. in developer options on the phone it won't associate. keep getting the message on this screenshot. any advice?
2019-02-08 09:06:02

News Reporter

spud77 | from app

#7

Cartwheelbob
I'm stuck at the 1st hurdle. in developer options on the phone it won't associate. keep getting the  ...



on your phone log out of your mi account and log back in ,that happened to me too
2019-02-08 09:53:31

Pro Bunny

Zethazed | from app

#8

i needed something like this few years ago!!! good to have it now. Xiaomi made so many steps forward, I am so proud of it!!!
2019-02-08 18:16:53

Rookie Bunny

5160736632 | from app

#9

Not Able to Use Volte in Phone So plz click on this link
https://youtu.be/f-ndh1ZMsYs
2019-02-19 21:45:43

Semi Pro Bunny

drgunlove | from app

#10

Great in depth thread! Thanks for taking the time to compile it.
2019-02-21 10:02:56
please sign in to reply.
Sign In Sign Up

Alessandro_

Mi Comm team

  • Followers

    837

  • Threads

    234

  • Replies

    145

  • Points

    8809

Check-in 3 jours
Check-in 7 jours
Check-in 21 jours
Check-in 40 jours
Mi 8 Pro
Community Advisor
2018 Christmas Model
Message in a bottle
Suited and Booted
Mi Explorers Mi MIX 3
Throw Back with Mi 2018
5K Users UK
Valentines Day
10k
9thBirthday
Mi Bunny Winner
Redmi Note 7 Into Space
PhotoChallenge
Android Q
Xiaomi Band
X-Men
15K UK
Fortune 500
MIUI 9th Birthday
Global Community
9T Pro Launch
Gamer Medal
30K UK
HALLOWEEN 2019

Read moreGet new
Copyright©2010-2020 Xiaomi.com, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list