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:


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