yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Just use hotboot for now. Or go back to Oreo. I can't fix Pie when I can't compile under Pie.

Also, you are flashing Magisk, right?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Abhaysinh:
Ok, I got it, I don't much about this development stuff, My bad.

Thanks for clarifying.

Yes I have flashed Magisk.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I don't know much about Android development either tbh, not the ROM and device tree stuff anyway. It took me like 6 hours to discover that LOS has unfinished support for building custom Recoveries lol.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] saski4711:
Hopefully the LOS devs will get their act together and add support for recoveries other then their (sh*tty) own ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] taurelio:
LineageOs will only official support lineage recovery. That was stated on LineageOs blog when official support for A/B partition was added

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Typical, it's not the first anti-community decision they've made....

...I'll talk to some people, see what I can figure out.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] AG14795:
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/tissot-p-oss

Will this help in anyway compiling TWRP for Android Pie?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] murtaza1326:
it's upto los and du ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] paolocorpo:
Ciao

I am highlighting for you this new thread

https://xdaforums.com/mi-a1/how-to/permanent-twrp-android-p-beta-official-t3880550

The user ensure (and there are many others confirmations) that the last release of Cosmic Dan recovery can be used wo issue and permanently on Mi A1 with last PIE too
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dusayanta:
[MENTION=1844875]CosmicDan[/MENTION] Sir, please update the twrp.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Chirag_1537:
I tried flashing TWRP installer on the pie beta and it said system destroyed. I can still boot into the rom though. I'm going to try installing magisk with the hoboot version of TWRP and then giving up for now.

Is this super abnormal? I'm kinda out of the loop with this whole rooting stuff for like the last 4 years, I've never dealt with the partition ****.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yasars:
from Dez Stock to March and then November Stock... my TWRP is freezing

anybody can help me??

via Hotboot all working fine... but when i go to recovery my touch is freezing /respond :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] aravindhghosh:
What if flashed recovery in fastboot instead of hotbooting it??? What happens any warning just to know?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] paolocorpo:
Let give a look here:

https://r.tapatalk.com/shareLink?ur...share_tid=3880550&share_fid=3793&share_type=t

Permanent TWRP on Android P Beta Official

Inviato dal mio Mi A1 utilizzando Tapatalk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yasars:
[MENTION=1844875]CosmicDan[/MENTION]

i found an bug i hope you can help me to fix that..!!

after i lost LTE on stock pie , i restore my (oreo) EFS,Boot,Modem partion after that i flash an oreo rom (9.5.9.0) via fast boot, after that i flash your twrp via fastboot, and boot to TWRP , after that i flash the twrp installer and boot to twrp to install Pixel experince rom, it is not lying here, but after twrp install automatically, i have lost touch responding...i must wait 10-15 sec to responding the touch....

Stock pie 10.xx > EFS restore > 9.5.9.0 > flash twrp installer ... allways perfect

install Pixel Experince Rom and twrp automatically install twrp i have lost touch responding :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] justboryata:
Flash firmware
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] yasars:
have it doesnt help... 9.5.9.0 ... on stock pie 10.xxx have i not responding problems..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
As I've said before, it's incompatible with Pie kernel. Don't flash it, just hot boot it. I can't update it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Unipo:
Is it? I am able to install your kernel on the latest Lineage 16 with Canting kernel with the latest pie beta stable firmware ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] talayy:
Because you're using a custom boot image and not stock and, recovery is related to ramdisk inside boot image.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] OprekRobotHijau:
I already have custom recovery but now i want to replace the recovery with your custom recovery, what i just flash your custom recovery installer via twrp or flash boot.img first? Thanks before
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dusayanta:
[MENTION=1844875]CosmicDan[/MENTION] Sir, please update the TWRP .
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
He don't have stuff to update it. So it won't be possible. Please don't ask again and you can use read option
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] bmf31:
How to un-treblized user data ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You mean split userdata for dual boot? Restore the stock partition table via Tissot Manager menu and start over.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] bmf31:
Thanks for your response , restore partition via tissot manager and do flashing to stock November is fully working. Now use AEX 6.1 comes with this Great TWRP ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] timotej011:
So with 9.0 pie its said that you should only hotboot the recovery. Have a bit o a problem my phone keeps hot booting into recovery even tho its not conected to my pc. I can confirm that because i didnt flash the twrp installer and aroma dosent work.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You must have done fastboot flash instead of fastboot boot; hotboot = fastboot boot
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] timotej011:
it seems that i've corrupted my system and the phone automatically hotbooted into TWRP. Can confirm that cuz i flashed AEX and it worked like a charm (I Booted into recovery and TWRP wasn't installed.) Anyway decided that getting my phone back to stock with MiFlash was the best option till we get a fully working flashable TWRP. Thanks for your time mate.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] odyss199:
ummm kinda of a silly question but anw, i've seen many users saying that TWRP is not compatible with Pie and that we should boot to it rather than installing it.

But why is that?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SevenSlevin:
are you going to update twrp for pie stock or it doesn't mean nothing? or can you update it with kernel 4.9?

actually on stock pie if I flash twrp.installer I get: system is destroyed.

on kernel 4.9 I can't use mtp so I can't Copy items from pc to phone. Maybe it is kernel issue.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Might never happen, see below.

Also there's no such thing as "automatic hotboot", as I said: hotboot is "fastboot boot", it doesn't flash anything but just loads the IMG from RAM - once you reboot it's gone and stock kernel is booted.

Maybe, maybe not. Depends if someone figures out how to build TWRP under Pie (Omni 9.0, LOS 16, etc.). If nobody does then this recovery will never be updated.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] MrBurnGamer:
If you guys have the "The system has been destroyed" message after installing cosmicdan twrp then boot the bootable img file again and once you are into twrp flash magisk, this should fix the issue and also make you able to have the twrp installed permanently on the stock pie rom
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] kolpomanob:
is there any chance of having f2fs support in future
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Chimax:
I tried this method to boot into TWRP. However, it did not work at all. It showed me a message that 'The system has been destroyed. Please shut off.'

However, the phone has rebooted back. I don't know why this happened.

Please help me in flashing TWRP.

I am on Pie with the January update.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You posted this same question in three threads. I already answered you in one of them.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] nilkanth.marshiwane:
[MENTION=1844875]CosmicDan[/MENTION],If I don’t care about internal storage and userdata, with this twrp I can repartition device for treble support and revert to stock partition easily. After restoring stock partitions with this recovery, I can use miflash tool to flash stock rom in fastboot mode. I don't want to use edl mode to flash stock rom and to restore stock partitions, as it can mess up persist partition. Am I right?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Not if you backup with my Low-level backup restore tool beforehand - that saves your persist and stuff.

I can't guarantee stock OTA compatibility unless you restore with EDL. The repartition-back-to-stock is stock, but the partition table is still "dirty" - it might be detectable by OTA. I really don't know.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] nilkanth.marshiwane:
[MENTION=1844875]CosmicDan[/MENTION] If anyone don't care about internal storage and userdata, this treble equipped twrp successfully reverting treble partitioning to pure stock partitioning.After reverting to stock partition table, ota also installing successfully.I done it successfully.No thing like dirty partition.Amazing treble recovery!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Seamless system update unsupported after flashing dot gsi IMG vendor and boot IMG fla

When I am on RR experimental treble its showing seamless system update supported . But when I clean flashed dot os system.img , vendor and boot.img flashed and your treble manger twrp installer and rebooted to recovery and flashed gapps and magisk. and booted to system and checked with apps 'Treble check' its showing seamless update unsupported. After flashing img file and twrp treble manager we reboot to recovery . but when we reboot to recovery actualy partition change from A to B is expected but it doesn't happen. All img file and twrp treble manager, gapps and magisk are flashed on the same partition . And it boots successful ly. But only seamless system update supported is not showing. What might be the problem? Kindly help me about this.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
1) It's dotOS's problem, not mine nor RR

2) Who cares? It's not even a problem, it doesn't have OTA in the first place.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I'm in the process of setting up my own TWRP recovery compiled from source, will include boot.img too for booting. The hope is to fix slot bug and also add and fix other things (I have future plans for dual boot).

I want to ask - is anybody against me using the TWRP material theme as default? See here for screenshots - https://xdaforums.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584

I personally think it's way better than the stock theme, I need to modify it for Treble Manager and stuff. But if many people are against it then I won't do it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] eddy_nugroz:
Cool
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Lol. He asked if anyone has issues? Why would you really reply on that post?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Unipo:
[MENTION=1844875]CosmicDan[/MENTION]

Not at all, this one look amazing :good:

And Z31s1G has accepted so I don't see any reason not to :victory:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
please add f2fs support

thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
I'm unable to mount the usb-otg. It always shows 0mb and I get an error when I try to format the USB key.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
If you guys could post these as issues on my GitHub, I'll get to it when I can. Otherwise I will forget about them :p

