Treble and locked or unlocked bootloaders - Treble-Enabled Device Guides, News, & Discussion

It may be obvious to others,but... What (if anything) does the project treble requirement to be able to boot a vanilla Android ROM do to the idea of the OEM locked bootloader?
I know that there are devs working on bringing project Treble to older/non-treble devices, but going forward, will devices shipping with Oreo, P and others in future be able to have OEM locked bootloaders and still meet the requirement of booting a vanilla android image?
I'm interested as I've not felt the need for a custom ROM since KitKat.

David _J_D said:
It may be obvious to others,but... What (if anything) does the project treble requirement to be able to boot a vanilla Android ROM do to the idea of the OEM locked bootloader?
I know that there are devs working on bringing project Treble to older/non-treble devices, but going forward, will devices shipping with Oreo, P and others in future be able to have OEM locked bootloaders and still meet the requirement of booting a vanilla android image?
I'm interested as I've not felt the need for a custom ROM since KitKat.
Click to expand...
Click to collapse
Yes as long as you can unlock the bootloader you can flash other system images to it or do whatever you want with the device.
But with a locked bootloader you cant alter the necessary system partition despite the device is treble partitioned.

PhonyOnXDA said:
Yes as long as you can unlock the bootloader you can flash other system images to it or do whatever you want with the device.
But with a locked bootloader you cant alter the necessary system partition despite the device is treble partitioned.
Click to expand...
Click to collapse
After loading a GSI Treble ROM can the bootloader be relocked?

Related

Treble ROMs now working on Pixel 2 XL

So I just confirmed with Phhusson Treble ROMs working on our Taimen.
Taimen was long time the only device that supported Treble but could not benefit from Treble based ROMs becuase of verified boot, but a way around it has just been confirmed working.
See https://android.googlesource.com/platform/build/+/master/target/board/treble_common.mk#52 for the code behind it
And this vbmeta.img from Phhusson allows bypassing verified boot https://androidfilehost.com/?fid=890129502657591211 this image is to be flashed to vbimage partition right after flashing treble system image
Credits to Phhusson for the code and work on Treble
Credits to me for all the testing and debugging
Credits to MishaalRahman for the idea
So what does any of this mean? Pixels run stock android as stock rom anyway?
True, currently it doesn't make much sense to use Phh rom over stock, but Treble might make things much easier for custom ROM devs and future ROMs once support from Google ends.
Cheers
Cool! Does this potentially mean that possibly custom ROMs would be able to be flashed on locked bootloaders
slogar25 said:
Cool! Does this potentially mean that possibly custom ROMs would be able to be flashed on locked bootloaders
Click to expand...
Click to collapse
No
I mean yea this is all well and good but until we have an img we can flash with fastboot to give us access to all (samsung, htc, lge, MIUI) custom spins of android this really won't attract much attention. I'm looking forward to it as much as you, since we can poke and prod at these vendor images to find a way to simplify ROM creation. However I have yet to encounter such images. I guess I'm pretty new to this stuff so maybe there's someone out there with access to the latest samsung vendor images.
The concept of flashing a single vendor.img to the bootloader to switch android 'spins' is in itself an extrEMELY attrActive one. I hope the android gods bless us with such a revalation.
i tried it with rr treble but does not work for me.
i clean flashed all , do a factory reset . After that i flash system image to system . And now? vbmeta flash in twrp to boot or vendor?
I have the same question.
Punraz_ said:
i tried it with rr treble but does not work for me.
i clean flashed all , do a factory reset . After that i flash system image to system . And now? vbmeta flash in twrp to boot or vendor?
Click to expand...
Click to collapse

What is this treble i'm seeing all over the XDA forums?

