yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] andheartman:
xiaomi mi a1 android 8.0 oreo not work.

Edit: After installing an old version of cosmicdan (recovery.img) I was able to load the new version cosmicdan zip file. But usb connection does not work when twrp is on. Everything else is working perfectly for now.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] scuslon:
I want to go back to rom stock. I need some help

[IMG="image"]https://i.ibb.co/F5wqq1Z/z2164720220652-246d8f08f266ae13b778d6d4535d9f36.jpg[/IMG]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Quick Q, so if i backup data partition of Non-Treble Pixel Experience, I can only restore it on Pixel Experience GSI as long as I partitioned system and not userdata, right? So I cannot use userdata option in TWRP if I want to restore data for non-treble backup? :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
See 4.5 in the guide.

If it doesn't work, it'd only be because the ROMs are incompatible for some reason (as if changing to a different ROM).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
I see I see. It shouldn't matter as long as the data backup I will restore is less than the repartitioned size. Thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] nilkanth.marshiwane:
Enter into fastboot mode. Use fastboot oem edl command to get edl mode.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] virganda:
Okay thanx u I got it fixed. But I dont know I cant success flashing RR treble... Its always make my slot got error,,, on fastboot its got error too and say slot b is not available... Now I using reguler RR
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You must have done something wrong. I can't do anything with what you've given me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I have a testing version for others to try if they want.

Changes since current version:

TWRP built from source (idea is to get it integrated into the RR Treble AIO ROM)

Fixes slot change bug (no need for the fastboot crap anymore)

Using Material theme

Since this is source built, everything needs testing. Installation works, Backup/Restore *should* work (with old backups too), but I am not sure if it will work with encryption.

No fastboot-bootable img yet (but there will be).

Thanks in advance to any tester.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] eddy_nugroz:
I cant boot to my curent rom always back to twrp even from bootloader reboot :confused:

edit :

need restore or flashing to back normal booting
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
Boots fine for me. I like the new material theme but unfortunately it didn't solve the issue with usb-otg :(
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Confirmation number: 2NR4278285372413G donated via PayPal. A small contribution from My side for supporting this A/B ****ty device. You have done a great job. Thank you for supporting this device. We all are thankful to you brother. I am not very rich but still did whatever i can. :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Not working for one person.... Eh I don't know why. Try again?

Oh I'll look at OTG today, lucky I have an adapter to test.

Thanks mate haha I spent way more time on fixing the slot issues than I care to say.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
For a head start this recovery has a working otg. Even the original one by mohancm has issues with otg
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I've already done it. I'm about to share a new build. Thanks anyway.

EDIT: And it's up. Enjoy!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
Works like a charm :D Backing up now!! Thanks!!!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] jack404:
did the new update fixed the changing slot function?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes, as changelog on GitHub and Guide updates shows (removing that information).

EDIT: Whoops, it doesn't show that. My bad.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SirFatbulous:
Can i use this twrp to install non treble rom and just use it like an official twrp version? Cause i see that the backup and otg bug has been fixed on this twrp
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes.

Backup bug? What backup bug?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SirFatbulous:
In official twrp can't restore any rom that i backup, after restore always bootloop
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I don't know of this issue, never had it myself with original TWRP. I can't guarantee that this fixed that because it sounds like a problem with something else.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] qzem:
Which rom do you use?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] oreo27:
Sounds awesome! I can't wait to finally have TWRP updated after such as long time. Also, the material theme looks way better than stock in my opinion.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] t0per666:
Experimental treble RR
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] TheZeroDev:
flah magisk after flashing recovery or your system will not boot
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CaioFerreira:
This guy again? OMG, you are so anoying
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
False. I don't use Magisk.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
my data partition is encrypted, i have try to flash but it ask for password while official twrp don't.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Which ROM?

I admit, I didn't test encryption. You can go back to 1.2 temporarily while I look into it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
[MENTION=1844875]CosmicDan[/MENTION]

i'm on los and would like to try your recovery with non treble rom, but at the same time i must use encryphed device at work, i have attached a log if it can be usefull.

1.2 is ok
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Typhus_:
Actually, it happened to me as well.

My device was already Trebelized, with RR Treble Experimental, with Magisk and with TWRP Treble Capable (v 1.2).

So I've decided just to install "TWRP Manager Tissot" (v1.3) zip.

Afterwards my device was always rebooting to recovery.

Decided to flash Magisk through TWRP, it solved.

Don't know why this happened.

Regarding "TWRP Manager Tissot", it lacks the "Portuguese from Portugal" language. I know that for a fact since I was the one to translate it and merge my commit directly to TWRP Gerrit. On previous TWRP versions the language was there. So I assume you may have based your TWRP on an earlier version, OR MAYBE, the theme you've decided to adapt was made based on an earlier TWRP version which didn't include PT language.

Now, if you allow me, and since you've decided to adapt a theme, how about if you adapt THIS one (version Light Play)? In my opinion is the best TWRP Theme ever!

Thank you for your work.

Cheers!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You probably had an old RR Treble before we disabled dm-verity.

Magisk doesn't work properly with GSI either.

This TWRP is English only and I'm not going to bloat it with more themes sorry.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Typhus_:
No. I'm on latest RR build from 23-05-2018. Never used any other before since on earlier versions the camera wasn't working.

Yes it does. I'm using beta version 16.4 and it's working great.

Fair enough...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
1.4 is up which fixes storage decryption.

Well it didn't before that. Point remains that I used RR AIO and GSI without Magisk at all and it worked. But this is off-topic so let's move on.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
no f2fs option support for los 15.1??

los 15.1 by default has f2fs support ( ROM AND KERNEL)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I looked into this but it's incompatible with TWRP right now. It doesn't know if it should format user data as ext4 or f2fs.

I could fix it but it's low on my priority list because it's not really important (unless you can convince me how much better f2fs is Vs ext4). I would have to add an option in Tissot Manager to force f2fs, or have some custom autodetection logic.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I've discovered that currently the shrunk user data might still have issues with encryption because I didn't reserve the footer required for metadata.

It works in some cases, though.

I'm working on next version right now which will solve this, and also hopefully add an option in Tissot Manager to encrypt the user data after repartition automatically (optional ofc).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
F2FS brings higher performance to flash based storage. Your system would boot faster (faster read speeds), the write speeds would be higher, allowing to record heavy 4K, higher frame rate slow-motion, and 360-degree videos. Additionally, the latency between the system and the storage would be ultra-low, meaning that the animation and opening apps would feel much snappier

arter97 has fixed the GC issues in f2fs that cause performance drop.. over the time f2fs became more stable. huawei phone since today has f2fs storage for example and its very smooth and snappier UI

hope you add f2fs soon

thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Oh so it needs to be used on /system as well as /data? Or only /data?

I'll look into it then, thanks.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
only data because system is read only so it is useless in system partition
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ashu00:
Some use it for cache also.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
there is no cache partition on mi a1

no need
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
But you said faster read speeds. If it's only on /data then I don't see how it would make boot faster because 98% of booting is loading from system/vendor, not data.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] TioCareca:
Keep the old trusty ext4, f2fs was developed by Samsung and even them don't use it, true its fast ( in some devices, i read all over xda that some chips don't work well with f2fs and they work slower than with ext4) but it degrade performance over time and some users in tests said that, a shutdown at the wrong time can cause data corruption that leaves your phone inoperable without repairing the partition or recreating it...

Not worth the risk i guess, at least not for now...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JoKeRLeE:
I personally don't recommend f2fs partition as it's not stable as ext4 partition and it's not necessary or compulsory for our Mi A1 because it's fast enough though. I also notice that f2fs might wear/degrade your data speed day by day even after format back to ext4 ...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
yes f2fs is not stable as ex4 right now but for people that would like to use f2fs like me is necessary

it is a simple button in recovery called "F2FS"... everyone is responsable of things that we do

if you want ext4 stay to ext4, if you want f2fs , change to f2fs.. simple

f2fs on emmc storage will notice more improvements compared ufs storage

so random shutdown and degrading performance are almost ALL fixed thanks to arter97
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Why is it necessary? It's not required....

...I'll add support anyway, just not make it default. Just to shut you and another guy up about it ?

EDIT: I updated the binary so you can manually format as f2fs now, and the fstab in TWRP should support it, but I can't find a kernel that supports F2FS to test it. That will be in next release.

If it doesn't work then I might have time to try it with LOS, but right now I'm busy working on dual boot.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daveve:
Looking forward for the dualboot. Used it on my old phone and is very useful. ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
1.5 released on GitHub and DevBB.

Changes:

Return original TWRP theme (more familiar interface, multilanguage and slightly faster)

Fix device lock from new encryption service breaking repartition

Maintain 16KB footer for userdata encryption when shrinking (requires repartition back to stock then shrink userdata again)

Update mkfs.f2fs binary to 1.2.0 (supports length argument). F2FS is unsupported and untested.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] methuselah:
Benchmarks [MENTION=1844875]CosmicDan[/MENTION]

I have a question. I have read threads. But still asking for the sake of keeping things safe. If I flash this recovery, I don't need to change slots for flashing gapps on another slot. Just flash recovery and flash ROM and gapps normally like any other non-A/B device?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Raxcoms:
Only for GSIs

You still need to change slots if you decide to use a non-treble rom
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Alessandro999:
tried to change to f2fs via terminal and button F2FS but still error unable to mount storage/ encryption unsuccesfully

hope you ll fix
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
If there is a kernel that actually supports F2F2 then I will look at it. But all kernels I see don't support it. I can't fix it until a kernel with it is provided.

EDIT: Also if you do it via shell you will break encryption. Use the GUI so it preserves the 16KB footer for encryption metadata.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] pl_blaze:
You could try my test kernel with f2fs/ntfs enabled (kernel is updated with latest caf/f2fs-stable patches and linux-stable v3.18.112 as of today). Hope this helps!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Is it treble compatible? I.e slotselect flag added to vendor fstab entry in DTB?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] pl_blaze:
Sorry, did not think about that, if you could point me to at patch for the kernel (i think i have an idea what needs to be done for DT) i could whip a new build shortly...thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Np I'll just decompile it.

Just look for the DTS used in the kernel tree, msm8xxx whatever it's called (different depending on your source) you should see it in your build folder or log to get an idea. You'll see fstab entry in there. Already has vendor and system added, you just need to add slotselect flag onto vendor (already exists on system).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] pl_blaze:
Thank you! I think i got it right this time...(discard previous kernel image, it will not boot into recovery, forgot to add skip_initramfs flag to kernel)

Please try this kernel image, slotselect patch below:

diff --git a/arch/arm/boot/dts/qcom/msm8953.dtsi b/arch/arm/boot/dts/qcom/msm8953.dtsi
index 8cb6c971761e..b963e6635b4b 100644
--- a/arch/arm/boot/dts/qcom/msm8953.dtsi
+++ b/arch/arm/boot/dts/qcom/msm8953.dtsi
@@ -36,7 +36,7 @@
dev = "/dev/block/platform/soc/7824900.sdhci/by-name/vendor";
type = "ext4";
mnt_flags = "ro,barrier=1,discard";
-	fsmgr_flags = "wait";
+	fsmgr_flags = "wait,slotselect";
status = "disable";
};
system {
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
thanks for your great job

i have a trouble. if i use your twrp for non-treble ROM, data ALWAYS encrypted. Titanium backup can't create data backup, only apk... Is it bug or feature?)

Sorry for my english)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I don't understand what you mean by APK backup.

I will check non-Treble ROMs.

Make sure you are using latest version of TWRP.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] fdc77:
I'm using 1.5 version on non treble rom and everythings works good also backup/restore encrypted data partition
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
ok... i use titanium backup. it saves apk files and /data/data/program files. if i use your twrp for install custom ROMs, data always encrypted. And titanium backup saves only apk files but not /data/data. don't know why.

please see log file. titanium backup makes backup of firefox beta... bad backup, no data/data files saved.

now i use twrp by mohancm, reflash rom, titanium works fine. and data not encrypted.

P.S. I used 1.3 version. will try newest 1.5. And thanks again)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I cannot reproduce. I install many ROM's and my data is not encrypted unless I encrypt in the ROM first.

Please boot my TWRP and Save Log and upload.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
Tried 1.5 version. CarbonROM official, latest build. If i use your twrp, magisk says "encrypted data detected. keep forceencrypt". And MagiskManager says "preserve force encryption". If i use twrp by mohancm , magisk does not says about encryption. i can make logs if you need that.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yes, TWRP logs please.

But there is no forced encryption in my TWRP...

Have you actually flashed TWRP or are you only booting it?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SirFatbulous:
Btw how to install this twrp if i already have official twrp and cutom rom installed, did i just need to repeat the custom rom installation process and change the official twrp installer with this twrp installer?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Just flash the installer ZIP from here. Don't worry about the ROM or old TWRP.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
Yes i flashed TWRP. Please see logs.

System says - device is decrypted

Magisk says - preserve force encryption :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SirFatbulous:
How about the gapps, magisk, & custom kernel? Did i need to reflash all of them?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Magisk will need to be reflashed. Nothing else.

You can just reflash ROM and everything after as you normally would though, if you want. Makes no difference either way.

