We are starting so called “How To” Guides. As you may guess from this article’s headline our first guide will be to learn flashing global stable rom to our Xiaomi Mi5’s. Becouse of the nature of this method this will be also an unbrick guide, i will explain about this after we learn HOW TO ..

Before we begin, for device drivers to install without a problem, to install drivers that are not digitally signed, we are going to disable Windows driver enforcement. To do this :

  1. Click the Start Start menu and select Settings.
  2. Click Update and Security.
  3. Click on Recovery.
  4. Click Restart now under Advanced Startup.
  5. Click Troubleshoot.
  6. Click Advanced options.
  7. Click Startup Settings.
  8. Click on Restart.
  9. On the Startup Settings screen press 7 or F7 to disable driver signature enforcement.

Your computer will restart and you will be able to install non-digitally signed drivers. Keep in mind that if you restart your computer again the driver signature enforcement will be re-enabled.

Second, we need to install adb on our computers, for that we will use program called “adb setup“, thanks to Snoop05 from XDA-Developers, this will enable adb and fastboot commands to work on our systems. It will also install necessary adb drivers. There are many ways to do that but what is more important about Snoop05’s solution is that we can use adb and fastboot commands system-wide, this means our old “command prompt” will turn to accept this commands, no need to work in “adb” folders like we used before.

Last step before we begin our guide is to enable “usb debugging” on our phone’s. In this example Xiaomi Mi5. Talking about usb debugging, i strongly advice to all users out there, please do “enable” usb debugging as first thing and keep it that way, dont turn it off. Saying this to be more safe for future problems. I mean in some bricks, this can be becouse of a wrong app setup, can be because of a false rooting way or even non-user related OTA update. Having usb debugging open is very crucial to rescue our phones from such disasters. Just keep in ming, i will explain more in the future.

On Xiaomi phones to enable usb debugging, go to settings>about phone and click “MIUI version” couple of times till you see “you are a developer” message. Then back to settings>Additional settings>Developer opitons>USB debugging, click it and allow. Your system will install “adb” drivers. Now open command prompt and type :

“adb devices”

Look at your phone for the “Allow USB debugging?” message, select “Always allow from this computer” and click ok. If you forget to allow from phone the command will return “unauthorized”, if ok you will see your phone as “device” and we are ready to start our guide.

adb devices


This guide is for locked bootloaders, no need  to wait for the unlocking procedure to flash this official rom. For unlocked bootloaders the method is almost the same, i’ll explain it too.

Mi5 Global Stable MIUI

Xiaomi MiFlash Flashing Software

Let’s download those two. First is our rom, second is our flasher Xiaomi’s Miflash. Before we install Miflash to our computer open the command prompt and type this command :

“adb reboot edl”



This command will reboot our Mi5 to “Qualcomm HS-USB Qdloader” mode, this is Qualcomm’s service port on most Snapdragon based phones. Your phone will be completely dark, so nothing will be seen on the screen, this is very normal. Here we will use this port to flash our rom, you may see this port in some “brick” situations too, if you have accidently corrupted some important partitions for example. So as you may guess now, this method can be used for unbricking our Qualcomm Snapdragon based Xiaomi’s too. If you face that kind of brick you can use this guide to rescue your phone, you will just change the rom, rest will be the same. For Xiaomi’s, rescue roms are so called “fastboot” roms and you can find them under this link :


In my computer all drivers are installed. Your Pc will have a new unknown device under device manager after you reboot your phone to EDL (emergency download mode). Ignore it and start to setup Miflash that you downloaded, Miflash will install necessary drivers to your system , so dont forget choose “Install this driver software anyway” option when it asks, twice, and after it finishes you will see a new port named Qualcomm HS-USB Qdloader 9008 in your device manager too. The driver path will be “C:\Program Files (x86)\Xiaomi\MiPhone\Qualcomm\Driver”, in case you want/need to install your drivers again.





After you see your new EDL port, you now open Miflash itself. Click “refresh” button and you’ll see your port there. Then click “Browse” and choose your downloaded rom folder please (unzip it before you that). It will look like this :



