CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0 (Marshmallow), which is designed to increase performance and reliability over stock Android for your device.
* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* 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.
CyanogenMod 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). CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
Base source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.
Everything except 'broken' stuff
(see also second post for info on recurring questions)
Compatible with all Xiaomi Mi 5 variants (32GB / 64GB / 128GB) only. Xiaomi Mi 5S and 5S Plus are not supported.
Builds are based off the Xiaomi's Android 6.0.1 firmware with proprietary blobs from MIUI 6.9.29 dev package.
No custom kernels are supported in this thread. Only CM kernel and official builds will be supported. No bug reports if that's not the case.
Reboot to recovery (TWRP recovery for Mi 5 - Direct link)
Wipe /system, /data and /cache
Install CM package
Install [optional] a Google Apps package of your choice (Open Gapps is advisable, but stock and super variants are not recommended!!!)
Important note: Gapps can only be flashed on clean installs.
Credits & collaborations:
This work is due to efforts from Mi5Devs founding members (@h2o64 and me) that did the full device bring-up. Huge thanks to @deovferreira for all the help during the kernel bring-up after source code dropped.
Thanks also to @shade.sh for publishing early beta builds.
Finally, all CyanogenMod team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!