yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 4i] mmxandy:
Hello Good Morning MIUI users,

I am sharing Unofficial CyanogenMod CM12.1 Moonlight Rom(ferrari) based on Android 5.1 for Mi 4i ferrari.

Introduction About CM :

CyanogenMod is an open source operating system for smartphones and tablet computers, based on the Android mobile platform. It is developed as free and open source software based on the official releases of Android by Google, with added original and third-party code. It is based on a rolling release development model.

The first nightly release of CyanogenMod 12.1, based on Android 5.1, was announced in mid April| 16 April 2015[3] . The final build is yet to be announced as the nightly builds continue to roll out every day.

Important Note :

Your warranty is now voided.

This Rom release Alpha build rom,XDA team working day by dayI'm(XDA) currently testing this build as a daily driver

Please do some research if you have any concerns about flashing ROMs or any other doubts!

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.

P.S. But you can always get warranty back by flashing stock MIUI ROM.

About Rom:

Language	English Traditional Chinese

Core	Android 5.1.1

Based Versions	CM12.1 lolipop 5.1.1 latest source

Fit Models	Mi 4i / Ferrari

Producer	Moonlight-Roms

Rom Type	CM12.1 lolipop 5.1.1

Rom Style	Multi-Function Version

Pre-Requirements (Reading It Beforehand):

Please backup the original system data (contacts, SMS, application data, etc.).

Please backup files to another location as the built-in storage (external storage or individual PC).

Custom Recovery Installed On Your Device.

Phone Battery Charged Above 70% At Least.

Copy CM12 and Android 5.1 based GApps zips to your internal SDCard

Instructions (How To Flash/Install):

Boot into Recovery.

Clear Data.

Clear Cache.

Clear Dalvik Cache.

Flash CM12.1 ROM zip file from from internal SDCard.

Flash GApps zip file from internal SDCard.

Clear Cache and Clear Dalvik Cache.

Reboot.

Download Link is here

https://drive.google.com/file/d/0ByyV9sGGwY4ca09FTy1LVDJWcHc/view

gapps

http://104.236.22.120/index.php?device=gapps/lollipop/5.1

Download & Install CWM from here : http://en.miui.com/thread-125216-1-1.html

Screen Shots
[Xiaomi Mi 4i] nowfalsalahudeen:
wot about performance nd battery backup..is it stable build...? can u describe wots working nd not working list?
[Xiaomi Mi 4i] rob rich:
Thanks, tried to download it from original dev, but i didnt wanted to sign up for baidu :)
[Xiaomi Mi 4i] PavelPerm:
What kernel uses this build? Own or CM dh.harald?
[Xiaomi Mi 4i] manohar shenolikar:
can i flash this rom in twrp i have no cwm recovery
[Xiaomi Mi 4i] rob rich:
Review after 1 hour of use

First: everyone who cant read chinese be sure to flash a keyboard zip or have an APK on your phone, because the stock keyboard app is some Baidu crap.

Second: some chinese bloat apps are included, which come back after every reboot even when i deinstalled them. Think i have to erase the APK s manually.

Third: its smooth and some additional features are included. Lets see how it works the next hours.

For everyone who wants to get rid of the self installing bloat apps, the are in /system/media/app

And again, be sure to have another keyboard on your phone if you cant read chinese

---------- Post added at 11:30 AM ---------- Previous post was at 11:29 AM ----------

Yes you can
[Xiaomi Mi 4i] mmxandy:
remove baidu folder from sdcard
[Xiaomi Mi 4i] nowfalsalahudeen:
nd share ur full review as soon as posibl...battery nd performance
[Xiaomi Mi 4i] duniatri:
[MENTION=4695414]jithuelad[/MENTION] had already reupload the rom to another file hosting service. He also flash it.
[Xiaomi Mi 4i] manohar shenolikar:
i tried this rom but it is not perfect at all. paystore not working wifi also giving problem and dialer app also not working please fix all these issues
[Xiaomi Mi 4i] paulocarneiropaulo:
Hello all!