Thanks.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] virganda:
Need Help here... I got stuck after flashing RR AIO, it didnt boot and bootloop (i didnt flash magisk). After that I repartition my system to flash other non-treble rom.

Here is the problem, I cant change active slot in twrp. It always A slot. Because of this, I cant flash other custom rom like RR non treble.

When I flash with miflash via fastboot, its always say error when set active proccess. Stock rom is booting but active slot cant changing in twrp after that. Help please ???
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Read the guide..... Feel like a broken record here.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Mirdeusz:
Sorry for asking, but is there a miui gsi already?

Wysłane z mojego Mi A1 przy użyciu Tapatalka
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
If there was, people would be crapping their pants about it.

No, there isn't yet.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] virganda:
i read the guide and it must flash via EDL. I try to use EDL command promt but it didnt work. How we boot to edl mode on mi a1?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Read the guide (properly).

It says, at first mention of EDL mode, to see the FAQ at bottom about how to use EDL mode.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] paolocorpo:
If I want only the hot boot I usually am using the file of CosmicDan (TWRP-fastboot_boot_only-3.2.3-0-with-Tissot-Manager-2.5.img)

When and if I want to permanently have TWRP I use this procedure:

when I am in temporary TWRP(thanks to a hot boot like I said before) I flash the installer (TWRP-Installer-3.2.3-0-with-Tissot-Manager-2.5.zip) and later last Magisk and only after I reboot to system finding TWRP as new recovery vs that stock one
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
Can you nevertheless try once to boot into recovery? manually or in software

e.g.: adb reboot recovery

I had similar messages and assumed TWRP flashing had failed. But it had not.

When booted into recovery TWRP was there just fine.

Hope you have as much luck as me...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sai1524:
Error

Hi i tried to flash stock rom using a tutorial on youtube in that he 1st gone to tissot manager so i tried the same but for me its showing unavailable on hotboot

tissot manager cannot function correctly in hotboot mode. please flash it via the installer zip to use

can any one help me with this problem please .
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
Which stock ROM ZIP did you want to flash from hotboot? Which ROM do you come from?

I don't think you need Tissot Manager for such flash.

Is your device "treblized" or not (i.e. did you (y/n) previously create vendor ?).

If all you want is stock you may as well MiFlash an official Xiaomi stock ROM ZIP.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] akshaysalunke13:
Even I am having the same issue.

My device got updated to Official Pie a few days ago. It was never modded until yesterday when I unlocked the bootloader and tried to trebelize it with [MENTION=1844875]CosmicDan[/MENTION]'s tutorial. I am able to temporary boot into TWRP by Mohan but after installing the "TWRP with tissot manager" zip and rebooting in recovery, I get the same error "The system has been destroyed. Please shut off".

I also tried booting in recovery via fastboot and using hardware keys after flashing but the same error popsup.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] VRaju:
Flash Magisk 18.0 & reboot

"The system has been destroyed. Please shut off". should be gone....
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] AksharCh:
How much internal storage needed?

i have xiaomi a1 and i flashed resurrection remix rom in it through twrp and by mistake i reset/delete partitions in tissot manager so now i want to flash custom rom again and i repartitioned at single use and flashed a rom and then i was flashing gapps stock package but it showed error 70 and said that there is no space in storage pls use small gapps package so now i want to ask that on which memory slot i have to choose that can be able to flash any rom and such other packages like gapps, means how much space it need to flash roms and for proper partitions in 64gb mi a1. You can mail te answer me at perseegets@gmail.com and thanks in advance :)​
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Don't shrink system. Shrink Userdata instead. Or just flash a smaller gapps package.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Lord Kalma:
Booted the img, flashed the recovery. Used MTP to load a ROM (RRemix Pie), flashed the room, booted, etc etc.

But now MTP does not work on TWRP... It does on the ROM, but not on this recovery... Enabling does nothing. Is this known?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] portox:
yes, it doesn't work. if you really need mtp then hotboot twrp again, it may work
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes you need to hotboot. As I've said multiple times, the TWRP is incompatible with Pie kernel. So if you hotboot it will temporarily use the Oreo kernel which is working.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] paolocorpo:
Ok but do you confirm that after hotboot if I flash Magisk zip the recovery will be substituted to that one stock and will work stable ?

Inviato dal mio Mi A1 utilizzando Tapatalk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I don't know. I don't even have my Tissot anymore. Haven't tonnes of other people already said you can flash Magisk fine?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] paolocorpo:
Yes ... And I was searching for your confirmation