As you can see in above picture, there are some options under the Miflash window. “Flash all”, “Flash all except storage” and “Flash all except data and storage”. If you want to wipe everything in your phone and do a clean flash choose first one, if you want to keep your data in your storage (like pictures or What’s Up folder etc), choose second one. When you are ready click “flash” button.



It took 155 seconds for me to flash our new rom, this is my computer of course, i wonder how long it will take on your PC’s. Let’s compare and leave a comment. You can ask anything you want in comments, i will try to answer them all. After you see “The operation completed succesfully” under “Status” section press your phone’s power button and boot it up. If you unplug the USB cable before it finishes you will brick your phone ! But, remember what i told, dont fear, unbricking prosedure is the same, just repeat all steps again.

For unlocked bootloaders, every step is the same, except, you dont need to boot your Xiaomi to EDL/Qualcomm HS-USB Qdloader 9008 mode,  just reboot your phone in “fastboot” mode while pressing “volume down-” button while you are powering it. Then repeat Miflash steps again.

Think of a brick situation that you can’t boot your Xiaomi Mi5, that you can boot to fastboot mode only. In this case we have an other fastboot command that will help us to unbrick our phone, just type this command in command prompt :

“fastboot oem edl”

Your phone will boot in EDL mode again, rest is the same..




Remember that i have told you to leave “usb debugging” on no matter what ? Let me explain it now. In case you bricked your phone and it does not boot normaly, in case your phone is stuck at Mi logo and you dont have “fatboot mode” either. Check your device manager for “ADB  Interface”. If its there, just use this guide, starting from “adb reboot edl” command step and rest is the same. Now you see why leaving usb debugging “on” is so important ? This little trick can save us our phone back in just 155 seconds !

So, again, dont let the headline of this article confuse you, you can use this method for every Qualcomm Snapdragon based Xiaomi phone including your Redmi Note 3 Pro (SD) or Redmi 3/Pro etc., except “fastboot oem edl” command, this command will only work on some new Xiaomi’s..

See you in the next “How To” article.


UPDATE : If you cant put your Mi5 into EDL mode because of the new version roms, shame on Xiaomi they locked all the fastboot and adb “edl” commands, here is the magic trick !! Tested it myself and i confirm it works.. Thanks to Rotnym Myntor from miui forum, amazing finding..




Copyright © 2016 by androidbrick.com. All rights reserved.

Leave a Reply

Please Login to comment
20 Comment threads
64 Thread replies
Most reacted comment
Hottest comment thread
20 Comment authors
Recent comment authors
En Yeniler Eskiler Beğenilenler

what to do if debugging is off and the phone is bricked only edl ?


But i cant enter fastboot mode… argh


Second question. Should I try your Androidbrick tool instead of MiFalsh? If so, do I need a password to unpack it? Thank you. Brendan


My Xiaomi Mi A1 seems to be frozen in EDL mode. It shows as Qualcomm HS-USB QDLoader 9008 and the MiFlash program sees it at Com 3. When I try to flash the stock rom, I get an error at the beginning saying that it “cannot receive hello packet”. Any idea how to proceed?
Many thanks for your help.


My Mi5S died out of sudden. I’ve been using it for 1yr+ and it died on last Sunday. I didnt do anything special with the phone. I’m just playing COC and out of sudden i found that the phone is hang. So I click on the power button once to turn off the screen. Then, the phone never come back anymore. Always at black screen no matter i long pressed the power button or together with the volume button. Charging the phone does not show any light, but the phone still heat up. I connected my phone to my laptop… Read more »


Hocam tekrar merhabalar.

1) Öncelikle ADByi çalıştırabilmem için (yanlışım varsa lütfen düzeltin) aygıt yöneticisinde bir ADB DEVICE tanımış olması lazım diye düşünüyorum. “https://prntscr.com/gs6hwc” Malesef ADB DEVICE yok.

2) Buna rağmen CMDden “adb devices” komutunu çalıştırdığımda “https://prntscr.com/gs6jaq” linkteki gibi listelenen hiçbir cihaz malesef olmuyor. Sürücülerdeki “Qualcomm HS-USB Diagnostic 9006 (COM3)” sürücüsünü ADB Device olarak sürücü zorlaması ile tanıttım ama bir değişiklik malesef olmadı.