How is the battery drain with this rom?

Can it bi installed with twrp?

many thanks,
[Xiaomi Mi 4i] duniatri:
Yes, it can be flashed with twrp.

For battery drain, I still can't answer. I just flashed it for several hours.

My first impression, this rom is far better than miui. Smooth and no errors or random reboots until now. Plus, it has more features. I'm very glad to have this AOSP rom again after I use RR at my i9300.

You guys should try it.
[Xiaomi Mi 4i] ashishchandra:
Will wait for some more reviews, need a stable ROM.
[Xiaomi Mi 4i] chandu4money:
I just tried flashing with TWRP, Getting errors!

E:Error executing updater binary in zip!
[Xiaomi Mi 4i] DarthJonathan:
I can't flash it in TWRP , error!

It says my device isn't ferrari...
[Xiaomi Mi 4i] chandu4money:
+1
[Xiaomi Mi 4i] duniatri:
That's weird. I flashed it without any problem. What twrp version do you guys use?
[Xiaomi Mi 4i] rob rich:
Use toolkit v4 and flash twrp again.

I had the same problems when i used twrp from toolkit v3
[Xiaomi Mi 4i] chandu4money:
Can you please link me to it, TIA!
[Xiaomi Mi 4i] rob rich:
Can you please do a search?
[Xiaomi Mi 4i] chandu4money:
Couldn't find on xda, Anyways got it from miui forum!
[Xiaomi Mi 4i] mmxandy:
I found some chinees apps in system\media\ also..
[Xiaomi Mi 4i] chongns:
for extra app keep reinstalling after you uninstalled, go to system > etc > init.d

look for init.preinstall.sh and delete it
[Xiaomi Mi 4i] DarthJonathan:
apparently no valid links for v4 found, can someone be a dear and post it for us? Thanks!
[Xiaomi Mi 4i] rob rich:
http://xdaforums.com/showthread.php?p=61905517
[Xiaomi Mi 4i] Annasarp:
i flashed this rom yesterday night and was using it for sometime. Google play store was giving some error saying architecture mis match. So i wiped and again installed the rom with slim Gapps after this when the phone boots i setup the device. But once the display switches off or i close the smart cover of my phone, it doesnt wake up. I have to press the power button and boot again. This whole process is repeating again. Today whole day my mobile was switched off or didnt wake up from sleep. Has anyone facing this issue?

Now i hv planned that i will flash back miui and wait for some stable AOSP rom.

Guys suggest if you guys think otherwise.
[Xiaomi Mi 4i] lalitjoshi06:
LINK for V4 Tool KIt for MI4i

Here is the link for V4 tool kit for flashing TWRP by magdag.

https://docs.google.com/uc?id=0B0pkb-PnDIp8cTc4NENOODFRazA&export=download

---------- Post added at 05:54 AM ---------- Previous post was at 05:46 AM ----------

I Flashed this rom. but its lagy on navigation clear. & also facebook or MX player is not working.

Play store is working fine.
[Xiaomi Mi 4i] lalitjoshi06:
24.07.2015 updated link

Todays updated rom 5.5.1 rom link but i am unable to download can anyone do download or give me any another link .

Site in chines language and need to resister with china mobile no.

anyone can help

LINK: http://pan.baidu.com/s/1o6CDdjW
[Xiaomi Mi 4i] chandu4money:
After day use, bit Laggy UI and apps, All other options are working fine and suitable for daily use.
[Xiaomi Mi 4i] jeseunpark:
I've downloaded and installed it. But everytime I reach the setup screen (start screen), my phone freezes and goes into a bootloop. This happens over and over. I rooted using V4 too. Please help.
[Xiaomi Mi 4i] jeseunpark:
Please link to CWM.
[Xiaomi Mi 4i] chongns:
this rom is using dh-harald devices tress, as post by the developer, by dont know for the kernel

link http://roms.blog.163.com/blog/static/20685312620156241374665/
[Xiaomi Mi 4i] jeseunpark:
[MENTION=4197544]chongns[/MENTION] - Could you please post a translated version of the page? Specifically the How to install part? I can't understand the Chinese writing :-/
[Xiaomi Mi 4i] chongns:
Device: Mi4i / ferrari CM12.1 enhances version Android 5.1.1 RC1.5

Language:

********** English Traditional Chinese Simplified Chinese Traditional Hong Kong

Based versions:

********** CM12.1 Lollipop5.1.1 latest source

Producer:

********** moonlight-roms

ROM type:

********** CM12.1 Lollipop5.1.1

insturction:

1. fastboot this recovery (recommended by the developer) http://pan.baidu.com/s/1mg1lE5q

2. if dialer FC, just go into contact to people, simply call out few number, than it will back to normal. this is due to cache problem.

3. to remove preinstall app to comeback after reboot, deleted the system/etc/init.preinstall.sh

4. if baseband unknown issue, no sim card, please shutdown and turn on again, please don't use reboot.

5.dont delete the input method, else back and home button will not function. you can install a new keyboard than set as default after that only delete the stock keyboard.

6. if bootloop after flash, please update to latest CWM or TWRP. than full wipe 2 time before flash zip again. the reboot take long time, need to wait still it boot.

that all for the noted from developer. nothing special for flashing step, you can just flash as normal you flash CM.
[Xiaomi Mi 4i] jeseunpark:
Thank you so much [emoji4]
[Xiaomi Mi 4i] jeseunpark:
Don't flash with TWRP. Dev advised against it. Install the Recovery from the Baidu link and install using that Recovery. Else, even if install works, you'll be caught in a bootloop.
[Xiaomi Mi 4i] apna.suresh0305:
I think any custom ROM can't replace the MIUI camera, i tried CM 12.1 but camera is very upset in terms of picture clarity as well camera app is very laggy and some times gets hang and wont response. Not able to dare to try custom ROMs due to this reason.

It would be really very great if anyone can able to port MIUI camera to these custom ROMs.
[Xiaomi Mi 4i] chandu4money:
The room keeps entering into sudden death or deep sleep mode automatically. Tried fresh still the same issue after 1 day usage!
[Xiaomi Mi 4i] jeseunpark:
Same issue here [MENTION=5388169]chandu4money[/MENTION]. Tried clearing cache with the provided recovery on Baidu and again extracting the boot.img from ROM and flashing that. Worked for me but again same issue after some time -_-
[Xiaomi Mi 4i] lalitjoshi06:
There is new rom on chines website by moon light.. here the link

roms.blog.163.com/blog/static/20685312620157925441307/

but i m unable to download this if anyone has baidu account than give me alternate link.
[ZenFone 2 Android Development] deathmaker06:
I didn't even know that our cpu cores weren't going offline. Thanks for the tip and info. Will give it a go as well.
[ZenFone 2 Android Development] ansebovi:
Well i think in screen off, it will be in deep sleep and not going to consume battery

And second i did this with the hope it will increase screen on time, turned off 2 cores for 2 to 3 days and no use it gave battery life as same as 4 cores battery life and screen on time...
[ZenFone 2 Android Development] aziz07:
lols The app is 1,86$ but anyway, I see that the cores stay in sleep mode even after screen is on. The app is not working properly so I contacted and donated some funds to its maker.
[ZenFone 2 Android Development] xgneilx:
Well, I have doubts as well that's why i stated might, but I'll observe for the meantime. btw, in sleepmode, are the cores offline or just running on very low frequency?
[ZenFone 2 Android Development] xgneilx:
yup. I saw from its reviews that it doesn't work on other device that is why i resorted to this. You are blessed that you can donate.
[ZenFone 2 Android Development] aziz07:
I am a student on financial aid so I can affort the 1.86$ app + 5$ voluntary donation ;) Waiting for the developer's reply ; Maybe a new governor will surface :D

Its actually Illegal what you just did :( , you took his idea/script and post it here saying its now free without posting his OP? I linked his OP thread in my beforehand post that you did not quote here either. If you can't afford 1.86$, how come you are using a pc with internet and I guess living somewhere? :confused:

You should link his OP and contact him 1st, otherwise a mod will delete this thread. His app is actually better since you don't need Tasker or any other app in the background ;)
[ZenFone 2 Android Development] xgneilx:
I didn't do anything illegal because i never took any script from anyone. its a simple linux command that is publicly available. Google it if you must. I just automated it using tasker that i purchased.

anyways, i don't mean to disrespect you financial student, but please refrain from accusing people. here it is called slander. and guess what? it can put you behind bars.

by the way, did i say i cannot afford to pay for it? Why do you have so many assumptions?
[ZenFone 2 Android Development] aziz07:
Whats those words then? You can donate any mount you can, e.g. 1$. The rest is on the mods.
[ZenFone 2 Android Development] xgneilx:
simple really... it just tells you that... you are blessed. that's actually a positive thing that you view differently.

yup. the mods have all the right to put this thread down if they found that I've stolen any code/script from someone.
[ZenFone 2 Android Development] corrsea:
It's been a few years since I've used it but I'm pretty sure you can set up a profile in 3c toolbox's device manager to achieve this. There are probably a lot of other kernel control apps that can achieve similar.

On the other hand I might be completely wrong :)
[ZenFone 2 Android Development] aziz07:
Hmm, how, I have looked in dev manager but nothing about turning off the cores ? I have tried tons of battery apps e.g. DS Battery and nothing really turned off the cores.

It would be awesome if it was in 3C Tool box Pro since I already have it and don't want lots of apps at boot. :D
[ZenFone 2 Android Development] ansebovi:
use kernel auditor and u can untick or tick cores..
[ZenFone 2 Android Development] aziz07:
There must be a better way like integrating a new governor or something in the Kernel. I use 400Kb no frill CPU changer, it auto close at boot after doing its job. I don't like heavy double function background apps. Kernel Adiutor and Trick kept running in background.
[ZenFone 2 Android Development] ansebovi:
no really it wont run in background[it doesnt need to run actually],if u have doubt use greenify and hibernate..
[ZenFone 2 Android Development] corrsea:
Check out the screenshots. You can set the individual cores to go offline when screen is off.View attachment 3415607View attachment 3415610View attachment 3415611
[ZenFone 2 Android Development] Ntrasme:
The app works. I can't vouch for the script version, but the paid app on Google Play turns off the cores. https://dl.pushbulletusercontent.co...sMepy1yzDO/Screenshot_2015-07-23-06-53-38.png Cores went offline automatically, I never turned them off.
[ZenFone 2 Android Development] aziz07:
I have tried this but it will keep 3 cores off even when screen is on. Did you try to check with 3C Toolbox if cores came back online after screen wakeup?

[MENTION=5010777]ansebovi[/MENTION], both apps will run in backgound, check in app manager. They come back after I kill them. No-frill app will autoclose after boot just like 3C Toolbox. Changing CPU governors result in freezing in 3C Toolbox, that is why I use no-frill CPU changer.

Thanks
[ZenFone 2 Android Development] deathmaker06:
I tried the tasker version last night. It works but for whatever reason my core 3 doesn't seem to be waking anymore. Will try to find cause.
[ZenFone 2 Android Development] ansebovi:
i am using,see the att...u can see it didnt even wake my device
[ZenFone 2 Android Development] aziz07:
OK , app creator [MENTION=1955118]eugene373[/MENTION] raplied saying it will be fixed ASAP :good: OP: http://xdaforums.com/showthread.php?t=1745132

There seem to be issues with the script from user reports, with the app and with 3C Tool box. Hope he fixes it soon.

His app actually dates back to 2012 :laugh:

[MENTION=5010777]ansebovi[/MENTION], last time I tried Kernel Adiutor was 1-2 weeks ago for emulating init.d as it was not natively activated. The app would run in background unless you freeze it or kill it (It will restart). I will reinstall their updated app for fun along the donation key. btw I emailed Kernel Adiutor dev about Zenfone 2 GPU compatibility and he said ''Donate your phone and I will try'' ... Sure, uninstall this RAM hogging app and use Kernel level optimizations or 3C Toolbox ; much better all around :D p.s: Don't use the Fast Charge setting in Kernel Adiutor if its enabled as I did that with my CM12.1 G2 as its not support by CM, phone overheated and started freezing, it died the same week.
[ZenFone 2 Android Development] ansebovi:
maybe u r blind? or not seeing my attachment..i clearly showed how much time kernel auditor took[that too becoz i opened the app for checking the ram background usage after closing with recent swipe] and other apps took and it showed 0 ,again ZERO wakeup.... [i didnt freeze it ,i didnt kill it..]
[ZenFone 2 Android Development] aziz07:
I doubtlessly stated background RAM apps and no need to get mad, its just an app. Have a quick look at 3C Toolbox Task Manager, it will run at boot and stay cached in RAM. Its RAM usage was way higher in 2013 when I 1st started using the app, it got down after my requests but still runs in background since its birth. I don't have time to teach everyone. I set 3C Toolbox to kill it at boot until I uninstalled it, even had to delete its leftover files after. Strangely, its using 1.16Gb Virtual RAM in 3C Toolbox rask manager. Don't use Wakelocks as basis, I used Amplifiy and it frozed/rebooted my phone, my calls stopped coming in etc
[ZenFone 2 Android Development] ansebovi:
it doesnt run at background is what i showed in app usage,..now u told for ram usage..ok here see the pics..

as i said,it never consumed my ram or cpu...i didnt freeze or blocked wakelock or kill it via any app,just greenify it,..

i just stated that kernel auditor not needed to run at background for making cores offline,applying tweaks,btw i am also using trickster mode[since minfree can be set as per my needs]...same for trickster,greenify it..thats all it wont consume ram or cpu..

if u cant understand any of above..then its ok..have a nice day :)
[ZenFone 2 Android Development] aziz07:
Try opening the app and closing it. Whats the point of an app if you don't use it lol?
[ZenFone 2 Android Development] ansebovi:
i have enabled auto apply tweaks man...it will apply tweaks after every boot...it will open and close ..

even before this i stated i opened app just to check the ram usage since u said..but no it didnt consume ram...u can see in my screenshot..

that is the use of hibernation of greenify...it wont allow apps to take cpu or ram usage ,..

ok seems you have no idea of greenify..

and already said it apply tweaks,making cores offline and gone thats all..y u need app to consume ram,cpu when it is not needed???

gud night..

and for that trickster mod,..i didnt greenify before taking screenshot
[ZenFone 2 Android Development] aziz07:
Trickster mod 22Mb cached, this proves that you did indeed kill the background app ;)

If you know more than its developer, then, why not get in touch with him?

I won't repeat my earlier posts.
[ZenFone 2 Android Development] ansebovi:
ya sure,indeed lol...u wont understand a bit.. :) gudnit
[ZenFone 2 Android Development] aziz07:
Ok that was with 3 cores Offline manual setting, I now did use default settings, cores are coming back on but only 2 Cores are sleeping.

Can you post battery details? I like 3C Toolbox because you can additionally downclock the remaining core to 500Mhz with screen off.
[ZenFone 2 Android Development] xgneilx:
It seems that 3C toolbox has this feature as well. but since i am running tasker already, might as well set it as straight forward as possible using native commands. it will also allow me to remove 3C toolbox and other kernel application, just to do these things, hence, freeing me more space. :D
[ZenFone 2 Android Development] aziz07:
Eugene or eugene373 in xda, the app maker, sent me an updated testing app xD He will release a new version for our Zenfone 2 as I finish testing it.

