[Redmi Note Android Development] haoyangw:
Optimized CyanogenMod 12 Android 5.0.2 Lollipop for the Redmi Note 4G(QCOM) brought to you by haoyangw :D

NOTE: This is for the QCOM variant of the Redmi Note, otherwise known as Redmi Note 4G, and NOT the MTK variant of the Redmi Note. In short, this ROM will NOT work on the MTK variant of Redmi Note 4G

NOTE: GApps is NOT provided, use any GApps package you can find. I would recommend Open GApps for Lollipop(link below).​

#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* We're 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 us for messing up your device, we will laugh at you.
*
*/

Version Number explanation is in the #2 post, changelog and device tree branches for my github repositories explanation is listed in the #3 post

Comment your reviews below or even better, PM me as I won't be regularly monitoring this thread. Thanks again! You will be listed in the credits too :)​

Downloads

ROMs

All ScarletRice builds and addons(AndroidFileHost)

All ScarletRice builds and addons(BasketBuild)

ScarletRice selected builds and addons(XDA)

I don't have the time to link specific builds everytime there is a new one anymore, so unfortunately you all have to go into XDA downloads or AndroidFileHost folder and download the latest one. So sorry!

Recoveries(compiled by me :))

CWM, Philz touch and twrp recoveries(AndroidFIleHost)

Addons(includes my custom kernels ;) So keep an eye on it)

Addons(AndroidFileHost)

Addons(BasketBuild)

XDA Downloads(Addons and ROMs)

Older downloads:

ScarletRice Beta 0.1

ScarletRice Alpha 0.02: https://mega.co.nz/#!40cXxKQL!Dd-pk41oJOPJbhLILLGnS9yAE09ly6nKIIfgRzLCpak

ScarletRice Beta 0.1 AndroidFileHost mirror

ScarletRice Alpha 0.01: https://mega.co.nz/#!EgN1lIxY!n7f-o9bujoh6eAu0H8iuaiiGrQ1fG3OCxYoodAyuLSA

The battery life so far on this ROM is amazing! It doesn't face any kind of drain issues so far, except maybe for the infamous Google Play Services wakelocks. To quote:

Well good/bad battery life is actually really subjective, some people might have higher standards due to their past experience etc so it all depends! Try it out yourself and see :)

Not working:

Cast screen/Screen mirroring

FM Radio

Compass

Back Camera and front camera video Fixed now :)

Buggy power detection Fixed

Flashing red borders(chrome only) Fixed

Working:

Back and Front camera(video + photo)(wipe dalvik if doesn't work)

Wifi

Headphones

Touch

Auto brightness

Gyroscope

Alarms

Location

Double tap 2 wake(built into ROM zip's kernel and my custom kernels) Removed due to bugs

Anything else

Installation

Download the ROM from the link above

Download GApps package for Lollipop(Recommended: OpenGapps, for 4.4+ and all architectures)

Download any addons/custom kernels from links above or anywhere else

Put the zip files on your SDCard

Reboot in Recovery(choose one of the 3 above if you wish :))

Wipe Data / Factory Reset(ONLY IF you are coming from another ROM/upgrading to beta 0.2.x to get working camera)

Recommended: Wipe dalvik-cache

Select "Install zip from SDCard"

Choose CM12 zip file

Select "Install zip from SDCard"

Choose GApps zip file

Optional: Select "Install zip from SDCard"

Optional: Choose addon/kernel zip

Reboot system

Reporting bugs

If you have found a bug, make sure you fill up a form here: Google Form: Bug reporting This allows me to easily track all bugs reported without scanning the whole thread. Do make SURE that you fill in a VERY detailed description! And don't forget logs! For a tutorial on how to get logs, here you go! Log tutorial Of course, feel free to still report bugs here as I will be monitoring this thread :) But you MUST fill up a form, reporting on XDA is optional

Sources

Manifest

For those who would like a shortcut to sync all the neccessary repos to build stable cm12, just download/copy the contents of this file into .repo/local_manifest: Local manifest xml and the next time you repo sync everything will be there :) Then just 'lunch cm_dior-userdebug' and 'make -j4 otapackage'

Manually

I've finally given up making my own trees and fixing the annoying bugs in Xiaomi's kernel sources, so here are all the working tree/sources brought to you by our awesome devs! I take no credit for this! GO AND THANK THEM!

Edit: I've made some minor updates and fixes to the trees, but still credit goes to them!

Updated trees(updated by me but originally created by the following devs)

Device tree

Kernel source

Vendor tree(a.k.a. prebuilt/proprietary blobs tree)

Original trees:

[MENTION=4551757]Silesh.Nair[/MENTION]'s device tree

[MENTION=4551757]Silesh.Nair[/MENTION]'s vendor tree

[MENTION=4898058]audahadi[/MENTION]'s kernel source

[MENTION=3193157]stane1983[/MENTION]'s kernel source

I've uploaded the device tree I used to compile twrp to my device tree above, the branch name is 'twrp'. It's based on syhost's outdated twrp device tree, with problematic flags removed to fix bugs and also translated back into english, so there you go! :)

NOTE: Currently this device tree is ONLY for compiling CM12, you can face all kinds of build errors if you compile CM11 with it. For example, you will not be able to compile sepolicy in the device tree. You have been warned. Have fun building :)

Credits

CyanogenMod

XDA

syhost(for his twrp device tree)

Stane1983(for his first working trees)

Silesh.Nair(for his updated trees)

sm_94(for his suggestions on fixes)

And everyone else who contributed logcats and findings and worked hard for the better of all Note 4G users. Thanks! :)

XDA:DevDB Information

ScarletRice, ROM for the Xiaomi Redmi Note

Contributors

haoyangw

Silesh.Nair

sm_94

stane1983

sadlmadl(Contributed best and most logs and reports)

Swordsman0815(Contribute working/not working reports and logs :))

[MENTION=6833090]suhasgta[/MENTION](contributed logs, suggestions and reports :))

And all others who contributed logs and reports! Thanks A LOT!

ROM OS Version: 5.0.x Lollipop

ROM Kernel: Linux 3.4.x

Based On: CyanogenMod

Version Information

Status: Stable

Created 2015-03-17

Last Updated 2015-11-29