• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[SAGIT][TREBLE][BETA][DISCONTINUED] Project Trouble

Search This thread

blankaf

Senior Member
Apr 28, 2015
131
753
Project Trouble (Treble)

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * We're 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 TREBLE
 * SUPPORT 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.
 *
 */

What is Project Treble:
Project Treble basically partitions your device into two separate partitions, a system and a vendor: system contains your generic system image, while vendor partition has your device specific files required for booting and running your phone. This way we can easily change the system image and be able to run our device on different system images with the same kernel and vendor partition
Read more about Project Treble


What's a GSI?:
A GSI literally means Generic System Image. It is a general system image meant for no specific device. Treble enabled devices have the capability to run a GSI. You can find a GSI here: Phh-Treble


Mi 6 hardware vs Treble implementation:
Mi 6 is an A-only device. This means that regarding the GSI images (GSI = Generic System Image) to be used, you need to get ARM64 and A-Only system images


How to report bugs:
Logcat, a simple description of the bug, kmsg or dmseg depending on the bug


What's Packaged in the zip:
A boot image (kernel)
A vendor image (cust partition)


How to use:
  • Download the TREBLE zip provided here: AFH
  • Download a GSI image from HERE (Remember: ARCH64 and A-ONLY version)
  • Reboot to recovery (twrp-3.2.1-0-sagit-blankaf-3.img REQUIRED)
  • Clean the device (wipe Dalvik/Cache/System/Data/Vendor partitions)
  • Flash Treble sagit zip
  • Flash the GSI system image you wish to use
  • Reboot

Screenshots:
rsz_screenshot_20180315_191455.png
rsz_1screenshot_20180315_191546.png


What's working:
  • RIL (both SIMs)
  • Camera (and flashlight)
  • Camcorder
  • WiFi
  • Bluetooth
  • Telephony (Calls and Data)
  • Audio (Record and Playback)
  • Video Playback
  • Sensors
  • Vibrator
  • Fingerprint sensor
  • GPS
  • IR
  • NFC
  • HW buttons light
  • DT2W

What's not working:
  • VoLTE
  • SELinux is permissive
  • You tell me!

Contributors:
  • Thanks @DanWard for fixing camera
  • thune-xiaobai for his work on the device tree
  • blankaf (me) for bringing up treble

Source code:
Device tree
Vendor tree
Kernel source


XDA:DevDB Information
Project Trouble, ROM for the Xiaomi Mi 6

Contributors
blankaf
ROM OS Version: 8.x Oreo

Version Information
Status: Alpha

Created 2018-03-15
Last Updated 2018-04-08
 

blankaf

Senior Member
Apr 28, 2015
131
753
So @blankaf would this work with your lineage rom I currently run or is it really for stock rom users? Is there any benefits to treble when using custom roms? Thanks for your work, makes this phone a joy.

It won't work with my rom as of now, however I plan to release an update for my LOS that is treble-compatible when I find this project stable.
There's not really any benefit when you're using custom roms as of now. But when this becomes "mainstream" there will be a lot of custom roms that might go with generic system images.
It could also make it easier to update our Mi6 to Android P.
 

Ultraschorsch

Senior Member
Sep 29, 2007
668
182
Munich
So @blankaf would this work with your lineage rom I currently run or is it really for stock rom users? Is there any benefits to treble when using custom roms? Thanks for your work, makes this phone a joy.

I can only speak for myself but I will wait until I will use a treble ROM. Not because I don't trust in the amazing capabilities of the devs but right now it just lacks features that I am used to have in a custom ROM.
 
  • Like
Reactions: Motorheadache84

Guangd

Member
Jan 7, 2017
33
2
:crying: how to solve it ,I use 2.82 2.79 and old version,also can't solve it
 

Attachments

  • Screenshot_20180316-233655.png
    Screenshot_20180316-233655.png
    58.4 KB · Views: 829

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    Project Trouble (Treble)

    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * We're 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 TREBLE
     * SUPPORT 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.
     *
     */

    What is Project Treble:
    Project Treble basically partitions your device into two separate partitions, a system and a vendor: system contains your generic system image, while vendor partition has your device specific files required for booting and running your phone. This way we can easily change the system image and be able to run our device on different system images with the same kernel and vendor partition
    Read more about Project Treble


    What's a GSI?:
    A GSI literally means Generic System Image. It is a general system image meant for no specific device. Treble enabled devices have the capability to run a GSI. You can find a GSI here: Phh-Treble


    Mi 6 hardware vs Treble implementation:
    Mi 6 is an A-only device. This means that regarding the GSI images (GSI = Generic System Image) to be used, you need to get ARM64 and A-Only system images


    How to report bugs:
    Logcat, a simple description of the bug, kmsg or dmseg depending on the bug


    What's Packaged in the zip:
    A boot image (kernel)
    A vendor image (cust partition)


    How to use:
    • Download the TREBLE zip provided here: AFH
    • Download a GSI image from HERE (Remember: ARCH64 and A-ONLY version)
    • Reboot to recovery (twrp-3.2.1-0-sagit-blankaf-3.img REQUIRED)
    • Clean the device (wipe Dalvik/Cache/System/Data/Vendor partitions)
    • Flash Treble sagit zip
    • Flash the GSI system image you wish to use
    • Reboot

    Screenshots:
    rsz_screenshot_20180315_191455.png
    rsz_1screenshot_20180315_191546.png


    What's working:
    • RIL (both SIMs)
    • Camera (and flashlight)
    • Camcorder
    • WiFi
    • Bluetooth
    • Telephony (Calls and Data)
    • Audio (Record and Playback)
    • Video Playback
    • Sensors
    • Vibrator
    • Fingerprint sensor
    • GPS
    • IR
    • NFC
    • HW buttons light
    • DT2W

    What's not working:
    • VoLTE
    • SELinux is permissive
    • You tell me!

    Contributors:
    • Thanks @DanWard for fixing camera
    • thune-xiaobai for his work on the device tree
    • blankaf (me) for bringing up treble

    Source code:
    Device tree
    Vendor tree
    Kernel source


    XDA:DevDB Information
    Project Trouble, ROM for the Xiaomi Mi 6

    Contributors
    blankaf
    ROM OS Version: 8.x Oreo

    Version Information
    Status: Alpha

    Created 2018-03-15
    Last Updated 2018-04-08
    23
    Project Trouble | 25th March

    • Go full Pixel 2 NFC
    • Fix DT2W toggle
    • Upstream kernel to 4.4.124
    • Tweak kernel

    ProjectTrouble-MI6-sagit-treble-v3.5-BETA.zip

    I can finally say that the NFC drain is completely fixed. You don't need to disable NFC anymore to get good battery life.
    21
    Project Trouble | 24th March

    • O-MR1 based display and media blobs
    • Clean init scripts and bring in updates from CAF 06900
    • Fix NFC
    • Fix DT2W
    • Fix USB C audio
    • Ditch MIUI Camera
    • Enable HAL3 by default
    • Update blobs from V9.5.3.0.OCAMIFA
    • Add missing audio blobs
    • Upstream kernel to LA.UM.6.4.r1-07400-8x98.0
    • Add Power Changes from Oreo OSS kernel

    Download: ProjectTrouble-MI6-sagit-treble-v3-BETA.zip
    16
    Project Trouble | Beta | Version 2 | 17th March

    Changelog:
    • 8.3.15 blobs
    • Wahoo (Pixel 2) Power HAL
    • Wahoo (Pixel 2) perf stack
    • Minor kernel tweaks
    • MIUI Camera

    Download:
    ProjectTrouble-MI6-sagit-treble-v2-BETA.zip

    Beta Status:
    I seriously underrated the Project's status when I named it Alpha. I am changing that today by going from Alpha status to Beta status.
    The bug list at the moment is way too small to call it Alpha. In my opinion it would be ridiculous to call it Alpha as it is Beta at the very minimum.

    MIUI Camera:
    MIUI Camera doesn't seem to like GSI's so some functions such as Portrait mode and 2x zoom does not work. It does work just fine with my treble-enabled LOS 15.1.
    You need to give MIUI Camera permissions in settings for it to work properly.
    Even though some functions doesn't work it is still way better than the ****ty stock camera in the Generic System Images.
    13
    So @blankaf would this work with your lineage rom I currently run or is it really for stock rom users? Is there any benefits to treble when using custom roms? Thanks for your work, makes this phone a joy.

    It won't work with my rom as of now, however I plan to release an update for my LOS that is treble-compatible when I find this project stable.
    There's not really any benefit when you're using custom roms as of now. But when this becomes "mainstream" there will be a lot of custom roms that might go with generic system images.
    It could also make it easier to update our Mi6 to Android P.