[MENTION=4657999]xgneilx[/MENTION] 3C Tool box cannot be replaced with simple terminal commands, try to emulate its vast integrated tweaks ;) Go find the tweaks by yourself this time :highfive:
[ZenFone 2 Android Development] xgneilx:
Sigh... you again?

Apparently, you have a hard time understanding the people in this thread. You have a lot to learn. The other guy, who commented "u wont understand a bit" maybe right. I am not judging you, I am just saying, that clearly, if you will just exert more effort to understand every statements, you will know that you are assuming a lot, but not getting your facts straight.

btw, where in my comments did i mention that i can replace 3C toolbox?
[ZenFone 2 Android Development] aziz07:
lols Chill out dude , didn't mean to hurt your feelings. I won't repeat myself again, reread every word that you typed from the beginning until now and see if it make anysense ; feel free to correct anything. How about posting a screenshot of your 3C Tool box per Core State? Hint if you are lazy: See post #19 [MENTION=4638328]deathmaker06[/MENTION]

---------- Post added at 03:38 AM ---------- Previous post was at 03:27 AM ----------

Core 3 does not wake up anymore & 2nd core Never went offline after the OP script of this thread. TheSSJ Project T Kernel maker said this is an aggressive way to turn off the cores ; its only a workaround.
[ZenFone 2 Android Development] xgneilx:
hmmm... i don't know what causes this. but here is my screenshot, different from your's though that you can view separately cores 2 and 3. i can only view the state of cores separately using CPU-Z. I took this several minutes ago. while a foldersync activity started so most of the time, the screen is on.

When i get a more sleep time, I'll post again.

btw, I've updated my post, and i am no longer putting 3 cores offline, only cores 2 and 3. but downclocked cores 0 and 1 to 833MHz max during screen off, so my downloads will still be working fast.
[ZenFone 2 Android Development] aziz07:
Great :good:, btw in your screenshot, you can see that cpu Core 3 never went offline.

[MENTION=4638328]deathmaker06[/MENTION] Did you try a reboot to wake up Core 3 again? Can you see it again in 3C Toolbox after a hard reboot?
[ZenFone 2 Android Development] Ntrasme:
Did you get any random reboots from the app? I have temporarily disabled it because it would cause my phone to crash and reboot by itself. It also sometimes fails to turn on all the cores. (Core 1 and 2 stay off for some reason). This only happens when you quickly turn the screen on and off (which is what I frequently do since I'm usually switching from desktop to phone).
[ZenFone 2 Android Development] xgneilx:
How did you manage to conclude that my core 3 never went offline? Understanding the 3C toolbox chart of combined cores 2-3 is a bit tricky...

see attachments. First is when i run the task to close the cores 2-3 and Second is when i run the exit task to restore to 4 cores online.
[ZenFone 2 Android Development] HaiDM:
Confirmed. My phone randomly shutdow when screen is off, I have to power up the phone back . And some time it doesn't turn all the cores on (only 2 in my case). Uninstall the app and it's back to normal :)
[ZenFone 2 Android Development] aziz07:
Its not compatible with Zenfone 2 yet. See playstore link: https://play.google.com/store/apps/details?id=com.eugene373.cpu.sleep&hl=en

The best solution for now is 3C Toolbox, you get 2 cores off and 2 core automatically downclocked to 500Mhz by changing the governor settings manually in device manager, profiler. This will not affect screen on governor.

Hope this helps
[ZenFone 2 Android Development] xgneilx:
Hi guys, what app are you talking about here?

anyways, i can replicate the issue in tasker as well if i add delay in the screen off task.
[ZenFone 2 Android Development] Ntrasme:
CPU Sleeper in Google Play. It costs about $1. However, TheSSJ already said that the phone automatically turns off the cores when off. http://xdaforums.com/showpost.php?p=62004315&postcount=367

I think Aziz is looking for an app that does it even when he has performance governor. If you're not using performance governor, then the phone will turn them off by itself. I believe.