[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
​

LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (Pie), 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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

GPL compliance:

Device tree source code: LineageOS/android_device_xiaomi_gemini

Kernel source code: LineageOS/android_kernel_xiaomi_msm8996

Broken / not yet supported:

Something must be broken, right?

Working:

Camera (and flashlight)

WiFi

NFC

Bluetooth

ANT+

Telephony (Calls and Data)

Audio (Record and Playback)

Video Playback

Sensors

GPS

Compatibility:

Compatible with all Xiaomi Mi 5 variants (32GB / 64GB / 128GB). Xiaomi Mi 5S and 5S Plus are not supported.

Builds are based off the Xiaomi's Android 8.0 firmware with proprietary blobs from MIUI 8.5.10 dev package.​

Downloads:

Official download links

Notice:

No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

Installation:

Reboot to recovery (TWRP recovery for Mi 5 - Direct link)

Format /system, /data and /cache

Install LineageOS zip package

Install [optional] the LineageOS su addon to get root (there are obviously other root methods, but this is the recommended one as it survives to OTA updates)

Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

Important notes:

Current minimal * required * firmware version is MIUI 8.8.30 Global dev, otherwise installation will fail. Download the latest dev fastboot package directly from Xiaomi and flash it prior to installing LineageOS or, alternatively, download and install one of the latest custom packages containing firmware only - direct link (at your own risk).

GApps can only be flashed on clean installs.

Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

Credits & collaborations:

This work is due to efforts from Mi5Devs founding members ([MENTION=4792450]h2o64[/MENTION] and me) that did the full device bring-up. Huge thanks to [MENTION=1701910]deovferreira[/MENTION] for all the help during the kernel bring-up after source code dropped. Last but not least, pleasure having [MENTION=5778309]luca020400[/MENTION] and [MENTION=5075128]LuK1337[/MENTION] onboard since the bring-up of the whole Xiaomi 8996 family.

Finally, all LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​

Device wiki:

Official wiki link

XDA:DevDB Information

LineageOS 16.0, ROM for the Xiaomi Mi 5

Contributors

bgcngm, Mi5Devs

ROM OS Version: 9 Pie

ROM Kernel: Linux 3.18.120

ROM Firmware Required: MIUI 8.8.30 dev

Version Information

Status: Beta

Created 2018-08-31

Last Updated 2018-08-31