(guide) revert back to locked bootloader state from unofficial unlock - Xiaomi Redmi Note 3 Guides, News, & Discussion

Hello Guys i have created this thread to remove the confusion (cuz i was soo afraid) for those people who unofficially unlocked bootloader and then now wants to revert back to locked state as factory state.
There are many cases that the device got hard-bricked and only the solution is two pin method. It happens for unofficial unlock mostly I guess .
So revert back to full locked state please follow this tutorial. Its safe and 100 % working bacause i have tried and succeed
Procedure:
At first charge the phone to 50% and above (cuz flashing took half hour may be cuz i used mi flash tool beta).
Then download at first download a fastboot rom from official miui website. You can download stable as well as developer rom. I used stable though. Extract the rom. The rom will be in .tar format. Rename it to .tgz format and extract with winrar.
Then install mi flash latest version. Search other forums
Then install it. if you are having driver install problem please refer to other threads.
Then take your phone to fastboot mode. Turn off your phone then. Then press power and volume down buttom until fastboot logo comes.
Then take the phone to edl mode. Download this file first.
http://forum.xda-developers.com/attachment.php?attachmentid=3775693&d=1465328762
download it and connect the phone to fastboot and the press open edl.cmd in the extracted file of the downloaded file.
Then the phone goes to edl mode.
Then open device manager. Device manager shows Qualcomm bla bla qloader bla bla.. in portss section
Right click and choose update driver. Then browse to mi flash folder (where u installed mi flash) then source and third party and qualcomm and driver and select.
And update driver.
Now open Mi Flash Tool and click on browse.
Then browse the folder where u extracted that .tgz formal fastboot file. Its good to browse till images folder in fastboot extracted file.
Then press refresh in MI Flash and it shows some device.
At the bottom right corner of MI Flash there are three options. Select clean and lock option.
And the click on flash. Then wait for some time. Mine took 30 minutes lol. I dont know why, Should be in 5 minutes
After flasing processs completed remove the usb port from pc and the press the power buttom for 15 seconds till when you can feel vibration.
Then your phone will boot in factory state with locked bootloader.
Hit Thanks it it helped you

Torres.09 said:
Hello Guys i have created this thread to remove the confusion (cuz i was soo afraid) for those people who unofficially unlocked bootloader and then now wants to revert back to locked state as factory state.
There are many cases that the device got hard-bricked and only the solution is two pin method. It happens for unofficial unlock mostly I guess .
So revert back to full locked state please follow this tutorial. Its safe and 100 % working bacause i have tried and succeed
Procedure:
At first charge the phone to 50% and above (cuz flashing took half hour may be cuz i used mi flash tool beta).
Then download at first download a fastboot rom from official miui website. You can download stable as well as developer rom. I used stable though. Extract the rom. The rom will be in .tar format. Rename it to .tgz format and extract with winrar.
Then install mi flash latest version. Search other forums
Then install it. if you are having driver install problem please refer to other threads.
Then take your phone to fastboot mode. Turn off your phone then. Then press power and volume down buttom until fastboot logo comes.
Then take the phone to edl mode. Download this file first.
http://forum.xda-developers.com/attachment.php?attachmentid=3775693&d=1465328762
download it and connect the phone to fastboot and the press open edl.cmd in the extracted file of the downloaded file.
Then the phone goes to edl mode.
Then open device manager. Device manager shows Qualcomm bla bla qloader bla bla.. in portss section
Right click and choose update driver. Then browse to mi flash folder (where u installed mi flash) then source and third party and qualcomm and driver and select.
And update driver.
Now open Mi Flash Tool and click on browse.
Then browse the folder where u extracted that .tgz formal fastboot file. Its good to browse till images folder in fastboot extracted file.
Then press refresh in MI Flash and it shows some device.
At the bottom right corner of MI Flash there are three options. Select clean and lock option.
And the click on flash. Then wait for some time. Mine took 30 minutes lol. I dont know why, Should be in 5 minutes
After flasing processs completed remove the usb port from pc and the press the power buttom for 15 seconds till when you can feel vibration.
Then your phone will boot in factory state with locked bootloader.
Hit Thanks it it helped you
Click to expand...
Click to collapse
Will try

Related

Bootloop Mi Logo, only fastboot available

After a restart this morning I am in a bootloop. Only thing I'm able to enter stable is fastboot.
Tried to flash the stock fastboot rom but MiFlash and manually is giving me an error when trying to write the partition.
fastboot flash partition gpt_both0.bin
target reported max download size of 268435456 bytes
sending 'partition' (33 KB)...
OKAY [ 0.006s]
writing 'partition'...
FAILED (remote: failed to write partition)
If I flash TWRP through fastboot I can't enter it with volume up. If I use the bat version to flash TWRP, it restarts with TWRP but after a few seconds in TWRP it reboots into the bootloop.
Anyone any clue before I have to send my phone back to China :/
Use Mi Flash Tool - Install stock recovery
Its a common issue while using Custom recovery. so, to get life to your mobile you have to install stock recovery.
(search google if you cant able to find, because of xda limitation on New Users i cant post any external link here. Sorry!)
Step 1: Download MiFlash Tool & download your fastboot rom.
Step 2: Turn off the device. Press the Volume– key and the Power button at the same time to enter Fastboot mode. Then connect the device to the Windows PC/laptop via a micro USB cable
Step 3: Double click on the downloaded ROM file to decompress it. Open the file folder for the decompressed ROM pack, and copy its path on the computer.
Step 4: Decompress the MIUI ROM flashing tool downloaded in Step 1, and double click on it to install (if there is security warning, select 'Run'). After installation is completed, open MiFlash.exe and paste into the address bar the ROM file folder path copied in the last step.
Click on the first button (circled out in yellow) to Refresh, and MiFlash should automatically recognize the device. Then click the second button (circled out in red) to flash the ROM file to the device.
Step 5: Wait until the progress bar inside MiFlash turns fully green, which means the ROM has been successfully installed. Then your device should automatically boot to the new version.
Step 6: Wait till the phone boot up - at first it may take more than 5 Min.Be patient with it,
Note: Using MiFlash Tool :
At first try to flash without losing data, if doesn't helps, then select Flash All. (for my Redmi 2 prime it worked with flash all). If any error let me know in comment section.:good::good:
kalachar said:
Its a common issue while using Custom recovery. so, to get life to your mobile you have to install stock recovery.
(search google if you cant able to find, because of xda limitation on New Users i cant post any external link here. Sorry!)
Step 1: Download MiFlash Tool & download your fastboot rom.
Step 2: Turn off the device. Press the Volume– key and the Power button at the same time to enter Fastboot mode. Then connect the device to the Windows PC/laptop via a micro USB cable
Step 3: Double click on the downloaded ROM file to decompress it. Open the file folder for the decompressed ROM pack, and copy its path on the computer.
Step 4: Decompress the MIUI ROM flashing tool downloaded in Step 1, and double click on it to install (if there is security warning, select 'Run'). After installation is completed, open MiFlash.exe and paste into the address bar the ROM file folder path copied in the last step.
Click on the first button (circled out in yellow) to Refresh, and MiFlash should automatically recognize the device. Then click the second button (circled out in red) to flash the ROM file to the device.
Step 5: Wait until the progress bar inside MiFlash turns fully green, which means the ROM has been successfully installed. Then your device should automatically boot to the new version.
Step 6: Wait till the phone boot up - at first it may take more than 5 Min.Be patient with it,
Note: Using MiFlash Tool :
At first try to flash without losing data, if doesn't helps, then select Flash All. (for my Redmi 2 prime it worked with flash all). If any error let me know in comment section.:good::good:
Click to expand...
Click to collapse
Thanks for your suggestion kalachar.
MiFlash is giving me the same error though.
0x8000405: FAILED (remote:failed to write partition)
I managed to enter TWRP once without it rebooting, I checked everything and the problem seems to be nothing from internal memory can be mounted.
I could only mount persist and modem.
Try Full format,
Wipe>Format>type "Yes"
wait for it to complete and then reboot
if the problem still,try flash in Mi flash,.
Hope it useful,.
nothing happen after applying this method
kalachar said:
Its a common issue while using Custom recovery. so, to get life to your mobile you have to install stock recovery.
(search google if you cant able to find, because of xda limitation on New Users i cant post any external link here. Sorry!)
Step 1: Download MiFlash Tool & download your fastboot rom.
Step 2: Turn off the device. Press the Volume– key and the Power button at the same time to enter Fastboot mode. Then connect the device to the Windows PC/laptop via a micro USB cable
Step 3: Double click on the downloaded ROM file to decompress it. Open the file folder for the decompressed ROM pack, and copy its path on the computer.
Step 4: Decompress the MIUI ROM flashing tool downloaded in Step 1, and double click on it to install (if there is security warning, select 'Run'). After installation is completed, open MiFlash.exe and paste into the address bar the ROM file folder path copied in the last step.
Click on the first button (circled out in yellow) to Refresh, and MiFlash should automatically recognize the device. Then click the second button (circled out in red) to flash the ROM file to the device.
Step 5: Wait until the progress bar inside MiFlash turns fully green, which means the ROM has been successfully installed. Then your device should automatically boot to the new version.
Step 6: Wait till the phone boot up - at first it may take more than 5 Min.Be patient with it,
Note: Using MiFlash Tool :
At first try to flash without losing data, if doesn't helps, then select Flash All. (for my Redmi 2 prime it worked with flash all). If any error let me know in comment section.:good::good:
Click to expand...
Click to collapse
i have redmi 2 with 1 gb ram 8 gb rom so i was trying to root it so i have installed custom recovery and root the device and SU icon appears after boot then i open the super user but unfotunatelty i chose 'TWRP/CWM' instead of 'Normal and my phone reboot and now only back screen appears and I have tried this but nothing happen fastboot still there is there any method to make my mi work again.

Redmi 3 Pro Considerations - Flash global ROM with BOOTLOADER LOCKED