When flashing anything, same process works for all ROMs/Mods:

1) Flash ROM

2) Flash TWRP

3) Reboot TWRP

4) Factory Reset (if changing ROMs)

5) Flash gapps/magisk/mods

Easier to just remember that instead of waiting for an answer about every specific case ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You're using the version that had the encryption bug.

Flash latest TWRP, then repartition your device back to stock, then repartition for Treble again.

Please only report bugs when you're using the latest version of software.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
it's 1.5 version.... this

https://github.com/CosmicDan-Androi...P-Installer-3.2.1-with-Tissot-Manager-1.5.zip

and i use non-treble ROMs

why repartition if i use non-treble ROM?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
You even said you were using 1.3.

Just wipe back to stock with EDL then, start over clean. I don't really know what you've done to get this situation. Nobody else has reported it, and they use this TWRP for non-Treble ROMs.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
1. flashed stok 8.0 (QFIL)

2. fastboot boot boot-recovery.img (your boot-recovery)

3. format data

4. wipe data/system/dalvik/internal

5. flashed ROM (AEX 5.5 official, non-treble), flashed TWRP-Installer-3.2.1-with-Tissot-Manager-1.5.zip

5. switched slots, reboot recovery

6. flashed Magisk v16.0. Magisk says again "Encrypted data detected, keep forceencrypt". Flashed opengapps.

7. Reboot. System says "device is decrypted", magisk says "preserve force encryption" again.

8. No, it's not my fault))

9. Log atttached.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Don't switch slots. Nowhere in the instructions does it say to switch slots.

But that shouldn't cause the issue you're having, I don't think.

Thank you for explaining the full process. I will try to reproduce on my end and let you know.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] lehachuev:
???

Be sure to reinstall TWRP immediately, then Reboot Recovery to switch to the new slot before installing anything else.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
"Then Reboot Recovery TO switch to the new slot". Keyword "to", as in it does it automatically. "To" != "Do an extra step that wasn't mentioned".

It does say this explicitly in the guide.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Thanks for that, but I'm still unable to mount data at all with this kernel.

The format seems to have worked successfully, but the command:

mount -t f2fs /dev/block/bootdevice/by-name/userdata /data

I get invalid argument.

Additionally, f2fs does not appear under /proc/filesystems.

Are you sure you enabled it in Kconfig? :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
I used the shrink data method and successfuly flashed a CosmicOS a/b gsi and everything works perfect but when I check the treble status with "Treble Checker" or similar apps it says it would be a a-only device.

Is it normal or did I miss something?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] jigs4wkiller:
Found the answer :highfive:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] pl_blaze:
Perhaps you've used old kernel? strings on the Image shows f2fs built in, so cat /proc/filesystems | grep f2fs should list the supported fs. Anyway, please try this image then. Thanks!

f2fs enabled kernel image
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Right you are, for some reason the TARGET_PREBUILT_KERNEL flag wasn't doing anything in my build.

I unpacked and repacked with the new zImage and I guess it worked, except I have no ADB, MTP or any USB connection at all so I can't debug why TWRP mount reports "Operation not supported on transport endpoint".

I'm going to go ahead and work on the Treble Manager 2.0 release without F2FS for now. Let me know when you've gotten USB fixed.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
2.0 is released on DevBB and GitHub.

Changes:

Implement dualboot system (see XDA thread for details)

Add TWRP survival for flashing payload ZIP's (AIO's) and boot.img (see XDA thread for details)

Added some text output and GUI prompts to assist users with dualboot and slot-related actions

Various other small usability improvements and fixes

EDIT: Temporarily removed due to a critical bug with repartitioning.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] exodius48:
I've 1.5 installed permanently under aosp gsi, how to update to 2.0? :confused:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] t0per666:
Do i need to flash both? Twrp-boot.zip and twrp-installer.zip? Thanks!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
By following OP instructions.

Boot is only for booting, as the thread says. Guess I should rename the file to "boot-only", can't make that anymore obvious.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
2.0 is removed temporarily due to a critical bug with repartitioning. Do not repartition. Please reinstall 1.5 for the moment.

If you already repartitioned with 2.0, please flash back to stock with EDL.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Custom rom 243:
Does this means i would be able to keep 2 roms and no need to flash whrn wanna go to another rom ?.. if it is then man you r awesome !
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
2.0 is up again, fully tested. Sorry about that!

Yep. But only Treble ROM's. Also be sure to read the information in the OP - it's not 100% automatic.