yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Partitions wouldn't be changed anymore when flashing GSI (generic system images). The space allotted is already enough for all GSIs available in XDA.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
And we have GSI booting! This is it people, we've done it!

That one was an experimental RR build.

Correct.

All other questions will be answered soon.

This GSI boot is a little hacky, I was swapping files and editing crap all over the place on my live device and taking notes. Me and the guys are working on deploying it all to our device tree(s) next and will release more user-friendly stuff soon.

This will include:

A flashable ZIP that repartitions the device *safely*, as well as another ZIP that can restore STOCK partitions safely

A flashable zip for vendor files only (maybe; or maybe just a full ROM), but either way will allow you to flash Phh GSI treble ROM's via fastboot

....? ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] androwide:
its Generic System Image (Android) pure stock image, uncostomized kind of.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Mirdeusz:
3. Stands for "Im god" :)

Anyway, so in theory we can install android P gsi?

Wysłane z mojego Mi A1 przy użyciu Tapatalka
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rezio:
Great job man :) Btw the repartition zips would differ for both variants, right?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] unos21:
. Miui gsi :D
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Yes. We can flash Android P GSI as well. :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Maybe, can't say for sure. The vendor partition might need to be adapted some more.

For all those who don't really understand the significance of GSI, basically it means that device devs can work on vendor stuff specific to the phone, and ROM devs can work on ROM's without really caring about specific devices. There is a contract between Android OS and Vendor and it allows developers to focus on the ROM without worrying about device stuff. That's an idealistic interpretation, but ideals are the source of all great things :)

Nope. Since we don't touch userdata, it will be the same. It only touches system. But if it's flashed on a device that somehow has a different system partition size/position, then it will abort. It will have to be *identical* to what I specify - that's what will make it safe.

That's one of my possible plans ;) Mi 6x firmware is out, and it's a Treble device, so I will probably base it on that.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Seydem:
Well, it remains only to wait :victory:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Put simply, vendor is basically like drivers. It will need to be updated sometimes when hardware-related things are improved by developers. You could draw a comparison to a kernel, even. But I'd say Vendor sits between the role of Android OS and Kernel, to put it simply. Like drivers on a PC.

Right now, and since always with Android we always had:

1) Custom kernels, with choices

2) Custom ROM's, with choices of different kernels

...and soon we may have...

3) Custom vendor packs, with choices of different ROM's and/or kernels.

Android is moving to modular kernels, which means that things will be taken out of kernel and put into kernel modules on /vendor instead. So we might soon be looking at a paradigm shift of even kernels being more generic and modular.

For example, I'm pretty sure CPU governors can be compiled as a kernel module instead of baked into the kernel. How does it sound to just flash a ZIP with only one file to your device to get your favorite CPU governor, but also use any Treble-compatible kernel you want with that governor? And you could flash a different Treble ROM or kernel, but still have that CPU governor ready :D

(Bad example, I personally hate third-party CPU governors and think they're a load of crap, but hey many people think they're fun so I used that example lol. Maybe an NTFS format driver for microSD cards is a better example)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ChristiaanP:
Great work! Is it possible to flash the GSI on other treble enabled phones? Or is it not that simple?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Userbaban:
I know nothing about project treble , gsi nd all the other stuffs which you people are talking about ... but What i know is , this project treble will enable the " God Mode " in our beloved device ... ❤️❤️

I have a stupid question .. is there any possibility to get the android P in our device in a month or so ?! i mean google released android P for their pixel devices .. thats why i am asking .!! forgive me , i am just a dumb ass ..?? And congratulations for your success !!

( sry for my bad english ) ...
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] brajesh.sharma87:
Practically the best use of project treble for our device is to have a miui gsi currently as we already have most of the standalone aosp based roms. User experience wise using a treble aosp rom or any other general rom is same.

I am looking forward to it. Surely you have done wonders as of now.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
GSI = Generic System Image. In Mi A1 terms, payload.bin. But in stock terms, system.img. Basically instead of flashing a ZIP file (ROMs), you flash an image file (.img) through TWRP.

And yes, Android P is definitely possible as long as a working GSI is available for testing. Once testing is concluded, developers can fix bugs in order to make it fully stable for everyday use. The best part of this is that vendor HALs are separated in a different partition so we no longer have to adapt the system.img to Xiaomi's vendor files. Another awesome news is that Mi Mix 2s has a working Android P beta, so it is possibly that we can use that image file and flash it on our own device since it is a Xiaomi device and compatibility may be easier.