I've tried some things on my Xiaomi Redmi 3 Pro and I want to share them if helpful for someone.
I've done all this with Xiaomi.eu Rom and SMIUI
///// I'm not accountable for any problem on your phone, do it at your own risk! \\\\\​
1 - Button combinations (unplugged from pc):
vol+ & vol- & power = force shutdown if in fastboot or download mode, if powered-on it's a restart
vol- & power = from switched-off phone goes in fastboot (from there you can launch another combination: vol+&vol- while launche cmd: fastboot.exe reboot)
vol+ & power = preload\ bootload mode (the yellow screen where to choose recovery\ fastboot\ download mode)
2 - For any type of problem \brick \ bootloop be sure before about this:
A) if you run the phone in fastboot mode, check if you can see it in fastboot command line from pc (cmd: fastboot devices)
B) if you run the phone in download mode, check if you can see it from miflash
If these point are ok this means the pc is ready to see the phone if you softbrick it or it goes in bootloop.
You will be always able to run it in fastboot mode, then download mode, an flash any rom to the phone that works.
3 - What you need?
Install last version of MiFlash, here a guide: http://en.miui.com/thread-272376-1-1.html
Install MiPCSuite in english, here the link: http://pcsuite.mi.com/
If you have problems with ADB, install ADB drivers, here the link: http://forum.xda-developers.com/showthread.php?p=48915118#post48915118 or http://forum.xda-developers.com/showthread.php?t=2317790
If you have problems with hs-usb qdloader 9008 driver, try to install from here: http://www.androidbrick.com/download/qdloader-hs-usb-driver/
Download and upack Android.Image.Kitchen for Windows, from here: https://mega.nz/#!McAj2SZT!E4XS7II27BjkjSHS2vcBnE6Tgvl8IZBhCD2wEKBchpA
Download TWRP 3.0.2.0 for MiFlash: https://mega.nz/#!cF4VVQiY!zrq2DTQRBX3UHRPOXN1dDNWiTn5tnoPxUfrHF_Rsnq4
Download ROM from different links:
http://en.miui.com/a-234.html (miui china stock, BL Locked)
https://www.androidfilehost.com/?w=files&flid=36337 (Xiaomi.eu with Gapps, no Bloatware, BL unlocked)
http://smiui.net/kitchen.php(Xiaomi.eu + other stuff)
Install Notepad++
4 - Prepare ROM:
As suggested by the user Jack0190 there are ROMS where is not needed to mod this files, like for "Xiaomi redmi3 pro locked multilanguage" roms.
Searching on web you can find them quickly, just be aware that there are some roms that have problems with SIM recognize. This comes from an old Thai \ Indian MIUI.
I've seen first this thread on en.miui, http://en.miui.com/thread-276565-1-1.html , where explains how to modify ROM to change the bootloader check. The guide explains very good how to modify the "boot.img" file of roms.
So just follow those steps.
I've seen that you can do it for both types of rom, for Recovery and MiFlash too.
For the recovery ROM, you have a file to open in 7Zip, copy the "boot.img" from it, modify it as explained in the guide, and re-copy in the zip file again.
While for the one for Miflash, it's easier; extract the rom, copy the "boot.img" file from \image folder, modify it with, and change it in the original folder. Then flash it with Miflash.
5 - Connect phone in Fastboot with pc:
One thing that always will save you is the ability to connect phone in fastboot mode.
Before start the phone in fastboot mode with cable unplugged (point 1).
Once you've installed Miflash, go on it's directory folder (C:\Program Files\Xiaomi\MiPhone\), and run cmd from there (shift+right mouse click).
Connect phone to pc.
Then run command "fastboot.exe devices" and if the result under the line on left is a code, the phone is recognized
6 - Force Download Mode from fastboot:
To force the phone to go in dowload mode, first run it in fastboot (point 5), check if it's recognized (point 2-A), then type but don't run command "fastboot.exe reboot".
Now push vol+ & vol- in the same time, and now run the command.
If it runs in the right mode, you can see it's connected by device manager under "Ports (COM &LPT)" section.
You will see "qdloader 9008 driver" with a COM port installed. The same port you will see in Miflash if you run it and push the "refresh button".
7 - Flash Job:
A) First you need to flash the recovery, TWRP, and to do this you should already have done this things:
Install Miflash, MiPcSuit
Your phone is right seen in fastboot and in Miflash in download mode.
You have downloaded the right versione of TWRP for MiFlash.
B) Flash TWRP with Miflash
Select in Miflash the button "Browse" and go to the folder "\Image"where you have extracted the TWRP zip
Click "Refresh"
Click "Flash"
Wait to complete (If it fails sending hello packets, it's because it's too much time the phone is in download mode, in this case, switch it off, e restart in Download mode and re-do all )
C) Copy modified ROM:
Now, I've done this step by OTG connection but there are more ways to do it:
Connec and mount an USB Drive in OTG
Push it by ADB
Copy it by SD card
If the old ROM still works, copy it in MTP connection
if none of this options is available, flash the Rom with Miflash, flash again TWRP recovery, run recovery, wipe cache and dalvik (factory reset option under "Wipe") and try to run system, it should run last system flashed.
D) Flash modified rom by recovery
E) Restart in system (It could take long time, even 10 minutes, so just wait for it)
Thanks to all users\ people helped me with different guides from XDA and other forums.
I' m sorry for no image, but it's not an official guide.
If something is wrong I'll change it asap, but don't blame me, these are just advices.
If it's not enough clear, search it on web.
If there are grammar errors, the Image verification confirms "I'm not a robot"
If you don't find the answer, then it's 42.
After mod, i can flash rom update from recovery?
Inviato dal mio GT-I9505 utilizzando Tapatalk
Just wanted to say thank you - This guide works. I tried it with a new redmi 3 pro with locked bootloader. You can skip step 4 if you want to, because there are some prepared images available (search for "xiaomi redmi3 pro locked multilanguage" and you will find them).
Also to note: The first boot of the new system took some long time (~ 10-minutes), so don't get frustrated. As long as there's the android logo with the three dots wandering around, everything should work fine.
- Jack
RuLe89 said:
After mod, i can flash rom update from recovery?
Inviato dal mio GT-I9505 utilizzando Tapatalk
Click to expand...
Click to collapse
not sure about this, I've flashed the last version available, so i don't have updates for now to test.
But i think that it could overwrite files modified.
This is what in some guides tells.
Jack0190 said:
Just wanted to say thank you - This guide works. I tried it with a new redmi 3 pro with locked bootloader. You can skip step 4 if you want to, because there are some prepared images available (search for "xiaomi redmi3 pro locked multilanguage" and you will find them).
Also to note: The first boot of the new system took some long time (~ 10-minutes), so don't get frustrated. As long as there's the android logo with the three dots wandering around, everything should work fine.
- Jack
Click to expand...
Click to collapse
Thanks to you, I've updated with what told. I've tried some of ROMs for locked bootloader, but was an Indian \ Thai version, and I had issues with SIM, no recognize.
That's why it was needed for me to use other rom for unlocked bootloader.
Hi, thanks for the guide. It seems like it'd be the only decent I could come across for my problem.
The only thing is that everytime I try to flash any ROM/image through MiFlash, I get the error:
Code:
Error loading type libary/DLL.(0x80029c4a: wait port ready to use <time in seconds>)
So far I haven't found anything or anyone that could help me with this. Can any of you help me out here? That'd be much appreciated.
Thanks~
----------------------------------
::Edit::
Alright, turns out I just had to do this:
1. Uninstall the Qualcomm drivers
2. Reboot Windows into "test mode"/Disabled driver signature enforcement
3. Reinstall the Qualcomm drivers
4. Flash device (phone in download mode)
5. Be very pacient. Waiting through the phone's boot phase
(took about 10 minutes; if it takes more than 15 minutes, then something is probably wrong. Try to enter download mode and flash it again.)
6. Redmi 3 working again
Okay, so, this worked for me, it doesn't mean it'll necessarily work for you!
This was done with a locked bootloader and MiFlash 2015.10.28.0

