Treble

Aug 21, 2018
36
7
8
As you may know, Android 8 introduced a lot of new features

Including a new feature called "Treble" which is supposed to reduce the time taken to do updates. But how?

Now let me explain a little bit

Every Android version ever made has a folder called Vendor which has all the things needed to be able to let Android communicate to your phone's hardware.

Now after android 8 that same Vendor underwent a few changes.

First being: Now it is a partition in root not a folder in /system

Second: All phones launching with oreo should support treble.

And finally: Now android will always look for /vendor not /system/vendor

So what does this mean for us well this means that because LG and other manufacturers that don't support treble are using a symlink to /system/vendor so we can move /vendor (Copy in this case as if it dosent work I can revert back to normal). But it isn't as simple as that. As of now, I don't know how to make new partitions in the android root. So what other treble porters have done is to make /oem which is mainly empty and free as the vendor and we do have a /oem that is empty and free.

Step three(Doing the hard things)

So I made a flashable zip with only a META-INF and with a shell script to copy and the updater-script to set permissions and make the needed symlink.

Step 3.5 (flashing it)

Does it boot now?

Yes, but with a twist android undo's all my changes and proceeds to boot meaning it is like i did absolutely nothing.

And the old symlink is still there can someone please help me with these problems

In short please help in bringing unofficial treble to the LG V20 on stock oreo or any rom. I will be fine with testing it on my device no problems with that
 

cnjax

Senior Member
Aug 4, 2011
4,282
10,894
0
Jacksonville, FL
As you may know, Android 8 introduced a lot of new features

Including a new feature called "Treble" which is supposed to reduce the time taken to do updates. But how?

Now let me explain a little bit

Every Android version ever made has a folder called Vendor which has all the things needed to be able to let Android communicate to your phone's hardware.

Now after android 8 that same Vendor underwent a few changes.

First being: Now it is a partition in root not a folder in /system

Second: All phones launching with oreo should support treble.

And finally: Now android will always look for /vendor not /system/vendor

So what does this mean for us well this means that because LG and other manufacturers that don't support treble are using a symlink to /system/vendor so we can move /vendor (Copy in this case as if it dosent work I can revert back to normal). But it isn't as simple as that. As of now, I don't know how to make new partitions in the android root. So what other treble porters have done is to make /oem which is mainly empty and free as the vendor and we do have a /oem that is empty and free.

Step three(Doing the hard things)

So I made a flashable zip with only a META-INF and with a shell script to copy and the updater-script to set permissions and make the needed symlink.

Step 3.5 (flashing it)

Does it boot now?

Yes, but with a twist android undo's all my changes and proceeds to boot meaning it is like i did absolutely nothing.

And the old symlink is still there can someone please help me with these problems

In short please help in bringing unofficial treble to the LG V20 on stock oreo or any rom. I will be fine with testing it on my device no problems with that
There was a thread on here awhile back about treble and as I recall it was eventually determined that treble wouldn't work on our phones

Sent from my LG-H910 using XDA Labs