How To Guide How to revert back to stock firmware. - Xiaomi Mi 11

Hello everyone,
This will be a quick guide how to back to stock rom. If are using custom firmware and recovery and want to feel again the stability of stock firmware here you are. Everything is in the video description, and everything is explained in video.
Steps:
All your data will be lost, make backup before you start!
1. Open Xiaomi website and download your fastboot firmware by tapping flashing guide and fastboot update.
2. Download Mi Flash Tool
3. Unzip both downloaded files and move them to Volume C: of your PC in created folder without any intervals in name.
4. Open Mi Flash and browse for firmware
5. Turn off your phone and boot in fastboot mode by holding volume down + power buttons and connect to your PC with usb cable(better use original one)
6. Press refresh on Mi flash tool and your phone should appear if not install drivers from drivers tab. If still not appear try disable drivers signature enforcement in windows.
7. In Mi Flash bottom right corner select clean all(if you want to keep your bootloader unlock) or clean all and lock(if you want to lock your bootloader)
8. Wait patiently. Keep in mind first boot takes more time.
FOLLOW VIDEO INSTRUCTIONS CAREFULLY!
Check in System Hacks youtube channel for videos like "How to unlock bootloader" and "How to install custom recovery and rom".

Related

Alternative SIM Unlock (Try if nothing else works)

After searching for hours and finding links to links and threads with broken links I figured I'd help out anyone who finds themselves in my situation.
I'll assume you already know that your warranty is void. If you visit this site you may as well already know that much
Start here if your bootloader is locked​
First thing you want to do is download HTC Sync for your drivers here.
Plug it in and wait for it to connect. Some times disabling HTC Sync in the settings helps get it going. If it just won't start, go to your device manager and delete(uninstall) the driver for it. It's usually under USB Host or something similar.
Go to your settings and disable fast reboot, then power off your phone. If you don't do this you may have to wait an additional 10 seconds after it starts booting.
Now go to HTC Dev's Unlock Bootloader section and from the dropdown menu select the last option "All other supported phones". If you do not have an account you'll be prompted to register. Do it, it's free. From there follow their guide and you'll be supplied with a file to flash that will unlock your bootloader.
Once you have this file save it from the email to your adb/fastboot folder and make sure it's named Unlock_Code.bin then while in fastboot mode in the phone you want to give the command to flash it
Code:
fastboot flash unlocktoken Unlock_code.bin
Congrats! You now have an unlocked Bootloader. You can see this in the bootloader (vol- and power) screen at the top. It will now say "Unlocked" highlighted in purple.
Start here if your bootloader is unlocked but you are S-on​
Before we start we need to obtain root and get a custom recovery. Since we're already back in the bootloader checking to see if we're unlocked let's go to fastboot again. Now take that file I just linked you and put it in with the others from before in the ADB/Fastboot folder and rename it to "recovery.img". Go back to the command prompt window and type this code in:
Code:
fastboot flash recovery recovery.img
*Note* if you did not rename the file to recovery.img then this code will not work.
Once this is finished you'll still be in the bootloader so let's take if for a spin! Select Bootloader with the volume button and press power to select it. Now go down to "Recovery" and press power. Once you leave here and reboot to system it will ask if you want to have root because it's nice like that. Swipe the bar for yes, cancel for no. It's not really important now but you can stop there if you don't want the SIM Unlock.
Now for getting rid of S-on.
S-on seems to be some sort of secondary lock. I believe it stops you from flashing custom roms... whatever, we don't want to be locked out from our own device! Let's get rid of it with Firewater!
At this point it's probably easier to point you to a more thorough guide. Here.
Start here if your bootloader is unlocked and you are S-off​
At this point I want to point you to the bottom where all the links are. Download the 4.1 rom and the RUU flash tool. These are relatively big files so they can download while you finish reading.
If you're like me the RUU tool will not work for you on a 4.3 rom so what we're going to do is flash the 4.1 rom via TWRP.
First take the 4.1 rom you downloaded and put it in the root directory of your SD card. If you want to test it (I didn't but I put it there for you) you can also flash the touch screen img through fastboot. If not, continue on with the rest of the guide.
Power down and hold vol- and power to get into your bootloader. Use vol- to select recovery and press power to enter. Now we want to wipe data and do a factory reset so tap "Wipe" and slide the bar. Once this is done tap "Back" and the back button on the bottom right. Next, tap Install and scroll down to EclipticOne.zip (I used 3.0) tap it and slide the bar to install. It takes about 3 minutes. Once it's sucessful go ahead and reboot to system.
Now you'll notice the touchscreen is broken. Not to fear, we can fix that by flashing the firmware for 4.1 with the RUU program. It acts like a setup at first but it's a firmware flashing tool. Just follow the directions and wait (around 6 minutes for me but it says 10).
But wait! We're still not done! This removed our root so we want to let it boot up completely then go back to our recovery and on exiting (reboot into system) it will ask if we want to have root. Slide the bar to accept and wait for boot. Once it does find the SuperSU app and open it. It will tell you you're not done yet so select TWRP to let it install itself for you.
Now we're at the final stretch! Search the Play Store for Sprint Unlock Helper and download it. Open it up and follow the instructions there and... Well I'm still not there yet so give me a minute... Currently rebooting from TWRP root right now.
Okay, so it worked! Also, I had flashed a changed OMAD file in the begining and when I touched simlock it didn't work but I put in a sim card and changed to GSM so... Hell yeah. Hopefully this works for you too!
Link for Firewater
http://firewater-soff.com/instructions/
Firewater Guide link
http://forum.xda-developers.com/showthread.php?t=2632351
Link for HTC Dev
http://www.htcdev.com/bootloader/
Link for Sprint TWRP
http://forum.xda-developers.com/showthread.php?t=2652498
Link for RUU Flashing Tool
http://forum.xda-developers.com/showthread.php?t=2508907
Link for 4.1 ROM
http://forum.xda-developers.com/showthread.php?t=2324338
Link for 4.1 Touch Screen Firmware
http://forum.xda-developers.com/showthread.php?p=46225907

[How-To] Rooted Stock or CM12 with Locked Bootloader for SGP621 using giefroot

Disclaimer: This procedure involves a higher risk than normal to brick your device. If you are not really familiar with flashtool please do not attempt to do this! I am not resposible for bricked devices, World War III or your exploding cats!
Also you acknowledge this points:
- This tutorial includes flashing the system partition of a firmware that is for a different device (Z3 Phone D6603)
- At some point your screen will not display anything
- This will not work on non-LTE versions of the Tablet (SGP611 and SGP612). Instructions for SGP611 can be found there.
- You also will loose all of you data, so please make a Backup.
If you are still sure you want to do this then here are the Steps:
1. Get the firmware ftf (SGP621_23.0.1.A.0.167_CE.ftf) for the SGP621 (for example from here or here)
2. Get a vulnerable firmware ftf (D6603_23.0.A.2.93_Generic_20GLOBAL.ftf) for the Xperia Z3 D6603 (for example from here or here)
3. Get the patched giefroot version for our device here
4. Open Flashtool and select flash. Then select flashmode and press OK
5. Select the 23.0.A.2.93 firmware and select to NOT wipe anything (see Picture 1). In the Exclude mark everything BUT system then start the flash process. If you do something wrong here you ran a VERY HIGH risk of bricking your device permanently
6. Put your device in flash mode (hold volume down and plug the device in) -> Wait until flash is finished and restart your device
7. Start your device - you'll notice black bars on the left and right of the picture
8. It should boot up and display lots of errors, but still function
9. Go into Settings -> Backup and Reset -> Factory data reset and make a factory reset from there (It seems wiping in flashtool does not work for some people)
10. Do initial configuration and select enable adb debug and allow mock location in developer options
11. Select Security -> Unknown Sources (If you do not do this, giefroot will not work)
12. Open a shell/command prompt and try if adb shell works and brings you to your device <- This step is important because here you authorize the device for adb access that you need later, please select to authorize the connected computer permanently when asked to do so
13. Open Flashtool and select flash. Then select flashmode and press OK
14 Select the 23.0.A.2.93 firmware and select to NOT wipe anything (see Picture 2). In the Exclude mark everything BUT kernel then start the flash process. If you do something wrong here you ran a VERY HIGH risk of bricking your device permanently
15. Put your device in flash mode (hold volume down and plug the device in) -> Wait until flash is finished and restart your device
16. Start your device and notice that the Screen stays pitch black, but you can hear the starting Sound
17. Once the tablet has started, go into the folder where you extracted giefroot and launch the install.bat
18. Wait till it is finished and tells you that you achived root (The device will reboot once while rooting, this is normal)
19. Open Flashtool and select flash. Then select flashmode and press OK
20. Select the SGP621_23.0.1.A.0.167_CE.ftf. Select to NOT wipe anything (see Picture 3). In the Exclude mark everything BUT kernel then start the flash process.
21. Put your device in flash mode (hold volume down and plug the device in) -> Wait until flash is finished and restart your device
22. Congratulation. After rebooting you should have a rooted SGP621 with the system of a D6603.
23. Now backup your TA with the tool from here
24. Unlock the bootloader via the instructions from Sony here. Do this only if you have your TA partition backed up!
To install CyanogenMod 12 nightly:
25. Download a CM12 nightly build from here.
26. Unpack the boot.img from the downloaded zip file
27. Go into fastboot mode (press volume up and plug device into computer until led flashes blue).
28. Issue 'fastboot flash boot /path/to/boot.img'
29. Issue 'fastboot reboot'
30. Once the led gets purple press volume down to get into recovery
31. Select install -> install via adb
32. Issue 'adb sideload /path/to/downloaded-zip.zip'
33. Wipe data and cache
34. Reboot and enjoy CyanogenMod
To install rooted Stock:
25. Open Flashtool and select flash. Then select flashmode and press OK
26. Select the SGP621_23.0.1.A.0.167_CE.ftf. Leave everything as it is and start the flash process.
27. Put your device in flash mode (hold volume down and plug the device in) -> Wait until flash is finished and restart your device
28. Get the advanced stock kernel from here, boot into fastboot mode, execute 'fastboot flash boot /path/to/the/Z3TC-stock-twrp.img'
29. Download RicDefeat from here.
30. Reboot the device and while booting once the led goes purple press the volume down key.
31. In the recovery tap on Advanced and Install with ADB and swipe to activate ADB
32. Issue 'adb sideload /path/to/RICDefeat.zip' (If sideloading does not work, put the zip file on your sd card and install it from there)
33. After that is finished, exit the recovery. It will ask you if you want to root. Answer yes and exit.
34. Open Flashtool again and select flash. Then select flashmode and press OK
35. Select the SGP621_23.0.1.A.0.167_CE.ftf. Select to NOT wipe anything (see Picture 3). In the Exclude mark everything BUT kernel then start the flash process.
36. Put your device in flash mode (hold volume down and plug the device in) -> Wait until flash is finished and restart your device
37. Restore your TA Backup and enjoy root on stock.
Congratulations, you now have a rooted device with either stock or CM12
Update Log
Update 1: I verified that Backup of TA works by reflashing it and checking if DRM is still intact in Service Menu.
Update 2: Changed instructions so wiping is done from the booted firmware directly, because for some users it was not possible to flash userdata from flashtool
Update 3: Added step 11 to enable Unknown Sources as otherwise giefroot will not work
Update 4: Added mirrors for the ftf files
Update 5: Added information to step 12 because it is important to authorize the device
Update 6: Added tutorial link
Update 7: Added tutorial for stock and CM12
Update 8: Update cause new giefroot is able to root our kernel
Thanks to zxz0O0 for giefroot and DevShaft for TA Backup
Good Luck and Have Fun
Your awesome man and thank you I'll give it a try
---------- Post added at 04:12 PM ---------- Previous post was at 03:52 PM ----------
hi boss I don't know if you could make a video on how to do it some of us are not that smart. so if you could please thanks
some screenshots for the "worst" steps too
jaime4272 said:
Your awesome man and thank you I'll give it a try
---------- Post added at 04:12 PM ---------- Previous post was at 03:52 PM ----------
hi boss I don't know if you could make a video on how to do it some of us are not that smart. so if you could please thanks
Click to expand...
Click to collapse
The instructions are very detailed, if you aren't that smart, as you put it, you should not do this process.
I don't know if I will have time to make a video, but I will do some screenshots in a few hours once I am back on my PC
rooting
i suggest taking out variables and automate the entire rooting process. i.e creating a .bat file or program.
why?
i dare say there will be noobs who will screw up the process and brick their tablets.then come crying in xda asking for solutions.
we are dealing with a fw frm another device(even though its in the same family) so there are bound to be risks involved.might as well preempt the possibility of dealing with a grief stricken noob and jus write a rooting progam....
need help with errors
lowtraxx can you tell me what's going on here. I've tried 4 times and I get this error. could you tell what am I doing wrong. I have been following you instructions but I cant get pass the first stage.
jaime4272 said:
lowtraxx can you tell me what's going on here. I've tried 4 times and I get this error. could you tell what am I doing wrong. I have been following you instructions but I cant get pass the first stage.
Click to expand...
Click to collapse
It seems system flashes okay, but the wipe of userdata fails. Could you please try to instead of wiping everything to wipe nothing and only flash system. After that reboot the tablet and you should get a normal bootup with lots of errors. Then go into Settings -> Backup and Reset and make a factory data reset. Then after that finished the tablet reboots and you should get no more errors. Then follow the rest of the steps.
Update: I also changed the tutorial to reflect that problem.
frostmore said:
i suggest taking out variables and automate the entire rooting process. i.e creating a .bat file or program.
why?
i dare say there will be noobs who will screw up the process and brick their tablets.then come crying in xda asking for solutions.
we are dealing with a fw frm another device(even though its in the same family) so there are bound to be risks involved.might as well preempt the possibility of dealing with a grief stricken noob and jus write a rooting progam....
Click to expand...
Click to collapse
I will try to do just that once I have the time. I just wanted to share the way as soon as I could so others that are experienced with flashtool (hence the big red disclaimer ) could try it out while I refine the proccess.
great i will try this!
Hope will succeed. by the way you have mirrors?
infinitylook said:
Hope will succeed. by the way you have mirrors?
Click to expand...
Click to collapse
Mirrors:
D6603_23.0.A.2.93_Generic_20GLOBAL.ftf
SGP621_23.0.1.A.0.167_CE.ftf
great lowtraxx! thank you very very very much it' s a really good workaround!
hi I have run into a little problem after rooting and trying to flash the spg621 rom back it looks like it doesn't and still on z3 and wifi and Bluetooth wont work any idea?
---------- Post added at 10:31 AM ---------- Previous post was at 09:55 AM ----------
when running on cmd giefroot when it says press any key to continue do I just let it be or do I press any key
Follow the giefroot instructions and press a key. For the Wifi and Bluetooth issues; If you flash a update zip you will need to do a factory reset, because otherwise your device could act funny, as configuration data from the D6603 is still there and needs to be erased.
hth
Working for me!
I've managed to get my device back onto rooted stock firmware with locked bootloader and the DRM keys intact. Created a guide for this here.
thank you. ill keep trying even thought i'm a hard time but ill get to it thanks
jaime4272 said:
thank you. ill keep trying even thought i'm a hard time but ill get to it thanks
Click to expand...
Click to collapse
Do not despair. It works, as proven by the people in this thread. You will work it out. For flashing to rooted stock use the tutorial from @CubicU07 in this post.
well I did manage to root even thought I took me some time. but thanks to you lowtraxx I was able to root and backup TA next I will follow his instructions for unloched BL then restore. thanks
Hello, did anybody got it work with the 32gb wifi modell? Thanks a lot
CubicU07 said:
Working for me!
I also managed to get back to rooted stock via the following steps after obtaining root:
1. Backup TA partition using Backup TA.
2. Return to stock unrooted by flashing the SGP621 rom using FlashTool without changing any of the options.
3. Unlock the bootloader (There are various ways to do this, including using FlashTool, just Google for it).
4. Flash the Advanced Stock Kernel by krabappel2548 using FlashTool in FastBoot mode.
5. Download the SuperSU.
6. Using PRFCreator on the SGP621 rom and the SuperSU zip, create a flashable stock rom zip.
7. Copy the resulting zip onto your device.
8. Boot into TWRP on your device and flash the zip.
9. Once complete, restore the TA partition using TA Backup
Note: Restoring TA partition without going back to stock kernel will soft brick your device, thus the need for steps 5 to 8 to return to stock kernel, while retaining root at the same time. This however, means that you lose custom recovery. So if you prefer having custom recovery over getting your DRM keys back into the device and restoring functionality like X-Reality, then skip steps 5 to 9 altogether..
Update: Unfortunately, after a bit of testing, I realized that the root I ended up with, following steps I listed, was not properly installed. I wasn't able to mount system in R/W mode in Root Explorer nor install BusyBox and it seemed like the only way I could make changes to files in the system was via ADB. Since I have no experience at all in Android programming, I'm striking out steps 5 - 9 until someone finds a solution to this. Sorry for anyone who tried this.
Click to expand...
Click to collapse
You need to disable Sony's RIC write protection by inserting the proper kernel module. Look here if the precompiled one works for you. With that you should be able to use the stock kernel (TA intact) WITH r/w to system.

xiaomi.eu 7.8.13.0 (MAACNDB)

so i bought a phone via a reseller and it came with the above miui version and lots of bloat ware that i cant remove. Some of the bloat ware doing funny things as well.
How do i go about flashing back to a original global or china version?
Dear,
You need to follow the below in order:
1- Apply for unlock Bootloader.
2- Once you unlocked the BL then.
3- Download the latest fastboot image for your device (Not Flashable ROM).
4- Download MiFlash Tool.
5- Enable USB Debugging.
6- Boot your device on Fastboot.
7- Put the whole downloaded package on the Desktop.
8- Extract the package using "7-Zip Software".
9- Open the MiFlash Tool.
10- Select browse and select image.
11- Select Advance option which is the "Browse Arrow".
12- Select Flash_All.
13- Click on Flash.
14- Done.
Thanks.
I suspect the bootloader be unlocked already, since the reseller managed to flash a non-official ROM. Try entering fastboot mode (boot the phone while holding down the volume-down button); if you see a Mi Bunny, you'll be able to fastboot flash immediately. Follow the above poster's instructions after that.
If you don't know how to fastboot flash, you can google around for some guides. Also, you can find all of Xiaomi's fastboot ROMs here. Scroll down and pick your poison
nicholaslimck said:
I suspect the bootloader be unlocked already, since the reseller managed to flash a non-official ROM. Try entering fastboot mode (boot the phone while holding down the volume-down button); if you see a Mi Bunny, you'll be able to fastboot flash immediately. Follow the above poster's instructions after that.
If you don't know how to fastboot flash, you can google around for some guides. Also, you can find all of Xiaomi's fastboot ROMs here. Scroll down and pick your poison
Click to expand...
Click to collapse
This is not true. Resellers can flash roms on locked bootloader devices (with EDL mode) and fastboot is accessible with locked bootloader too (just cannot flash roms with it).
He has to flash an official rom with edl mode or official recovery (mi pc suite) and he doesn't even need to unlock the device.
Follow these instructions:
1. Download and install miflash: https://drive.google.com/open?id=0B7JS5kbVejxxUE9DNGpIOVhFWUU
2. Download and extract Mi5 EDL zip: https://drive.google.com/open?id=0B7JS5kbVejxxVGJIengtUTJFVEE
3. Turn off your phone
4. Press volume down and power button for 5 sec (you're gonna see a bunny pic and a fastboot text)
5. Connect phone to pc with usb cable
6. Wait few sec for drivers
7. Open Mi5 EDL.cmd (from Mi5 EDL zip)
8. Fastboot text should disappear (if not, then something is wrong)
9. Download and extract china dev rom: http://bigota.d.miui.com/6.6.30/gemini_images_6.6.30_20160523.0000.23_6.0_cn_79be63012e.tgz (should be no space in the folder name where you extract this zip!!!)
You can find other official fastboot roms here: http://en.miui.com/a-234.html
10. Open miflash, press refresh, should find your phone
11. Browse rom folder
12. Tick flash all at the right bottom corner
13. Press flash button and wait
14. After finish, the phone should reboot, if not, then hold power button for 10 sec
15, First boot takes very long, keep calm
abyssq said:
This is not true. Resellers can flash roms on locked bootloader devices (with EDL mode) and fastboot is accessible with locked bootloader too (just cannot flash roms with it).
He has to flash an official rom with edl mode or official recovery (mi pc suite) and he doesn't even need to unlock the device.
Follow these instructions:
1. Download and install miflash: https://drive.google.com/open?id=0B7JS5kbVejxxUE9DNGpIOVhFWUU
2. Download and extract Mi5 EDL zip: https://drive.google.com/open?id=0B7JS5kbVejxxVGJIengtUTJFVEE
3. Turn off your phone
4. Press volume down and power button for 5 sec (you're gonna see a bunny pic and a fastboot text)
5. Connect phone to pc with usb cable
6. Wait few sec for drivers
7. Open Mi5 EDL.cmd (from Mi5 EDL zip)
8. Fastboot text should disappear (if not, then something is wrong)
9. Download and extract china dev rom: http://bigota.d.miui.com/6.6.30/gemini_images_6.6.30_20160523.0000.23_6.0_cn_79be63012e.tgz (should be no space in the folder name where you extract this zip!!!)
You can find other official fastboot roms here: http://en.miui.com/a-234.html
10. Open miflash, press refresh, should find your phone
11. Browse rom folder
12. Tick flash all at the right bottom corner
13. Press flash button and wait
14. After finish, the phone should reboot, if not, then hold power button for 10 sec
15, First boot takes very long, keep calm
Click to expand...
Click to collapse
Just a quick question for my curiosity.
If the phone was unlocked and you flash an official fastboot rom. Will it be locked again once it's flashed? Or is it still unlocked?
Thx
Foobrother said:
Just a quick question for my curiosity.
If the phone was unlocked and you flash an official fastboot rom. Will it be locked again once it's flashed? Or is it still unlocked?
Thx
Click to expand...
Click to collapse
If you choose "flash all" in mi flash, then it will be still unlocked after flashing, but if you choose "flash all and lock" then it will be locked.
abyssq said:
If you choose "flash all" in mi flash, then it will be still unlocked after flashing, but if you choose "flash all and lock" then it will be locked.
Click to expand...
Click to collapse
Ok. I didn't notice the "flash all and lock" option. But will remember for the next time.
Thx
abyssq said:
This is not true. Resellers can flash roms on locked bootloader devices (with EDL mode) and fastboot is accessible with locked bootloader too (just cannot flash roms with it).
He has to flash an official rom with edl mode or official recovery (mi pc suite) and he doesn't even need to unlock the device.
Follow these instructions:
1. Download and install miflash: https://drive.google.com/open?id=0B7JS5kbVejxxUE9DNGpIOVhFWUU
2. Download and extract Mi5 EDL zip: https://drive.google.com/open?id=0B7JS5kbVejxxVGJIengtUTJFVEE
3. Turn off your phone
4. Press volume down and power button for 5 sec (you're gonna see a bunny pic and a fastboot text)
5. Connect phone to pc with usb cable
6. Wait few sec for drivers
7. Open Mi5 EDL.cmd (from Mi5 EDL zip)
8. Fastboot text should disappear (if not, then something is wrong)
9. Download and extract china dev rom: http://bigota.d.miui.com/6.6.30/gemini_images_6.6.30_20160523.0000.23_6.0_cn_79be63012e.tgz (should be no space in the folder name where you extract this zip!!!)
You can find other official fastboot roms here: http://en.miui.com/a-234.html
10. Open miflash, press refresh, should find your phone
11. Browse rom folder
12. Tick flash all at the right bottom corner
13. Press flash button and wait
14. After finish, the phone should reboot, if not, then hold power button for 10 sec
15, First boot takes very long, keep calm
Click to expand...
Click to collapse
Hii .
Will it be possible to flash RESURRECTION REMIX M 5.7.1 this way if i use the older MIUI ( those linked in the thread ) roms ( those before Xiaomi blocked EDL )
kalliffen said:
Hii .
Will it be possible to flash RESURRECTION REMIX M 5.7.1 this way if i use the older MIUI ( those linked in the thread ) roms ( those before Xiaomi blocked EDL )
Click to expand...
Click to collapse
No, you will need unlocked bootloader and TWRP for RR.
abyssq said:
Follow these instructions:
1. Download and install miflash: https://drive.google.com/open?id=0B7JS5kbVejxxUE9DNGpIOVhFWUU
2. Download and extract Mi5 EDL zip: https://drive.google.com/open?id=0B7JS5kbVejxxVGJIengtUTJFVEE
3. Turn off your phone
4. Press volume down and power button for 5 sec (you're gonna see a bunny pic and a fastboot text)
5. Connect phone to pc with usb cable
6. Wait few sec for drivers
7. Open Mi5 EDL.cmd (from Mi5 EDL zip)
8. Fastboot text should disappear (if not, then something is wrong)
9. Download and extract china dev rom: http://bigota.d.miui.com/6.6.30/gemini_images_6.6.30_20160523.0000.23_6.0_cn_79be63012e.tgz (should be no space in the folder name where you extract this zip!!!)
You can find other official fastboot roms here: http://en.miui.com/a-234.html
10. Open miflash, press refresh, should find your phone
11. Browse rom folder
12. Tick flash all at the right bottom corner
13. Press flash button and wait
14. After finish, the phone should reboot, if not, then hold power button for 10 sec
15, First boot takes very long, keep calm
Click to expand...
Click to collapse
Thank you a *lot* for these instructions, I was now able to get rid of these ads (and whatever was still on the device). The only thing that was missing for me was that I needed to manually install the qdloader-hs-usb-driver.
Three things I didn't really understand:
- what does this process do? Does it root the device or just flash a different ROM?
- why is going into the EDL mode necessary?
- when I additionally unlock the device: what do I gain?
abyssq said:
This is not true. Resellers can flash roms on locked bootloader devices (with EDL mode) and fastboot is accessible with locked bootloader too (just cannot flash roms with it).
He has to flash an official rom with edl mode or official recovery (mi pc suite) and he doesn't even need to unlock the device.
Follow these instructions:
1. Download and install miflash: https://drive.google.com/open?id=0B7JS5kbVejxxUE9DNGpIOVhFWUU
2. Download and extract Mi5 EDL zip: https://drive.google.com/open?id=0B7JS5kbVejxxVGJIengtUTJFVEE
3. Turn off your phone
4. Press volume down and power button for 5 sec (you're gonna see a bunny pic and a fastboot text)
5. Connect phone to pc with usb cable
6. Wait few sec for drivers
7. Open Mi5 EDL.cmd (from Mi5 EDL zip)
8. Fastboot text should disappear (if not, then something is wrong)
9. Download and extract china dev rom: http://bigota.d.miui.com/6.6.30/gemini_images_6.6.30_20160523.0000.23_6.0_cn_79be63012e.tgz (should be no space in the folder name where you extract this zip!!!)
You can find other official fastboot roms here: http://en.miui.com/a-234.html
10. Open miflash, press refresh, should find your phone
11. Browse rom folder
12. Tick flash all at the right bottom corner
13. Press flash button and wait
14. After finish, the phone should reboot, if not, then hold power button for 10 sec
15, First boot takes very long, keep calm
Click to expand...
Click to collapse
Thx
Hi,
I bought a new MI5 last week, as is knowed, many of this phones comes with vendors ROM´s, so I´ve used this methed to flas an oficial miui ,
all OK , flash successful, and after ond day of use, my MI5 powers off, and no more turn ON.
At the moment the situation is, don´t have fastboot (power and Vol -), no recovery (power and vol +) ,
the only thing the MI5 have is when i conect it to USB por is in edl mode becouse aper on device mangement the drive qualcomm hs-usb qdloader 9008 , so i try flash again the oficial global ROM with Miflash Beta, and it take about 3 hours to flash sucefull, Very strange this, normaly 7 to 10min is done
But after that power on and nothing, i don´t ha any ideas...
The Mi5 is always in EDL mode, i can´t understnd it, pelase help !!!!!!
Thank You!

[GUIDE] Install Magisk on stock ROM

My phone is A2020G, so the ROM version of the following instructions is for G only, but you can still try on A2020U (just notice the Android version).
I once flashed Magisk through TWRP on stock Pie ROM but caused freeze at the boot screen, even the same while patching the boot image. However, now I found that if you are at stock Q and R version, you can now successfully install Magisk by patching boot images.
The only problem is that there is no TWRP for the two versions of stock ROM (since the recovery was made into boot image), so be careful while installing modules.
My method is to use Axon 10 EDL Tool. Fastboot mode is unavailable for stock Pie and Q Bootloader, while R can but this fastboot cannot flash images. So we need to use the patched bootloader of EDL Tool to access the fastboot and flash the patched boot images, then recover to the original bootloader so it can boot the system (The patched bootloader of EDL Tool can only boot stock Pie ROM).
Before proceeding:
Make sure you have updated to at least stock Q version and unlocked bootloader.
If you have not unlocked at Q or R, you can still proceed unlocking. The program will auto backup your current bootloader, however the patched bootloader cannot boot stock Q and R. So following these instructions:
1.Turn on the Developer Options and turn on OEM unlocking, remove your Google Account and lock screen passwords cause it will ask you to login after wiping because of FRP.
2.Boot into EDL Mode (If the phone is off, hold on pressing Vol+ and Vol- and then connect the cable; If the phone is on, connect the cable, then hold on pressing two Volume buttons and then press the power button for about 10 sec and the phone will automatically reboot)
3.Execute the EDL Tool with administrator rights.
4.Choose Unlock-Unlock bootloader
5.Follow the instructions, when the program has flashed (not backup) patched bootloader (Display "DONE", ask you to press any key), hit enter, and your phone will reboot immediately. When your phone vibrates, press both of the Vol+ and Vol- button immediately to boot into fastboot. (If you press in advance you will boot into EDL mode)
6.Open Command Prompt, use the fastboot.exe of the EDL Tool to proceed this command line:
Code:
fastboot flashing unlock
or just drag the program into CMD, like this:
Code:
D:\Axon10Pro_EDL_Tool\tools\fastboot.exe flashing unlock
7.Your phone will display the unlock warning, use volume button to select Yes and press power button to confirm.
8.After pressing power button (keep the cable connecting), press the two volume button immediately to boot into EDL mode, open the EDL Tool again and Restore bootloader from backup.
9.While restoring completed, reboot and hold on pressing Vol+ button to boot into recovery, the phone will automatically erase data and unlocking is done.
After unlocked:
1.Use djkuz's Axon 10 EDL Tool
2.Backup your boot image.
3.Copy your boot image to your phone and install Magisk Application.
4.Patch the two boot images (a/b), and remember the filename of the patched a and b boot.
5.Copy the patched boot images to your computer.
6.Use the EDL Tool to proceed unlocking, follow step 5 above to boot into fastboot.
7.Use the fastboot.exe of EDL Tool to flash patched boot images:
Code:
fastboot flash boot_a pta.img
fastboot flash boot_b ptb.img
(pta, ptb is the filename of your patched boot image)
8.Use volume button to select the green "START" and hit power button to reboot.
9.Follow step 8 above to recover bootloader, and you are done.
Problems:
Cannot use the default "Files" application to install local modules in stock R ROM cause it will possibly crash, so you have to install a third-party file manager application (like Root Explorer) to select modules. (When it open "Files" app, click the menu icon of the left side and select your installed file manager, then select modules to install)
Notes:
I can't find a way of checking which slot(A/B) of the phone has been on without using recovery, so I have to patch the two bootloaders. If you know, then you can patch and flash only that one.
I don't know if you can update to stock Q while unlocked at Pie when I saw this thread, but you can still upgrade to stock R while unlocked and installed Magisk at Q (V2.8). Just remember not to reboot immediately after you installed the upgrade, use the Magisk Application to install to another slot and then reboot.
Hope you enjoy~
Thanks to djkuz for developing the EDL Tool
willwongprd said:
My phone is A2020G, so the ROM version of the following instructions is for G only, but you can still try on A2020U (just notice the Android version).
I once flashed Magisk through TWRP on stock Pie ROM but caused freeze at the boot screen, even the same while patching the boot image. However, now I found that if you are at stock Q and R version, you can now successfully install Magisk by patching boot images.
The only problem is that there is no TWRP for the two versions of stock ROM (since the recovery was made into boot image), so be careful while installing modules.
My method is to use Axon 10 EDL Tool. Fastboot mode is unavailable for stock Pie and Q Bootloader, while R can but this fastboot cannot flash images. So we need to use the patched bootloader of EDL Tool to access the fastboot and flash the patched boot images, then recover to the original bootloader so it can boot the system (The patched bootloader of EDL Tool can only boot stock Pie ROM).
Before proceeding:
Make sure you have updated to at least stock Q version and unlocked bootloader.
If you have not unlocked at Q or R, you can still proceed unlocking. The program will auto backup your current bootloader, however the patched bootloader cannot boot stock Q and R. So following these instructions:
1.Turn on the Developer Options and turn on OEM unlocking, remove your Google Account and lock screen passwords cause it will ask you to login after wiping because of FRP.
2.Boot into EDL Mode (If the phone is off, hold on pressing Vol+ and Vol- and then connect the cable; If the phone is on, connect the cable, then hold on pressing two Volume buttons and then press the power button for about 10 sec and the phone will automatically reboot)
3.Execute the EDL Tool with administrator rights.
4.Choose Unlock-Unlock bootloader
5.Follow the instructions, when the program has flashed (not backup) patched bootloader (Display "DONE", ask you to press any key), hit enter, and your phone will reboot immediately. When your phone vibrates, press both of the Vol+ and Vol- button immediately to boot into fastboot. (If you press in advance you will boot into EDL mode)
6.Open Command Prompt, use the fastboot.exe of the EDL Tool to proceed this command line:
Code:
fastboot flashing unlock
or just drag the program into CMD, like this:
Code:
D:\Axon10Pro_EDL_Tool\tools\fastboot.exe flashing unlock
7.Your phone will display the unlock warning, use volume button to select Yes and press power button to confirm.
8.After pressing power button (keep the cable connecting), press the two volume button immediately to boot into EDL mode, open the EDL Tool again and Restore bootloader from backup.
9.While restoring completed, reboot and hold on pressing Vol+ button to boot into recovery, the phone will automatically erase data and unlocking is done.
After unlocked:
1.Use djkuz's Axon 10 EDL Tool
2.Backup your boot image.
3.Copy your boot image to your phone and install Magisk Application.
4.Patch the two boot images (a/b), and remember the filename of the patched a and b boot.
5.Copy the patched boot images to your computer.
6.Use the EDL Tool to proceed unlocking, follow step 5 above to boot into fastboot.
7.Use the fastboot.exe of EDL Tool to flash patched boot images:
Code:
fastboot flash boot_a pta.img
fastboot flash boot_b ptb.img
(pta, ptb is the filename of your patched boot image)
8.Use volume button to select the green "START" and hit power button to reboot.
9.Follow step 8 above to recover bootloader, and you are done.
Problems:
Cannot use the default "Files" application to install local modules in stock R ROM cause it will possibly crash, so you have to install a third-party file manager application (like Root Explorer) to select modules. (When it open "Files" app, click the menu icon of the left side and select your installed file manager, then select modules to install)
Notes:
I can't find a way of checking which slot(A/B) of the phone has been on without using recovery, so I have to patch the two bootloaders. If you know, then you can patch and flash only that one.
I don't know if you can update to stock Q while unlocked at Pie when I saw this thread, but you can still upgrade to stock R while unlocked and installed Magisk at Q (V2.8). Just remember not to reboot immediately after you installed the upgrade, use the Magisk Application to install to another slot and then reboot.
Hope you enjoy~
Thanks to djkuz for developing the EDL Tool
Click to expand...
Click to collapse
Thanks for the guide, My phone is A2020G and bootloader is unlocked. Is there an easy way to boot into fastboot mode easily? I do not want to unlock again, because the data in the phone is reset after bootloader unlocking process.
erturkmen said:
Thanks for the guide, My phone is A2020G and bootloader is unlocked. Is there an easy way to boot into fastboot mode easily? I do not want to unlock again, because the data in the phone is reset after bootloader unlocking process.
Click to expand...
Click to collapse
There is no way other than using the EDL Tool because ZTE didn't make fastboot accessible while it is on stock Bootloader. However it's safe to flash the modified bootloader using EDL Tool's unlock option because the original bootloader will be backuped. Since you have already unlocked, the fastboot application won't unlock it again, neither will it erase your data. But the modified bootloader can't boot stock system above Android 9 normally, so use it only when you want to flash a image.
I managed to apply Magisk on both Android 10 and 11.
Method. Backup boot.img from Android 10 / 11. Use Magisk app to patch the boot.img and flash it via EDL.
Here is my Android 11 + Magisk boot.img - Backup your own first before you flash this one and do it on your own risk. When I find time, I will create full EDL files with Android 10 and 11 featuring Magisk.
Sorry, but I have same questions here:
Hi, I had already tried to root my device according to the instructions from flymetothemoon, which unfortunately I haven't been able to do so far.
I already unlocked my bootloader under version 1.8, i.e. Android 9. Another unlock is no longer possible. I get the error message from fastboot:
FAILED (remote: ' Device already : unlocked!')
fastboot: error: Command failed.
The EDL tool still created the backups of the boot images. I wanted to copy this images into the system, but unfortunately the device got stuck in a bootloop after the restart.
I found a way to patch the boot images on the PC with Magisk. I used the latest version of Magisk for this. I was also able to flash the patched boot images via fastboot and then restore the backed up boot images in the EDL.
After the restart, however, the device goes back into the bootloop.
To be honest, the last step is not entirely clear to me. The patched images are flashed and then I restore the original boot images. Am I misunderstanding something?
And I got my A10Pro to charge again, so this is fantastic news! Miss root more than anything else out there.

How To Guide Master Guide to Unlock Bootloader/Flash TWRP/Root Device/Flash EU ROM/Pass SafetyNet

Hi All, as this device is fairly new and there is not much clarity on things so, I decided to create a master guide as you see below. I am also attaching a PDF version of this guide as I have not formatted this XDA post to what I feel it should be like. You may download and follow that, I will keep updating things as I find.
Lets start​
1. Unlock Bootloader​1.1 Apply for Bootloader Unlock​
Enable developer settings
Go to Settings>About phone/My device> All specs> Hit MIUI Version 8 times
Access Developer Settings from Settings>Additional Settings
Enable OEM Unlocking option
Now login to your desired Mi Account that you wish it to be associated with your device (Mi account should have a mobile number registered for OTP and verification sometime asked by MI flash unlock tool)
Your unlock bootloader wait time starts now. Wait for 7 days (168 hours from the time you added MI account) to unlock bootloader
1.2 Unlocking Bootloader​So you have crossed the wait period…. Now follow below to unlock assuming you have all the USB drivers for Mi devices (usually auto installed when you connect mobile)
Warning: All your userdata (including pictures and files) will be wiped out
Download official Mi flash unlock tool from this link: https://miuirom.xiaomi.com/rom/u1106245679/5.5.224.24/miflash_unlock-en-5.5.224.24.zip
Boot into Booloader: Power off your mobile then hold Volume Down + Power Button till fastboot bunny pops up
Open Mi Flash unlock tool downloaded in step 1
Sign in with same account that you used to sign in in Developer Settings in step 1.1.d. It may ask to verify your account with OTP. do it.
Click Unlock on the tool.
Your device will be unlocked and rebooted. Wait till reboot.
Congrats… you have an unlocked mobile device now
Now let’s go to Rooting your device for which we will have to flash TWRP to Mobile
2 TWRP Flash and Rooting​2.1 TWRP Flash​
Download and Install Minimal ADB and Fastboot for windows for this link: https://androiddatahost.com/wp-content/uploads/Minimal_ADB_Fastboot_v1.4.3.zip
Download unofficial TWRP (only one available as of writing this guide) from here: https://sourceforge.net/projects/xi....6.0_11-0_LOCAL-20220203-01-vili.img/download and rename it to twrp.img
Also download Magisk from below link: https://github.com/topjohnwu/Magisk/releases/download/v24.0/Magisk-v24.0.apk we will use it next section for rooting.
Rename the downloaded magisk file from magisk.apk to magisk.zip and copy it to your device’s storage
Copy the above twrp.img file to Minimal ADB and Fastboot folder (not necessary if you know some directory navigation using command prompt)
Boot mobile into bootloader (follow 1.2.b)
From your Minimal ADB and Fastboot folder open Cmd here.exe file to access the ADB tool
Connect your device to PC
Verify if device has connected successfully using the command below
Fastboot devices
This should return your device id
Now boot into TWRP using below commands
Fastboot boot “twrp.img” if you pasted twrp.img in minimal adb and fastboot folder
Fastboot boot “path to twrp.img” if you did not move it to the minimal adb and fastboot folder
Let the device boot to TWRP
In above step we just booted by TWRP which is temporary. Now let’s flash it to make it permanent:
Go to Advanced settings in TWRP and click Flash Current TWRP
Reboot to TWRP
2.2 TWRP Backup of Current Rom​
You should have a working TWRP
Boot to TWRP and navigate to Backup section
Select all partitions and swipe to confirm
If you see error in backing up, uncheck Data and EFS partition backup
The backup should complete successfully
Have this backup copied to a PC for emergency wipout of your mobile
2.3 Rooting/Flashing Magisk​
Go to Install in TWRP and select magisk.zip you copied in step 2.1.d
This will flash magisk and root your device. Now reboot to system from recovery
Once you have the device booted, rename the magisk.zip to magisk.apk again and install the magisk app on device
You may update if you see any updates to magisk or app
2.4 Passing Safetynet​
Download this magisk module zip from here: https://drive.google.com/file/d/1QJHPpL4R8fcxjB35XbcpaCOipKzpvL2I/view?usp=sharing
Go to magisk app settings and enable Zygisk (beta) also enable Enforce Deny List
Select Hide the Magisk app and give any desired name for Magisk to hide its identity
Now go to modules page in Magisk app.
Select Install from source/storage option and chose the downloaded safteynet zip
Reboot
This will pass safetynet but still Indian bank apps won’t work. Keep following below for clear
Go to magisk settings and enter Configure DenyList
Add all the apps you want to hide magisk and root from (such as phonepe, Gpay)
Don’t leave any service from the selected apps unchecked
3. Flash EU Rom​Warning: All your userdata (including pictures and files) will be wiped out
A TWRP backup of current rom is recommended before following the next steps
You can see section 2.2 for the instruction on backup
Download Fastboot EU rom from here: https://androidfilehost.com/?fid=17825722713688263895
Extract all the contents in zip file to any normal folder
We will be using Bootloader/Fastboot mode. Boot into Bootloader: Power off your mobile then hold Volume Down + Power Button till Fastboot bunny pops up
Connect your device to PC
From the extracted folder Open windows_fastboot_first_install_with_data_format.bat(for windows).
You may execute appropriate similar named file if you are running Linux or MacOS
The EU rom flashing process will start. Hit “Y” on keyboard to accept Formatting
Wait patiently while the PC does its Job.
You may see a long pause post “writing Cust” command depending on PC configuration. You should wait for 5 minutes at least, then try hitting any letter key on your keyboard, the process continues this way.
You may hit letter key whenever you see unusual pauses during pushing of super partition file sparse sending 1 of 9 to 9 of 9
Wait till process finishes and reboots
For TWRP and Rooting you can follow the same guide in section 2.
Updating to Miui13/Android 12 EU Rom​
Check out this guide to Update to Android 12
Happy Rooting… Njoy your device.
Lastly.. All the credit goes to respective owners, I have just compiled everything together and in an easy manner. PM me for credits.
Do let me know if you have any suggestions and corrections.
Thanks & Regards,
Abdus Saboor Asad
Reserved
Reserved
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Rammetje.b said:
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Click to expand...
Click to collapse
You are welcome.
sasaboor64 said:
You are welcome.
Click to expand...
Click to collapse
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Rammetje.b said:
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Click to expand...
Click to collapse
Good question... I think we should hook once, that's how I unlocked. But I feel it should work without hooking as well.
Anyone should test it and update for us the other way.
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
working on miui 13 android 12?
paulboqs said:
working on miui 13 android 12?
Click to expand...
Click to collapse
you may go through the last thread in my post for miui 13 related rooting. this guide is for miui12 rooting and there is no TWRP yet for miui13 for our device
at what point exactly will all my data be wiped?
yuukiw said:
at what point exactly will all my data be wiped?
Click to expand...
Click to collapse
the moment u hit unlock after your waiting period...
sasaboor64 said:
the moment u hit unlock after your waiting period...
Click to expand...
Click to collapse
is there a way to back upp all apps + data?
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
m38d1 said:
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
Click to expand...
Click to collapse
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
AwkwarddWhale said:
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
Click to expand...
Click to collapse
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Jctatis said:
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Click to expand...
Click to collapse
There is no solution, there is no twrp for Android 12 / MIUI13 yet.
Well I did manage to make it work using a mouse otg. But it useless since theres no storage to flash
mm_rajesh said:
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
Click to expand...
Click to collapse
thanks
The problem was the phone cable
This TWRP from the first post is Android 12 too?

Categories

Resources