[guide] how to fix totally dead redmi note 4 | stuck in bootloop | qfil flashing

Hello everyone, in today's guide I will tell you all how to fix bootloop problem in Redmi note 4
NOTE: THIS FIX IS FOR THOSE WHOSE PROBLEM DIDN'T GET FIXED EVEN AFTER FLASHING WITH MIFLASH
QFIL is a tool which is used to flash stock firmwares in Qualcomm smartphones.
Prerequisites:
1)Bricked Redmi note 4 (lol I guess you have that already if you are reading this)
2) Working USB cable (You really dont want yourself smashing your head and then finding out faulty cable)
3) QPST Version 2.7.438.3 (Google it)
4) Unlocked bootloader
5) Platform Tools (For passing OEM EDL command)
6) Stock fastboot MIUI ROM (IMPORTANT: Use V8.1.10.0.MCFMIDI from here: http://bigota.d.miui.com/V8.1.10.0....DI_20161228.0000.00_6.0_global_7557bfe334.tgz)
7)QDLoader HS-USB Driver for Redmi Note 4X
Note: I'm not responsible if you mess up your device the mentioned process helped me and others in fixing our devices. You yourself are responsible!
Steps:
1) Open QFIL tool from C:\Program Files\Qualcomm\QPST\bin or wherever you installed it. Run as administrator!
Note: Don't use older version QPST, because you will get an error message when writing userdata section.
2) In QFIL choose Flat Build option.
3) Make sure you you have extracted the above ROM file onto desktop
4) In QFIL tool browse and locate .mbn file
(Named like: prog_emmc_firehose_8953_ddr.mbn)
5) Click on Load XML and select rawprogram0.xml and patch0.xml inside your Fastboot ROM folder.
6) Now turn off your phone and enter Fastboot mode by pressing ans holding power button+vol down button. After that open platform tools folder downloaded above and right click opening cmd in that folder and write following command:
fastboot oem edl
And hit enter (The above command does require your bootloader to be unlocked so kindly keep that in mind before passing the command)
7) Your phone will exit Fastboot mode and red led will start blinking and your phone will be detected as COM port in QFIL tool.
8) At last hit download button, if you did everything right process should begin and end saying download complete.
9) You can now remove your phone and keep holding power button till it boots up. First boot will take some time.
Optional step 10) If you loose your IMEI in flashing process then you can flash your IMEI using Qualcomm IMEI tool (If you face problem in this then comment and i will come up with another guide regarding IMEI flashing)
Hope it helps, if yes be sure you hit that thumbs up button it gives me good feeling lol ?
Reply if you face any problem
Peace!
addymishra said:
Hello everyone, in today's guide I will tell you all how to fix bootloop problem in Redmi note 4
NOTE: THIS FIX IS FOR THOSE WHOSE PROBLEM DIDN'T GET FIXED EVEN AFTER FLASHING WITH MIFLASH
QFIL is a tool which is used to flash stock firmwares in Qualcomm smartphones.
Prerequisites:
1)Bricked Redmi note 4 (lol I guess you have that already if you are reading this)
2) Working USB cable (You really dont want yourself smashing your head and then finding out faulty cable)
3) QPST Version 2.7.438.3 (Google it)
4) Unlocked bootloader
5) Platform Tools (For passing OEM EDL command)
6) Stock fastboot MIUI ROM (IMPORTANT: Use V8.1.10.0.MCFMIDI from here: http://bigota.d.miui.com/V8.1.10.0....DI_20161228.0000.00_6.0_global_7557bfe334.tgz)
7)QDLoader HS-USB Driver for Redmi Note 4X
Note: I'm not responsible if you mess up your device the mentioned process helped me and others in fixing our devices. You yourself are responsible!
Steps:
1) Open QFIL tool from C:\Program Files\Qualcomm\QPST\bin or wherever you installed it. Run as administrator!
Note: Don't use older version QPST, because you will get an error message when writing userdata section.
2) In QFIL choose Flat Build option.
3) Make sure you you have extracted the above ROM file onto desktop
4) In QFIL tool browse and locate .mbn file
(Named like: prog_emmc_firehose_8953_ddr.mbn)
5) Click on Load XML and select rawprogram0.xml and patch0.xml inside your Fastboot ROM folder.
6) Now turn off your phone and enter Fastboot mode by pressing ans holding power button+vol down button. After that open platform tools folder downloaded above and right click opening cmd in that folder and write following command:
fastboot oem edl
And hit enter
7) Your phone will exit Fastboot mode and red led will start blinking and your phone will be detected as COM port in QFIL tool.
8) At last hit download button, if you did everything right process should begin and end saying download complete.
9) You can now remove your phone and keep holding power button till it boots up. First boot will take some time.
Optional step 10) If you loose your IMEI in flashing process then you can flash your IMEI using Qualcomm IMEI tool (If you face problem in this then comment and i will come up with another guide regarding IMEI flashing)
Hope it helps, if yes be sure you hit that thumbs up button it gives me good feeling lol
Reply if you face any problem
Peace!
Click to expand...
Click to collapse
Hi,
after your manual, download success, the device restarts, but it then gets stuck with the MI logo?
What can I do?
sieg
sieg01 said:
Hi,
after your manual, download success, the device restarts, but it then gets stuck with the MI logo?
What can I do?
sieg
Click to expand...
Click to collapse
Hello there,
First of all make sure that you are flashing the fastboot rom which I mentioned in the thread.
Now coming to your problem, open QFIL tool and open configuration panel. You will see many options, check for 'Erase before Download' option and make sure its unchecked then try flashing again. If the problem persist then send me screenshot of QFIL tool along with configuration.
All the best!
addymishra said:
Hello there,
First of all make sure that you are flashing the fastboot rom which I mentioned in the thread.
Now coming to your problem, open QFIL tool and open configuration panel. You will see many options, check for 'Erase before Download' option and make sure its unchecked then try flashing again. If the problem persist then send me screenshot of QFIL tool along with configuration.
All the best!
Click to expand...
Click to collapse
Hi again,
I have flashed again and in the " download configuration " I set " Erase before Download", please see the Attachment, unfortunately the same device restarts, but it then gets stuck with the MI logo?
sieg01 said:
Hi again,
I have flashed again and in the " download configuration " I set " Erase before Download", please see the Attachment, unfortunately the same device restarts, but it then gets stuck with the MI logo?
Click to expand...
Click to collapse
Dear, you DON'T NEED TO SELECT "ERASE BEFORE DOWNLOAD" !!! Now listen carefully what to do-:
1) Download mi flash tool and mi unlock tool
2) Your bootloader must be locked now so unlock it with mi unlock (Don't worry just use your mi account it will unlock successfully)
3) Once unlocked flash the fastboot rom in fastboot mode using mi flash tool. IMPORTANT: MAKE SURE YOU SELECT "CLEAN ALL" OPTION
4) Now when flashed your device will restart. Dont let it boot up. Press and hold power+volume down button till you enter into fastboot
5) From fastboot enter EDL mode using "fastboot oem edl" command. Red light will blink
6) Open QFIL and make sure "Erase before download" IS *NOT* SELECTED
7)Click download and you should be good to go
All the best
addymishra said:
Dear, you DON'T NEED TO SELECT "ERASE BEFORE DOWNLOAD" !!! Now listen carefully what to do-:
1) Download mi flash tool and mi unlock tool
2) Your bootloader must be locked now so unlock it with mi unlock (Don't worry just use your mi account it will unlock successfully)
3) Once unlocked flash the fastboot rom in fastboot mode using mi flash tool. IMPORTANT: MAKE SURE YOU SELECT "CLEAN ALL" OPTION
4) Now when flashed your device will restart. Dont let it boot up. Press and hold power+volume down button till you enter into fastboot
5) From fastboot enter EDL mode using "fastboot oem edl" command. Red light will blink
6) Open QFIL and make sure "Erase before download" IS *NOT* SELECTED
7)Click download and you should be good to go
All the best
Click to expand...
Click to collapse
1. My redmi is unlocked ( from Xiaomi )
2. MI flash tool don`t work, because I get error: can not found file flash_all.bat, so I dont`t use this tool
sieg01 said:
1. My redmi is unlocked ( from Xiaomi )
2. MI flash tool don`t work, because I get error: can not found file flash_all.bat, so I dont`t use this tool
Click to expand...
Click to collapse
In order to use mi flash correctly kindly place the fastboot rom in C: drive root directory then try flashing, it will work. Its a bug of mi flash
Hi I followed your all 9 steps in the first post. However, me too is stuck in 'mi' logo nothing happens waiting after 10 minutes
Then I followed the following steps, flashed by mi tool followed by QFIL. But my QFIL didn't have "ERASE BEFORE DOWNLOAD" option. I downloaded the exact QPST version 2.7.438.3 from gsmhosting forum.
Still the phone boots and stuck with 'mi' logo forever. I have tried flashing other ROMs like RR, lineageOS from TWRP but each of the ROM is stuck while booting . Only miuiPro "miuipro_v7.0_mido_v9.2.1.0_NCFCNEK.zip" manages to boot but keeps rebooting after every 2-3 seconds. My phone has been useless for 3 long days.
addymishra said:
Dear, you DON'T NEED TO SELECT "ERASE BEFORE DOWNLOAD" !!! Now listen carefully what to do-:
1) Download mi flash tool and mi unlock tool
2) Your bootloader must be locked now so unlock it with mi unlock (Don't worry just use your mi account it will unlock successfully)
3) Once unlocked flash the fastboot rom in fastboot mode using mi flash tool. IMPORTANT: MAKE SURE YOU SELECT "CLEAN ALL" OPTION
4) Now when flashed your device will restart. Dont let it boot up. Press and hold power+volume down button till you enter into fastboot
5) From fastboot enter EDL mode using "fastboot oem edl" command. Red light will blink
6) Open QFIL and make sure "Erase before download" IS *NOT* SELECTED
7)Click download and you should be good to go
All the best
Click to expand...
Click to collapse
biits1993 said:
Hi I followed your all 9 steps in the first post. However, me too is stuck in 'mi' logo nothing happens waiting after 10 minutes
Then I followed the following steps, flashed by mi tool followed by QFIL. But my QFIL didn't have "ERASE BEFORE DOWNLOAD" option. I downloaded the exact QPST version 2.7.438.3 from gsmhosting forum.
Still the phone boots and stuck with 'mi' logo forever. I have tried flashing other ROMs like RR, lineageOS from TWRP but each of the ROM is stuck while booting . Only miuiPro "miuipro_v7.0_mido_v9.2.1.0_NCFCNEK.zip" manages to boot but keeps rebooting after every 2-3 seconds. My phone has been useless for 3 long days.
Click to expand...
Click to collapse
Try downloading the lastest version from here:
https://androidmtk.com/download-qpst-flash-tool
Erase before download must be unchecked
And remember first boot does take some time so be patient a little. Hope it works!
addymishra said:
Try downloading the lastest version from here:
https://androidmtk.com/download-qpst-flash-tool
Erase before download must be unchecked
And remember first boot does take some time so be patient a little. Hope it works!
Click to expand...
Click to collapse
Hi, Thank you very much, I managed to boot the ROM using QFil , however in setup wizard I can't get past the getting device security info in mi account setup. Besides, dialogues for lots "app stopped working" keeps coming. and also there are frequent reboots
addymishra said:
In order to use mi flash correctly kindly place the fastboot rom in C: drive root directory then try flashing, it will work. Its a bug of mi flash
Click to expand...
Click to collapse
Hi,
II managed to flash successfully with MIflash tool, but after switching it on
do I have permanent boot loop with MI logo? Andere Fastboot ROM`s will MIflash nicht machen. Please look my Screenshot.
Greating
biits1993 said:
Hi, Thank you very much, I managed to boot the ROM using QFil , however in setup wizard I can't get past the getting device security info in mi account setup. Besides, dialogues for lots "app stopped working" keeps coming. and also there are frequent reboots
Click to expand...
Click to collapse
Strange :/ you can try miflash tool for that case. Download the lastest mi flash tool, enter into EDL mode using "fastboot oem edl" command then in mi flash drop down menu in left corner select "flash_factory.bat" and click flash. It will take around 400 seconds. Make sure you are in edl mode with red blinking light otherwise it will wipe your IMEI. Hope it works!
sieg01 said:
Hi,
II managed to flash successfully with MIflash tool, but after switching it on
do I have permanent boot loop with MI logo? Andere Fastboot ROM`s will MIflash nicht machen. Please look my Screenshot.
Greating
Click to expand...
Click to collapse
Are you able to enter into setup wizard? If not then try the procedure I posted above using factory flash. After flashing with mi flash once again try flashing with QFIL. It's sometimes hit or miss :/
addymishra said:
Are you able to enter into setup wizard? If not then try the procedure I posted above using factory flash. After flashing with mi flash once again try flashing with QFIL. It's sometimes hit or miss :/
Click to expand...
Click to collapse
Hi,
I don`t able to enter into setup wizard, because boot-loop, so I done following:
1. mi flash factory flash-successfully
2. mi flash flash once again-successfully
3. flashing with QFIL- successfully
After switch-on again boot loop every 22 seconds with mi-logo
Do you have any more tips for me?
Greating
sieg
sieg01 said:
Hi,
I don`t able to enter into setup wizard, because boot-loop, so I done following:
1. mi flash factory flash-successfully
2. mi flash flash once again-successfully
3. flashing with QFIL- successfully
After switch-on again boot loop every 22 seconds with mi-logo
Do you have any more tips for me?
Greating
sieg
Click to expand...
Click to collapse
Man, I think its some sort of hardware issue then. Or maybe your messed up your blobs or your partitions real bad and corrupted them. QFIL helped in my case. Got no more tips, maybe its time to visit service center brother One last shot you can give is to try flashing with QFIL first then with Mi Flash. That's last hope! All the best!
flash failed in QFIL please help
sohanaw said:
flash failed in QFIL please help
Click to expand...
Click to collapse
Which version of QFIL and which ROM are you flashing with? I managed to flash the said version in OP through QFIL without any error. However, other official versions like 9.xx fail to be flashed by QFIL
A solution that worked after all these troubles
Hi everyone,
This post is for those who are still struggling with 'cool' bootloop in Redmi note 4x irrespective of stock, custom ROMS, you are flashing.
Before all these steps I flashed "mido_global_images_V8.1.10.0.MCFMIDI_20161228.0000.00_6.0_global_7557bfe334.tgz" using QFIL first, then miFlash tool. I was greeted by "can't decrypt phone".
Refer to the OP
Then I flashed lazy_flasher and managed to boot into the stock ROM but couldn't get past the Mi account setup. Even my Keyboard app keeps stopping, so annoying.
The the below Steps I followed redeemed me of this agony powered by xiaomi:
1. Downloaded this firmware==>"global-mido-firmware-7.12.14.zip"
Mokee ROM==>"MK71.2-mido-201803080920-NIGHTLY"
open gapps arm-64, 7.1, pico
open gapps arm-64, 7.1, nano [BOTH] from gapps
2. flashed TWRP=3.1.1-0[official version] from the xda
Code:
fastboot flash recovery [name_of_recovery_image_of_twrp]
3. Entered into Recovery==>WIPE=>Advanced WIPE=> select all partitions==>WIPE[can leave Internal storage unchecked]
4. Then Format Data==>yes
5. Copied firmware, Mokee ROM, pico and nano gapps [4 items] to internal storage
6. Flashed downloaded firmware, then MOKEE ROM, then gapps-nano
7. Reboot to recovery
8. After entering Recovery, Reboot to system
Hopefully we will see mi logo, then Mokee robot animating soon enough. It will take you to setup wizard within 5-10 minutes, If you see any Google apps [Gboard in my case] stopping,
it may mean that google Play services were not installed properly[Don't know why]. In my case I couldn't set up Google account/framework first time. If it happens, go to settings,
enable developer options tapping BUILD version==>then enable USB debugging.
Then reboot to Recovery
Flash gapps-pico.
Do factory reset from Recovery, simple wipe.
Then reboot to System.[DON'T install TWRP as system app etc]
For me, this time I was able to setup google account from the setup wizard. Google service framework has been working without any issues. [ Again Don't know why]
This time I have been able to install my desired apps from playstore
Few more words:
Firstly, I tried flashing only pico, but I couldn't set up the google account, no matter how many times I reboot to recovery, wipe Dalvik-cache etc, then flash pico.
I described exactly what I did that worked out for me. There could be many possible orders, combinations, but I don't have time for that.
I tried to flash Alexy's "RR-N-v5.8.5-20180121mido_alexy.zip" ROM in combination with this firmware but it just will hang TWRP while flashing. only this MOKEE ROM worked with this firmware for me.
I wasted full 3 days for fixing this device. And no intention to tinker with it anymore, my communication has been in a mess!.
While in stock MIUI 'google *apps keeps stopping" just annoyed me as hell, so decided to switch, and after 3 days of disgusting 'Waiting period for bootloader UNLOCK' I couldn't even install a working stock
MIUI ROM now, maybe cheap hardware issue offered by Xiaomi. They have just made everything complex. This is my first and last device from them. My previous Moto G3 was amazing and would be with me had it not been stolen
Will be happy to help regarding this issue, and thank you the OP of this thread, who helped me realize that this device is still able to boot.
Wishing everyone in this note 4x trouble good luck!!
biits1993 said:
Hi everyone,
This post is for those who are still struggling with 'cool' bootloop in Redmi note 4x irrespective of stock, custom ROMS, you are flashing.
Before all these steps I flashed "mido_global_images_V8.1.10.0.MCFMIDI_20161228.0000.00_6.0_global_7557bfe334.tgz" using QFIL first, then miFlash tool. I was greeted by "can't decrypt phone".
Refer to the OP
Then I flashed lazy_flasher and managed to boot into the stock ROM but couldn't get past the Mi account setup. Even my Keyboard app keeps stopping, so annoying.
The the below Steps I followed redeemed me of this agony powered by xiaomi:
1. Downloaded this firmware==>"global-mido-firmware-7.12.14.zip"
Mokee ROM==>"MK71.2-mido-201803080920-NIGHTLY"
open gapps arm-64, 7.1, pico
open gapps arm-64, 7.1, nano [BOTH] from gapps
2. flashed TWRP=3.1.1-0[official version] from the xda
Code:
fastboot flash recovery [name_of_recovery_image_of_twrp]
3. Entered into Recovery==>WIPE=>Advanced WIPE=> select all partitions==>WIPE[can leave Internal storage unchecked]
4. Then Format Data==>yes
5. Copied firmware, Mokee ROM, pico and nano gapps [4 items] to internal storage
6. Flashed downloaded firmware, then MOKEE ROM, then gapps-nano
7. Reboot to recovery
8. After entering Recovery, Reboot to system
Hopefully we will see mi logo, then Mokee robot animating soon enough. It will take you to setup wizard within 5-10 minutes, If you see any Google apps [Gboard in my case] stopping,
it may mean that google Play services were not installed properly[Don't know why]. In my case I couldn't set up Google account/framework first time. If it happens, go to settings,
enable developer options tapping BUILD version==>then enable USB debugging.
Then reboot to Recovery
Flash gapps-pico.
Do factory reset from Recovery, simple wipe.
Then reboot to System.[DON'T install TWRP as system app etc]
For me, this time I was able to setup google account from the setup wizard. Google service framework has been working without any issues. [ Again Don't know why]
This time I have been able to install my desired apps from playstore
Few more words:
Firstly, I tried flashing only pico, but I couldn't set up the google account, no matter how many times I reboot to recovery, wipe Dalvik-cache etc, then flash pico.
I described exactly what I did that worked out for me. There could be many possible orders, combinations, but I don't have time for that.
I tried to flash Alexy's "RR-N-v5.8.5-20180121mido_alexy.zip" ROM in combination with this firmware but it just will hang TWRP while flashing. only this MOKEE ROM worked with this firmware for me.
I wasted full 3 days for fixing this device. And no intention to tinker with it anymore, my communication has been in a mess!.
While in stock MIUI 'google *apps keeps stopping" just annoyed me as hell, so decided to switch, and after 3 days of disgusting 'Waiting period for bootloader UNLOCK' I couldn't even install a working stock
MIUI ROM now, maybe cheap hardware issue offered by Xiaomi. They have just made everything complex. This is my first and last device from them. My previous Moto G3 was amazing and would be with me had it not been stolen
Will be happy to help regarding this issue, and thank you the OP of this thread, who helped me realize that this device is still able to boot.
Wishing everyone in this note 4x trouble good luck!!
Click to expand...
Click to collapse
will try this tonight, thanks bhai
sohanaw said:
will try this tonight, thanks bhai
Click to expand...
Click to collapse
Let me know bro what happens, hope it works for you
I wanted to use RR rom though, but in the end no ROM worked for me except this one. So I'm just happy with it.

[Guide] Returning to Android One

Assuming you have the needed drivers for Mi A2.
How to return to stock ROM (the safe way):
Download the latest Mi Flash from here
Download the stock ROM for Mi A2 from here
Download the Mi A2 toolkit from here
Step 1 - Put all the files in a folder and organize everything so you don't get confused.
Step 2 - Open the Mi A2 tool kit by opening the toolkit.bat and select 5, then select 2 (reboot into EDL).
Step 3 - Open the XiaoMiFlash.exe you downloaded (the one inside the folder, not the executable outside the folder, that one doesn't work) as administrator.
Step 4 - Press refresh and see if your phone gets detected.
Step 5 - Extract your stock ROM zip to a folder.
Step 6 - Select that stock ROM folder on Mi Flash, select clean all and press flash.
If you're getting errors while flashing (hello packet or object reference), simply hold POWER + Volume down until it restarts back to fastboot (it should be a black screen, don't worry its normal) then do Step 2, 4, and 6 again.
Step 7 - After flashing is complete, close Mi Flash and press POWER + Volume down to boot back to fastboot (it should be a black screen, don't worry its normal)
Step 8 - Extract your Stock ROM zip again but this time extract the contents to the same folder where's your fastboot and adb files (mine is C:\ADB for example)
Step 9 - Open the flash_all.bat file from where you extracted your Stock ROM zip (same folder where's your fastboot and adb files)
Step 10 - After the flashing is complete (if the phone reboots,press POWER + Volume down to boot back to fastboot), open the Mi A2 toolkit and select 1. Lock/Unlock Bootloader, then select 6 Lock flashing critical and lock your bootloader (a message should appear on your phone to lock your bootloader).
Step 11 - Boot back into fastboot again, open Mi A2 toolkit, select 1. Lock/Unlock Bootloader then select 5 lock flashing and lock your bootloader (a message should appear on your phone to lock your bootloader).
Step 12 - Let the phone restart and welcome back to Android One (remember to do your system updates since the Stock ROM you downloaded isn't the latest version).
Thanks mate, excellent tutorial, saved my life.
Excelent! By doing this i relock my BL and the message about unlocked phone on boot will disapear? Thx for the tutorial A LOT!
this don't works on arb 4 right?
felipedon said:
this don't works on arb 4 right?
Click to expand...
Click to collapse
Yes, if phone is updated to ARB 4 mean you can not revert to A2 or Android One. But still you can flash custom roms like PE and Havoc.
How to check if m phone works on arb 4 ?
polak13133 said:
How to check if m phone works on arb 4 ?
Click to expand...
Click to collapse
To check ARB version of your phone put the phone into fastboot and enter below code
fastboot getvar anti
Hi first thx for this awesome guide,but I'm facing a problem where the camera is stuck on black screen after back to stock rom,any solution?
Hello and thank you for the detailed guide. Just a question, after returning to stock, it seems when I boot up the phone it's entering in edl mode (vivration plus black screen, and when I quick press the power button it vibrates). If I hold the power button it will boot on system. Before I began messing arround with flashing, I juste had to press and hold the power button and the system would load. Now I have to press and hold, vibration, keeping holding and wait for a second light vibration to load the system. Is there something I'm missing?
Thanks.
jayreen said:
Hello and thank you for the detailed guide. Just a question, after returning to stock, it seems when I boot up the phone it's entering in edl mode (vivration plus black screen, and when I quick press the power button it vibrates). If I hold the power button it will boot on system. Before I began messing arround with flashing, I juste had to press and hold the power button and the system would load. Now I have to press and hold, vibration, keeping holding and wait for a second light vibration to load the system. Is there something I'm missing?
Thanks.
Click to expand...
Click to collapse
I have the same problem
Hello. i tried several times and i everytime i get "hello packet" error. i rebooted the machines three times and change the usb ports... i dont know what more to do. Any help?
Hey, im stuck to edl mode cant reboot the phone to fastboot or recovery and it shows QDloader 9008
Thank you so much! Battery was really bad on havoc so i decided to go back to stock. Folowed tutorial without relocking the bootloader and all is perfect. Cheers! ?
Hi
Mine just says flashing and time goes on and on how long does the flash take?
I won't be able to support anyone any longer, I sold my Mi A2 and got a Nokia 7 Plus.
However the guide that I wrote still applies just as normal if you're returning from MIUI and HAVE NOT locked the bootloader nor flashed an ARB enabled version.

Lenovo TB-X304L Bricked

Hello to all.
I have big problem with my tablet Lenovo Tab 4 10.
The phone is on constantly on bootloop.
I can only enter in fastboot mode.
Recovery mode and OS are not booting.
On my fastboot screen says Device state: locked
When i run command fastboot devices the devices is showed. I cant find solution and a way how to flash stock ROM. I download stock ROM with Lenovo Rescue and Smart Assistant. And tried with LMSA but program says cannot read all information from the phone. Is there anyone with same problem or with a solution
musicalen89 said:
Hello to all.
I have big problem with my tablet Lenovo Tab 4 10.
The phone is on constantly on bootloop.
I can only enter in fastboot mode.
Recovery mode and OS are not booting.
On my fastboot screen says Device state: locked
When i run command fastboot devices the devices is showed. I cant find solution and a way how to flash stock ROM. I download stock ROM with Lenovo Rescue and Smart Assistant. And tried with LMSA but program says cannot read all information from the phone. Is there anyone with same problem or with a solution
Click to expand...
Click to collapse
See don't panic I was in the exactly same condition a week before. I can feel you but thats what I can suggest you, to don't panic.
Just follow these steps-
1- Open lmsa and then go to downloaded section , there you can see the downloaded firmware , at below of the screen you can see a option of changing file location of the downloaded firmware,
Change the firmware location to the desktop for your easier access.
2- After that install the mi flash tool from the internet, and extract it in the pc desktop for easy access.
3- Open mi flash tool and select the downloaded firmware , you can select it by click on load firmware.
It can might say that the downloaded file is not a fastboot rom but you can ignore it.
4- Now click on the configurations option in the mi flash and there you can see a option of loading patch xml and raw xml , both of these files will be showed you have to just click on them.
5-Now , insert usb cable into your pc and then press both vol +,- simultaneously and insert the micro usb cable while keep pressing it .
6- Click on refresh and when you will see your device , just hit flash.
And it will be flashed in less than 5 min.
And you will have your device working again

Categories

Resources