yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] mialwe:
If it's Google or AOSP related the reason might be some changes around mid Nov 2014 or later then because battery in Ivans 4.11.11 is fine. So not *all* LP versions do drain battery that fast.
[Xiaomi Mi 2] m11kkaa:
Well I don't know. I think that GAPPS cause 90% of the battery problems because when I don't install gapps the battery will last a week.
[Xiaomi Mi 2] quidje:
So far so good :)

After a couple of days my battery time is getting better by the day, currently 86% after unplugging at 08:00 this morning, only running Pico gapps mind you. Estimate is another day and 22 hours. All day on wifi btw.

Really like the ROM so far, not a single FC or other strange things. Using it as daily driver. I'm missing the Exchange Services (because of Pico) though. Found this on XDA: http://xdaforums.com/lg-g-pad-83/development/app-minimal-gapps-gapps-lp-20150107-1-t2997368. But since it's in an LG tree i'm not sure if i could use the Exchange add-on on Mi2?

m11kkaa thx for this great rom! :):o:D
[Xiaomi Mi 2] MyNameIsKappa:
The problem with Google apps is the same problem I had but everyone completely ignored me, like the bug wasnt' there.

Pretending a ROM is bug free doesn't actually make it bug free
[Xiaomi Mi 2] quidje:
I have the same problem and found on this forum other complaints, use search, i think someone copied the mp3 to /system/media/ringtones and changed permissions for it to work, think you'll need root for that. Hoping for a fix in a next release.
[Xiaomi Mi 2] m11kkaa:
nobody ignores u but it's just not easy to fix battery problems. The problem is that u can't measure which hardware parts are using all the energy on production devices which makes it almost impossible to fix it.
[Xiaomi Mi 2] Tiemen92:
It worked, thanks!
[Xiaomi Mi 2] m11kkaa:
I'm currently comparing the audio routes with MIUI to fix and improve them on CM12.

Look crazy, doesn't it? :D

http://puu.sh/gdIPx/9baaeca4c2.png
[Xiaomi Mi 2] zipalign:
hi mates.

can I ask you a favour?

I have a bluetooth issue wich is driving me insane.

when I pair an headset with m1cha's CM12, the pairing is successfull and my headset works flawlessly if I make/receive a call.

but when I play a track, the song is slowed down, and I don't know if it's only me or it is a bug.

I tried 2 different BT headsets with different audio players, but the issue still persists.

would you try listening to something via bluetooth and report here your feedbacks?

thanks a lot!
[Xiaomi Mi 2] Khaon:
Woot seems funny Ahah 'could you explain shortly what is it about? Sound can navigate through few channel or smthing and you try to identify the one yielding best quality?
[Xiaomi Mi 2] m11kkaa:
I'm comparing the the audio configuration that gets applied between MIUI and CM12 and fix it until it's the same :)

btw looks even funnier now :D http://puu.sh/geX8l/8a644be036.png
[Xiaomi Mi 2] davfiala:
[MENTION=3530648]m11kkaa[/MENTION] Will you include RAW functionality and slowmo in future? Did you fixed bad FPS rate in video recording? Thx.
[Xiaomi Mi 2] m11kkaa:
raw photos and slowmo should be supported since months already (using apps like mi2raw and miuicamera) :D

The FPS rate is a complicated thing because these settings are stored in libchromatix files which contain 62K C struct data each and u have no idea which offset contains which value.
[Xiaomi Mi 2] linuxxxx:
I think he's talking about new lollipop camera2 APIs

Sent from my A0001
[Xiaomi Mi 2] davfiala:
[MENTION=3530648]m11kkaa[/MENTION] I mean Google RAW, which came with LP. Also manual focus, fully manual shutter speed control and other Camera2 API goodnesses :) And about MIUI camera, my bad, I thought, that it is not working on LP.
[Xiaomi Mi 2] ErnieTSI:
The 0228 isn't available in the download folder?!
[Xiaomi Mi 2] m11kkaa:
I'm still uploading :)

