[TREBLE][DEV] Mistery solved, developer documentation for GSI on One Plus 6

Exelios

Senior Member
Jul 3, 2014
511
589
0
Berlin
So, we can't flash treble roms with twrp like before? Only via fastboot and pc? in future?
For now only via fastboot yes, because you need the stock boot image, maybe we find a way around it in the future, but no idea for now.
(this is again only OP6 specific, other devices can still TWRP flash images)
 
  • Like
Reactions: Raylon00

vrda08

Senior Member
Aug 23, 2013
763
298
93
For now only via fastboot yes, because you need the stock boot image, maybe we find a way around it in the future, but no idea for now.
(this is again only OP6 specific, other devices can still TWRP flash images)
Ok, too bad, hope it will change in future.. hate pc and cabels..
 

HACK3DANDR0ID

Senior Member
May 25, 2017
1,158
323
0
40
New Jersey
Thanks for sharing, This will be the 3rd Device i am flashing Treble on....Also have a Google Pixel 2 XL which has similar instructions via Fastboot, the only Device i could flash GSIs via TWRP was Moto G6 Plus, with a broken, boot ONLY TWRP.... Also the Pixel 2 XL and the OP6 are the only devices which i had to flash the stock vbmeta.img...

*edit*

I am currently on 5.1.8 and want to Downgrade to 5.1.6, because i read there were Project Treble fixes, that for some reason are not in the latest Build. I can get away with just flashing the STOCK Boot.img, I do not need to flash the entire 5.1.7 Build?
 
Last edited:

HACK3DANDR0ID

Senior Member
May 25, 2017
1,158
323
0
40
New Jersey
Also, when i was flashing GSIs on my other Devices, I read that we should use "platform-tools_r27.0.1-windows" for Project Treble Flashing, not sure if the same pertains to the OP6.??? because apparently there are fixes for Treble in the older Platform-Tools that are non-existent in the newer r28.0.0 Platform-Tools ...

Not sure exactly where I read to use "platform-tools_r27.0.1-windows" for Project Treble, or i would post the link...
 

Attachments

Last edited:

MartinX3

Recognized Contributor
Sep 14, 2014
5,584
2,787
253
Mars
martinx3.github.io
Same problem with the Sony Xperia XZ2.
https://forum.xda-developers.com/xp...recovery-twrp-3-2-2-0-touch-recovery-t3821597
It uses Android Verified Boot 2.0.

A dtb partition is storing the dtb overlay of the kernel, which was previously included into the bootimage.
If you don't flash the correct dtbo data intothis partition, you can't boot the new kernel. -> Of course you can include the drb data into the bootimage again, only the standard way changed.

Aaaaand it is now using a vbmeta partition storing the hashes and crypto stuff to know if a partition is corrupted or changed or whatever and then refuses to boot.
We can't even use
Code:
fastboot boot twrp.img
and need to flash it first with
Code:
fastboot flash boot twrp.img
.
I managed to figure out the exact steps which needs to be done to initial install twrp.

Also then you can't boot into the system image again at our site.
In TWRP we need to flash the boot.img file into the boot partition again and after that we need to extract the RAMDISK from the previously named twrp.img into the bootpartition.
It doesn't matter that the twrp.img includes the exactly same kernel and ramdisk.

And after that we need to install magisk in twrp or the device would bootloop.

I've never seen this before and it is new with the snapdragon845 and its qualcom bootloader.
The previously XZ1 with the snapdragon 835 hasn't this problem.
The XA2 with the Snapdragon 630 hasn't it, too.
 

cheth20

Senior Member
Sep 11, 2006
111
6
0
Fails after a few successful boots

Hi Exelios,

I am currently using MIUI OS on my OnePlus 6. But I see that the phone after a few successful boots, just keeps looping back into fastboot mode. In the below post you have mentioned something similar.

Could you please guide me with the right procedure to fix the problem without having to format the data (process and the link to the files)?



So V20 of phh AOSP has been released and it contains several One Plus 6 specific fixes, such as:

- [OnePlus6] Fixes backlight
- [OnePlus6] Partial support for DnD slider
- Fixes bug on some A/B devices where device would stop booting after several success

Head over to the AOSP GSI thread for downloads
https://forum.xda-developers.com/pr...-development/experimental-phh-treble-t3709659

Lineage OS version is currently building, and will become available when it becomes available.