• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[TREBLE] Project Treble for Xiaomi Mi Mix [LITHIUM][12.09.2018]

Psy_Man

Senior Member
Feb 20, 2014
560
2,014
0
Angri (SA)


What is Project Treble?
Everything is explained here!

What's working:
Boots
Wifi
Bluetooth
Camera ( Videos And Photos )
Video Playback
Audio ( Record and Playback )
Sensors
GPS
RIL
VoLTE

What's not working:
Selinux is permissive
You tell me

Generic System Images:
Here

How to flash:
Use a TWRP with /vendor support
Wipe cache, dalvik-cache, system, vendor and data
Flash the required firmware
Flash the treble_lithium-xxxxxxxx-xxxx.zip
Select "Flash Image"
Flash a Generic System Image in system partition (arm64, A only)
Reboot

Special thanks:
Tranquilitysmile for testing and debugging​

XDA:DevDB Information
Project Treble for the Xiaomi Mi Mix

Contributors
Psy_Man
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x
ROM Firmware Required: 8.8.30
Based On: AOSP

Version Information
Status: Stable

Created 2018-05-01
Last Updated 2018-09-12
 
Last edited:

doumer

Senior Member
Jun 7, 2010
484
71
0
Stuttgart
woha, thanks @Psy_Man !

since this took me somewhat by surprise: how will the flashing-process with treble roms differ from the traditional way? after flashing the treble-zip (and doing a factory reset) for the first time, will it be possible to switch the generic system images without a factory reset every time like when switching a "traditional" rom? will you still continue your Pixel Experience rom or is Treble the way to go? and which TWRP meets the /vendor requirement? the TWRP-thread is a bit chaotic...

sorry for all those questions, really appreciate your work!
 

albertoduqe

Elite Member
May 4, 2017
1,084
526
113
woha, thanks @Psy_Man !

since this took me somewhat by surprise: how will the flashing-process with treble roms differ from the traditional way? after flashing the treble-zip (and doing a factory reset) for the first time, will it be possible to switch the generic system images without a factory reset every time like when switching a "traditional" rom? will you still continue your Pixel Experience rom or is Treble the way to go? and which TWRP meets the /vendor requirement? the TWRP-thread is a bit chaotic...

sorry for all those questions, really appreciate your work!
I believe factory reset and wiping system and data are still needed between GSI's... But it should be tried...

Twrp by raupe-lunden.... Find it linked in most oreo roms threads op's I think.

For flashing generic procedure the instructions are linked right here in Psy_Man's OP :)
 

albertoduqe

Elite Member
May 4, 2017
1,084
526
113
I cannot see logcat here. Ignored.
Yup.

I also couldn't boot RR or AOKP... Will try and get logcats from the bootloop and share here a pastebin or the likes.

This treble advances for lithium I believe are awesome and undoubtedly the way to go.

Thanks again Psy_Man.
 

NLivingstonAP

Member
Sep 13, 2017
12
5
0
Sorry for not provided logcat, I dont know how to getting logcat when my phone stuck at boot animation ? How can I get the logcat when stuck at boot?
If I recall correctly, running
Code:
 adb -d logcat>mylogfile.txt
before the phone boots should wait until the phone boots and connects to the computer, provide you with a logcat, and save it to a file. (You won't see the output in the terminal, but the log file should be there. There's more information on this here.)

This looks great, good work! I'll try it in a bit and report back on how it works. Thanks again!
 
  • Like
Reactions: Fusionist

Fusionist

Senior Member
Feb 19, 2008
182
47
0
If I recall correctly, running before the phone boots should wait until the phone boots and connects to the computer, provide you with a logcat, and save it to a file. (You won't see the output in the terminal, but the log file should be there. There's more information on this here.)

This looks great, good work! I'll try it in a bit and report back on how it works. Thanks again!
Many thanks ! I'll try it again
 

billyliem

Senior Member
Nov 13, 2013
54
4
0
Hello i want to ask what is the benefit using the treble based custom rom? From what i know is the update is faster for oem eg samsung, lg or oem that used treble, but what is benefit using this on custom rom?
 

albertoduqe

Elite Member
May 4, 2017
1,084
526
113
Hello i want to ask what is the benefit using the treble based custom rom? From what i know is the update is faster for oem eg samsung, lg or oem that used treble, but what is benefit using this on custom rom?
You flash the treble compatible and then any GSI out there, that are cooked and usable for any treble enabled device. You don't need an aokp (or any other) cooked specifically for lithium.