• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][UBER][5.1.1][UNOFFICIAL] CyanogenMod 12.1[STABLE]

omerjerk

Senior Member
Sep 6, 2012
269
445
0
26
Delhi
www.omerjerk.tk
CyanogenMod 12.1

Code:
I'm 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 the products you find here 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.
Note: If you're on Miui 7, flash the following stock ROM zip before flashing any of the custom ROM available on the forum.
https://basketbuild.com/filedl/devs?dev=thewisenerd&dl=thewisenerd/ferrari/firmware-lp-6.6.10.0.zip

Downloads:
Release 3 by @thewisenerd using @dh.harald 's kernel and device tree.
Release 2
Release 1 (md5)

What's working/features:
Everything
No random reboots/shutdowns
Clash of Clans working awesome
Compiled with Uber toolchain for better performance
Sensors working out of the box (no need to flash sensor patch)
Hardware double tap to wake
Stock kernel with patches from @intersectRaven for better performance (really loved his work)

What's not working:
You tell me.

Note: For people wanting to know differences between this CM build and the other one by dh.harald, please go to the second post.

XDA:DevDB Information
CyanogenMod 12.1, ROM for the Xiaomi Mi 4i

Contributors
omerjerk, dh.harald
Source Code: http://github.com/omerjerk

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
Based On: CyanogenMod

Version Information
Status: Stable

Created 2015-09-28
Last Updated 2016-01-03
 
Last edited:

omerjerk

Senior Member
Sep 6, 2012
269
445
0
26
Delhi
www.omerjerk.tk
[This post stands deprecated as of the latest release. :)]
First of all I'd like to thanks dh.harald, smoki3, k2wl and everyone else who helped in building up the device tree.
In other ROMs, the biggest problem is of random reboots/shutdowns and that Clash of Clans is not working. Initially, I spent for over a week to fix those bugs but really couldn't find what actually causes the above two issues.
The problem lies in the kernel because flashing intersectRaven kernel or the stock kernel for that matter fixes the above two issues.
Unfortunately, I couldn't track down the commit in the mi4i-dev/dh.harald kernel source which causes these problems.

So, I started with the stock kernel, booted it with CM, made WiFi drivers working and applied the patches from intersectRaven's kernel source.
Now everything is working with no random shutdowns and with CoC working.

I'll keep maintaining this ROM now. :)
Also, I'm not planning to bump the kernel version because I have feeling that some change while bumping the kernel version only is what caused the problem in the first place. Neither does bumping the kernel version gives any performance boosts.
However, I'll keep making important changes in the kernel as required.
 
Last edited:

omerjerk

Senior Member
Sep 6, 2012
269
445
0
26
Delhi
www.omerjerk.tk
Installation Instructions:
1. Root your phone.
2. Copy the ROM zip to your phone (the link of the ROM zip in the first post).
3. Flash TWRP using Mi4i toolkit. (Advance users can flash the image manually from this link).
4. Reboot the phone to recovery mode.
5. Wipe data/factory reset.
6. Flash ROM zip file.
7. Flash GApps (can be downloaded from here)
8. Reboot to System.
9. Enjoy!
 
Last edited:

cbhawsar

Member
Aug 7, 2011
40
4
0
camera performance?

Thanks for taking out time to build this, I am looking for a pure stock experience in Mi4i and your build seems to be very close.

Can you please post some camera shots taken indoor and outdoor?
 

iamnjohnson

Senior Member
May 27, 2014
80
6
0
24
Ranchi
Is it as smooth as Wilson3q's build. The reason why I'm comparing is that out of all the custom ROMs out there, I find his ROM the smoothest.

Sent from my Mi 4i using Tapatalk
 

m4gg0t

Senior Member
Feb 14, 2015
190
15
0
I get the recent apps swiping lag. I made the mistake of flashing the stock gapps so now im re-flashing and flashing the kernal. But so far it seems good other then a little issue i had with APNs and data.
The setup screen is actually very laggy and i don't have a keyboard to type in my wifi password.
 
Last edited:

omerjerk

Senior Member
Sep 6, 2012
269
445
0
26
Delhi
www.omerjerk.tk
Is it as smooth as Wilson3q's build. The reason why I'm comparing is that out of all the custom ROMs out there, I find his ROM the smoothest.

Sent from my Mi 4i using Tapatalk
I haven't used his build. I can't say how does it stand in comparison to his build.
In this release, I aimed more at getting the bugs fixed (random shutdowns and CoC not working) which were becoming too annoying.

I'll now be focusing more on making it even smoother.
I'd suggest you to try and see for yourself how it stands.
 

m4gg0t

Senior Member
Feb 14, 2015
190
15
0
I flashing dh.harald's build now as i couldn't go past the setup screen cause play services kept crashing after i re-flashed the rom and gapps.

I'm reinstalling your build currently.
 
Last edited:

iamnjohnson

Senior Member
May 27, 2014
80
6
0
24
Ranchi
I haven't used his build. I can't say how does it stand in comparison to his build.
In this release, I aimed more at getting the bugs fixed (random shutdowns and CoC not working) which were becoming too annoying.

I'll now be focusing more on making it even smoother.
I'd suggest you to try and see for yourself how it stands.
I'll flash and let you know [emoji4]
 

haahaaah

Senior Member
Oct 5, 2013
278
55
0
how can I re-flash gapps? I want to replace most of the AOSP apps with Google apps.
Twrp > factory reset > flash rom > flash gapps > rebot. Done!!.
Use open gapps, choose ARM64 5.1 STOCK.
Messaging replaced by messenger
Cm camera replaced by Google camera
Email replaced by gmail
Gallery replaced by photo
[your device will like nexus device with STOCK gapps]
Look screenshoot..
 

Attachments

m4gg0t

Senior Member
Feb 14, 2015
190
15
0
Twrp > factory reset > flash rom > flash gapps > rebot. Done!!.
Use open gapps, choose ARM64 5.1 STOCK.
Messaging replaced by messenger
Cm camera replaced by Google camera
Email replaced by gmail
Gallery replaced by photo
[your device will like nexus device with STOCK gapps]
Look screenshoot..
Thx a lot! Though the stock has a lot of the Google apps that I don't want to have installed, like Google docs, earth, fitness, sheets, slide, android pay.