Your last response to previous user was different

All this ... Nothing other ...

Thanks anyway

Paolo

Inviato dal mio Mi A1 utilizzando Tapatalk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Oh! So you precisely moved onto Poco.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
Sad to hear. Thanks for all the effort you spent on tissot.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Chimax:
I don’t want to install it permanently. I just want it for installing RR ROM. However, I can't do it.

I won't give it a go now until something official with support for Pie is available.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Someone needs to fork and take over the project. I'll be asking a moderator to lock the thread soon. There's nothing I can do about the Pie situation as it's beyond my skill.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Typhus_:
Actually, all we need is to have a TWRP backup made before installing official Pie update. Either that or a complete backup made with [MENTION=1844875]CosmicDan[/MENTION] tool.

Hot boot TWRP

While on it, recover that backup

After, install TWRP Tissot Manager

Reboot to recovery

Done, now you may use a custom Pie ROM (official Pie sucks...at least for now)

For the ones who don't have a TWRP backup made before Official Pie update, you may get one on THIS thread. This thread also explains how you may downgrade to Oreo since, for the time being, if we flash an official Oreo ROM using MiFlash Tool after upgrading to Pie, it will result in a boot loop. More info about that HERE.

Cheers!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] skillszone:
Always getting Payload Failures not ignored message, while flashing the ROM (even if I do uncheck or check the payload ignore option, it doesn't work). Am I doing something wrong?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Possible that LOS or whatever ROM you're using has intentionally done it to block this TWRP. They do stuff like that sometimes. It worked fine for me when I first added that function.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Jt380p:
I have a problem/question. Im on stock pie jan patch, and about to install a custom rom, so i hotbooted to twrp and made a full backup. So, during the process of backing up data (excl. storage), I got an error 'E:recv error on uevent'. Is this a concern? Will I still be able to restore with this backup?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] apexashwin:
Ignore it, it happened to me after i unplugged otg on twrp
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Wyroczen:
This option works for me only once after flashing TWRP, second time I always get Payload verification NOT ignored :/
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Chimax:
Hello.

Installed TWRP, Magisk & GCam (BSG version based on Arnova or vice-versa).

Now, if I use WhatsApp to take a picture, it appears all green. A sample is in as below.

Please help.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mitux:
Hi. I want to make my own theme for this TWRP build. How can I do this?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] :
Use Lineage 16 (fixed)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] davidlikeandroid23:
I can install this TWRP on Android PIE January?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Jt380p:
When I installed it, I got system is destroyed message. So I reflashed stock rom with mi flash.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Chimax:
Yes.. You can..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] davidlikeandroid23:
You can install ROMs, magisk and mods without installing TWRP, just hot booting?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] newbie_newbie_xda:
No, TRWP installer doesn't work on this PIE Stock ROM.

You will have this messsage : "system Has Been Destroyed"

SOURCE : [TWRP] Stock Pie [9.0][V10.0.4.0 Stable][January Security Patch]

...

How to install

1. Reboot to TWRP (CosmicDan TWRP is recommended)

2. Wipe system, data, dalvik and cache. (if coming from a custom rom) (you may skip if coming from stock)

3. Install the ROM file.

4. Reflash TWRP installer (if you want to have TWRP installed in your phone later)(As of now, TWRP installer doesn't work on Pie so you'll have to hotboot TWRP using fastboot everytime you need a recovery).

5. Reboot to system.

6. Install Magisk 18.x after you've rebooted into system once (if you want to have root).

...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dodo3663:
do you know how to fix this? "system Has Been Destroyed"
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] timotej011:
Hotboot twrp and flash magisk.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
Are you saying one can flash twrp installer after one has installed magisk?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] timotej011:
Flash twrp then flash magisk. It worked for me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
... it did not for me

I flashed 10.0.5.0 from other thread, then twrp and then magisk and got "system destroyed".

So now I hotboot twrp.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Diaphragma:
I solved "System has been destroyed" by hotbooting boot-recovery.img and installing magisk. TWRP now boots fine on stock Android Pie.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blindi1985:
This works for me on RR too.

I installed twrp and immediately flashed magisk without reboot. Now it works without error "System has been destroyed"

I flashed latest official FW, made update to last security patch February and afterwards clean Install with RR, gapps, canting, etc, ...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
But did you reflash TWRP-Installer or did previous installed TWRP survive?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blindi1985:
I reflashed
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Dior DNA:
Thanks! This gives me courage to soon reflash as well.