So I managed to flash current xiaomi.eu rom with the provided twrp recovery.Do you know the method to flash these recoveries?
fastboot flash boot_ab image.file
and then patch ramdisk.Code:
fastboot boot image.file
I tried the 2nd method and device doesn't boot to recovery. I was afraid to flash it directly using the 1st method, because X5 pro uses "Boot as Recovery (A/B)" and doesn't have a separate recovery partition.
Commands to flash twrp within fastboot:
For slot a:
fastboot flash boot_a twrp.img
For slot b:
fastboot flash boot_b twrp.img
For reboot into recovery:
fastboot reboot recovery