Yine tıkandım hocam. El cevap bu fakire 🙂 Yardımlarınız ve paylaştığınız limitsiz bilgiler için tekrar çok teşekkür ediyorum. Saygılarımla…


Hi, i have complete the guide but after the complete of “mi flash process” the phone don’t boot up…

Pavel Suslikov

My Redmi 4X (3+32) hardbrick. Always black screen, flash led.
I has flash QPST eMMC Softvare Download, but not search “Flash programmer”.
Please, help me unbrick my device, thanks!

Aurel Sobieraj

Could you help me please I have a bricked mi5 with Qualcomm HS-USB QDLoader 9008. I flash rom with mi flash and all done succesful but when i power on mi5 after flashing still black screan any resolve please help me ?

Ergin Demir
Ergin Demir

Osman abi merhaba,
Bende Mi5 var ikinci el aldım, internet üzerinden aldım alan şahıs cihazın mi hesap şifresi unutulduğunu söyledi, cihazda problem yok mi hesabına giriş yapılmıyor. Miui 7 var üzerinde. Güncellesem hesap şifresi isteyecek. Ben Miui 8 kurmak istiyorum, kursam şifre istediğindebunu bypass etmenin bir yolu var mı?
Bir de miui forumda bir moderator bana deep flash kablosuyla miflashtan flash all seçeneği seçip flashlarsam hesabın komple kalkacağını söylüyor. Güvenemedim. Var mıdır aslı?
Kolay gelsin, iyi geceler…

darren weekes

hey there, i have a MI5 i think its bricked? screen wont come on light fades reds and green at times… this is my first time to unbrick my Mi5, my computer doesnt recognize the mi5 and comes up Android… then sometimes it comes up mi5 on the usb port but keeps disconnecting anyway to walk me through it

ArbyZ D.M

Hi Yazar,i have a rn3 with a blinking red led(i dont know what is the name of this state),in device manager i have the port QDLoader 9008(COM3),when i enter the adb devices command i get “List of devices attached” and then 2 blank lines(it doesnt see my phone),how can i fix it and where can i download prog_emmc_firehose_8974.mbn file (or the package).

Budiman Daeli

Hi there Im using mi4c is dead conditions it’s won’ turn on, can’t fastboot mode, no charging progress, but still detect on my pc as QUALCOMM DRIVER 9008 and it’s just red blinking while moment when i plug-in charger and gone after 2-3 min but when i push power button a little bit longer it’ just blinking again I have try to flashing with miflash tool 2015 using fastboot rom dev china but it not work still dead conditions, that’s all, what the problem with my mi4c can it revive again or something to do? Thanks for your time, and… Read more »

Rokas Balsys
Guilherme Klug

Well, I’m from Brazil, and my m5 smartphone did not crash and I turned it off, and I already changed his ROM once and it was in the beta when it happened, literally it brickou once, and it does not go into fastboot, but it recognizes the Drive of any 9008, plus of the error in the part of the miflash, have some other method?

rafat khan
rafat khan

I have Phone redmi note 4g single sim. Phone bricked no fastboot no recovery no red light nothing .when i connect to pc it shows RELINK HS-USB QDLOADER 9008 by default when i try to flash with mi tool its load some files then says WAIT TO CONNECT 59 seconds then a message pop up press F8 while boot .i tried to “disable driver signature enforcement” but the problem still same….need help plz ..i m using win 7

shashank revaskar
shashank revaskar

After runing
Adb devices
My phone redmi note 4g india is not getting detected
Please tell what to do
At that time i have put my phone in download mode

Subrata Subrata

Love to share that i flashed my mi5(3gb,32gb) from a fake chinese rom to global stable with this tutorial. Also thanks to @androidbrick for supporting me with additional tips over facebook chatting! Love u guys! 😀

Iwan Setiawan

i used try this method, my phone success fhalsing but now still hardbrick. please help solve my phone.

Mat Pengging

I have Phone redmi note 4g single sim. Phone bricked no fastboot no recovery Just Red blink when i plug tolong leptop.
I flash with miflash and rom dior v.7

OS. Windows 8.1 32bit runing uder “disable driver signature enforcement”

Logo mi flashtool
Reboot tolong mini kernet
Wait device connect 0
Wait device connect 59

Flash unsucessfully
Please help solve this

Mat Pengging