I anounce new builds with a post :)
[Xiaomi Mi 2] m11kkaa:
Update :)

here's the audio usecase table: Hopefully, sbd with the necessary hw can test the others:

https://docs.google.com/spreadsheet...T1Mqs77ETFCXcyQgvX4_Nw3gg/edit#gid=1720450884

20140228:
[fixed] fix audio HAL by comparing values with MIUIv5
[changed] fix ACDBLoader
[changed] update WIFI config
[changed] update system.prop from CAF (should improve battery life a little bit)
[changed] rename CM perf profile properties for Xiaomi's thermald
[changed] use CM's default wallpaper
[changed] update kernel from mako
[Xiaomi Mi 2] Khaon:
Gonna try it out! Thank you
[Xiaomi Mi 2] Aerodynamite:
Can I just flash the updated rom without wiping data & cache? I'm currently on the 18/02/2015 version
[Xiaomi Mi 2] m11kkaa:
yes
[Xiaomi Mi 2] zipalign:
tested new build right now.

still have bluetooth issues with all my devices [two jabra headset]. music playing slower than normal.
[Xiaomi Mi 2] m11kkaa:
the latest build has no wifi. I'll publish a new one tomorrow.
[Xiaomi Mi 2] eranyanay:
Anyone suffers from "PowerManagerService.WakeLocks" wakelock whenever not on wifi?

