[HowTo] Install Recovery image


Igor Eisberg

Lead Developer
Staff member
Oct 6, 2016
7,629
322
so will there not be any fastboot rom's for Mi 11 anymore in future....will it be only TWRP rom's ? is that confirmed ?
Well, from my experience with Android 13-based Beta for Xiaomi 12, so far it seems that fastboot ROMs might be back with Android 13, because those TWRPs can't decrypt data on it.
 

rohan555

Members
Jun 24, 2021
115
30
Followed steps, but still uable to see storage in twrp
bro, were you able to find the downloaded ROM finally,. even I am in the same boat, cannot find the downloaded EU ROM after clicking on install, how did you fix it ? May i know please. thanks
 

rohan555

Members
Jun 24, 2021
115
30
Well, from my experience with Android 13-based Beta for Xiaomi 12, so far it seems that fastboot ROMs might be back with Android 13, because those TWRPs can't decrypt data on it.
Thanks a lot for the reply, may I know if I had installed fastboot earlier till 13.0.8 now can we install recovery rom on top of it without a clean format ? Like I went to the TWRP recovery and unable to find the downloaded EU ROM 13.0.9 downloaded in the internal storage. I believe I need to do a clean format and reinstall 13.0.9. Is that correct ? Thanks
 

737NG

Members
Aug 13, 2022
11
5
Can someone please help.. 12 Pro here with xiaomi eu v13.0.36 firmware. Im trying to install twrp so I can flash the 13.0..37 but when I run the command in fastboot boot twrp.img ( it says sucesfull) but all I get is the black screen. I cant get TWRP to load at all. I have try all fastboot commands and still black screen. If I reboot the phone, it just opens as notmal phone..

Ideas, help? Thanks
 

gogocar62

Members
Apr 22, 2021
1,660
297
What TWRP did you use? If you use the fastboot boot twrp.img command, you must use TWRP (BOOT) or TWRP (REC-BOOT), not TWRP (REC).

If you are using TWRP (REC) you must use the command : TWRP will install permanently. Xiaomi 12 series devices except Xiaomi 12X.
Code:
fastboot flash recovery_ab twrp.img

If you use TWRP (BOOT) you use the command: TWRP will only boot.
Code:
 fastboot boot twrp.img

This applies to devices with A/B partitions.
 
Last edited:

737NG

Members
Aug 13, 2022
11
5
What TWRP did you use? If you use the fastboot boot twrp.img command, you must use TWRP (BOOT) or TWRP (REC-BOOT), not TWRP (REC).

If you are using TWRP (REC) you must use the command : TWRP will install permanently.
Code:
fastboot flash recovery_ab twrp.img

If you use TWRP (BOOT) you use the command: TWRP will only boot.
Code:
 fastboot boot twrp.img

This applies to devices with A/B partitions.
Yes thats the one I used . v5.6 for 12 Pro.

I changed the zip file to twrp.img.
In fastboot i ran command fastboot boot twrp.img
It says creating boot image
downloading boot image
OKAY Booting
Finished!

And thats it, black screen only. I have to reboot to phone to restart it.

So Im basically stuck in unable to flash new firmware cause old one was glitchy and with a few issues.

Any other solutions please?
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    110.1 KB · Views: 36
Last edited by a moderator:

gogocar62

Members
Apr 22, 2021
1,660
297
You still didn't say which TWRP you used (BOOT) or (REC) ?
You can also try the older TWRP 5.1.

PS:
Such a huge picture is really unnecessary. You could only crop the black part with the text.. ;)
 
  • Like
Reactions: katerpanne

737NG

Members
Aug 13, 2022
11
5
You still didn't say which TWRP you used (BOOT) or (REC) ?
You can also try the older TWRP 5.1.

PS:
Such a huge picture is really unnecessary. You could only crop the black part with the text.. ;)
Im such a fool, I have it sorted. I used the full twrp zip file rather them unziping it first and then renaming to img, as I just renamed the .zip file first.

