Back to Stock Recovery - Xiaomi Mi 9 Questions & Answers

I flashed TWRP but i want go back to Stock Recovery. The XMT2 Xiaomi Flash tool need Stock Recovery . But i dont have a Stock Recovery.zip . I extract some Global Xiaomi Image and found one recovery.img but if i flash this with fastboot my Phone allways boot in fastboot Mode. Can anybody help pls ?

Internet full of guides how to do this and you need to read first 2-3 lines
THE STEPS TO FLASH
Step 1 – On your computer, do these tasks :
1. Extract the ADB Fastboot Files .zip file, and then
2. Extract Mi_Stock_Recovery.tgz file. You’ll have a file namely recovery.img.
Click to expand...
Click to collapse

Just use MI Flash to restore your phone to stock. Then you can start over and flash what you want.

Related

How to flash images with fastboot?

My phone is almost bricked
I was trying to install sevenrov v3.2 while i was on v3.1 and i ****ed up everything while doing a fullwipe
Right now there is only fastboot&rescuemode available
twrp is not working, because it does no read the digitizer(i cannot press anything)
i can install cwm but should i ?
I believe that is best to flash images through fastboot.
But what images should i flash?
Where to find them?
How should i flash them?
revery0 said:
My phone is almost bricked
I was trying to install sevenrov v3.2 while i was on v3.1 and i ****ed up everything while doing a fullwipe
Right now there is only fastboot&rescuemode available
twrp is not working, because it does no read the digitizer(i cannot press anything)
i can install cwm but should i ?
I believe that is best to flash images through fastboot.
But what images should i flash?
Where to find them?
How should i flash them?
Click to expand...
Click to collapse
Oh dear! You are in a mess. All I can suggest is that you flash the stock recovery and then install a stock ROM for your phone using the force update (dload) method that has been described in other threads. Then you can return to a custom ROM of your choice. As far as I know CWM for this phone is only in Chinese so it may be of little value unless you understand the language.
arthios said:
Oh dear! You are in a mess. All I can suggest is that you flash the stock recovery and then install a stock ROM for your phone using the force update (dload) method that has been described in other threads. Then you can return to a custom ROM of your choice. As far as I know CWM for this phone is only in Chinese so it may be of little value unless you understand the language.
Click to expand...
Click to collapse
cwm has english also but it has no use for me
Only fastboot works
dload method does not complete, the blue progress bar goes up to to 85% and stays there forever...
I am looking for a mathod to create a flashable zip for fastboot
to use fastboot flash filename.zip command
or flash each partition seperatly , i tried the method with huawei extractor
extracted the images system,root,boot,cache,cust,userdata
flashed each one on their partitions
but without success
revery0 said:
cwm has english also but it has no use for me
Only fastboot works
dload method does not complete, the blue progress bar goes up to to 85% and stays there forever...
I am looking for a mathod to create a flashable zip for fastboot
to use fastboot flash filename.zip command
or flash each partition seperatly , i tried the method with huawei extractor
extracted the images system,root,boot,cache,cust,userdata
flashed each one on their partitions
but without success
Click to expand...
Click to collapse
Why you do not flash twrp recovery in fastboot mode and then install a flashable ZIP?
Edit:
In this thread, are the same probs:
http://forum.xda-developers.com/showthread.php?p=56634210
Short: install recovery and try to flash a rom again.
I See your post in this thraed that this not work for you but i think you have to try it again. In fastboot mode you can flash recovery and cust. Its that working?
Can you explain step by step what are you doing?
87insane said:
Why you do not flash twrp recovery in fastboot mode and then install a flashable ZIP?
Edit:
In this thread, are the same probs:
http://forum.xda-developers.com/showthread.php?p=56634210
Short: install recovery and try to flash a rom again.
I See your post in this thraed that this not work for you but i think you have to try it again. In fastboot mode you can flash recovery and cust. Its that working?
Can you explain step by step what are you doing?
Click to expand...
Click to collapse
First of all thank you,
Right now my phone is in a bootloop(not more than 6 sec duration, with short vibration)
3 buttons , power button tricks and combos don't seem to work
The only way to exit the bootloop is by sending the fastbbot reboot recovery command and wait for some loops while you are doing the vol+vol-power combo
Then the phone enters fastboot rescue mode
I get reply when sending the fastboot devices command,
And the phone has unlocked bootloader (OEM command)
I can flash images extracted from the official 135 ROM
I tried cust boot user data system cache recovey , and the are all flashed correctly
But I can't get into recovery mode aftethe reboot (yes I am doing the 3 buttons trick)
I tried different SD cards with different update.app each time, from b135 official and sevenrom3 (yes I put them in /dload folder)
I even tried flashing cwm and twrv recovery images in the recovery partition, but I got in a bootloop after the reboot again
So I am asking if there is anyway to flash the partitions correctly from fastboot or maybe send a kernel image with some offset and run it with the fastboot command
Of course adb does not work, not responding
Maybe reparation the storage?
I don't know
And I am desperare...
revery0 said:
First of all thank you,
Right now my phone is in a bootloop(not more than 6 sec duration, with short vibration)
3 buttons , power button tricks and combos don't seem to work
The only way to exit the bootloop is by sending the fastbbot reboot recovery command and wait for some loops while you are doing the vol+vol-power combo
Then the phone enters fastboot rescue mode
I get reply when sending the fastboot devices command,
And the phone has unlocked bootloader (OEM command)
I can flash images extracted from the official 135 ROM
I tried cust boot user data system cache recovey , and the are all flashed correctly
But I can't get into recovery mode aftethe reboot (yes I am doing the 3 buttons trick)
I tried different SD cards with different update.app each time, from b135 official and sevenrom3 (yes I put them in /dload folder)
I even tried flashing cwm and twrv recovery images in the recovery partition, but I got in a bootloop after the reboot again
So I am asking if there is anyway to flash the partitions correctly from fastboot or maybe send a kernel image with some offset and run it with the fastboot command
Of course adb does not work, not responding
Maybe reparation the storage?
I don't know
And I am desperare...
Click to expand...
Click to collapse
Okay...
your system is so messy. we must bring fully to factory condition first time.
Plesse try to flash stock recovery img. (In your post you write only that you have tryed twrp/cwm).
And then try update in recovery.
I not think your phone is broken. You can try my tool (http://forum.xda-developers.com/asc...eandadjust-t2941186/post56774286#post56774286). There is a stock recovery img in it. In your case you have to flash cust img to.
87insane said:
Okay...
your system is so messy. we must bring fully to factory condition first time.
Plesse try to flash stock recovery img. (In your post you write only that you have tryed twrp/cwm).
And then try update in recovery.
I not think your phone is broken. You can try my tool (http://forum.xda-developers.com/asc...eandadjust-t2941186/post56774286#post56774286). There is a stock recovery img in it. In your case you have to flash cust img to.
Click to expand...
Click to collapse
Thank you but I already did flash the official recovery image, both extracted from a factory update.app and your recovery.IMG also... None of them worked.... Iam still in the same bootloop.
I am starting to believe that the partitions have been ****ed up.
Any way to repartition?
Also is there a procedure to create a flashable zip with huawei software extractor? I edited the accompaning XML to add the p7 device on the list (copy data from p6 and changed the name) created the zip but fastboot doesn't flash the zip because its missing 2 XML files which I can't remember their name.
And at this point I would like to give my 2 cents of advice to everyone who might listen,
Before you flash anything from a microsd, first verify the card with h2testw, and always use high quality microsd and never ever stop a flashing procedure by any means. . i would like to make it more extreme and advise to use a software with copy verification (like richcopy) when you copy files that are going to be flashed.
I tend to believe that a faulty microsd is the cause of my problems... Even though I checked the microsd afterwards and didn't got any errors.
I would advise the ROM creators to append this on their posts!

Custom ROM Bootloop

In case anyone has experienced a bootloop in custom ROMS here's a solution that worked for me.
Step 1. Download the stock ROM from Xiaomi's official site here http://en.miui.com/download-353.html
Step 2. Unzip the downloaded file and install Xiaomi's flashing tool that you can find here http://en.miui.com/a-234.html
Step 3. Boot into Fastboot mode in your device and connect it with the PC
Step 4. Open a console and enter . fastboot oem edl .
Step 5. Use the flashing tool to select the folder you extracted and flash the files
Step 6. Boot into fastboot and boot into PitchBlack recovery (recommended) https://forum.xda-developers.com/mi-a2/development/recovery-unofficial-official-pbrb-t3830864 . fastboot boot recovery.img .
Step 7. Flash the files of your favorite ROM as mentioned in https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
Thats all!

Corrupted partition - Global red magic 3 Rom phone

help me please. Phone RED MAGIC 3
I tried to install the custom ROM and my phone ended up corrupting the partition. I can't start in recovery mode, it is on that screen where you have the options: Restart, restart in recovery mode, restart in emergency recovery mode, Shut down. I downloaded the Chinese ROM, but in ZIP format. It has a lot of files, with boot.img and others in .img format, it also has the META-INF folder. How can I flash this ZIP to install the ROM? thanks
It looks like you did that without knowing enough about the procedure. The are a lot of guides explaining how to do it in the Red Magic 3 thread. Take a see about a solution.
Now, your problem is that you flashed the zip in the recovery without unlocking bootloader first. You must boot into the bootloader (the menu where you see that options to boot) and use the next fastboot commands (I won't explain about adb and fastboot. You have to download it and install them before use it. Look any guide on XDA):
Code:
fastboot oem nubia_unlock NUBIA_NX629J
At this step, you unlocked the bootloader temporally to flash any .IMG file
Code:
fastboot flashing unlock
You should see an advirtise screen that tells you about that your data is going to be fully wiped. Accept it and then you should be able to boot into the system and even into the recovery. To return to the global rom, simply flash the global rom (EU or NA) again. Don't lock the bootloader again or your phone will show you the same corruption screen. To flash the roms you don't have to uncompress the zip files you downloaded.
I hope that could be useful for you. Regards.
Perseo99 said:
It looks like you did that without knowing enough about the procedure. The are a lot of guides explaining how to do it in the Red Magic 3 thread. Take a see about a solution.
Now, your problem is that you flashed the zip in the recovery without unlocking bootloader first. You must boot into the bootloader (the menu where you see that options to boot) and use the next fastboot commands (I won't explain about adb and fastboot. You have to download it and install them before use it. Look any guide on XDA):
Code:
fastboot oem nubia_unlock NUBIA_NX629J
At this step, you unlocked the bootloader temporally to flash any .IMG file
Code:
fastboot flashing unlock
You should see an advirtise screen that tells you about that your data is going to be fully wiped. Accept it and then you should be able to boot into the system and even into the recovery. To return to the global rom, simply flash the global rom (EU or NA) again. Don't lock the bootloader again or your phone will show you the same corruption screen. To flash the roms you don't have to uncompress the zip files you downloaded.
I hope that could be useful for you. Regards.
Click to expand...
Click to collapse
Good Morning!
Thank you very much for the answers. I did all of these procedures via FASTBOOT, but I forgot to unlock the OEM, for this reason it corrupted. After it's corrupted, I do the OEM unlock procedure, however, when the file is ZIP (where it contains the startup items, META-INF) an error appears: file does not exist android.info.txt. This ZIP is for flashing via the system's internal memory, not via FLASHBOOT. As I cannot recover the recovery mode, I cannot update this ROM.zip. Is there another way to flash this zip? Sorry for the typo, I'm using google translator.
yurifonseca said:
Good Morning!
Thank you very much for the answers. I did all of these procedures via FASTBOOT, but I forgot to unlock the OEM, for this reason it corrupted. After it's corrupted, I do the OEM unlock procedure, however, when the file is ZIP (where it contains the startup items, META-INF) an error appears: file does not exist android.info.txt. This ZIP is for flashing via the system's internal memory, not via FLASHBOOT. As I cannot recover the recovery mode, I cannot update this ROM.zip. Is there another way to flash this zip? Sorry for the typo, I'm using google translator.
Click to expand...
Click to collapse
There is no much more options. There is only a way to flash the chinese rom for the phone and it's flashing the zip you downloaded in the recovery. If the message of "corrupted device" stills appearing before enter the flashing unlock fastboot command I recommend you to use he recovery tool that you could find in various of the threads about the Red Magic 3, but you should be able to boot the rom before the flashing unlock, I told you this because it happened to me in the same way.
If you are trying to flash the files of the different partitions in .img format, I have to tell that it's a little complicated because the zip doesn't contains a system.img, so you will halve to loose your data once to recover the phone...
Easy fix. Use the red magic 3 unbrick too. https://forum.xda-developers.com/red-magic-3/how-to/tool-nubia-red-magic-3-unbirck-tool-t3965044
Just follow the instructions in the tool zip.

Question RECOVERY BOOTLOOP

Hello guys!
I am having a problem updating my current TWRP (version 3.52 came from one youtuber) to TWRP 3.6/OrangeFox.
I carefully follow steps. Even extracting my own rom boot.img just to flash it in accordance to said step. I successfully flash the said recovery but when i reboot to system or power off. It just keeps booting to recovery. Hoping for some enlightenment. Thank you!
1) you did not say what steps you did, or which tutorial you followed
2) what do you need twrp for?
jjsan said:
1) you did not say what steps you did, or which tutorial you followed
2) what do you need twrp for?
Click to expand...
Click to collapse
Reboot your phone into fastboot mode
Download Blank VBmeta and flash it using fastboot flash vbmeta vbmeta.img
Next, download TWRP .IMG file and flash it using fastboot flash boot IMAGE_NAME.img
Reboot into recovery mode (fastboot reboot recovery)
When booted into recovery, reflash stock boot.img (Install -> Install Image -> Select stock boot.img -> “Flash to: Boot”)
Next, go in Advanced -> Flash current TWRP and swipe to flash TWRP.
Reboot and enjoy!
That's the instruction given in a thread. I followed it but no luck. Keeps rebooting to recovery.
cant say if it works or not.
for rooting its better patch img and flash.
read this. there is also solution for bootloop
How To root Redmi Note 10S without TWRP (Text Guide in English)
By Following this guide, you will lose your warranty so keep that in mind before you begin. (Although you have probably already lost your warranty by unlocking the bootloader) So, if like me, you ended up buying the Redmi Note 10S because it was...
forum.xda-developers.com
jjsan said:
cant say if it works or not.
for rooting its better patch img and flash.
read this. there is also solution for bootloop
How To root Redmi Note 10S without TWRP (Text Guide in English)
By Following this guide, you will lose your warranty so keep that in mind before you begin. (Although you have probably already lost your warranty by unlocking the bootloader) So, if like me, you ended up buying the Redmi Note 10S because it was...
forum.xda-developers.com
Click to expand...
Click to collapse
I already root my device . Just confused why the posted updated TWRP and Orangefox (both by Woomy) doesn't let me boot to system.
pumpkin072618 said:
Reboot your phone into fastboot mode
Download Blank VBmeta and flash it using fastboot flash vbmeta vbmeta.img
Next, download TWRP .IMG file and flash it using fastboot flash boot IMAGE_NAME.img
Reboot into recovery mode (fastboot reboot recovery)
When booted into recovery, reflash stock boot.img (Install -> Install Image -> Select stock boot.img -> “Flash to: Boot”)
Next, go in Advanced -> Flash current TWRP and swipe to flash TWRP.
Reboot and enjoy!
That's the instruction given in a thread. I followed it but no luck. Keeps rebooting to recovery.
Click to expand...
Click to collapse
hmm, you sure you actually installed the stock rom kernel?
J6idot said:
hmm, you sure you actually installed the stock rom kernel?
Click to expand...
Click to collapse
I used the extracted boot.img pulled using adb. Am i doing it right?
pumpkin072618 said:
I used the extracted boot.img pulled using adb. Am i doing it right?
Click to expand...
Click to collapse
You can download the original ROM package and extract the boot.img from it, see if it works
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com

Question How To Repair / Extract BOOT img For SPES/SPESN ?

While I was in a hurry, I made a serious mistake and did this :
fastboot flash boot filename.img
( I wrote the TWRP recovery image, into the boot partition ! )
Now, I need to reverse this, and getting stuck.
My Note 11 [SPES] (without NFC) has this current image :
• V13.0.15.0.RGCMIXM
I have re-downloaded this Xiaomi ROM as a Fastboot image and a Recovery image as well.
So, I'm looking for advice on how to get the original boot img
back into my phone, eg. with Fastboot method or Recovery method (if possible)
PS:
I'm using a Windows PC (and not a Mac)
Thank You.
metaxda said:
While I was in a hurry, I made a serious mistake and did this :
fastboot flash boot filename.img
( I wrote the TWRP recovery image, into the boot partition ! )
Now, I need to reverse this, and getting stuck.
My Note 11 [SPES] (without NFC) has this current image :
• V13.0.15.0.RGCMIXM
I have re-downloaded this Xiaomi ROM as a Fastboot image and a Recovery image as well.
So, I'm looking for advice on how to get the original boot img
back into my phone, eg. with Fastboot method or Recovery method (if possible)
PS:
I'm using a Windows PC (and not a Mac)
Thank You.
Click to expand...
Click to collapse
Just flash the boot image that is inside the fastboot ROM, and then, if you want back TWRP, boot to it, through fastboot, and then, through TWRP, flash it to the ramdisk partition.
SubwayChamp said:
Just flash the boot image that is inside the fastboot ROM, and then, if you want back TWRP, boot to it, through fastboot, and then, through TWRP, flash it to the ramdisk partition.
Click to expand...
Click to collapse
@SubwayChamp ,
Thank You for that advice.
It saved me.
( The work PC I was using, had some 'security restrictions' set by the company,
where I could not open the Fastboot image at first, but I managed to work it all out
and grab the boot.img file , and then proceeded as your suggestion )

Categories

Resources