EDIT: I'm sure [MENTION=1844875]CosmicDan[/MENTION] is already cooking up a ZIP file optimized for our usage so we can just wipe and flash through TWRP with Treble support. :) And an automated repartition tool so everything would be seamless. Well, that's how I assume things will go. :good::victory:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Ahmed Kassem:
Good job! I have a confusion here, will this enable us to flash GSI builds with our "stock" HALs and drivers? I mean, currently custom roms have bad signal reception for example while stock rom is great, will this enable us to use our stock drivers for custom roms? That would be so epic. Thanks for your hard work!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Yes. No more touching vendor files so that means better reception, better support for Camera, etc. LineageOS and Resurrection Remix already have working Treble ROMs along with Phh-Treble (AOSP). They're all available in the Treble-enabled Device development sub-forum.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] brajesh.sharma87:
Anyone can correct me if I am wrong but won't the vendor partition will contain the proprietory blobs only which we already use in custom roms. They are extracted from stock roms only. If that's the case then I guess custom ROM experience = treble rom experience. [MENTION=1844875]CosmicDan[/MENTION] can guide us more.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SmarteX:
I'm sorry to be that guy, but would it be possible to easily adapt this to tiffany, the Mi 5X?

Many thanks! ♥️
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rezio:
Will repartitioning and enabling treble support for our device screw OTA's?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Yes. But you can restore old partitions through a backup then just reflash stock ROM for OTA. Unless Xiaomi provides a way to make an OTA re-partition our device and provide treble. lol
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Yeah, pretty much. I think the signal issues are at the Android OS level tbh. I'm really not sure. There might just be a configuration situation with utilizing all the QCOM stuff properly, j don't really know. I might look into this at some stage though.

Actually, I don't think it will. You will be able to flash non-treble ROM's fine, they will just ignore the vendor partition and use their own system blobs. Official OTA should be the same, it will just ignore it. Especially since you will have a stock kernel, it won't actually even mount vendor - it should just be ignorant.

Treble really isn't that complicated. It's just putting some special files on a different partition, and then letting the kernel know about it, and then it's up to the system ROM to utilize it. But if the kernel and system ROM are non treble, then they're none the wiser.

I'm 90% sure that there will be no need to restore stock partition map for official ROM OTA. But let's wait and see, someone can test it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JOSE_1889:
Can anyone explain me what treble mean? Because i don't have any idea and i want to know how it helps device development
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rezio:
With Project Treble a separate vendor partition is created containing all the device specific low level hardware code(all the drivers) thus separating it from the OS.Due to project treble we can just flash any GSI on our devices without worrying about the vendor's code to be updated :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] JOSE_1889:
Ah, thanks. I will wait for the zips to install and restore then i will try to do it
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] iqbal_mahmuda:
Wow, I have been dreaming of extended OS updates for phone (even if it's unofficially) like a pc. Treble project can make it happens, right? For example in the future, can we flash Android Z gsi?

And also,

Is the kernel needs to be specialized for treble? For example, can I use Franco kernel which doesn't updated for treble yet when using resurrection remix gsi?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] SomratMJX:
Wot?!?

So! Now I can hope (read "be sure") to use Android PQRSTUVWXYZ... œ on my tissot? ?

Seems nature is starting to like that weird infinity! ?

Because of the "COSMIC" boom/dance I guess! ???

I yet to have babies anyway! ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Angrydr0id:
Excellent work, congratulations.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cherryb8844:
Deleted
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ghpranav:
Yes, technically you should be able to flash any GSI, of any Android version, as long as our vendor HALs support it. Luckily we have a very good Dev support. Even I'll be stuck with Tissot for at least next 2 years. So don't worry a lot :)

Nope. You cannot use other kernels with our Treble implementation as of now, because they don't mount the vendor partition properly. But I'm pretty sure almost all kernel devs will update their Kernel once we release our project to public. To say in simple terms, it's just a matter of changing 2 lines in kernel source : P
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] imPazhani:
Add me in for the testing.. im using tissot as my secondary device..
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
These are the things I have purchased my A1 for. Half year ago I was dreaming exactly about such things: custom ROMs, an official LOS 15.1, treble and many more. This is a great device, with excellent devs and a huge community (like the Mi4 or I remember my ancient HTC HD2). Maybe this device become a cult someday.

