[ROM][DISCONTINUED] CyanogenMod 13.0 for Xiaomi Mi 5

Not open for further replies.
Search This thread


Senior Member
Apr 29, 2016
Xiaomi Poco X3 Pro
A perfect rom :) ;) :good:


  • Screenshot_20171126-171733.png
    104.4 KB · Views: 1,733
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 142

    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.

    #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:

    • Nothing! :)

    • 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!​

    Device wiki:


    XDA:DevDB Information
    CyanogenMod 13.0, ROM for the Xiaomi Mi 5

    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
    Here's a heads up:
    - Audio routing issue is fixed but not yet published.
    - Ambient display issue was fixed last night. Just need some more thorough testing on LGD panels.

    Having said that, if all goes well, you may see official CM nightlies in the weekend. :victory:
    There's much more than that and you won't see it in the log. This kernel rebase really gave me a hard time. For your info... old kernel: 501 876 commits / new kernel: 506 007 commits (as of now).

    Most people don't get it, but I am spending more time on this than I would ever expected... and wanted.
    Final unofficial build before it goes official is here! :victory: All the major bugs are fixed and topic is updated with the download link (build from today).

    Thanks for all the last hour donations. Really appreciate that! :highfive:
    There we go. Xiaomi Mi 5 is now an officially supported CM device! :victory:

    Just created the official wiki page. The first build coming out from jenkins should be available probably tomorrow. Be sure to start with a clean flash... and enjoy! :cool: