yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
But you'll also need a Treble compatible kernel. I'll upload boot.img soon.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] odyss199:
Can't I just unpack a boot.img modify the image like in the tutorial?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] sauru.660:
Sry to say bro it's all confusing about treble and how to do this and all...pls instead of making different guides...make one it will be simplified...and hoping for video guide too...??
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
No, because the actual kernel needs to be modded for vendor slotselect in DTB (actually my guide does cover this, you need Linux to mod kernel). My next TWRP will have a patch that detects this and works around it though, but only for installing Treble ROM's - you need anTreble kernel still to actually boot it.

Wait for my guide! Not a video but a full detailed one.

---------- Post added at 05:23 AM ---------- Previous post was at 05:22 AM ----------

Shrinking data will work fine, that's what I've done.

Why do you say so in the OP? It's actually better to shrink data, it keeps non-Treble ROM compatibility.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
How much space do you still have that shows up in Settings > Storage? Could you provide a screenshot? :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
No because I'm developing outside treble atm, but it reduces storage by about 1.2GB so it's around 21GB for my device IIRC.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] tank0412:
Does somebody have dead wifi, bt, camera and reboot every minute like on my phone on this treble rom?

Thanks.

BTW, i am seriously now.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
I guess 1.2 GB is not that much of a loss. I still have 20GB free space anyways. I'll try this out soon. Thanks for your response. :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
So It can work on 32GB Mi A1 too?

Thanks, waiting for the kernel:cool:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Thread Updated

I have posted a new build, with a fix for WiFi MAC address. Also made a clean build this time, cuz last time when I made a dirty build few users had faced problems like random reboots. I have also updated the vendor image & even included the boot.img link. Have attached an screenshot as a proof on 3rd post.

Moreover I have corrected a FAQ. If you shrink your data partition, then you can flash both existing non-treble roms & even trebelized ROMs. Also I have simplified the installation instructions, thanks to CosmicDan.

If you guys still face any reboot problems, then please attach a logcat. Because I'm unable to reproduce your issue.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] mountaser halak:
why do u think we have this experimental for now :) ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] exodius48:
So magisk is broken in this treble rom? :/
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Magisk is broken in *every* Treble ROM.

It needs device-specific modification, apparently.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Just tested Magisk on Trebelized RR, & everything is working perfectly. Magisk is broken only on GSIs.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
success

booted successfully...

red borders around the screen when using.. it blinks and goes away and keeps on happening.. no idea what it is..

camera doesn't work as mentioned in op.

will try gsi later..

few app crashes...

amazing work... thanks guys..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
Phh-Treble Lineage GSI is working perfectly (wifi,radio) except camera. Personally confirmed it with the new boot and vendor images.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Can you please try executing "vendor/bin/init.treblecompat.sh" shell script as root, reboot & check if camera works?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I've just updated the TWRP with Treble Manager to 1.1 which fixed a semi-important bug.

Also, I've released a guide for those who find the Treble conversion/install process confusing - check it out. If you can, keep the RR specific questions in this thread, along with questions and problems with using GSI based on the RR Vendor Pack in this RR ROM in this thread too. But ask for general questions and help over there - I will update the guide as I get feedback :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
But I don't have root access in Lineage GSI

BTW I'm dual booting non-treble AEX and Treble Lineage
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
That's because of strict mode, enabled by default in experimental builds. Turn on developer option, turn on strict mode then back off.

EDIT: Nevermind, doesn't work. Just deal with it until there's a non-experimental build I guess.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Userbaban:
??? OMG !!!!!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
Except camera others are all fine I think..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gundam311:
hi when i try to use twrp treble and shrink my data partition so that my phone will be treble ready, i got error when installing custom roms not reble roms.. like i got 7.1.2 android error when installing gapps or magisk

update:

got working custom roms by returning my data partition back to normal
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dback31:
Void kernel changes MAC address. Did you fix this before compiling?

https://xdaforums.com/showpost.php?p=76543421&postcount=725
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
Changing slot will fix the problem
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Yup, I have included the fix in the kernel.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gundam311:
thanks will try tomorrow
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Custom rom 243:
Will I be able to flash non treble ROM in tissot specifically . and yeaa I read the FAQ but it doesn't answers specifically for tissot.

Edit- I saw the wiping internal storage ting .. Sorry for inconvenience
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dback31:
Has been mentioned in the TWRP thread by [MENTION=1844875]CosmicDan[/MENTION]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Custom rom 243:
Yeaa thnx brdr
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
Works if I install magisk..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Download through AFH is painfully slow in here...

Can OP(or someone) kindly make a mirror at Google Drive or MEGA and share the links? Thank you!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Use Firefox with DownThemAll extension. Or a different mirror (the US and Canada ones suck for me, Europe is always better... go figure, Australia is further from Europe).

Asking other people to mirror files is kind of rude though.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Sorry. I didn't knew it was rude for devs. OPs in previous forum(XDA N4) mirrored them or allowed others to mirror when someone needed it, so I thought it was okay. So that was why some devs asked to not to mirror their work....

Still at 13% after 4 hours. Maybe it'll be done when I wake up.

Thanks [MENTION=1844875]CosmicDan[/MENTION] for answering my stupid (and sometimes rude, in this case:crying:) questions. I'll try to be more careful from now on.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Finally boot the ROM. ROM is running perfect here, no lags, only camera as said in OP. Room seems more smooth then non treble RR, and faster. Less ram used here so far. Only waiting now for camera update. Thanks for the devs to this project and for bringing Treble to Tissot.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JoKeRLeE:
AFH download speed really painful for some countries . like me , i spend more than an hour to get the download link (always No mirror link for me) [MENTION=5663759]ddaggebi[/MENTION] i upload to my Google Drive you can try download it . https://goo.gl/URekQZ

Please tell me if i mirror file to GDrive aren't welcomed , I'll remove all the file :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
[MENTION=5393309]ghpranav[/MENTION], is it you that manages the vendor files? If yes, can you just consider fixing the front camera RAW capturing issue?

RAW capture with front camera just produces blank dng files! :/
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
Huge, huge thanks! I was going to sleep, but you saved me from turning my laptop on for a whole day! Now downloading RR unofficial...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Can you explain me how to install step by step? Now I am on non treble ROM(AEX). Will I have to flash stock ROM? And will I have to flash vendor.img? Or direct flashing of RR Treble will work? And if I want to flash phh treble GSI will I have to flash vendor.img ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] squallbayu:
Congratulations, can't wait to test it on my a1.

One question, how about google play certified device status? Is atill verified or not?

If i choose to shrink data partition, how much left for data? My a1 have 64 gb storage.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Please reply me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Yes.

---------- Post added at 10:19 PM ---------- Previous post was at 10:19 PM ----------

Yes please.

---------- Post added at 10:28 PM ---------- Previous post was at 10:19 PM ----------

Can you explain me how to install step by step? Now I am on non treble ROM(AEX). Will I have to flash stock ROM? And will I have to flash vendor.img? Or direct flashing of RR Treble will work? And if I want to flash phh treble GSI will I have to flash vendor.img ?and can i flash boot.img after flashing trible RR?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Check the guides section for Treble guide.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
1.Install treble enabled TWRP

2. Go to advanced setting and there you will find the option to change the partition

3. Solve the instruction that is provided in the thread of TWRP(remember you all data will be gone. So take a backup before doing that)

4. Now you can install treble enabled ROM
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
How to keep the root?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
After installing ROM.change the slot and install gaaps and magisk... that's it
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Will I have to use command in fastboot mode to change slot?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
No..i think the latest TWRP has solved the problem
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
And one more question before treblizing is is it mandatory to flash latest stock rom? Now I am on AEX.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
No. I was in normal RR and then flashed treble without any problem
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
Only 1200 MB is stripped out! Not a big deal! Mine is also 64 GB variant and there's still 49.something remains for userdata! Which is enough for me!

The only deal is the backing up data!

But you only have to repartition for Treble once!