Its working now hopefully!
 
  • Like
Reactions: katerpanne

ktsiaras

Members
Nov 28, 2016
11
15
Hi,
In a previous a message i described my problem with the TWRP which was that i turned the language of the TWRP to Greek from English but i wanted to change it again to English but when i trying to do it the TWRP was restarting (not the phone) and i was keep returning to the options of the TWRP again.
I did the thing that you guys told me in my previous messages but it didn't change anything so i am sending you a video showing my problem that i keep bumping into and also i wanted to ask do is there a file that i need to delete a file in order to at the original settings?
Also how can i unistall the TWRP and reinstall it again .
Every Opinion is welcome
Thank you.
 

Igor Eisberg

Lead Developer
Staff member
Oct 6, 2016
7,629
322
Thanks a lot for the reply, may I know if I had installed fastboot earlier till 13.0.8 now can we install recovery rom on top of it without a clean format ? Like I went to the TWRP recovery and unable to find the downloaded EU ROM 13.0.9 downloaded in the internal storage. I believe I need to do a clean format and reinstall 13.0.9. Is that correct ? Thanks
Which flashing method is used makes no difference. Data isn't touched unless you manually wipe/format it.
 
  • Like
Reactions: katerpanne

rohan555

Members
Jun 24, 2021
115
30
Well, from my experience with Android 13-based Beta for Xiaomi 12, so far it seems that fastboot ROMs might be back with Android 13, because those TWRPs can't decrypt data on it.
if TWRP cannot decrypt data, how are you guys releasing the latest EU ROM for MI 11 as TWRP recovery instead of fastboot. Is fastboot on the way ? As I have read somewhere that " MIUI13 Doesn't support TWRP at the moment. You have to update using fastboot ROM on your PC."
 

Bec de Xorbin

Members
Jan 4, 2022
182
55
if TWRP cannot decrypt data, how are you guys releasing the latest EU ROM for MI 11 as TWRP recovery instead of fastboot. Is fastboot on the way ? As I have read somewhere that " MIUI13 Doesn't support TWRP at the moment. You have to update using fastboot ROM on your PC."
He's talking about future Android 13 based releases. Newest Xiaomi.eu is Android 12.
 
  • Like
Reactions: rohan555

rohan555

Members
Jun 24, 2021
115
30
I think my phone is encrypted because of which it's not asking for a password when I login to recovery using twrp.. And it doesn't even show up the download install eu rom 13.0.9 in the internal storage. Does that make sense guys? Can you please advise how to decrypt the download eu rom 13.0.9.. Is there any way to resolve this problem? Or do I need to format it to upgrade to 13.0.9 from 13.0.8.. I have mi 11. Please help any technical people. Appreciate it. Thanks again. Cheers.
 

katerpanne

Members
Apr 19, 2014
3,202
332
I think my phone is encrypted because of which it's not asking for a password when I login to recovery using twrp.. And it doesn't even show up the download install eu rom 13.0.9 in the internal storage. Does that make sense guys? Can you please advise how to decrypt the download eu rom 13.0.9.. Is there any way to resolve this problem? Or do I need to format it to upgrade to 13.0.9 from 13.0.8.. I have mi 11. Please help any technical people. Appreciate it. Thanks again. Cheers.
did you try this on 1st page and do you have twrp for a12?
If you cant decrypt / see your folders after booting TWRP
- change Pattern/Password to PIN or remove it and try it again
- another solution from @Karpfenhai
- further solution from @digeratz
 

Jermiju

Members
Jul 20, 2021
2
13
How to install a xiaomi.eu recovery image

Because of more and more working TWRP on MIUI13 Android12 a little How To

and here we go ....


