[GUIDE][GRIFFIN] How to make and use GSIs + Examples (DU & AOSP)

Search This thread

erfanoabdi

Recognized Developer
Jan 3, 2015
1,010
3,156
Tehran
erfanoabdi.github.io
since I’ve enabled (semi-fake-)treble on lineage 15.1 rom, we can say our phone is treblized and we should be able to flash GSIs (generic system image) on it, can we?
First requirement of project Treble is vendor partition, but we haven’t this vendor partition on griffin.
We have an oem partition, but its too small to be used as vendor for griffin, our vendor files are something like 600mb but oem partition is 200mb, Very small.
So we can say this treble we have already is fake : Motorola didn’t enabled treble by default on this
And semi : without vendor partition

But with new project CLT (Capire le treble) we can install GSI, but need little work :D
We can’t directly flash GSIs to our system partition cause we will lose our vendor files which exists on “/system/vendor” so somehow we should “copy paste” vendor files into GSI, this is what CLT is doing.

To use CLT all we need is Linux or mac to generate DSSI (device specific system image) from GSI
Here is full thread of CLT with YouTube video: https://forum.xda-developers.com/pr.../tool-capire-le-treble-terble-vendor-t3774629

It’s not very hard to say only devs can make DSSI
All you need to do is download latest lineage and find one GSI rom from here : https://forum.xda-developers.com/project-treble/trebleenabled-device-development

And start CLT on it and flash output of it.

Get griffin “proprietary-files.txt” from here : https://gist.github.com/erfanoabdi/447e90e65a3b037abebcc30da4a71935
Griffin system size: 5704253440

How to flash this images?
Put the system image on internal storage and reboot to recovery (twrp) -> install latest lineage -> select “install image” -> install that image as “system image”
• For now, you need to also flash this permissiver zip to make selinux permissive : https://www.androidfilehost.com/?fid=746010030569967557

Somehow like this: https://www.xda-developers.com/flash-generic-system-image-project-treble-device/

Bugs :
• Selinux must be permissive

Examples:
(images compressed with 7z)
Dirtyunicorn system.img: https://www.androidfilehost.com/?fid=890129502657596534
AOSP system.img: https://www.androidfilehost.com/?fid=890129502657596533
 

Attachments

  • permissiver.zip
    801.2 KB · Views: 245
Last edited:

JobL75

Member
Sep 14, 2018
7
1
Woo,this is a good news for MOTO Z.I am a new hand.So I think it's difficult for me.and I want to flash that sGSI about MIUI 10,is there any easy way to do it ? thanks!
 

Zzoro

Senior Member
Dec 25, 2008
155
26
Could anybody help and create the DSSI for griffin from this GSI, please. Erfanoabdi's examples works pretty good but they are based on Oreo.
 
Last edited:

Top Liked Posts