I'm having it 100% of the time on 3g
[Xiaomi Mi 2] thienquang07:
and no Cellular Data too :D
[Xiaomi Mi 2] rober788:
any problems with the last build? is wireless working?
[Xiaomi Mi 2] zipalign:
first downloading new build (:

curious about its changelog..

will flash it ASAP and report here feedbacks.
[Xiaomi Mi 2] bing5426:
Hi, the Cellular Data can not be used...could you repair it?
[Xiaomi Mi 2] bestbai:
[20150301 building] bug report

wifi can working , but the Cellular Data not work when wifi turn off.
[Xiaomi Mi 2] zipalign:
bugs confirmed on 20150301 build.

wifi works flawlessly, but phone mobile signal is unavailable and data too.

and bluetooth music playback is still slowed.
[Xiaomi Mi 2] m11kkaa:
I deleted the 20150301 build because of the missing audio config.

Wifi and Mobile Data should be fixed in 20150302(I'm still uploading).

[MENTION=4831414]zipalign[/MENTION] that's probably some audio HAL bug. but since we're working on a better HAL for official CM anyway that's not worth investigating yet.

If the bug will still persist when the audio HAL is ready, I probably have to check proprietaries and properties.
[Xiaomi Mi 2] zipalign:
thanks a lot Michael.

I'll check the future builds' changelog and report back the feedback as soon as the HAL audio will be changed.

I do appreciate the work you are putting on this (:

keep up the good work!

have a nice day!
[Xiaomi Mi 2] erlgrey:
wifi and cell-network connection work again on 20150302 build, thanks m11kkaa :)
[Xiaomi Mi 2] oile:
Wifi and cell working. First two calls and had the first big bug: No audio in call. It seems the Google play services bug, not the previous outgoing mic bug. Anyone else with gapps experiencing audio call bugs?
[Xiaomi Mi 2] rober788:
send the log files to m1cha, i had 1 phonecall but i didn`t had any bug.

---------- Post added at 02:25 PM ---------- Previous post was at 02:01 PM ----------

I flashed the zip without wiping and gave me "Play Services has stopped", the only bug i encountered until now.
[Xiaomi Mi 2] rober788:
Update: mic doen`t work at all at me.
[Xiaomi Mi 2] oile:
Yes, sometimes mic sometimes whole audio in call doesn't work (don't know if it's Google fault or not). I've already gone back to Mokee but this rom was already an impressive and huge work! Thanks M1cha
[Xiaomi Mi 2] oile:
Today I've tried Mokee 5.02 20150302 build wich is compiled with Micha sources .

Tried a lot of calls to test. Disabled everything related to Google Play Service bug and made calls. I've managed to get three complete logs one shortly after a random call (mute) , second during a mute call, third shortly after a mute call. The bug consisted in not earing the other part but microphone was working from the other side. Is fixable by pressing speaker waiting 1 second and then disable speaker.

Hope it helps
[Xiaomi Mi 2] linuxxxx:
Mokee does not use cm sources (m11kka's) and that looks like the nexus 4 bug (that we had too) on cm11

Sent from my A0001
[Xiaomi Mi 2] oile:
Mokee 44 uses Ivans. The unofficial 502 that I'm using is compiled using M1cha sources (the author States that) and infacts I have the same bug.

The Google play one is different, you don't ear anything at all, no white noise, and both microphone and audio are totally silent.

In this case mic works. in those Alpha builds that were around before M1cha "officially" started talking about beta, mic was not working too. Audio is not coming from the little speaker (neither headset, I ve tried) but you hear white noise like audio Is active but not routed exactly.

Plus, if you click speaker and then return to normal audio, bug disappeares. Google play one is not behaving like this.

Hope it helps :)
[Xiaomi Mi 2] zipalign:
where did you get mk5.02?

thx ^_^
[Xiaomi Mi 2] m11kkaa:
I don't accept bug reports from other ROM's even if these ROM's are based in mine.
[Xiaomi Mi 2] oile:
Sorry Michael, didn't mean to disappoint you, I was trying to help because today I had time to test a lot of calls. With your previous builds I hadn't another number to make specific call tests. I'll do it again tomorrow morning with your latest build :)
[Xiaomi Mi 2] rober788:
I reflashed the 02 version this morning and i din't had any audio bug until now. Yesterday the sound was't working at all.

M1cha i hope thoose logs helped you.
[Xiaomi Mi 2] oile:
I've made it faster than tomorrow to beg for forgiveness xD

Clean install of 02 March build. No gapps, so no Google play bugs at all ;) just call test.

I've made 1st log during a bugged call (no audio incoming from the other side)

2nd one during the same call, after pressing the speaker button to fix the bug (after this, it gets normal during call)

3rd one during a normal call (just in case it is needed)

4th one is during another bugged call with headset now

5th one is during the same call, doing something to see how it behaves without headset. I've unplugged the headset and the phone got normal itself after 2 seconds.

Hope it's helpful this time :) glad to contribute.

Oh, another thing, I've noticed waking the device up that wifi was cutted off while sleeping instead of remaining active during sleep as supposed to. Didn't go deeper into that, just to note.
[Xiaomi Mi 2] m11kkaa:
THX :D

Are you using headphones? this would have been a important information because it makes a huge difference :)
[Xiaomi Mi 2] oile:
I've made the first 3 logs without headphones (never plugged in after the clean install), the 4 th one with headset plugged in. In the 5th one I've removed the headset during the bugged call.

I've proceeded like this because I know that routing sound toward different points is a difficult thing :)
[Xiaomi Mi 2] m11kkaa:
wow that means that the headset route got select in speaker mode.