Hey everyone I just wanted to ask what this trebel label means, my lack of understanding and research tells me its kinda like OTA but for a more secure way to push updates to devices? being someone who has been using my device fine, am just a bit wonderous wondering what this Trebel means for my favorite ROM, Recovery and Kernel
dalebaxter01 said:
Hey everyone I just wanted to ask what this trebel label means, my lack of understanding and research tells me its kinda like OTA but for a more secure way to push updates to devices? being someone who has been using my device fine, am just a bit wonderous wondering what this Trebel means for my favorite ROM, Recovery and Kernel
Click to expand...
Click to collapse
for the moment, forget about it
it's very green and brings more troubles than solutions or any gain in particular. We will see how things develop with time.
You can read more about treble in here
https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/
bornlivedie said:
for the moment, forget about it
it's very green and brings more troubles than solutions or any gain in particular. We will see how things develop with time.
You can read more about treble in here
https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/
Click to expand...
Click to collapse
Reading the article I'm still a bit confused by what all this would mean for the end user, I really enjoy AEX since I moved from RR and it seems like this is the "latest and greatest" type of situation, yeah okay launches are tough but when everything smoothed out what would this treble allow us all to do?
dalebaxter01 said:
Reading the article I'm still a bit confused by what all this would mean for the end user, I really enjoy AEX since I moved from RR and it seems like this is the "latest and greatest" type of situation, yeah okay launches are tough but when everything smoothed out what would this treble allow us all to do?
Click to expand...
Click to collapse
In reality, it means little to the end user. It could theoretically mean that ROMS require less development time, since all roms in theory are based on a single image.
You can kinda of see this with Google's OEM Partners. At Google I/O they listed a number of partner OEMs that were the first to use treble and for the most part they have released upgrades quicker and more reliably then there non-treble counter parts. This also can be extended to the modding community and in general means that porting roms and developing them on a new phone should be easier.
This is all part of a bigger push by Google to gain uniformity across devices. They started requiring security updates in there SLA's and now are pushing treble.
Trebles's All the benifits goes to vendor and stock rom users Rights. As we are Custom Rom users what are the benefits we getting from Treble Projects?
https://www.androidpolice.com/2018/05/13/project-treble-impact-android-custom-rom-community/
alwynjoshy said:
Trebles's All the benifits goes to vendor and stock rom users Rights. As we are Custom Rom users what are the benefits we getting from Treble Projects?
Click to expand...
Click to collapse
In the future you will be able to flash the custom treble image specific for your hardware, and then a GSI (Generic System Image) of your choice: RR, AEX, DU, Tesla, etc... that will be generic and able to be flashed in any hardware. That means that GSI development teams will be able to maintain their roms and apply the security fixes without the need to create custom rom versions for each hardware. So, finally we will have real OTA updates for custom ROMs. We all hope LineageOS 16 to have more or less this philosophy too. Well see it in September.
So, benefits for the user:
More ROMs to choose for your device (actually all of them!!!)
More frequent upgrades from custom GSI teams.
Oki said:
In the future you will be able to flash the custom treble image specific for your hardware, and then a GSI (Generic System Image) of your choice: RR, AEX, DU, Tesla, etc... that will be generic and able to be flashed in any hardware. That means that GSI development teams will be able to maintain their roms and apply the security fixes without the need to create custom rom versions for each hardware. So, finally we will have real OTA updates for custom ROMs. We all hope LineageOS 16 to have more or less this philosophy too. Well see it in September.
So, benefits for the user:
More ROMs to choose for your device (actually all of them!!!)
More frequent upgrades from custom GSI teams.
Click to expand...
Click to collapse
thanks you well explained ?️.
I have question, If we flashed treble once, are we able to flash any treble based rom, for example any devices treble roms
alwynjoshy said:
thanks you well explained ?️.
I have question, If we flashed treble once, are we able to flash any treble based rom, for example any devices treble roms
Click to expand...
Click to collapse
Once you have the Treble framework in place and have then flashed a device specific vendor image you can from that point on flash any GSI ROM. The thing to note is that so far NFound's Treble ROMs have included vendor image files in them which makes them device specific, you need to check for and remove any vendor image files from Treble ROMs created for other devices if you wish to try the ROM on a device other than what it was made for.
alwynjoshy said:
thanks you well explained ?️.
I have question, If we flashed treble once, are we able to flash any treble based rom, for example any devices treble roms
Click to expand...
Click to collapse
A treble rom is hardware specific, so you cant flash a treble rom designed for a different device. Only GSIs are compatible with multiple devices, and it is this way since the hardware dependant part is only in the treble rom.
Right now there are not fully treble roms available for the Axon7. The currently available roms labeled as treble are delivered and work as a usual full rom. The treble and system parts are still mixed up in those roms. It will take some time until we could enjoy a fully wotking treble rom in the Axon7.

No dev interested in porting any ROMs for the 2017 Nokia 6?

I just bought this device and thought "YES" I will pop over to XDA and see what's cooking here. I see there's an official twrp but no roms or kernels now am not trying to be cheeky or anything like that because I haven't got a clue on how to compile anything but surely their is a fantastic dev out there that's interested in doing some work to this fantastic device.?
This fantastic device still has no official bootloader unlock. No unlock, no ROMs.
https://www.nokia.com/phones/en_int/bootloader
It can be unlock unofficial. This is enough to start developing something for this phone.
Whether kernel (kernel sources are open) or ROM.
Even if it is not unlocked for everyone, at least for those who have been unlocked a bootloader.
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flashing get_unlock_ability
...
(bootloader) get_unlock_ability: 0
OKAY [ -0.000s]
finished. total time: -0.000s
marto2013 said:
It can be unlock unofficial. This is enough to start developing something for this phone.
Whether kernel (kernel sources are open) or ROM.
Even if it is not unlocked for everyone, at least for those who have been unlocked a bootloader.
Click to expand...
Click to collapse
how do i unofficially unlock it?
skooter32 said:
how do i unofficially unlock it?
Click to expand...
Click to collapse
I downgrade my bootloader by flashing older ota updare (for example december 2017), after that i flash unlocked bootloader with this tutorial - https://forum.xda-developers.com/nokia-6/how-to/guide-how-to-flash-custom-recovery-root-t3702354
See step two. In "Attached Files" is unlocked bootloader. Download from it and flash.
After all i flash rom and anything is perfect.
You can see how i root my phone in this thread: https://forum.xda-developers.com/nokia-6/help/nokia-6-rooting-t3865952
It is for TA-1033 model and i'm not sure that it will work on another nokia 6 models.
Maybe unlocked bootloader work on any Nokia 6 (2017)..
Any custom ROM needs a target audience, and this audience needs an easy way to unlock. No developer will wait for 1.5-2 years until HMD provides official unlock, developing for himself and a dozen of users makes no sense. There are plenty of devices having official unlocks from the release date like Xiaomi or Sony.
qwertysmerty said:
Any custom ROM needs a target audience, and this audience needs an easy way to unlock. No developer will wait for 1.5-2 years until HMD provides official unlock, developing for himself and a dozen of users makes no sense. There are plenty of devices having official unlocks from the release date like Xiaomi or Sony.
Click to expand...
Click to collapse
Unfortunately, this is true.
I'm sorry I did not buy Xiaomi, and now I'm with this Nokia.

Custom ROM for Nokia 6.1 plus

Will there be any custom ROM for Nokia 6.1 plus
saurabh.k said:
Will there be any custom ROM for Nokia 6.1 plus
Click to expand...
Click to collapse
Phone supports treble and AB partitioning. You can probably flash a GSI from the project treble forums.
ruifung said:
Phone supports treble and AB partitioning. You can probably flash a GSI from the project treble forums.
Click to expand...
Click to collapse
Does flashing a gsi is as safe as flashing a custom rom.
And after flashing gsi is it possible to revert back to official android one(pie)????????
saurabh.k said:
Does flashing a gsi is as safe as flashing a custom rom.
And after flashing gsi is it possible to revert back to official android one(pie)????????
Click to expand...
Click to collapse
a GSI (Generic System Image) is just a fancy term for a custom ROM system image for project treble enabled devices
And in theory, this phone supports the A/B partitioning (apparently, according to treble check app), you can try flashing to the other partition and set it as active?
Besides, I think you can flash the stock images if you can find them too.
Although, obviously this means you need to unlock your bootloader. Which of course voids warranty, etc, etc.
Yupp if any developer will take interest and nokia release source code.
Source code available now for 6.1 Plus & others.
Nikhil Stark said:
Yupp if any developer will take interest and nokia release source code.
Click to expand...
Click to collapse
Nokia have released the source code, so dev could possibly create a AOSP rom for the 6.1 plus and other source codes for other Nokia's are also available. https://nokiapoweruser.com/nokia-7-1-and-nokia-6-1-plus-kernel-source-code-now-available-for-download/
All we need now is a way to unlock the bootloader officially. Hopefully it happens this year. Nokia keeps saying stay tuned and watch their facebook page for updates on bootloader unlocking, so it should happen eventually.
slysurfer said:
Nokia have released the source code, so dev could possibly create a AOSP rom for the 6.1 plus and other source codes for other Nokia's are also available. https://nokiapoweruser.com/nokia-7-...ernel-source-code-now-available-for-download/
All we need now is a way to unlock the bootloader officially. Hopefully it happens this year. Nokia keeps saying stay tuned and watch their facebook page for updates on bootloader unlocking, so it should happen eventually.
Click to expand...
Click to collapse
I applied for unlocking bootloader yesterday through the official app present hope for the best
Good Luck
Nikhil Stark said:
I applied for unlocking bootloader yesterday through the official app present hope for the best
Click to expand...
Click to collapse
I did try to unlock my Nokia 6 (2018 ) and I spoke with a Nokia represenative about unlocking my Nokia 6.1 plus, but was unable to do so. Hope you have success, if you do let us know.
Thanks Nikhil.
Bootloader unlock
Nikhil Stark said:
I applied for unlocking bootloader yesterday through the official app present hope for the best
Click to expand...
Click to collapse
Hi Nikhil, How did you go. Did Nokia allow you to unlock your Bootloader??
Did anyone flash a gsi and was able to get gapps afterwards? If so, how? I can't find a functional twrp for our device
saurabh.k said:
Will there be any custom ROM for Nokia 6.1 plus
Click to expand...
Click to collapse
Um.. I think custom roms will be out for Nokia X6 as now twrp is successfully ported and even some kernals.Thanks to developers.
Development started!?

is it even worth unlocking bootloader on psmart?

Is it worth unlocking bootloader on psmart? Fig lx1. I ask as it doesn't look like we got much support around here. For example: do we have Los 16? Pie? Or any other Android 9 custom ROMs?
What benefits have you reaped from unlocking?
Are you back in stock?
psmart has treble support so there are a whole bunch of GSI'S and the Openkirin project roms you can flash The problem with our device is camera .....therr are ports and hacks but nothing 100% ...
however its worth it unlocking just to get magisk & twrp for modding and ful device control ..

Categories

Resources