Unlock your device (only once)
- you need to unlock bootloader
-> a small [howto] to unlock bootloader
Install Tools and Drivers
- install USB drivers & adb and fastboot tools (Windows 10)
- install SDK Platform Tools (Windows 10 & 11 / Mac / Linux)
- install xiaomi drivers (sometimes necessary)
-> a small [howto] if you have driver issues

Download xiaomi.eu recovery rom
- download recovery image for your phone to PC
-> choose stable or weekly like you want or need

Now you need a TWRP for your device A12
- download TWRP for your device from xiaomi.eu
- or download TWRP for your device from skkk
- rename the downloaded TWRP into "twrp.img"

Boot and install TWRP on your device
There are A/B and non A/B devices on the market
All devices before Mi 11 era (except Mi 10S, Redmi Note 10 Pro Global) are non-A/B devices
Check if you have a A/B device or not
- Download Treble Check
- Check for this entry
View attachment 42952


Prepare Boot and install TWRP / ROM
- open "cmd.exe" on your PC
- change to directory were you have installed adb & fastboot
-> eg "cd c:\adb"
- copy downloaded and renamed "twrp.img" to "c:\adb"
- connect PC and phone with USB cable
- put phone in fastboot (reboot phone and then holding "Volume -" and "Power on" buttons simultaneously)
- you should see a bunny picture and an info "fastboot" on the phone
-> on some devices you will see orange info "FASTBOOT" (new fastboot logo)

please do this step to prevent from black window
- type in "cmd window": "fastboot devices" and hit RETURN
- check if you see a number (sometimes with characters)
-> then all is fine
1641373554513.png

- if you dont see a number:
change USB port / change USB cable / use USB 2.0 / use an USB Hub / check driver installation

do next steps only if "fastboot devices" shows a number / characters
- the "cmd window" should be open on PC
- change to "c:\adb"
-> eg "cd c:\adb" hit RETURN and type "dir" hit RETURN
- you should see the files "fastboot.exe" and "twrp.img"

Boot and install TWRP / ROM on A/B device
- type "fastboot.exe boot twrp.img" (without "")
- TWRP should be loading and then enter PIN/Pattern/Password
- copy downloaded ROM to internal storage of your device
- install the ROM -> see nice pictures from @gogocar62
- optional you can flash TWRP permanent with "Install Recovery Ramdisk"
- Reboot to System -> see nice pictures from @gogocar62

Boot and install TWRP / ROM on non A/B device
- type "fastboot.exe flash recovery twrp.img" (without "")
- type "fastboot.exe reboot recovery" (without "")
- TWRP should be loading and then enter PIN/Pattern/Password
- copy downloaded ROM to internal storage of your device
- install the ROM -> see nice pictures from @gogocar62
- Reboot to System -> see nice pictures from @gogocar62
Thats all ... voilla .....


Here are some hints and solutions for issues:

Do I have to format (not wipe) Data in TWRP
You have to format (not wipe) data in TWRP
- if you install the xiaomi.eu rom for the first time
- if you change from weekly to stable (recommended)
- if you change from stable to weekly (recommended)
- you will loose your data -> make a backup

How to change the language in TWRP
- see nice pictures from @gogocar62

BOOT / REC TWRP for some devices
For some devices there are different TWRPs available
1.) BOOT-TWRP -> fastboot boot twrp - boot TWRP only
2.) REC-TWRP -> fastboot flash recovery_ab twrp.img - install TWRP permanent
3.) BOOT-REC-TWRP -> you can use both fastboot commands -> see 1.) & 2.)

TWRP update shows ERROR: 1 / can not mount system ...
- this error can occur if you try the update with updater app or if you started TWRP manually
- Solution:
-> while you are in TWRP reboot your device in recovery mode
-> try to install the rom again
-> if it will fail, reboot in recovery again
-> or use "fastboot boot twrp.img" again
-> sometimes you need more then one try
-> if it will not work choose another twrp version

You can test if you have a A/B device with this command
# fastboot flash recovery twrp.img
If there is an error message "no recovery partition" you have an A/B device