good thin is it's not a modem problem(which would be hard/impossible to fix).
[Xiaomi Mi 2] oile:
Well, this is above my knowledge but the fact that pressing speaker button or unplugging the headset does the same "fix" let me think some sort of it (although when unplugging headset it took 2 seconds to return normal, maybe it's not a reproducible fix given that it took some "thought" time
[Xiaomi Mi 2] honzas17:
Hello M1cha!

Firstly, I would like to thank you for your work on this project. I am really enjoying your ROM, except for this weekend, when I was stuck on build with wifi and cellular not working, and CM recovery (which flashed itself over CWM with new build, whaaat?) didn't want me to downgrade back to previous version or flash CWM and kept showing me errors (Strange, but I should not have flashed that new build without access to PC and fastboot, but that battery life was killing me! :D )

The newest 02 build is really good, I feel like the battery life improved slightly, but it is still poor (waiting for that USB meter of yours for better battery performance) and I experienced no call bugs, maybe other side hears me a bit worse, but nothing too severe.

Only bug which I noticed is camera (I am using MIUI camera of yours); after recording a video, error with camera connection pops out and the video is saved as a corrupted file. I don't use camera much, so this doesn't really bother me.

I am looking forward to BT 4.0 LE fix though. I had to disconnect my MiBand and pair it with my tablet, because it wasn't working. That bothers me a lot, but it won't keep me from using this ROM! :D I will wait patiently for the fix.

So, that is for my bug report. Keep up the good work, I am looking forward for future builds!
[Xiaomi Mi 2] PosolKosh:
Hi M1cha.

I'd like to thank you for your great work since CM11.

I've installed CM12 0302 after CM11, using your script for resize parition.

So, no call bugs at all, it any position, Miband paired and working well, no problems (garmin forerunner which connected via bluetooth LE also working fine). Next time try Mio Link pulsometer with Bluetooth smart. Car audio via bluetooth 4.0 works fine too, both phone calls and music playing.

But found next bugs:

1. during audio call via phone, sound became less loud, either for me or other person. In CM11 0208 build it was working fine.

2. cannot switch on/off mobile internet than using profiles. It is always in condition I left it mannualy. Also in profiles in "screen lock" i can choose between "no changes", "dont ask password or PIN", "switch off screen lock" (I use russian translation, maybe in english it sounds a bit different). There's no " ask for password or PIN" - so once I disable it in profile, it is always stays disabled.

3. Battery drain is fast, I need to charge it every 5 hours even without use. CM11 I've charged phone 2 times a day (I use standart 2000 battery).

4. No 3g/2g switch in status bar.. it is very necessary switch for me.

5. Small bugs with music playing via bluetooth, which happens from time to time - cannot switch to next truck using headset button. Alsow after call through bluetooth, no audio music playing. Guess it is player problem, not ROM, but who knows..

6. Phone dialer - sometimes if I dial contact via T9 keyboard, If I tap on it, phone don't want to dial number. If I enter name is search bar, it dials correctly.

7. Many bugs dissapears than I kill all active applications - player starts working good, but I didn't find dependences on dialer bug.

Anyway it is very good ROM and I will stay on it, bugs are not annoying and I hope they will be fixed in next builds.
[Xiaomi Mi 2] m11kkaa:
Thx for you feedback :)

2,4,6 and 7 probably are CM/AOSP bugs so u just have to wait until they fix them(and report the bugs if u still have them when w got official nightlies)

for 1 and 5 I need logs(all: main/modem logcat, dmesg)

for 3 I'll try to improve the power usage but I can't promise anything.(L needs more power on all devices)
[Xiaomi Mi 2] honzas17:
PosolKosh, that is weird that you have battery life so poor. Yesterday, I didn't use phone much (about 2hrs of screen on) and it lasted almost 14 hours, which is an excellent performance for this ROM. It switches the powersaving mode automatically on and I am letting it go, so maybe that's it :) And you are lucky with BT LE, mine just doesn't work. I wonder if is it an official bug or not, if I am experiencing it and you aren't? :eek:

M1cha, is it possible to add feature: Locking display rotation at landscape? It can only be locked in non-landscape mode. I was using this feature a lot and I really miss it....thanks! I don't know if it is a missing feature or a Lollipop attribute.
[Xiaomi Mi 2] m11kkaa:
CM12 is not yet feature complete - that's why it's in beta/nightly state :)

Keep in mind, that this project aim's to do the best with what CM offers, it's not a modding ROM with 10 mio features.

