yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Edge Questions and Answers] 5hoai8:
Try Pie stock ported rom

https://www.androidfilehost.com/?fid=1395089523397971649

Developer:@max35000

Ordinary person with extraordinary wishes.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Freshly built for cepheus twrp 3.3.0

Now working with standard builds of opengapps no need for the custom build.

Known issues:

Global FW only unless you flash matching dtbo and boot.img

Does not support encryption

Instructions: unzip and flash the image via fastboot.

Changelog:

v11 hope this fixes backup/restore issues some were having

TWRP v12 Download:

https://www.androidfilehost.com/?fid=6006931924117882399

Kernel source

https://github.com/randomblame/android_kernel_xiaomi_sm8150/tree/twrp
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
serious things start ! Keep it up
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
stuck at logo screen..then bootloop. flashed recovery-mi9-3.2.3.img right away and i'm back to recovery.

:( impressive gapps arm64 compatibility with all recoveries collected:

recovery-mi9-3.2.3.img - nope

twrp-3.2.3-6-cepheus-mauronofrio.img - nope

twrp-3.2.3-10-cepheus-mauronofrio.img - nope

Twrp_3.3.0_Cepheus.img - nope

twrp_cepheus.img - nope

twrp_en.img -nope
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
I'll throw the stock kernel in and that should fix it. This one seems to have an issue with some devices that I haven't figured out
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
thanks. the upstream kernel you published also bootlooped. is it the one you will push in it?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
New build is up with the stock kernel. Should be more compatible. I still have people running off revos who say it will not boot. I believe there is a partition layout difference. This has been tested to work with GLOBAL firmware and gsi's on top
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] portfolio:
v2twrp is not booting with revos, stucking at bootlogo, will go back to previous twrp
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Revos and anything based on the china firmware kills it dead. I'm gonna try to pull the kernel out of the china fw next and see if that is compatible with both global and china firmware layouts
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Please be sure encryption has been disabled before testing otherwise it's not going to load
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Aybouzaglou:
Backup works?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Hi [MENTION=1776875]randomblame[/MENTION] for the decryption/encryption problems, if it doesn't work just disable it in compilation process hiding TW_INCLUDE_CRYPTO := true and others crypto flags.

For the clock you can see this commit: https://github.com/mauronofrio/andr...mmit/3647d514f905764e2d095a54213e4d52085d28da

Maybe you will need to set it to 84 more or less.

For adb, you should build the twrp with -eng and not with -userdebug, userdebug build is not more used since android 8.1

I didn't find a device tree source so i decided to write here.

Hope this will help you fix your problems
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] FaserF:
Thank you so much, finally a recovery with working gapps installation :) :) WOHOO!

Tested with https://treble.andro.plus/ FolokoROM with newest opengapps mini package

EDIT: Sorry its not working, the gapps package was flashed successfully, but after a reboot there were no gapps installed. ?