Stock with OTA also works perfectly fine on Treble partition! Stock OTA can't recognize vendor! MiFlash also can't! So you are good to go! The pain is only for the first time!

First time hurts! ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Have you done your low level backup?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
Yes i did. Although it came to no use.:eek:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Thanks for reply and help.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
Feel free to hit the thanks button
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
Bug

Flashlight also doesn't work..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Flashlight not working either.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
I didn't shrink any partitions of the phone and succeed with the rom
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
How?!? LoL! ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
I really have no idea. I make the partitions scheme with the first zip made from cosmic, since there I was using non treble RR. So today o tryed with 22 build, actually making a dirty flash on top of non treble RR. And all worked just fine. Except flashlight and camera.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
I can cofirm magisk beta 16.4 works with lineage gsi but ctsprofile is always false even with changing fingerprint

EDIT: after a couple of reboots due to installed magisk modules, safetynet is all green
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
How's lineage gsi? Any bugs? Camera works? And how was the procedure to install? All data use wiped?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
That's not my concern! You said you did it without shrinking space LoL!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Yes. But I'm explaining what I did. I used the version 1 oz zip to treblize partitions, not 1.1. So I didn't have the option. I just restore backup from non treble RR, and today flashed treble RR on top of non. I keep all partitions untoched, only having created vendor_a and vendor_b. That's all.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Simple question, we can update the ROM using only vendor right? How do we flash the vendor to update rom?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
I don't know whether it will work, but you can flash vendor by fastboot
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] odyss199:
Deleted
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Via fastboot or my TWRP with Treble Manager 1.2 (flash vendor.img to "Vendor Image" in image mode when selecting file).

But this doesn't update the "ROM", per se. I mean ROM is just a slang word (it's not read-only at all haha) but I've come to accept "ROM" as mainly the system only.

Not true. Vendor can and is updated in OTA for official devices whenever there is a vendor update. Just like the kernel can be updated. Drivers can always be improved. The point of Treble is so OEM's can work on vendor and ODM's can work on the Android OS more independently, not to make Vendor never updated.

When Pranav releases the camera fix (it's already done on my end, he just needs to build and upload) all you need to do is flash Vendor to your existing device, leaving the GSI or RR system alone. But people can still flash the AIO if they really want.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] odyss199:
My mistake xD that's why I deleted my post, cheers
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ddaggebi:
One question if you don't mind : is Selinux Enforcing fixed with Camera? Not asking ETAs, just whether it is fixed or not:o .

Thanks to all Devs!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
No.

I don't know if we will ever bother fixing SELinux until GSI's also have SELinux.

Treble stuff is all still very alpha. People keep forgetting that. Fixing SELinux is something you do when everything else is fixed.

EDIT: Turns out Pranav is already fixing SELinux. What a wizard!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
LoL! Then your device partitioned for Treble anyways! Re check!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Enough with the off-topic please. Partitioning talk doesn't belong here.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Is Camera only broken for GSIs or for all ROMs even non-treble ones? I'm planning to restore my non-treble ROM with data after partitioning (shrinking userdata) through your TWRP. Then flash Android P GSI when it's uploaded.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
Download the lineage-phh gsi for A\B from here:

https://xdaforums.com/project-treble/trebleenabled-device-development/lineage-phh-treble-t3767690

Flash boot, vendor and system image using fastboot. Wipe data in recovery before flashing.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Camera is broken for everything in current release. Next release fixes it for everything.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rakibboss:
I tried dotOS and lineage OS. Both are way much fluent than ours ROM. But the camera is the only problem for me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
wifi not working on RR AIO, Any fix?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Reflash ROM with a clean flash. Here it's all good.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
I have come from a clean flash moreover coming from stock, still no use
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Here it's all fine. Try to flash non Treble RR, then make a dirty flash as I did. Cause when I flash treble build my wifi was buggy. A dirty flash on top non Treble, worked fine for me.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
Can You send me the exact steps? I don't wanna mess up again
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
Sure. That's what I've done. I restore my backup from the non Treble RR, boot it up. When it's done, reboot back to TWRP. Now assuming that you have treble TWRP already, flash ROM and TWRP.zip in slot A, change slot to B. Now in B flash gapps magisk and reboot.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
I don't have an RR backup, Should I install Non Treble RR then?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
If you have shrink your data partition you can, if not. You'll need to undo all, flash non treble RR and start all over
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
earlier when I had non RR rom , WiFi problem was there but custom kernel fixed it, Should I flash Custom Kernel Now also to fix Wifi On RR AiO
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
No you can't. There's no custom yet to Treble.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
I Mean after Non RR treble cuz Without it I Don't get Wifi
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I already answered you. Use Persist Resurrector tool. If that doesn't work, flash stock persist.img from latest official firmware.

If you're asking about non-Treble RR, that's off topic.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
Persist tool didnt fix it, how do I flash the persist it shows error on fastboot
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] dipakd:
Can you please explain it step by step. I tried flashing RR GSI but it failed to boot and rebooted to twrp. I also read cosmicdon's guide but not successful. I was on rr experimental treble.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Persist Resurrector is the only way to get a fully working persist back, so it's in your best interests to try and figure it out. Bit if you already flashed someone else's persist then you're probably ruined beyond repair.

You need to flash persist in EDL mode with manual XML flash package. You can get it from my guide thread: https://xdaforums.com/mi-a1/how-to/treble-stock-to-treble-everything-to-t3793734

You will also loose your BT MAC if you flash it though, I think. That's why I recommend an EDL backup beforehand.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
hello i have some problems, i've followed the OP guide and successfully installed RR Treble, but can't install Magisk or Gapps at all (with or without slot switch), if i reboot to system i'll se MI logo (with BL warn screen) and reboot, then Mi logo again and reboot…

what to do now? repartitioned on userdata
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] khusika:
Well, i would like to try Treble'ify in my own tissot but doesn't have time to do it for now. Thanks to CosmicDan and ghpranav to make it possible in our device.

I made an experiment to build kernel with treble and non treble supported. Basically this kernel is based on ProjectK latest release, and only tested in non-treble. Is there anyone want to test this build in Treble enabled please reply this message. :)

Just flash it through TWRP

Download link bellow

EDITED:

The Mod has been test and it doesn't work, thanks in advance
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
I'll test it

EDIT: Not working, boots to fastboot mode instead
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] D1Storm:
found the vendor.img under the link https://androidfilehost.com/?fid=962339331458993991 , loaded May 23, can it be used, and whether there are any differences from the vendor for the 22nd day? thank you in advance for your response.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
Flashed Dot OS Treble GSI , Can I flash Magisk for it?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
yes magisk beta. i'm using it right now
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
Magisk is broken for GSI

Flash and u will bootloop.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
If you don't see it on this thread, then it's not supported by us for public usage.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LGR0102:
File not found.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
no it isn't. i'm using the beta version with the brand new dotos gsi

[url=https://postimg.cc/image/7qswe75hf/][/URL]
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Blackheart151:
Oh cool.. I'll try it out then.. I didn't use GSI coz I couldn't get magisk to work..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] brajesh.sharma87:
[MENTION=5393309]ghpranav[/MENTION] how can I make a gsi for my own custom rom? Its based on lineageos. Maybe I just have to merge all my commits to lineage gsi source and build.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] deveshgupta69:
Link for Magisk Beta?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
New Build is Up [23/05/2018]

Updated the OP with new build. It fixes the camera, & also BT MAC address issue. Even the kernel has been upstreamed to 3.18.109.

If you were on the previous build, then you can just update your vendor & boot image using latest TWRP by CosmicDan, & everything should be fine.

Do report back if you guys find any bugs. Enjoy ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] daert:
Well... the official thread for magisk beta

https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Phh provides a "GSI generic" device tree repo on his GitHub. Google it and you'll find it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Do we still need to wipe data when transferring to Treble/GSI/Non-Treble ROMs? For example, can I restore data from Non-Treble PE to Treble RR?