Xiaomi Mi5 Cyanogenmod 13

mi5I got one of this very nice mobiles. Snapdragon 820, 3GB RAM, 32GB Storage and all of this with a tiny pricetag of around 350 Euro (Shopped from Honorbuy). The only thing i don’t like is the Miui ROM…. typical chinese features and a iOS like UI, hey i bought a Android!

So the “Level Zen” Developers 😉 from XDA came together and created the Device Tree for it – There is no kernel source released so far, so they have to use the prebuild Xiaomi kernel.



Disclamer: I only show you how to use that device tree to build a fully working ROM! If you want to donate, you directly should do it to the developers of the device tree! My programming skills are way to low to contribute code :/

If you trust me, you can download my daily, weekly or whatever builds (Depends on how often the device tree and / or Cyanogenmod gets updates) directly from > here < and install it via TWRP.

In case somebody wants to build Cyanogenmod 13 for it, keep reading! But before get a fast and large  (!) cloud instance or bare metal server! It takes ages to compile when you don’t have a powerful host! I can recommend Vultr for it. I won’t cover the Ubuntu installation here, you should already know that.

  1. Do a openssh only installation of Ubuntu 16.04
  2. Login with your created user and let’s begin!

First we have to be sure that our Ubuntu is up2date and has all needed packages installed:

Now we can take care about the repository settings:

Please keep in mind: You’ll need at least 100GB to do the build process, so please create this directory on a partition with enough space! (Here i create the directory in the users home):

Now we prepare and sync the Cyanogenmod 13 repository (This take some time, depending on your connection speed):

After the repository is syncronized, we have to implement and sync the device tree:

At this point, you have everything to homebrew your Mi5 rom! Ready?

This will take several hours to complete! Get a very large coffee or do a forest walk with your girlfriend, friend, dog, cat or with whatever you usual walk in a forest!

On a 8 Core, 16GB RAM and SSD cloud instance it took:

#### make completed successfully (02:04:34 (hh:mm:ss)) ####

Then you’ll find the ROM zipped in the folder:


The name of the ZIP file looks like this: cm-13.0-20160719-UNOFFICIAL-gemini.zip

Edit (24.07.2016):

If you have problems with Fingerprint Sensor and be familiar with ADB / Fastboot:

If you encounter problems or have suggestions, please leave a nice comment!

  1. Could you please remove the open_gapps zips from https://store.shade.sh/mi5/ they are violating the no-mirror license because they are publicly linked from http://www.miui.com/thread-5010303-1-1.html

  2. Thx! 😛
    Very useful…
    What about cm14?

Reply to hintzsche ¬
Cancel reply

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.