MindtheGapps works but there is no faceunlock :(
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
Is Nandroid working on this one?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Hey thanks for the tips clock needed an offset of 80, adb is fixed and hopefully encrypted devices will not fail to boot and allow /data to be formatted. Backup seems to be working.

The problem with the opengapps packages is that it is not set up for system as root I'm pulling down their git and I'll build one to host as well
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
v4 test:

MTP: working (auto mount)

ADB sideloading: working

OTG: no :((( -> only one time setup via sdcard or PC sideloading

Encryption: no

OpenGapps64: yes (after resize thou)

Backup: not tested

Reboot to fastboot: ok

Reboot to recovery: ok (not with fastboot thou, don't know why this is common)

Advanced functions={Copy log,ADB sideload,Terminal,File Manager,Reload Theme,Fix Contents}

Partitions mountable={System,Vendor,Data,Cache,persists,cust,metadata,sdcard}
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
The problem with the open_gapps package is here:

https://github.com/opengapps/opengapps/commit/82538ba5b07e3093a11d583463b07a848a4a32b9#diff-4b4d756dd3b2a232970b47588e486edd

The device is not detected as system as root or a/b I'm gonna try to put together a package for us.

if [ -n "$(cat /proc/cmdline | grep slot_suffix)" ];

then

ui_print "- AB DEVICE DETECTED";

device_abpartition=true

SYSTEM=/system/system

VENDOR=/vendor/vendor

elif [ -f /system/system/build.prop ];

then

ui_print "- SYSTEM_AS_ROOT DEVICE DETECTED";

device_abpartition=true

SYSTEM=/system/system

VENDOR=/vendor/vendor

else

device_abpartition=false

SYSTEM=/system

VENDOR=/vendor

fi

this should work

*edit ok toolbox is not properly linked in twrp so these changes will do nothing for now. I did compile a version of opengapps that DOES install through this recovery and will link it in the OP I also modified it so that it should pass the architecture test that it fails in the china twrp if anyone prefers that one. It is only micro but if there is demand maybe I can make a couple options but I would prefer to find a better fix.

The working version of gapps is here: https://www.androidfilehost.com/?fid=1395089523397955923
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
also started working on this for fun [IMG="lineage recovery"]https://pbs.twimg.com/media/D5XraQPUEAA9PkE.jpg[/IMG]
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] portfolio:
v4 still not booting into recovery with ROS :rolleyes:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] portfolio:
ok, I have to correct, it is working with ROS, this time I flashed v4 over fastboot and it boots into recovery (1st I flashed v4 in my previous TWRP, so one has to use fastboot command to flash this TWRP).

Also this TWRP is really nice to understand and to handle, Thx for that, I'll try corrected gapps later, also no problem to mount system and seeing gapps have to install into /system/system

:good::good::good:

anyway strange: booting into recovery only succeeds when usb-connected to a PC over adb command/vol up+pwr/on-off menu,

when not usb-connected, no way to boot into recovery, always boots into system after a short waiting time showing the mi logo

???

also: other TWRPs show the partition /system/system as /system_root/system and /vendor/vendor just as /vendor and I suppose

the downloadable opengapp-version will only work with v4 twrp and not with other twrps mounting partitions in a different way
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Aybouzaglou:
Can't wait to test, thanks for working on it!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
New build up, version 5 fixes the filesystem layout and will allow for the installation of standard opengapps packages once a pending commit on their end goes through. this build also allows you to flash system and vendor images through recovery
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] leviackerman91:
Any chance to get encryption working soon?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
possibly I think the issue is just with my kernel. Jumping around a lot working on this thing because there is just so much to do with a new device.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
Encryption? easy to live without.. Read my lips: O T G ;)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] TobiPeter:
Well, encryption is the only secure way to save the own data, even when a thief has the device.

So yes, it's easy to live without, but I get slight headaches without.

So I'd really love to see encryption support. :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
I think otg is fixed new build on the way also encryption *might* be working

*it's up let me know
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
No signs of a working backup?

Most important as a flashoholic.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] pimpmaneaton:
v7 flashes fine, but the recovery is not booting for me. Flashed as an image in recovery and also through fastboot. V6 is fine. Also I am able to access storage in recovery in v6.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
backup works
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
this likely means encryption is still not fixed oh well I'll disable it and upload a new one

OK v8 is up sheesh. Encryption disabled again, I'll test that some more but usb otg should be working I don't have a cable
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
I wanted to try the new twrp but after doing the fastboot it starts up and gets stuck on twrp, did I miss something?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
disable encryption and wipe data and cache and you should be good to go
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
I'm on floko and I don't know how to disable encryption .. I have to do it from the previous twrp?, excuse inexperience

but doing so I lose everything. should I re-do the installation?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
or you just stay with what works until the bugs are sorted
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
of course i encrypt data 100% and reject any ROM that doesn't support it.

but for flashing, it doesn't matter as /data isn't touched.. flashed 100 times with the same encrypted data there.

one advantage is place ZIPs IMGs there but if it's broken you need a SD card. and if you don't have it, e.g. by owning a chinese flagship;), you need OTG. priority #1 therefore:)

in dozen years, never backed up. i'm lying, i tried it few times. but never restored it. lowest priority;)

thanks. it's frozen on intro screen, i thought v7 would freeze if there's encrypted partition?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] pimpmaneaton:
v8 seems to freeze as well at twrp splash screen.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
the only two things that are causing that issue are encryption and a non global fw base. Ros particularly breaks crap its like supporting two seperate devices. I recomend global stable as a base. Im downloading the latest version of that to make sure they didnt break anything again. This thing is a bootlooper, between encryption and vbmmeta and mismatched fw it's not gonna be pretty.

double checked and 10.2.9.0 global stable is still working well http://bigota.d.miui.com/V10.2.9.0.PFAMIXM/miui_CEPHEUSGlobal_V10.2.9.0.PFAMIXM_45a4e7920a_9.0.zip just remember every time you flash a stock rom you must disable encryption and flash vbmeta disabled to use my twrp or any gsi images. The goal now is to get an actual rom built
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
interesting.. i have global dev(=beta) base, doesn't it count?

those steps are scary.. i flash stock rom on daily basis just to make stuff work.. whenever i get into bootloop i flash xiaomi global dev then immediately custom recovery,system,kernel and all is good. during that process, data is intact, although not visible in twrp. so i don't plan to disable encryption or in other words "delete data" more than let's say "once a long while":o

now we're getting to know what is this command for:

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

and why only phh and you require it, while i run 100times crossflashed global/flokorom vs all variants off gapps/kernels/twrp without this command. also asking here, others wonder too :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
When you flash a stock rom the vbmeta partition is overwritten with a signature that the device uses to check against the system image (maybe boot, recovery as well?) If the signatures do not match it prevents the device from booting. It's a security feature and it's obnoxious. That command flashes an image to it that nullifies that problem.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
Great that backup works... Thanks...

No hope it will work for all Roms...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] cLeAv0:
I think changes in China roms will also apply to global since it gets earlier updates that get pushed to global. I just hope we can also use them with your work in the future :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
managed to get a log of twrp failing to boot at least
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
v8 OTG: check 'storage/usbotg1' -> Unable to find partition for path '/storage'

there's also 'storage/usbotg' and 'System' twice.

gapps install but don't stay.

resizing system -> '/sbin/e2fsck -fp /dev/block/sde54 process ended with ERROR: 8 Unable to repair system'

...

finally succeeded with global flash and UNOFFICIAL opengapps. finally got faceunlock to supplement poor fingerprint temporarily.

flashfest is over once opengapps is required.. it's one time flash again (no OTG + recovery won't reboot anymore).
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
new build should fix no boot scenarios and adds kernel support for reading ramoops. Still may not work with china/eu firmware.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
I tried your latest TWRP v9 and it works great ggrraazzzzieeeeee
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baszu:
work great with which rom?

what is main different for this twrp to the one from China LR.Team?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
Floko rom
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
Backup is not working on ROS

The rest is.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Potato997:
Read the first post, global FW only. ROS is based on China one.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Backup and restore work great just as long as the partition isn't encrypted and you are using global as a firmware base
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] pimpmaneaton:
So I am fairly new to MIUI and these firmware variants. Is EAA Global Stable the so called global firmware that is needed, or something else.

I have been using it with the xiaomi.eu builds and also now EAA global that I am currently on and seems to have been just fine.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mNiosu:
I don't think I am wrong if I say that most users of the Mi9 use xiaomi.eu as a custom ROM. So backup possibity on this ROMs would be greatly appreciated.

Is there a plan to have it supported in a future update?

Thank you for your work!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] _MartyMan_:
v10 is out on afh
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
v11 is up, my builds are now working with standard builds of open gapps as well no need for custom

It will also boot with encryption enabled but will be unable to modify the data partition except to format it so it should be good enough to at least install zips and images with and keep your encryption but no promises
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] _MartyMan_:
It does not boot with latest xiaomi.eu firmware... At least not for me :/
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] djbosanac:
fw needed, i am currently using xiaomi.eu ROM but the twrp was removed by android. So i need to redo again.

But can you confirm me this will work??

EDIT:

It does not work. I am using Xiaomi.eu ROM, but this TWRP does not load :( so need to wait for a new one.

Maybe a official one from twrp.me when it is available??

Same here!!!!!!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] KRiST0F:
Is there a way to disable encryption before installing twrp
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Dariusdd:
There isn't, since encryption has been a mandatory thing for android devices for about 5 years I believe?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Potato997:
You can disable encryption with the chinese TWRP (LR.Team/wzsx150)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
You can also disable encryption by formatting data in this twrp.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
I was told it was booting on xiaomi.EU fw it may have been an older version
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
[MENTION=7485562]Potato997[/MENTION] rm-forceencrypt in TWRP? what it will do? nothing, right?

[MENTION=1776875]randomblame[/MENTION] thanks, tried TWRP v11 on GSI, it can now install opengapps but they don't work (no gms) - so i used UNOFFICIAL package again. no OTG so i still need sideloading. i'm using the upstreamish kernel now:)

this gapps process sucks so much, besides painful flash process, have to also reinstall all noncore google apps each time, flush data&caches of gms,disable youtube updates, reapply permissions, reapply smart lock, and also i think i get storage access popup for any app. that'a lot to do weekly. when this will be included in non-lineage ROMs?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] rumrunner4000:
I also installed v11 via fastboot and can confirm it does not boot on xiaomi.eu 9.5.1. back to LR team beta 8 for now.