Thanks Dan for making the dream come true.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Danchibald:
What to say, except BRAVO and CONGRATULATIONS!!!! :):):):):)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] iqbal_mahmuda:
Let's call it Illu-Mi A1.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Klirioth:
Thank Devs, you are awesome.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] RisjadB:
A stupid question... We can flash any gsi after this complete right?... Is all the feature functional?.. or should we stabilize the gsi.. or the vendor one to stabilize?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Yes, so I'll call it from now!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
?

Yeah, this is a problem we'll have to work out. All GSI's should work to a limited degree. But even right now, the GSI has poor compatibility on some devices. Sometimes Phh adds fixes in GSI but that seems only for *popular* devices with *official* Treble.

It really should be up to us, the A1 Treble maintainers, to get GSI working best on our side. There is a lot we can do on Vendor, it gets it's own share of boot initialisation. We can run scripts and anything, we can even inject files onto the GSI /system automatically on bootnif necessary. The only problem with that is it could break GSI OTA, but that doesn't even exist yet - the GSI update system is only in conceptual stages right now, it always has to be updated manually by Phh (that means there are NO official updated directly from Google, just incase anybody didn't know).

The good news is that because the Mi A1 is an Android One device, it should be far far easier to get 100% daily working GSI support compared to other devices.

To be completely honest, I didn't really find the Treble porting too difficult. I've been out of the loop of Android dev for a long time and did get some help from Phh and Team Oreo, but it was all mostly trivial and I just had to learn about general Android building stuff again. The A1 really is a pure Android device, completely in-line with Google requirements for Treble.

What I mean to say is, I think this was the easy part. We still have to fix fingerprint and get SELinix Enforcing on GSI Treble (actually I don't know if that's even possible), and there are probably more bugs - this might be beyond me. I think this will be up to Team Oreo, they are fully behind this Treble project and eagerly waiting for me to share final changes :) speaking of, I better get back to it!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Do you have a channel for testers? :) Or you want to sort out all the bugs for now? Thanks for all your contributions again.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Nope, no testing channel. It might change, it depends what the other guys want to do. There is still work to do to make it all user-friendly and safe.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] luchardi:
Thanks you are the Man !!!

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] gunmanrishi:
I think this is fantastic job guys. I think everyone should thank the team for making this possible.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] senpaidev:
One question that has been bugging me a lot, is how does this pan out with seamless updates / A-B Partition scheme? Is there a vendor mount point and GSI / System.img mount point for each of the slots or does after repartitioning the device the A-B system is lost. How will updates be managed? It would be great if you have a diagrammatic representation of the entire partition scheme. The way GPart or other tools show it. And seriously I just can't believe it that we were able to trebalize our device. Great work people.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Try re-reading the OP. A/B will still be used. He re-partitioned it in a way where we keep all other a/b partitions (modem, boot, etc.) As well as adding 2 new partitions (vendor_a, vendor_b).
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Rezio:
I have a question that after repartitioning why does TWRP ,a recovery has to be modified for treble, cant a unmodified recovery be used?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] samrattt:
for mounting vendor partition.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] avril.jil:
Congratulations.

Can any one make a full YouTube video to flash the MI A1 for dummies like me.

Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] bornlivedie:
Read the whole thread.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cherryb8844:
That mean this tool creating two new partition for enable treble for our device!? Nothing else other partition are isolated while repartitioning?

Sorry to make a question that already asked or answered. I did read hole OP and every post but I can't understand that technical language.

Edit- I did read it again there showing

Remove system_a, and create a new system_a partition of size ~2.4GB. Don't worry, this is plenty - my current RR build with a heavy AROMA Gapps is only ~1.9GB. We're taking off ~600MB, which is 1228800 sectors

This gonna scarring me.

Boot into EDL mode

Load MiFlash, select any Oreo fastboot image (I use 8.1.10 since it's what I have) > Refresh. Should show COM30 (or whatever your QDLoader COM port is).

Select flash_factory in pulldown on bottom-left corner > Flash

Maybe there is a backup tool that can resurrect my device. ?

Thanks
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Did you not notice the big "NOT FOR NEWBIES" text?

The development is complete, there is nothing for anybody to do here but wait for a zip mod.

The zip will automatically repartition and patch TWRP (if needed, will skip if not)

There will also be a ZIP that can restore stock partitions, and unpatch TWRP (if needed).

Simple. Just wait for release.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] cherryb8844:
Not intend to bother you. Just trying to learn and understand what I'm gonna change in my device. And thanks for your quick reply repartition script make thing more easy for newbie and noobs like me. ?

