
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.
Code:
#include <std_disclaimer.h>
/*
* 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.
GPL compliance:

- Device tree source code:
Mi5Devs/android_device_xiaomi_gemini> CyanogenMod/android_device_xiaomi_gemini - Kernel source code:
Mi5Devs/android_kernel_xiaomi_msm8996> CyanogenMod/android_kernel_xiaomi_msm8996
Broken:
- Nothing!
Working:
- Everything except 'broken' stuff
(see also second post for info on recurring questions)


Compatibility:
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.
Builds are based off the Xiaomi's Android 6.0.1 firmware with proprietary blobs from MIUI 6.9.29 dev package.
Downloads:
Notice:
- 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.
Installation:
- 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!!!)
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!
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!
Device wiki:
Changelog:
XDA:DevDB Information
CyanogenMod 13.0, ROM for the Xiaomi Mi 5
Contributors
bgcngm, Mi5Devs
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.18.x
Based On: CM13.0
Version Information
Status: Discontinued
Created 2016-09-08
Last Updated 2016-12-28
Last edited: