[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] hondajohn88:
XenonHD ROM for Xiaomi Mi Mix 2

A Team Horizon ROM

Based on AOSP r36 7.1.2

This ROM has all the features XenonHD has to offer.

All hardware functions including:

NFC

Bluetooth Audio

Fingerprint Scanner

Doze & Wake-up Gestures (dtw works after the first reboot)

And...many more things.

Magisk is no longer built in, so you'll need to flash it when first installing, and after every dirty flash.

VoLTE doesn't work (at least on T-Mobile). I believe most of the pieces are in place, but there may be something in the firmware that's preventing it? If I could figure out how to tap into the stock cust files, I might be able to figure out how to get it working.

Proximity Sensor is working:

Notification Light:

I have slowed down the notification light so it isn't all amped up. To make it completely usable, go to:

Fixed default notification blinks for built-in apps so they are slowed down without needing to go to settings.

For use-installed apps, add them to custom notification list in settings > notifications > gear icon > notification light > + in upper right corner > select app. Apps added to that list will have slow notification blinks.

I simply cannot find a way to make user-installed app notifications behave the same as built-in apps. Grrr!!

I have also made the light sensor wait longer before dimming the screen. This helps with left-handed activities blocking the light sensor and almost immediately dimming the screen.

Reduced time to go back from dim to bright. Screen will dim after 5 seconds, returns to bright after 2 seconds.

I've remove configpanel & pocketmode...they did little to nothing, and may have caused more battery drain than I care for.

Required prior to installing:

Unlock Bootloader

Install custom recovery: https://www.androidfilehost.com/?fid=962021903579490303

HUGE thanks to IceMan for bringing this to Mix 2!

A quirk with this TWRP: This one looks for backups in TWRP/BACKUPS/MIX_2 folder. Normally, the MIX_2 folder is named after serial number of your device.

So, you existing backups won't be found until you rename the folder in BACKUPS to MIX_2.

Installation Instructions:

Dirty flash is now available with the above TWRP and 10-26-2017 rom.

Download the most recent build: https://www.androidfilehost.com/?fid=673791459329071426

Download Gapps (I use Open Gapps Mini) --> http://opengapps.org/

All versions from 10-24-2017 are now encryptable.

From TWRP Recovery:

IF COMING FROM MIUI-BASED ROM: FULL WIPE AND FORMAT DATA!!

If you encounter ERROR 7, during XenonHD install, install Global MIUI ROM, then do full wipe and data format again, then install XenonHD rom.

If coming from AOSP-based ROM:

- Full wipe (Cache, Davlik/ART Cache, System & Data)

- Flash ROM zip

- Flash Gapps zip

Huge thanks to Mokee for bringing this device up and making a great place to start.

Also a very HUGE thanks to [MENTION=2252544]Arasthel[/MENTION] for his work on proximity sensor and figuring out the bluetooth reboot stuff and other hints, suggestions and incalculable work.

I'd also like to thank all of you folks here for trying this ROM and providing constructive feedback.

In addition, I appreciate your patience when issues come up that need to be fixed. I am not a developer, and I have a full time job and a wife that takes precedence most of the time :)

Sources:

Vendor:

https://github.com/hondajohn88/android_vendor_xiaomi_msm8998-common

https://github.com/hondajohn88/android_vendor_xiaomi_chiron/tree/xenonhd

Kernel:

https://github.com/hondajohn88/android_kernel_xiaomi_msm8998/tree/xenonhd

Device:

https://github.com/hondajohn88/android_device_xiaomi_chiron/tree/xenonhd

https://github.com/hondajohn88/android_device_xiaomi_msm8998-common/tree/xenonhd