I understand how irritating question like that.

Sorry again to everyone.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] Userbaban:
I am super excited about the release .. How's it going ?! ? And when we can expect the release ?! ❤️ Don't take me wrong !! i just can't wait ??
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] t0per666:
DO NOT QUOTE the whole OP ever again!!!
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] D1Storm:
I apologize if the question has already slipped and the more so if the answer to it was, where to get vendor.img for projekt treble?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] wmfanboy25:
Just for fun. I'm your 5000th thanker xD.

All the best for the release :good:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
It will be in the forum once it's actually released.

Huzzah! Finally I have more thanks than posts :D
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I only just now realized what you meant. I've updated the first post to state that only a FULL FLASH (wipes persist, userdata, and everything) via EDL is the only way to get back stock partition.

But the user-friendly partition mod I'm working on that is an installable ZIP can also revert back to stock partitions, so it won't be a big deal once all is finished.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] hackis2:
Excuse me as I'm a begginer to this, but how will treble support on the Mi A1 be useful without Xiaomi's support? I though that with treble, the updates still have to be rolled out by the manufacturer, so how will this work in terms of updating the A1 to the newest android?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Treble works with GSIs (Generic System Images) as been stated many times in the thread. GSIs are updated and maintained by developers such as Phhusson and are found in the Treble-enabled device development sub forum. They are usually the latest Android versions (up to 8.1 and possible even Android P dev preview) at the moment. This means that Mi A1 users can use updated OS versions even faster than Xiaomi employees leak beta builds. There's also plans to provide OTAs for the Treble ROMs which would make treble support even better considering OTAs won't be coming from Xiaomi anymore.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
It won't be useful if all you want is stock ROM - it's for custom ROM's. Treble opens up a new realm of customisation.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LouisMuruu:
But as from my understandings, features from stock like Dirac audio will still be there after enabling treble & flashing GSI ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
You can earn as much thanks as you want. And a beer ? or two ?.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
################################################

The "Tissot Treblizer" automatic repartition update ZIP for TWRP is out.

See the new thread here.

################################################
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I don't even know what Dirac is. Is that the amp thing? Yes, it should still be there, since that's part of the driver.

We could also get stock camera working. Unless it's crap? I noticed no custom ROMs use stock cam, not sure if it's by necessity or choice.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
Yes, because the most Gcam mods are working pretty good and taking nice pics.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
I see lots of complaints and bugs about it though. Like HDR not working, or slow motion not working... Are these features working in stock camera/ROM?

I don't know anything about the camera situation ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
Dirac is a software part of Stock software, it uses better drivers for audio (with headset), V10 amp is the hardware part, it will work always, Dirac can be installed on customs ROMs like any other sound MOD, our device is Dirac certified ;)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] ydd0ras:
See, I purchased my Tissots 6 months ago and I was not satisfied with the stock ROM and also not with the camera. But I have been using Arnova's GCam mod from the very first second on each tested custom ROM and had never faced any issues. That's why I am very confident.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] CosmicDan:
Ok then, guess you will have to see if GSI works with the mod then.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
I can't really understand this Treble:cyclops:

Now i can install a GSI?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] anurag rai:
Yes all these features works in stock camera
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] LouisMuruu:
In stock, while playing songs, the speaker quality is just waaaay better than in custom ROMs eventhough if you've flashed viper/dolby/etc. Xiaomi camera is always ****ty no doubt bout that, gcam all the way ?

Congrats on the release btw! And thanks ?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] joeyhuab:
Where can I get this Dirac flashable for custom ROMs? :)
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
Search for QazarAtmox on XDA, it's an awesome sound mod, i've used it months ago before the huge "back to stock and forget all mods until the official LAOS", that sound mod it's not like others (Atmos or Viper), it add a lot of sound tecnologies by Atmos, Viper, Xperia Sound and install Dirac HD too, it worked like a charm for me, Dirac also appeader inside system app list like on stock ROM, you can try :svetius:
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] airidosas252:
Yeah, camera is sometimes clunky (talking about Gcam) but other than that even my friends with iPhone X are impressed with picture quality, so I guess it's worth the hassle.

Stock camera is junk, though. Never ever use it.
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] darkpegasus:
Hey, the forum says it has compatibility issues with Oreo. Is it working fine for you?
[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] N1ck474:
For me worked fine on RR O months ago, you can test it now