Appreciate the effort you are putting in to this.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
has anyone tried the eu system.img on top of the global vendor? maybe you can have your cake and back it up too
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] :
I tried v11 with floko gsi ans it worked great. With official gapps I couldn't get faceunlock to work. [MENTION=1776875]randomblame[/MENTION] With your unofficial build I was able to use it.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] portfolio:
I am on vendor base EU 10.2.16. 0 with an Gsi rom on top, installing succeeded with previous Version twrpv9.

Now I flashed twrpv11, booting twrp and system fine, did not yet try anything Else within this twrp v11 yet.

question@randomblame: your twrp is the onliest showing me 2 System partitions to Mount, both the old non treble conform Former System Partition as well as system_as_root Partition?? confusing when flashing.....

thx for your work!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Yes it's set up "properly" according to Google by mounting system_root and system the trouble is twrp isn't applying the correct lables to them in the mount menu it bugs me also. System as root is new and hopefully the kinks will be worked out
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
the issue with the china firmware is an incompatibility with the included kernel and the dtbo.img on your device. here is a solution:

flash the recovery as normal

fastboot flash recovery recovery.img

then flash this dtbo.img https://www.androidfilehost.com/?fid=1395089523397961200

fastboot flash dtbo dtbo.img

then flash a compatible global boot.img

https://www.androidfilehost.com/?fid=1395089523397961695

fastboot flash boot boot.img

now that you've changed the boot.img make sure you have disabled vbmeta by flashing the vbmeta.img https://www.androidfilehost.com/?fid=1395089523397961213

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

with these steps it should work. you may also need to swap modules for example on the Q beta the wifi modules have changed so I had to replace the existing ones in the vendor image with the global ones that my kernel is compatible with

link to compatible modules from global 10.2.9.0

https://www.androidfilehost.com/?fid=1395089523397961207

those can be moved by booting to twrp, mounting vendor and running

adb shell

rm -r /vendor/lib/modules

exit

adb push modules/ /vendor/lib/

with these steps I have twrp and my upstream kernel working great on the Q beta

This could be done as a flashable I suppose and maybe I'll consider it in the future.

flashing a stock rom after following these steps will undo them be sure to only flash system and vendor images from xiaomi roms otherwise you will have to redo it
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Ducter:
Sorry for the off topic, I'm waiting for my time to pass to unlock the bootloader. What's your initial impression of the beta in it's current state? I am hoping it can be a daily after a bit more optimizations or at least a solid base for stock Android.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] randomblame:
Finger print reader is broken and camera is nerfed, but it's clean aosp at least without miui bloat
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] manuelbvb:
Is it normal that i dont see the "emulated" folder in "storage" folder?

So only way to Install is via sideload or otg?

Thank you
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ManuBBXX:
Factory reset + erase all with this twrp does not remove encryption ?

Only the chineese version will do ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] :
Format data and you are good to go. Even with this recovery.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Potato997:
You can format data with this TWRP too now, use latest v11 version
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] djbosanac:
i cannot boot in to TWRP.

I tried all 3 of the TWRP methods

and runned this script

fastboot boot twrp.img - stays for 30 sec black screen, and boots in to phone.

fastboot flash recovery twrp.img - stays for 30 sec black screen, and boots in to phone.

What to do.

I have installed all the ADB tools, OEM unlocking enabled, USB debugging enabled.

Nothing is working.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] portfolio:
a known problem related to none global firmware, which firmware base do you use, MI (global), EEA, CN, EU ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] :
Fastboot boot TWRP didn't work for me too. Phone just boots normally after some seconds.

I did...

1. reboot into bootloader

2. fastboot flash recovery

3. Press power + volume button up and boot into recovery directly.

This worked for me. But I don't remember which rom I had. (Global, EEA or Chinese)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] doggydog2:
correct, remove

fastboot reboot recovery

from your list of commands for this phone. Buttons only:)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] _MartyMan_:
Somehow fastboot reboot recovery is just fastboot reboot for the phone. :|
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Asapakyou01:
It will work on eu rom 9.5.1?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] marcodindo:
Does this twrp work to install the last last eu 9.4.25 whitout problem?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] :
Idk. But with ROS 9.5.1 it worked.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Cannot flash MIUI Global rom 9.5.9

Roll back TWRP 3.2.3-10 and it works great !
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] coey0814:
I'm using 3.3.0 v11 & flash EU weekly 9.5.9

It works great :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Hot-Proton:
Edit: Sorry wrong Thread
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] baggino:
.....and backup??
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] :
Nope.