[Treble][Unofficial]LineageOS 16.0 Treble for Oneplus 3/3T

Search This thread

cruzzer.

New member
Jan 19, 2019
1
6
This post is to share my experience installing treble:

How I installed treble to OnePlus 3:
  • Install simonsmh's twrp
  • trebilize as described by simonsmh
  • twrp> wipe/factory reset & format DATA
  • install simonsmh version of lineage os*

After that I was able to flash other GIS images, like phhusson's Pie GIS image . As mentioned by simonsmh, I had to flash linkerfix.zip with twrp after installing any GIS images.

It was a bit hit and miss with the camera. Often "open Camera" would fix the issue. On some images the front camera was still broken. As a workaround I installed the "OnePlus Camera" from apk mirror which fixed the camera.

For those that want the classic android button layout [back][home][app switch], they can follow this procedure:
Code:
adb shell
$ su
# mount -o rw,remount /vendor
# cp /vendor/usr/keylayout/synaptics.kl /sdcard/Download
adb pull /sdcard/Download/synaptics.kl
(swap 158 and 580 values in synaptics.kl file)

adb push synaptics.kl /sdcard/Download
adb shell
$su
# cp /sdcard/synaptics.kl /vendor/usr/keylayout/synaptics.kl
# reboot

I'm still exploring what works and what doesn't. The alert slider and nfc didn't work for me. Possibly an issue with my GIS images.

* Must first install his image, else installing other GIS image directly produced errors for me
 
Last edited:

simonsmh

Senior Member
Dec 14, 2015
297
541
Guys, I'm back. New build based on LOS 16.0 is up. To flash the build you may need to flash OOS or H2OS 9.0 first. Updated recovery is also in the link.
This build is built with official pie blobs, and the vendor could boot up the ErfanGSIs sGSI Pixel Aonly Q image.
Currently, the camera is dead in Q, but other seems working well, including ril and secured wifi network.
For more information please join the telegram group.
 
Last edited:

simonsmh

Senior Member
Dec 14, 2015
297
541
7d7ba9b772bf8aa3d175a9778d3c0acc011de2.png
 

Phid13