or run this command it is true if A/B
# adb shell getprop ro.build.ab_update

Updates of TWRP
- For non-A/B devices TWRP will not be replaced automatically while installing ROM unless you flash the new, working recovery.
- For most A/B devices TWRP will be flashed permanent while installing ROM (perhaps a different version than yours)
- If there is a REC-TWRP for the device, the TWRP is not included into the ROM any longer

How to start TWRP manually
# fastboot boot-recovery
# fastboot boot recovery
# adb boot recovery

restart device
# hold "power on" and "volume +"

If you cant decrypt / see your folders after booting TWRP
- change Pattern/Password to PIN or remove it and try it again
- another solution from @Karpfenhai
- further solution from @digeratz

You can check if your device is unlocked
fastboot oem device-info
-> there is a line "Device unlocked = true or false"
--------------------------------------------------
If you dont see "Mi Unlock Status" in developer options
-> your device is also unlocked

a query, I have an 11T pro and it is not A/B but when I want to install TWRP with "fastboot flash recovery" it does not install, I get one with an error that says something with "a/" but I was able to install it with "fastboor reboot" but when I was in TWRP it wouldn't let me install the updated ROM and it wouldn't let me exit TWRP when rebooting either, I had to go back to fastboot and install the ROM via fastboot.
 

katerpanne

Members
Apr 19, 2014
3,202
332
a query, I have an 11T pro and it is not A/B but when I want to install TWRP with "fastboot flash recovery" it does not install, I get one with an error that says something with "a/" but I was able to install it with "fastboor reboot" but when I was in TWRP it wouldn't let me install the updated ROM and it wouldn't let me exit TWRP when rebooting either, I had to go back to fastboot and install the ROM via fastboot.
please check again if your device is a A/B device or not

# fastboot boot twrp.img
 

Cyanonymous

Members
Jul 1, 2020
25
15
no way the storage could be decrypted i think unless i format the data i will not be able to update and that is annoying and time consuming
 

katerpanne

Members
Apr 19, 2014
3,202
332
no way the storage could be decrypted i think unless i format the data i will not be able to update and that is annoying and time consuming
which device, which twrp and did you try the two workarounds on first page? no details what you did and what is the issue, we cant try to help…
 

tzengkias

Members
Sep 20, 2021
4
13
Hello I am with 13.0.12 eu stable and i am going into teamwin and try to install the last one 13.0.13 zip for my mi 11 ultra but i got unable to mount the storage :(
 Can you please help me?
Thanks in advance!!
 

katerpanne

Members
Apr 19, 2014
3,202
332
Hello I am with 13.0.12 eu stable and i am going into teamwin and try to install the last one 13.0.13 zip for my mi 11 ultra but i got unable to mount the storage :(
 Can you please help me?
Thanks in advance!!
write in detail the steps, twrp version what you did and if you tried the workarounds
 
  • Like
Reactions: rohan555

rohan555

Members
Jun 24, 2021
115
30
Can anyone please update when can we get fastboot version of miui 13 latest version for mi 11. I saw that only twrp is released. I want the fastboot version. Will that be released? any chance you can think of. Please let me know. Thanks.
 

rohan555

Members
Jun 24, 2021
115
30
did you try this on 1st page and do you have twrp for a12?
If you cant decrypt / see your folders after booting TWRP
- change Pattern/Password to PIN or remove it and try it again
- another solution from @Karpfenhai
- further solution from @digeratz
I tried to remove pin and still twrp didn't work. 2nd I tried to mount system and then again fastboot twice.. Still I couldn't find the rom installed in the internal memory.
 

katerpanne

Members
Apr 19, 2014
3,202
332
Can anyone please update when can we get fastboot version of miui 13 latest version for mi 11. I saw that only twrp is released. I want the fastboot version. Will that be released? any chance you can think of. Please let me know. Thanks.
there will be no fastboot rom version if a recovery is available….