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

Search This thread

Psy_Man

Senior Member
Feb 20, 2014
560
2,015
Angri (SA)
N8ul8aY.jpg


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
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

Senior Member
May 4, 2017
1,085
526
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 :)
 

Fusionist

Senior Member
Feb 19, 2008
180
46
Using RR image, stuck at white android logo. Cannot go into OS, trying format data wipe all, result still same
 

NLivingstonAP

Member
Sep 13, 2017
12
5
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
180
46
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

Account currently disabled
Nov 13, 2013
54
9
36
GB
meettomy.site
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

Senior Member
May 4, 2017
1,085
526
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    N8ul8aY.jpg


    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
    9
    Screenshots:
    8
    14.05.2018 build:

    - Synced with latest LineageOS's changes
    - Updated blobs from MIUI 8.5.10
    - Refer to Github for a detailed changelog

    NOTES:

    - The installation script will check for 8.4.19 modem, so it's mandatory to flash 8.4.19+ firmware or installation will fail

    Downloads:

    Download build
    6
    02.05.2018 build:

    - Forced enable navigation bar (thanks @EvangelineDEV for pointing this out)
    - Moved listen_platform_info.xml to /vendor
    - Merged changes from LineageOS

    Download build