Senior Member
Dec 26, 2018
57
14
I was unable to boot the android q gsi. Can anyone tell me where I went wrong?
My process was as follows:
Install oxygen os 9 from xda
reboot to bootloader
flash the custom twrp in this page
treblize as shown(this definitely worked as I tried again and it just said found vendor partition, good
installed the LOS 16 in this page
installed treble check, which said treble was installed
booted into twrp and wiped dalvik/art cach, data, cache and system
downloaded the erfan pixel a only gsi
removed ".7z" from the file name so it ended in .img
flashed it to system
flashed the permissiver v2.zip
tried to reboot and it said no os installed and booted into fastboot

any help would be much appreciated
 

ps_minky16

Senior Member
Sep 6, 2015
1,028
1,433
28
New Delhi
I was unable to boot the android q gsi. Can anyone tell me where I went wrong?
My process was as follows:
Install oxygen os 9 from xda
reboot to bootloader
flash the custom twrp in this page
treblize as shown(this definitely worked as I tried again and it just said found vendor partition, good
installed the LOS 16 in this page
installed treble check, which said treble was installed
booted into twrp and wiped dalvik/art cach, data, cache and system
downloaded the erfan pixel a only gsi
removed ".7z" from the file name so it ended in .img
flashed it to system
flashed the permissiver v2.zip
tried to reboot and it said no os installed and booted into fastboot

any help would be much appreciated

Unzip the .7z file rather than changing the name.
 

FallenFlame

Member
Apr 4, 2017
35
14
I was unable to boot the android q gsi. Can anyone tell me where I went wrong?
My process was as follows:
Install oxygen os 9 from xda
reboot to bootloader
flash the custom twrp in this page
treblize as shown(this definitely worked as I tried again and it just said found vendor partition, good
installed the LOS 16 in this page
installed treble check, which said treble was installed
booted into twrp and wiped dalvik/art cach, data, cache and system
downloaded the erfan pixel a only gsi
removed ".7z" from the file name so it ended in .img
flashed it to system
flashed the permissiver v2.zip
tried to reboot and it said no os installed and booted into fastboot

any help would be much appreciated

Extract the image from the .7z, just changing the file name extension won't work. That's the reason why there is no os installed.
After flashing Permissiver v2, you need to flash fixzygote (it should be located in the same place you got Permissiver). After doing both these things, it should boot! :)
 

Phid13

Senior Member
Dec 26, 2018
57
14
I tried installing the android q gsi, and now I get stuck in bootloop. So I wiped everything and installed oxygen os on android oreo. Lots of bugs including front camera not working.

Installed Skydragon os latest version and nano gapps, and sim is recognised, but I can't make or receive calls or do anything with it. Also, 10GB of data is being used up by the system when it should be closer to 1 GB. Lots of other bugs and system crashes as well. Before I treblized my phone none of this happened and it was smooth.

So, does anybody have a foolproof way of untreblizing my phone and restoring it to completely stock, as I think this will solve my issues?
 
I tried installing the android q gsi, and now I get stuck in bootloop. So I wiped everything and installed oxygen os on android oreo. Lots of bugs including front camera not working.

Installed Skydragon os latest version and nano gapps, and sim is recognised, but I can't make or receive calls or do anything with it. Also, 10GB of data is being used up by the system when it should be closer to 1 GB. Lots of other bugs and system crashes as well. Before I treblized my phone none of this happened and it was smooth.

So, does anybody have a foolproof way of untreblizing my phone and restoring it to completely stock, as I think this will solve my issues?
Use the MSM Download Tool / Unbrick Tool to flash all the partitions back to how they were.

Sent from my #FlagshipKiller3T using Tapatalk
 

mnsiw

Senior Member
Oct 2, 2009
1,196
384
Guys, I'm back. New build based on LOS 16.0 is up. To flash the build you may need to flash OOS or H2OS 9.0 first. Updated recovery is also in the link.
This build is built with official pie blobs, and the vendor could boot up the ErfanGSIs sGSI Pixel Aonly Q image.
Currently, the camera is dead in Q, but other seems working well, including ril and secured wifi network.
For more information please join the telegram group.

I have tried latest Pixel A only (20190515), RIL is not stable for me, continuously connecting and dropping (asking for SIM selection), tried sending SMS, it worked but for call it was hit or miss. Is it stable for you?
 

thes3usa

Retired Forum Moderator
May 30, 2015
570
711
20
Colombo
Hey guys! We're back.

Steps to install Q Beta 6 GSI

1. Download Simon's latest TWRP and flash it.

2. Make sure you're on OOS 9.0.4 or later firmware.

3. If you are encrypted, you will have to clear encryption via TWRP

4. Wipe /system, /data and reboot to Recovery.

5. Go to Advanced -> Terminal and type in "Treblize" and executive it. Wait for the partitioning to complete.

6. Flash Simon's latest LineageOS 16.0 Treble build.

7. Wipe all partitions except /Vendor.

8. Flash GSI to System Partition.

9. Flash Erfans permissiverv4(optional), zygotev2, lagfix.

10. Flash Magisk Canary 19.4. Stable/Beta will not work.

11. Reboot to system.

12. Download latest Google Play Services and Google Play Store (non beta versions) from Apkmirror.


Thanks to Simon's work on Treble.

TWRP and Treble LOS16: https://mega.nz/#F!BlETXKhL!rTTjfiAXzogQBimtRnTE7w

Q DP6 GSI:
https://mirrors.lolinet.com/firmware/gsi/Pixel-Aonly-10-20190808-ErfanGSI.img.7z

Erfans GSI Tools:
https://www.androidfilehost.com/?w=files&flid=279429

Bugs:
Mostly none! Just Hotspot and a bit of general lag but can be used as Daily Driver.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 101
    LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), which is designed to increase performance and reliability over stock Android for your device.
    Code:
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */
    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
    6edac7b19bcd079ef70c77c3f548dd590f16c3.png

    -------------

    Hello, I'm very excited to tell you that Project Treble is ready to run on our phone. Although it's not stable with always something broken, It's still a nice chance to undergo other ROMs that you want.

    Beware that it is only a proof-of-concept try to let everyone know our device is still powerful. They are still well prepared for future Android release. However, the GSIs will never be more stable than device-specific ROMs. This Treble ROM is not suitable for daily use.

    The main reason why official LineageOS of our device didn't ship with Project Treble is that we don't have fully binderized camera HALs from Oneplus. If we want to support Treble there must be a lot of compromises.

    Things working:
    Everything, including camera.

    Things not working:
    1. [A-only & A/B] SELinux is set to permissive for most GSIs.
    Unnecessary and won't fix for now.
    2. [A/B] Reboot and stuck at boot animation while GSI installation.
    Solution: Use adb for a reboot, don't just hold the power button. After this the system will boot, at least we could get console-ramoops correctly for debugging.

    The step-by-step guide on how to treblize your device:
    Treble needs a partition called "Vendor", but our device does not have this device. What we need to do is to create a vendor partition by our selves.
    I made a custom TWRP Treble build to do this process, here is what you should do in TWRP.
    0. Warning
    Our device is really old, some users may experience storage failure (Known as CRC failure), please be careful when you treblize your device. If you meet any problem, please check the 9008 unbrick guides in the forum.
    1. Flash this TWRP in the download link below.
    2. Boot it up and go to "Advanced" -> "Terminal", Type treblize and run.
    a30e1dfbe34c65fb9d887a30a0e57014f103b8.png

    Treblize is a shell that we could modify our partition. It basically does the same thing as the commands below.
    Code:
    /sbin/sgdisk --typecode=5:8300 /dev/block/sdf
    /sbin/sgdisk --change-name=5:vendor /dev/block/sdf
    3. Reboot your phone to your current system to check if there is storage failure.
    It's very important. Some of the users report it may cause storage broken. You'd better check it first before flashing LOS Treble.
    4. Reboot your phone to TWRP.
    5. Flash LOS Treble in the download link below.
    After these processes, you have got a treblized Oneplus3. Boot it up to check if everything works, or just trying other GSIs anyway.

    The step-by-step guide on how to flash GSIs:
    0. Treblize.
    1. Choose and flash LOS Treble solution first for the vendor partition.
    Because of the supporting of system-as-root for our device, you can now use every GSIs if possible. I personally recommend the system-as-root solution for future android standards, although they are basically the same some old recovery install scripts may be broken like opengapps will not working anymore according to the report.
    2. Flash A-only or A/B GSI image according to the flag in the download section.
    3. Wipe data.

    Q&A:
    1. Q: What are the limitations to our devices?
    A: Sizes. Our device has 3154116608 bytes or 3.15G of system storage. Some GSIs may be larger than our device and due to TWRP's bug it won't be recognized. Here is a guide for linux users to make self modified GSIs images of smaller size.
    Code:
    sudo simg2img <system.img> system.ext4.img
    sudo mount -t ext4 -o loop system.ext4.img system/
    sudo chown -R <username>:<username> system/
    #then enter the system/app folder and remove gmail, maps, google play music, drive, etc.
    makeext4fs -T 0 filecontexts -l 3154116608 -L system -system -s flash.img system/
    2. Q: Something is broken in some GSIs!
    A: That may or may not be our device's fault.
    3. Q: Can I install other third-party kernels?
    A: You need to make sure that kernel supports mounting vendor partition, or it will brick your device.
    Also, the device now is supporting system-as-root, which requires new kernel patchs. Kernels claimed that for treble previously may not work anymore.
    4. Q: How to revert my treblized device?
    A: Unnecessary. But you can do it yourself with the sgdisk command-line tool, or just use the 9008 tool if you are lazy.
    5: Q: How do I install a non-treble ROM with my "treblized" device?
    A: As normal. They won't affect each other.

    Thanks:
    dianlujitao and other LOS devs for current device tree
    XiNGRZ for op5 treblize reference
    a lot of testers

    Chat Group:
    https://t.me/joinchat/BrAZb0Zf9p3q7Qz_No5AUA
    Join the chat group for sGSI QPR6 guide and more!

    Downloads:
    [New][A/B] LineageOS 16.0 Treble system-as-root: https://mega.nz/#F!UgdQRYSD!8s-_u2HJQZDEqNnFOnejxQ
    [Old][A-only] LineageOS 16.0 Treble: https://mega.nz/#F!A0VmQAaC!Mc3HYZgAkxeoQwGkZyJvwg
    [Deprcated][A-only] LineageOS 15.1 Treble: https://androidfilehost.com/?w=files&flid=280568


    XDA:DevDB Information
    LineageOS Treble, ROM for the OnePlus 3

    Contributors
    simonsmh, dianlujitao, chenxingyu,
    Source Code: https://github.com/OP3Treble

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.x
    ROM Firmware Required: OxygenOS/H2OS 9.0.x
    Based On: LineageOS

    Version Information
    Status: Alpha

    Created 2018-08-17
    Last Updated 2019-08-27
    41
    Hey guys! We're back.

    Steps to install Q Beta 6 GSI

    1. Download Simon's latest TWRP and flash it.

    2. Make sure you're on OOS 9.0.4 or later firmware.

    3. If you are encrypted, you will have to clear encryption via TWRP

    4. Wipe /system, /data and reboot to Recovery.

    5. Go to Advanced -> Terminal and type in "Treblize" and executive it. Wait for the partitioning to complete.

    6. Flash Simon's latest LineageOS 16.0 Treble build.

    7. Wipe all partitions except /Vendor.

    8. Flash GSI to System Partition.

    9. Flash Erfans permissiverv4(optional), zygotev2, lagfix.

    10. Flash Magisk Canary 19.4. Stable/Beta will not work.

    11. Reboot to system.

    12. Download latest Google Play Services and Google Play Store (non beta versions) from Apkmirror.


    Thanks to Simon's work on Treble.

    TWRP and Treble LOS16: https://mega.nz/#F!BlETXKhL!rTTjfiAXzogQBimtRnTE7w

    Q DP6 GSI:
    https://mirrors.lolinet.com/firmware/gsi/Pixel-Aonly-10-20190808-ErfanGSI.img.7z

    Erfans GSI Tools:
    https://www.androidfilehost.com/?w=files&flid=279429

    Bugs:
    Mostly none! Just Hotspot and a bit of general lag but can be used as Daily Driver.
    31
    Hi, thanks to PeterCxy, we find a method to load camera shim library.
    Flash zip below after you flashed GSI, and camera should be working again. Confirmed sGSI PR1 is working.
    However, it's just a dirty hack, and we are still trying to port camera hal.
    23
    Now we can use camera on phh 9.0 based GSIs with linkerfix v3+. Confirmeta PE 9.0 GSI Beta works.
    Quick Link: https://github.com/OP3Treble/linkerfix/releases/download/v4/linkerfix.zip
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone