[Xiaomi Mi Max 2  ROMs, Kernels, Recoveries, & Othe] bneo99:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1.2 (Nougat), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit the Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

Special thanks to ashwin007 for developing most of the code for this device. I've only added the SELinux policy for this device and rebuild it with the latest monthly security patch.

What's working :

Boots

Wifi

Bluetooth

Camera ( Videos And Photos )

Video Playback

Audio ( Record and Playback )

Audio Jack

Sensors

GPS

VoLTE

IR Blaster

Fingerprint Sensor

Tap To Wake

On-screen keys <-> hw keys toggle

Notification LED

No more weird colour profile issue

Enforcing SELinux

Known Issues :

You tell me

Instructions :

Download the latest build and Gapps.

Make sure you are on the latest TWRP build.

Reboot to recovery

Format Data and System

Flash the latest build and Gapps (optional)

Reboot

Downloads :

Builds : https://www.androidfilehost.com/?w=files&flid=279627

Root addon : https://download.lineageos.org/extras

Google Apps : http://opengapps.org/

Source Code :

Device: https://github.com/bneo99/android_device_xiaomi_oxygen

Kernel: https://github.com/bneo99/android_kernel_xiaomi_oxygen

Vendor: https://github.com/bneo99/android_vendor_xiaomi_oxygen

Reporting Bugs

DO NOT Report bugs if you're running a custom kernel or you installed Xposed

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

If it is a random reboot, grab /proc/last_kmsg . (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

What is your--
LineageOS version:
LineageOS Download url:
Gapps version:

Did you--
wipe:
restore with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

XDA:DevDB Information

LineageOS 14.1 by bneo99, ROM for the Xiaomi Mi Max 2

Contributors

bneo99, ashwin007

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.x

Based On: LineageOS

Version Information

Status: Beta

Created 2018-07-26

Last Updated 2018-07-29