[HowTo] Install Recovery image


katerpanne

Members
Apr 19, 2014
3,556
332
How to install a xiaomi.eu recovery image

Because of more and more working TWRP or OrangeFox 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 / OrangeFox for Android 12
- download TWRP for your device from xiaomi.eu
- or TWRP for your device from skkk mirror
- if its a *.zip file then unzipp it
- 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" from Playstore
- Check for this entry
1656999560244.png


Prepare Boot and install TWRP / ROM
- open "cmd.exe" on your PC
- change to directory were you have installed adb & fastboot
-> as example "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"
-> as example "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
1656409453056.png
- optional you can flash TWRP permanent with "Install Recovery Ramdisk"
- Reboot to System -> see nice pictures from @gogocar62
1656409498887.png

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
1656409453056.png
- Reboot to System -> see nice pictures from @gogocar62
1656409498887.png
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
1656410825784.png

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
"reboot recovery" means to restart TWRP Recovery from TWRP "Restart - Recovery"
-> sometimes you need more then one try

Other workarounds
-> start TWRP - wait 20seconds - install rom
-> if it will not work choose another twrp version
-> system partition setting RW in the TRWP options
-> twrp->Wipe->Advanced Wipe->Data->Repair File system

If you cant decrypt / see your folders after booting TWRP
-
check if you use the correct TWRP (see links)
- change Pattern/Password to PIN
- remove the PIN in system and try it again

Solution from jarvan_liu
I just had a same problem (nothing is in sdcard, and no device shows on PC)
In the TWRP home page, click Mount, and click stop MTP button twice (I forget that button name)
(which means to disable it, and re-enable it). Then everything works fine.

- if it will not work choose another twrp version

Device is rebooting twice after installing ROM with TWRP
look here for a configuration / solution from @Birraque

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 if it is permanent
# restart device
# hold "power on" and "volume +"

# fastboot reboot-recovery
# fastboot reboot recovery
# adb reboot recovery

How to update TWRP manually
Boot to TWRP and install the newer version
- see nice pictures from @gogocar62
1666087658895.png

You can check if your device is unlocked (Bootloader)
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

Fastboot or Recovery rom
- xiaomi.eu_multi_MI10Ultra_V12.5.10.0.RJJCNXM_v12-11.zip -> no fastboot in filename -> recovery rom / twrp
- xiaomi.eu_multi_MI10Ultra_V13.0.4.0.SJJCNXM_v13-12-fastboot.zip -> fastboot in filename -> fastboot rom

If you get this error message "Cant install package ... over newer build"

1665639184602.png


You can try this three workarounds

1.) Try an older / another version of TWRP

2.) Edit the updater script
- within recovery rom
- look for the updater-script along the path – META-INF> com> Google> android
- edit the script
- delete this line...
(!less_than_int(1659279405, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sun Jul 31 22:56:45 CST 2022) over newer build (" + getprop("ro.build.date") + ").");
- save it / put it into ROM
- reinstall the ROM
1665639273605.png


3.) Calculate a newer Date and insert it into the Script
https://www.unixtimestamp.com/

Fastboot HowTo
https://xiaomi.eu/community/threads/howto-install-fastboot-image.64508/

 
Last edited:
What should I do if after typing fastboot.exe boot twrp.img it does not load the TWRP interface as described in the steps? (Redmi Note 10)
"TWRP should be loading and then enter PIN/Pattern/Password"
 
What should I do if after typing fastboot.exe boot twrp.img it does not load the TWRP interface as described in the steps? (Redmi Note 10)
"TWRP should be loading and then enter PIN/Pattern/Password"
which twrp are you using it must be for android 12? I think you have a device with codename sunny. Please check if it is A/B device

Check if you have a A/B device or not
- Download Treble Check
- Check for this entry
1656999560244.png
 
Last edited:
This description is super!
Thank you!

But unfortunately I still don't understand how the OTA update works in ROM.
I understand from the description that you always have to manually upload the ROM to the phone and install it in twrp.

I apologize if I misunderstood something.
 
This description is super!
Thank you!

But unfortunately I still don't understand how the OTA update works in ROM.
I understand from the description that you always have to manually upload the ROM to the phone and install it in twrp.

I apologize if I misunderstood something.
if you have installed recovery rom and / or TWRP you can download (OTA) the rom to you device and install the update with TWRP....
 
  • Like
Reactions: Mardinli
which twrp are you using it must be for android 12? I think you have a device with codename sunny. Please check if it is A/B device

Check if you have a A/B device or not
- Download Treble Check
- Check for this entry
1656999560244.png
My devices is android 12 and A/B
 
The skkk TWRP has the "this is a haydnpro" error. After updater script edit to continue flash it still doesn't work because there is an cant find/mount /system and other partitions.
Redmi K40 Pro+
 
Last edited:
The skkk TWRP has the "this is a haydnpro" error. After updater script edit to continue flash it still doesn't work because there is an cant find/mount /system and other partitions.
Redmi K40 Pro+
did twrp ask for a password?
 
hello before the roms were fastboot i had the twrp on my venus device from now on i see that they will only be rom recovery so i will have to reinstall the twrp but i would like it definitive not fastboot, in the guide there are too many steps that probably not they must all be followed. This creates a lot of confusion, help me please
 
If you have an A/B device:
You only run TWRP from fastboot mode. After installing the ROM, TWRP remains permanently.
 
Last edited:
  • Like
Reactions: 1647838042
hello before the roms were fastboot i had the twrp on my venus device from now on i see that they will only be rom recovery so i will have to reinstall the twrp but i would like it definitive not fastboot, in the guide there are too many steps that probably not they must all be followed. This creates a lot of confusion, help me please
too short too long… I think its better in more detail and if you did some steps before, then go to the next step. Not all people unlocked the bootloader and so on… its up to you to write a howto by your own
 
  • Like
Reactions: 1647838042
but first you have to install twrp manually….
The first fastboot boot, then copy the device rom and install from twrp, reboot and I will find the twrp already installed right?
too short too long… I think its better in more detail and if you did some steps before, then go to the next step. Not all people unlocked the bootloader and so on… its up to you to write a howto by your own
My bootloader is already unlocked because I'm on eu rom fastboot 13.0.8 stable venus device
 
The first fastboot boot, then copy the device rom and install from twrp, reboot and I will find the twrp already installed right?

My bootloader is already unlocked because I'm on eu rom fastboot 13.0.8 stable venus device
you told my howto is too detailed .... it seems that you dont read it. the answer is in my howto ...
 
I didn't say that, I said there are too many steps from unlocking the bootloader onwards and it gets a bit confusing
 
Thanks for the thread. But Iwould like to ask if the following can be done and if its safe...

Can I dirty flash the twrp and then the latest A12 rom on my Mi 10 which has MIUI 12.6 and 21.11.3 rom?
 
Thanks for the thread. But Iwould like to ask if the following can be done and if its safe...

Can I dirty flash the twrp and then the latest A12 rom on my Mi 10 which has MIUI 12.6 and 21.11.3 rom?
I dont know your device. Depending on whether it is a A/B or non A/B device… boot or flash the new twrp and install the rom