If you want that, you'll have to wait 'till CM gets stable enough that I feel like it's time for porting OMNI/PA... now :)
[Xiaomi Mi 2] mikegiord:
I want back CWM so I used the Cyanogen recovery to flash the zip but nothing happens. I also tried with wipe data/cache but I'm not even able to install any other ROM.. What I have to do?
[Xiaomi Mi 2] CBpbxEcmecmBeH:
Check if update CM recovery is.checked in the dev settings, if yes, uncheck it
[Xiaomi Mi 2] rober788:
any new build?
[Xiaomi Mi 2] mikegiord:
I already unchecked it and I already used fastboot mode but the cyanogen recovery is still there

---------- Post added at 01:30 PM ---------- Previous post was at 01:25 PM ----------

Edit: Solved using another version on CWM
[Xiaomi Mi 2] rober788:
found a new bug, when i change the ringtone with zedge or another app (even if i put an mp3 as ringtone) when the phone ring is just a notification sound that ring continously (every 2-3 sec).
[Xiaomi Mi 2] davfiala:
Is there any possibility to "grab" camera libs from other phones? Mi3 has IMX135, Moto X 2nd gen, Xperia Z, LG G2,...
[Xiaomi Mi 2] timmydog:
Have you tried copying the ringtone into /system/media/audio/ringtones?

---------- Post added at 02:43 PM ---------- Previous post was at 02:19 PM ----------

I've just had a spontaneous reboot (while trying to look at the open pages in Chrome) on my mi2s running CM12 20150302 and saved the log files immediately after reboot.

I can't seem to attach the log file, but I can send/upload it somewhere if anyone thinks that it would be useful.

Tim.

---------- Post added at 02:49 PM ---------- Previous post was at 02:43 PM ----------

Oops, didn't mean to quote all of that text and can't seem to edit it. Sorry everyone... :(
[Xiaomi Mi 2] Gambler_BE:
I have a more generic question but I'm really hoping it can be done.

Since 2G uses a lot less data than 3G I love having a 2G/3G toggle in the quick settings panel. I'm pretty sure this used to be possible with Cyanogenmod. Am I missing something, or is it not available anymore?

Aside from that this rom is amazing btw, so glad to have lollipop on my phone :D
[Xiaomi Mi 2] AndyYan:
Guess you'll need to request the feature from CM, not our particular dev.

(I also have my feature requests... :()

Sent from Google Nexus 4 @ CM12

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] k1r8l:
Hi,

which version are you on?

How is battery usage?

Any other bugs worth mentioning?

Thanks...:)
[Xiaomi Mi 2] ADRez:
You can create two profiles to switch between 2G/3G, and add the profiles button to quick settings as a workaround
[Xiaomi Mi 2] Gambler_BE:
Yeah probably, I just wasn't sure it was something I could't find or isn't in there :)

I'm still on the 0217 one, battery life is ok but nothing to write home about. Because I'm abroad and did'nt have a data enabled SIM yet, I noticed battery life increased significantly without data (probably because I used it less too). Which is why I'm looking for a way to switch to 2G when I just want my phone to sync and don't need 3G speed.

Everything else is fine here, I do get a soft reboot occasionally but it's not that often that it bothers me.

Thanks a lot man! This is definitely a great workaround, does what I needed with only one click more than the actual shortcut would take so fast enough for me! :D
[Xiaomi Mi 2] chemicalbuz:
Have you tried intelli3g with xposed?
[Xiaomi Mi 2] rober788:
Any news from M1cha ?
[Xiaomi Mi 2] Gambler_BE:
I have not installed xposed yet because I didn't know how stable it would be since art support has only recently been integrated. I'll give it a try :)
[Xiaomi Mi 2] acastrocab:
:p:p:p:p:p:p:p:p:p lollipop 5.1 relased on nexus devices!!!1
[Xiaomi Mi 2] saintjules:
Hi everyone. I've been using this ROM for a couple of days so here's my small contribution.

Overall impression: awesome ROM, the Mi2s literally flies, everything is smooth and snappy.

