your question is unclear, I tried to install rom from twrp with and without Magisk.
Now backup from twrp nad then I will try again with clean flash from twrp formatting the phone.
I had a K20, trying to install last update result in bootloop or reboo tin twrp 3.4.0.0.
If try to install also last Magisk beta reboot in fastboot.
No way to restart in miui :(
the problem now is when I install ROM after cleaned DATA start messagge:
E:unhandled flag: "wrappedkey"
E: unable to decrypt FBE device
After that the instalation follw but when restart the device boot always in twrp
:(
Any help???