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 : Click the Start menu and select Settings. Click Update and Security. Click on Recovery. Click Restart now under Advanced Startup. Click Troubleshoot. Click Advanced options. Click Startup Settings. Click on Restart. 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. 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 7.5.1.0 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 : http://en.miui.com/a-234.html 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. ... Share and winFacebookTwitterRedditPinterestTelegramSkype Like this:Like Loading... 0 0 votes Article Rating Subscribe Login Notify of new follow-up comments new replies to my comments Please login to comment This site uses Akismet to reduce spam. Learn how your comment data is processed. 86 Comments Newest Oldest Most Voted Inline Feedbacks View all comments Zaniar Mohammady 1 year ago hello sir my poco f1 bricked while flashing rom by mi flash tools and like some other freinds here i face with some errors like can not recive hello pocket and can not read com port . it is on edl mod all time even by force edl mod i face with these errors . i have formated its hars but issue remains . and no tecnisian even best of them in my country can help me . i see your website and if it is possible add me to your facebook by this id saman,teh.3 or your telegram by this number +9809185769162 .i hope you can help me it is really mad me this problem and there is no xiaomi center in my country . thanks my freind AndroidBrick Author Reply to Zaniar Mohammady 1 year ago It’s because of Xiaomi itself. Does not allow us to unbrick Xiaomi’s like we did before. You need “authorized mi account” to be able to use Miflash in EDL mode. Dima Singer 3 years ago what to do if debugging is off and the phone is bricked only edl ? AndroidBrick Author Reply to Dima Singer 3 years ago “adb reboot edl” command does not work on latest roms anyway. Only EDL means you are ready to flash. Dima Singer Reply to AndroidBrick 3 years ago im getting cant receive hello paket, i tried so many different wys, but everytime the same error, please help me AndroidBrick Author Reply to Dima Singer 3 years ago ? How should I guess your phone’s condition? Dima Singer Reply to AndroidBrick 3 years ago its not working, im always getting error with hello paket Regine Sooi Kuan 3 years ago But i cant enter fastboot mode… argh Fr Brendan O'Connor 3 years ago Second question. Should I try your Androidbrick tool instead of MiFalsh? If so, do I need a password to unpack it? Thank you. Brendan AndroidBrick Author Reply to Fr Brendan O'Connor 3 years ago That tool is very old and does not support 64-bit chips sorry. Fr Brendan O'Connor 3 years ago Hello, 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. Brendan AndroidBrick Author Reply to Fr Brendan O'Connor 3 years ago Press power button long enough that the phone/port resets and try again please. Fr Brendan O'Connor Reply to AndroidBrick 3 years ago Thanks. I have been trying that for a long time without success. My plan now is to let the battery drain so that the phone shuts down. I hope I can then get it into fastboot mode and flash the stock rom. Brendan AndroidBrick Author Reply to Fr Brendan O'Connor 3 years ago Let me know what happens, greetings. Andrius Žilėnas Reply to Fr Brendan O'Connor 3 years ago that’s very bad idea to drain – better open back lid and disconnect battery Regine Sooi Kuan 3 years ago 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 and it shows “QUSB_BULK”. Is that means my phone become brick? Can I unbrick it using your step? Thanks. AndroidBrick Author Reply to Regine Sooi Kuan 3 years ago Seems like a hardware problem but why not to try ? Just install Miflash, will setup necessary drivers. Regine Sooi Kuan Reply to AndroidBrick 3 years ago But I can’t enter Fastboot mode. Not sure how? AndroidBrick Author Reply to Regine Sooi Kuan 3 years ago No need to fastboot mode ! Just install Qualcomm drivers and “QUSB_BULK” will be a port, just like flashing over fastboot with MiFlash do the same. Ethem Kocataş 3 years ago 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… Alberto Boscaro 3 years ago Hi, i have complete the guide but after the complete of “mi flash process” the phone don’t boot up… Cheers AndroidBrick Author Reply to Alberto Boscaro 3 years ago How did you bricked your phone in first place, end which model ? Pavel Suslikov 3 years ago Hello. 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! AndroidBrick Author Reply to Pavel Suslikov 3 years ago Use MiFlash with your fastboot rom.. Pavel Suslikov Reply to AndroidBrick 3 years ago Device start only EDL. Mode fastboot is not work. MiFlash see port with devive, but not flash him (not receive hello packet). AndroidBrick Author Reply to Pavel Suslikov 3 years ago Long press power key and reset the port/phone and try again please. Pavel Suslikov Reply to AndroidBrick 3 years ago Don’t work 🙁 Press 15, 30, 60 sec and 5 min. Port reset after 30 sec, but device not flash. Press power+vol- also does not change anything 🙁 AndroidBrick Author Reply to Pavel Suslikov 3 years ago How did your 4X bricked in first place ? Aurel Sobieraj 4 years ago 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 ? AndroidBrick Author Reply to Aurel Sobieraj 4 years ago Bricked how ? Ergin Demir 4 years ago 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… AndroidBrick Author Reply to Ergin Demir 4 years ago Tabi ki yok aslı, klasik miui forum sallaması. 1-2 box Mi hesabı devre dışı bırakarak telefonu kullanmaya imkan veriyor, ben de var onlardan biri, PC tabanlı bir çözüm yok yani şimdilik, Xiaomi her yeni romda işi daha sıkıya alıyor. Bootloader kilidi açık mı bu arada ? O bir avantaj çünkü. Selamlar. Ergin Demir Reply to AndroidBrick 4 years ago Maalesef abi bootloader kilitli. Gsmdevelopers diye bir forumda modified firmware buldum fakat korktum flashlamaya. Sanırım firmwarelerde cihazı kilitleyen uygulamaları kaldırmışlar. Hint sitesi, pek güvenilir gelmedi. AndroidBrick Author Reply to Ergin Demir 4 years ago Kurabilirsiniz test için, bu telefonlar ölmez hiç bir şekilde Ergin bey. darren weekes 4 years ago 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 AndroidBrick Author Reply to darren weekes 4 years ago And this happened after what ? darren weekes Reply to AndroidBrick 4 years ago i got locked out my mi5 old email and password so i tried to reboot the whole thing then this happen AndroidBrick Author Reply to darren weekes 4 years ago You see the video under the article ? That way you can put your Mi5 in EDL mode again, or google for “Xiaomi DIY/EDL cable”, you will see what i mean. Rest is just like in the article. darren weekes Reply to AndroidBrick 4 years ago now its telling me i need to unlock it what do i do now AndroidBrick Author Reply to darren weekes 4 years ago Trying fastboot method ? You need to open EDL/9008 port with that trick in the video, in that mode you can flash even with locked bootloader. darren weekes Reply to AndroidBrick 4 years ago i did all that but my screen wont come back on and now a green light is fading in and out? and when i plug in the usb to my computer it comes up under android still AndroidBrick Author Reply to darren weekes 4 years ago Can you send me a screenshot of a successfull EDL flash with MiFlash ? ArbyZ D.M 4 years ago 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). AndroidBrick Author Reply to ArbyZ D.M 4 years ago You can find it in your variant’s “fastboot” rom. Budiman Daeli 4 years ago 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 sorry about my english, please feedback ?? AndroidBrick Author Reply to Budiman Daeli 4 years ago Still Qualcomm 9008 after flashing ? Flashing ends without error ? Budiman Daeli Reply to AndroidBrick 4 years ago First time flashing using fastboot rom china dev 6 1.2 sucssed nothing error but after that im try to turn on it’s still dead, after three times try not work i just using combination push vol+ power on for a long time it’s just red blinking again but here a new problem im try flasing again using custom rom unofficial 7.0.02xx LXCDxxx maybe its work but a while after i flash it’s show error “not enough storage” it’s quite worse im try to change to fastboot rom it’s same notif error, okay that’s all Can solve the proble like thats? thanks for feedback ?? AndroidBrick Author Reply to Budiman Daeli 4 years ago Try every fastboot rom of your variant selecting “flash all” from MiFlash. Make sure that your battery is not full emty. Rokas Balsys 4 years ago I have Xiaomi Mi5 with locked bootloader. I tried DIY deep flash cable method but my device doen’t recognise that. So then I went to tear down method, so with this method my computer recognise Qualcomm HS-USB QDLoader 9008. But when I try to flash it with miflash tool I get an error. LINK: https://gm1.ggpht.com/9zWRD5BcOeendU6cDtBNN4suYbYbne9_f77gkgPHwFwU1NO2FyICw4qldk1I5kUB8YoqpcIDtMNcWwRClQaHJbtGtF8EUr2ZF_xIJpqwZ5RA1f3fHSIo1cKQ_CntuA7qn9lfKi4-rV_5A70lBt5kvnF0DKMg3XoNsg2XjW9t1GfGqY31OUzPXuzNi_Og_OuFKK0HZDn6vWYkMMgSSlbKWfoF69uLGOqDbH6IH-y5q-PDG75HFSsmIcc57LRDlb98BqIDJkJWag7W1JSMepCmAUTkbbCeFK0vxdt_iiVcm2wBN-v80zx-R1gC7bAZkoXZt2ppYikoV077P8vJbGbtryFZt5tQcLnyjCPCXz9GnJoz9X-a40zZNbnBGe0rwKaWJpexrCZ2rG11rbIJMzYzN-GIQ3_A9di1ReaPjO3zSZk9Ae6To7i-goVaajJzwR0SwvLpXklCmTABhkzwEGnZLJDBEZD24tGbNuAsZlJEhmnpN3QBOb1sAZcrTBeNYxnKh9UiOEL-G_THDlYU4cl668zlWXBrnjXi5YIKlXO844KGDX41XkR2UP_vC0crxzpwDkuXN9HkX4XOYWLPJENJYpHa-rhywW4XYoMzuzQvJXkGZll_cR2xHL46420-rQ7KDrrj8ALhDI3Fn3qMNDfVr5-GGPRV3BNSHBPUSiuXY6dMBDUY4_CCwaP77vxMbx681Uf9fNdBzVdt=w1920-h925-l75-ft androidbrick Author Reply to Rokas Balsys 4 years ago “operation completed successfuly” is not an error, i mean whats behind it, thats very normal, you should press power button a couple of seconds after this, maybe battery fully discharged ? Guilherme Klug 4 years ago 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? androidbrick Author Reply to Guilherme Klug 4 years ago M5 ? rafat khan 4 years ago 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 androidbrick Author Reply to rafat khan 4 years ago First of all please go to a 64 bit Win 8.1 or Win 10 (using those since i started to unbrick), then install latest Qualcomm drivers from my “downloads” and see what happens. PS : How did you bricked your phone in first place ? shashank revaskar 4 years ago 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 androidbrick Author Reply to shashank revaskar 4 years ago Check your Xiaomi adb drivers please, this is Windows stuff.. shashank revaskar Reply to androidbrick 4 years ago i used miflash to flash my redmi note 4g india but it gives error unspecified error(0x80004005): FAILED (remote: fail to erase partition) please guide me step by step to resolve it . androidbrick Author Reply to shashank revaskar 4 years ago Step by step ? 🙂 Forget everything, use a 64bit Win 8.1 or Win 10, article is already written STEP by STEP ! shashank revaskar Reply to androidbrick 4 years ago when i use fastboot devices it showes my phone and when i use adb devices it donot show my device and one more point my phone is dead i have not enable debug please guide me androidbrick Author Reply to shashank revaskar 4 years ago You need to put the phone into EDL/9008 mode. Google for “edl test points” of your model. shashank revaskar Reply to androidbrick 4 years ago when i remove my battery and short the test point after that in device manager i can see qualcomm hs-usbqdloader 9008 but when i try to flash it the miflash tool stops working please guide me further androidbrick Author Reply to shashank revaskar 4 years ago MiFlash stops ? Crashes ? shashank revaskar Reply to androidbrick 4 years ago yes shashank revaskar Reply to shashank revaskar 4 years ago yes please tell me why this error , what is the reason behind it . and is this issue due to software or hardware unspecified error(0x80004005): FAILED (remote: fail to erase partition) androidbrick Author Reply to shashank revaskar 4 years ago What is your Windows OS ? shashank revaskar Reply to shashank revaskar 4 years ago windows 10 64 bit shashank revaskar Reply to shashank revaskar 4 years ago Please guide what should i do androidbrick Author Reply to shashank revaskar 4 years ago Please google for error(0x80004005), never had that error myself, must be a Windows or driver problem.. shashank revaskar Reply to shashank revaskar 4 years ago I googled it but no useful information i am getting Can you tell me what is mean my ’emmc_appboot. mbn’ I found this in an developer rom androidbrick Author Reply to shashank revaskar 4 years ago its aboot partititon shashank revaskar Reply to shashank revaskar 4 years ago now i am getting an error one of the installers of this device cannot perform installation at this time.(0x800f0246: wait device connect 59) i have disable my driver signature enforcement ,still after 68 sec i get an error to disable it. now what please guide androidbrick Author Reply to shashank revaskar 4 years ago Put your Windows in test mode please. shashank revaskar Reply to shashank revaskar 4 years ago is there any say so that i can delete the partition and re create it. as i tried to erase recovery partition it says fail to erase partition i think may be there some issue in my internal storage. androidbrick Author Reply to shashank revaskar 4 years ago Your parition table is gone = brick = very normal, all these methods are repairing this. You should read and learn more from my articles. shashank revaskar Reply to shashank revaskar 4 years ago I understand your article But the issue is that i phone is not usb debugging enabled . Please do you have any other solution over it androidbrick Author Reply to shashank revaskar 4 years ago Greetings to India.. shashank revaskar Reply to shashank revaskar 4 years ago nice man i like you can you send me friend request on fb search this email id in fb search shashank.revaskar@gmail.com androidbrick Author Reply to shashank revaskar 4 years ago Thank you Subrata Subrata 4 years ago 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 4 years ago i used try this method, my phone success fhalsing but now still hardbrick. please help solve my phone. androidbrick Author Reply to Iwan Setiawan 4 years ago Hardbrick = Qualcomm 9008 ? How was it bricked in first place and your phone model ? Iwan Setiawan Reply to androidbrick 4 years ago yes, Hardbrick = Qualcomm 9008, no fastboot, no recovery mode, my phone xiaomi mi5, still brick. androidbrick Author Reply to Iwan Setiawan 4 years ago What error do you get on which step ? Load More Comments