Battery: doesn't look much better than MIUI, so nothing spectacular at the moment. Don't know if we can expect more.

Call issues: these are the actual problems I've encountered. First I had that bug that someone reported earlier, that is no audio during call. I restarted the phone and the issue has not occured ever since. Then during another call I was put on hold by the operator, waited for quite a while, screen turned off, the operator got back to me but she couldn't hear me (no mic?) and I couldn't wake the screen. Finally, but this is just an impression, the audio quality of phone calls seem not so good at times.

I really would love to use this as my daily driver but of course call issues can be a showstopper. So are these actual bugs? Something I can do to avoid them? Any future update will address this?

Thanks and congratulations on the amazing work done here!
[Xiaomi Mi 2] kekkojoker90:
He are working on the bug of the call and the future updates will address this and the other bugs we will meet during the process.
[Xiaomi Mi 2] crocek:
Any news about Android 5.1? :D
[Xiaomi Mi 2] rober788:
better 5.0.2 with no audio bugs than 5.1
[Xiaomi Mi 2] acastrocab:
5.1 is only in some nexus devices and i dont know if they released the asop code but cyanogenmod have to adapt the code and add new features to cm12 so we have to wait a bit until m1cha resolve some problems and the official cyanogenmod team....in a few weeks we'll have it:p
[Xiaomi Mi 2] saintjules:
Thanks. Audio has been fine as of lately, but today I experienced a nasty battery drain apparently due to google services and apps. I think someone wrote about this, right? Does it depend on which version of gapps you install?
[Xiaomi Mi 2] PosolKosh:
Found in topic for Nexus 4 CM12 roms - they suggest that battery drain (and audio bug) because of wakelocks of google play services and google checkinservice.

So I installed BetterBatteryStats and Disable Service or (similar programs) from Google play, to see what happened.

So, most wakelocks comes from Google Search's NlpCollectorWakeLock, don't know what is it.

Also I disabled checkinservice in Google PLay Market and Google services - the only small thing happen due this is that Google Play Music asks for something in notifications, and I cannot read what is it, because cannot see full text of message. But both Play market and Play music works fine.

Battery drain still exists (still trying to disable nlpcollectorwakelock of Google Search) also I turned on mobile internet to see about audio bug. During 12-13 march there's no audio bug.

Swithing off location won't help.
[Xiaomi Mi 2] saintjules:
I'm encountering major problems with incoming calls: screen turns off and I'm unable to wake it.
[Moto G Q&A, Help & Troubleshooting] SamTenny:
[IMG="Error"]http://i.imgur.com/RENwuzf.jpg[/IMG]

My cmd says this when I type in the command:

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb reboot bootloader

error: device not found

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices

List of devices attached

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices

List of devices attached

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices

List of devices attached

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb reboot bootloader

C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot devices

TA93001LIK fastboot

C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot oem unlock _CODE

...

(bootloader) Unlock code = ******************* < Thats Not The Code

(bootloader) Failed to erase partition

(bootloader) General Unlock failure!

(bootloader) OEM unlock failure!

FAILED (remote failure)

finished. total time: 10.285s

My Device Rebooted Normally But Was Wiped ;( But googled restored contacts, apps & sms
[Moto G Q&A, Help & Troubleshooting] audit13:
Have a look here for guides: http://xdaforums.com/showthread.php?t=2577043
[Moto G Q&A, Help & Troubleshooting] SamTenny:
Help!

Followed guide and when I got to the unlocking bootloader stage it says that my device is not eligble for being unlocked (bootloader) Any HELP!?!?!
[Moto G Q&A, Help & Troubleshooting] skyguy126:
Spam the button their site sucks. Try after a day or two.

If it still doesn't work then this the only solution left.... http://theroot.ninja
[Moto G Q&A, Help & Troubleshooting] audit13:
Are you sure you put in the correct value? I thought my xt1032 was not eligible but it was. I typed in the wrong characters.