yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] lecomiquelin:
Really man. After a few hours this crap reappeared. I'm getting so annoyed!! Anyway thanks for your work.

I not want to leave a function disabled, because of a bug. This is ridiculous. And it bothers me to see google or samsung, in my case, do nothing!!!!!!!

But, thank you for understanding and for your education. Generally the guys here seems kind of uneducated, or I do not understand English so well, hahaha!
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
LOL, I told you that sometimes that is not the best fix. Anyway, try to read the updates on the first post, and also see the screenshots. I already got rid of this drain, and it seems that with latest updates of Google Services Framework and Play Store, the drain has decreased to 5%-6%.

Obviously no one will make anything for you or me, so it´s better to make something for this kind of things.

And no need to thanks, if I can do something to help here, I will certainly do.

;)
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Thanks

Thanks a lot for the test :).

so if i understand the battery have stand 13hours beetween your wake and the end of the day with 4hours of Screen time.

So people which use 2h a day will have more time with battery right ?
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Actually the image I posted in OP is with 22 hours without a charge and 4 hours screen time. Of course if you have less screen time, that means that the device can enter sleep mode often, so more hours of battery life. I have reached 2 days without a single charge with 1:30 hours of screen time.

:D
[Nexus 4 Q&A, Help & Troubleshooting] Dark Emotion:
Thanks@OP for all informations, I had the problem with Android OS (awake 90% of time), tried many things, flashed .48 modem and it was ok but suddenly it started to drain again, so I deleted Google music app and now my Android OS is @8% after half a day (0% awake). Rebooted the phone etc. I am not sure if Google music is actually responsible for the drain but maybe this information will help to somebody else.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Never heard about problems with Google Music battery drain, and it is really weird you have these kind of problems.

Also there is an update for Google Music that was released today, so maybe you can try it.

;)
[Nexus 4 Q&A, Help & Troubleshooting] Dark Emotion:
Yeah, I am not sure either but as long as my AndroidOS is under 10% I won't complain. :D I prefer Apollo anyway.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Yes, actually, it should be between 5% and 8% of total battery usage.

:cowboy:
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
I have problems with play music too. It's like 10% like every 45 hours. And Android system too. Weird
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I don´t understand what do you mean by "It's like 10% like every 45 hours". About the Android System wakelock, there are some possibly fixes in the first post.

:highfive:
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
I will screen my stats with my normal usage, when i listen music :). Thanks for the tips. But i'm on stock android none rooted. So is there a solution for the .48 radio ?

PS : i wanted to say 10% every 45 minutes when i use Play Music
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
If you have stock android 4.3, you should have new radio and new bootloader. In the case you need to get back to .48 radio, you need to do it with ADB, there are many tutorials here in XDA on how to do it.

Also, it is normal that the battery drain is major when you play music, because it prevents the device to sleep. That´s what is happening with your usage.

:)
[Nexus 4 Q&A, Help & Troubleshooting] ltkarl:
A little help is needed here. I'm using an Experia Z with stock android 4.2.2 and am currently experiencing this Google Services drain, which basically is keeping my device awake 100% of the time. I've read through and the solution to this seems to be turning off in Location settings: Settings > Location Access > Wi-Fi & Mobile Network Location.

However, I can't seem to find this Wi-Fi & Mobile Network Location for me to toggle it off.

Under settings, i have Location Services > Access to my location, GPS Satellites, Google's location service these 3 options to toggle only.

I do not seem to have Location Access under settings.

Many thanks in advance for any assistance rendered!
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I don´t know exactly about Xperia Z, but I tried to find some image about what it looks, and I think I find it:

http://media.primeinspiration.com/files/photos/1364970443ceb1dd_l.jpg

If those settings are equal to what you have, it should be the first option: "Google´s location service".

Try it and see how much can decrease the drain of Google Services. Also, if you need that option(because some people reported that disabling this option can make apps not having a good location) for any app, just enable it, use the app and then disable it if you are not going to use it.

A new Play Store update is also released yesterday, and be sure that you have the latest Google Services Framework, which seems to fix this issue according to all the tests I have made.

:highfive:
[Nexus 4 Q&A, Help & Troubleshooting] ltkarl:
I've tried disabling that before but to no avail sadly :(

How and where do i check/download the latest update for Play Store and Google Services Framework? My apologies for not knowing.

Thank you so much for your time!
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Oh ok :) thanks a lot. Finally i have rooted my phone lol
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
The link to the Google Services Framework is on the first post. The latest download from Play Store can be found on:

http://xdaforums.com/showthread.php?t=2012857

;)
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Glad to hear that, there´s a whole world of possibilities for a Nexus rooted device.

:good:
[Nexus 4 Q&A, Help & Troubleshooting] hooligan_016:
Well, for the last several days I have had the wifi "Scanning always available" option turned off and have not encountered the keep awake bug. Phone has been going to deep sleep just fine and all other services appear to be functioning normally (along with no unusual battery drain for my average usage).

I guess maybe I should turn it back on again to see if the AndroidOS keep awake bug pops back up?
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I always do that. I start by disabling all the options that could cause a wakelock. Then, I start enabling one by one. If you say that option cuased the problem, and you have now normal battery drain, my recommendation would be that you enable it and see what happens.

I have seen that for some weird reason, when you disable some options, and then enable them, make the device to function properly.

Try to enable it and come back and tell us.

:D
[Nexus 4 Q&A, Help & Troubleshooting] max4wdc:
i'm back to 4.2.2 with 4.3 bootloader and radio and my apps but i see Android OS keeping awake even in 4.2.2 so i'm back to 4.3 with my backup and flashed bootloader and radio to 4.2.2 , now i waiting for it :D

i think this bug related to super user :|
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Some people have reported that some issues with Android OS wakelock are caused by bad radio. Bad radio doesn´t mean always to have the latest. Some people has god results with old radio(.48), and others with new radio.

Try both and see what happens.

:)
[Nexus 4 Q&A, Help & Troubleshooting] max4wdc:
don't work :( now maybe problem related to superuser , anyone have android OS bug without root ?!
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I highly doubt that superuser is causing the wakelock, try to play with the radios. Also, don´t restore backup, maybe some of your apps are making this wakelocks and every time you restore those, the wakelock come again.

Try to make a full wipe and clean install of any ROM you want and start from zero, I think is the only way to detect a wakelock.

:good:
[Nexus 4 Q&A, Help & Troubleshooting] Ok_Kaleidoscope5109:
Question for [MENTION=4658859]Galaxo60[/MENTION] as well... if you're not allowing your phone to report location based on Mobile Network / Wifi, then you won't get any location data UNLESS your GPS locks. Therefore, your maps will not be aGPS. IT's full GPS which could end up using more battery as it takes longer to lock. Apps like Yelp, Foursquare, etc. that tag your location completely fail.

What I'm saying is what I posted in this post. If you're disabling location through wifi/mobile network, then you've effectively neutered all location access on your phone. Widgets, and all those apps typically get your location via data. Essentially your phone is only able to get location through GPS, which is invoked only in a few apps. Effectively any location syncing that your phone does is pointless.

So I don't get why you would even need location reporting to be On because its already useless.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Screenshots are already posted on first post, as well as the final fix. It seems that Google already fixed this issue on latest Google Play Services(3.2.25).

I don´t have anymore this wakelock, and I have all the location options enabled(the ones you wrote on your post).

:victory:
[Nexus 4 Q&A, Help & Troubleshooting] UncleMike:
I'm glad to see the same solution helped someone else. I haven't turned it back on here, but may do so on a day battery life won't be too critical.
[Nexus 4 Q&A, Help & Troubleshooting] Ok_Kaleidoscope5109:
So with the new play services, are you running with Wifi & Mobile Data for location on or off?
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I´m running now with all the location options enabled, also the one you are asking.

Extracted from the Google forum:

"If you uncheck wifi/network-based location, battery usage is normal. Once you tick it, battery consumption skyrockets and it shows up as "Google Play Services" on the battery meter. In addition, Android OS battery consumption skyrockets as well. This has been personally observed on a Samsung Galaxy S4 Google Play Edition, running factory 4.3 firmware, after a previous factory reset, with no application additions other than updating included Google apps and using Google sign-in."

Is from the link you posted on your threat, and is giving the same answer I gave here. I know this is not an answer, but a workaround to a Google´s problem. Until Google fix it, the best is to have it disabled when you don´t plan to use it, and enable it if you are using some app that needs location. Also they don´t give any technical data or information, so maybe they still have drain because an old version of Google Play Services/Play Store.

I used to have the same NLP wakelock, and after updates, it was gone. Also you should know that Android System and Google Services drain is huge on the first hours of use, but it should decrease with time until they reach around 5%-8%.

At least for me, this drain has gone with latest updates, but maybe some people is still experiencing this. I´m always on 3G, and just WiFi sometimes when I can have a network available.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Try to turn few location options and see how is going.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] UncleMike:
All my location options are enabled. The only thing I've disabled is the "scanning always available" option.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Try to enable it and see what happens.

:cyclops:
[Nexus 4 Q&A, Help & Troubleshooting] Ok_Kaleidoscope5109:
For me, the biggest wakelock comes with turning on "Location reporting"

This is with the latest Google Play Services. I will continue monitoring.
[Nexus 4 Q&A, Help & Troubleshooting] max4wdc:
okay guys i had Android OS battery drain when my wifi is on , as you know i checked very way but isn't okay for last chance i changed WIFI files form JSS rom to my rom with flash and now this bug is gone till now (2 days) .

Just try this way i hope so working for you .(or maybe google fixed in this Y update )

sry for my en
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Come back and report later, would be good to know if people still have this problem.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
AOSP has many fixes for WiFi and GPU, that´s why most of developers are making ROM´s based on JSS. For example, PA has hybrid build for all those fixes and the JW part for the occasional freezes.

:eek:
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Google Services

In the day I got update for Google Services as you have notice.

And it's way better. I will have a full day tomorrow and post my observations. But for all thanks to try to help all Nexus 4 community :)

Glad that google fix all this errors.

Peace of God
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Come back and give your feedback, is really important for all.

:victory:
[Nexus 4 Q&A, Help & Troubleshooting] Lanzus:
I had Android OS draining problem. I solved it removing google localisation service (wifi and GPS) and google now. I don't know if this is really related to drain or not but for now i'm ok. I tried also to flash the old radio (48) but that didn't work. (I'm italian with vodafone.it ... 84 it's working ok)
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Well, uninstalling things is not the way to go from my perspective, but if you don´t need that software, then it is alright. Try in the near future to install all those again, because people is reporting that new updates fix the drain problems.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] Ok_Kaleidoscope5109:
With everything else ON but Location Reporting OFF in the Google Settings, this should technically stop the big offenders that grab my location such as Google Now. I don't see why Maps would need my location in the background, but correct me if I'm wrong.

I thought wakelocks got reduced at first down to like 10-15% of my time, but after some reboots and some more runs, its still high. I'd have to confirm about the NLP Wakelock today with more observations, but my phone is still only sleeping like 70-80% of the time. Not optimal.

I'm trying to Greenify other apps like Google+ right now to remove other culprits, but overall its not good.

I did sleep on Wifi last night and I slept 95% of the time over 6 hours!. Woohoo! Still, 5% of wakelock time is 15 minutes of crap. My 25mbit internet shouldn't be causing that much wakelock. Even if I only have 3 widgets syncing every 3 hours, how's that 15 minutes?
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I have around 5%-7% battery drain in night over WiFi(around 7hrs). I think that you are doing good, maybe is not the optimal state, but as I said before, Android 4.3 seems to work in this way now, so we don´t have too many options. Besides, Google is updating the Google Play Services as well the main Google applications, so maybe something better in on the way.

:cool:
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Here it is

I got these stats. I have charge my phone a bit when i was updated the 4.3 which released earlier today
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Battery should improve with 4.3. In my opinion, you can make it better. 1:30 hrs screen time is bad for 13 hours total battery life. Try to change kernel.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] beicozitos:
Solved nexus 4 android 4.3 battery drain

The solution is very simples, that is not GPS ou Location Services, but It is the new feature Voice Recognize from Google Now.

You have to disable in Google Now > Settings > Voice > Hotword detection.

This feature turn on the mic all time and try recognize your voice to do a action.

Just disable that, and the battery will take a good life duration
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Yeah i think with this new 4.3 version i will be better than the old 4.3

With the previous 4.3 i was at 10% in only 4hours with the same screen usage.

I'm using franco kernel, you have some better one for the battery ?
[Nexus 4 Q&A, Help & Troubleshooting] beicozitos:
Just turn off Hotword detection in Google Now

Just turn off the Hotword detection in Google Now > Settings > Voice.

That is the solution. Trust me. I already tested It and my battery up to 36 hours
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Thanks. Don't have this option in french. I have put the phone in US language and i disabled it.

I will see
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
As far as I know, if the option doesn't exist in other languages, it shouldn't be affecting the battery life. Besides this, it shouldn't be "hearing" all the time, just when you open the Google Now app and say "Google".

:confused:

If you are on official Android 4.3, there are not so much options to flash. For JW builds, I only know Franco, Faux and Semaphore kernels. For JSS, there is a lot more. I would try with Faux, I have had really good results with his Intellidemand governor. Also, if you want to adventure more to kernel tweak, you should install Trickster Mod or buy the Faux app and then try to do some UV and UC; those really help the battery and you can see a real improvement.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] beicozitos:
Change language

For others languages, switch to English US, disable Hotword and them switch to your favorite language. :cowboy:
[Nexus 4 Q&A, Help & Troubleshooting] Hi_Hat:
Hi!

I have same issue on GB 2.3.4 firmware only after applying Google check-in patch from Logging test app by Treve.

After that battery drained by Google check-in handoff subsystem and sometimes it solving by enabling GPS.
[Nexus 4 Q&A, Help & Troubleshooting] UncleMike:
I enabled it for a day when a charger would be handy if needed, and though Android OS battery usage didn't rise significantly, I feel like I go noticeably worse battery life overall, with no obvious culprit. I'm normally not is a situation where unnecessarily depleting my battery would be wise, but when I get another chance I'll test again.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Still I don´t see the point for disabling options that are not enabled in other languages. Let´s wait for someone to report.

:confused:

I don´t get what you mean, I don´t know that patch. Anyway, GB 2.3.4 is really old.

:p

Testing is always your friend, each time you can test something, you should probably do it.

:)
[Nexus 4 Q&A, Help & Troubleshooting] beicozitos:
This feature just exist at Android 4.3.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
I know it only exists on Android 4.3, but just in English language. It is disabled for all other languages.

:silly:
[Nexus 4 Q&A, Help & Troubleshooting] Hi_Hat:
Logging test app
[Nexus 4 Q&A, Help & Troubleshooting] beicozitos:
my screenshots

two screenshots of my battery
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
It seems that most of that stuff is HTC related, and as far as I could see, most of that stuff is deprecated now.

:confused:
[Nexus 4 Q&A, Help & Troubleshooting] Largamelion:
I too am having issues with Google Services lately. GPS Satellites were off and Wi-Fi & mobile network location was on. I have now switched both options. Will let you know tomorrow if it helped.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
That is a really huge drain. Come back later and tell if that worked for you.

:fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] rmeletti:
I have a Galaxy S4 with Google Edition 4.3 and have been experiencing the same problem since update.

The indications provided in this thread (disabling "Wifi and Network local") helped me a lot to reduce battery drain.However, I found out that this drain seems to happen only when I have Wifi activated but not connected, and network localization checked simultaneously.

Disabling Wifi only but leaving localization services on does not drain the battery as much.

I've been managing my Wifi settings using Tasker in order to turn it off automatically whenever I'm out of home (and thus not connected) and my battery drain reduced dramatically.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Many people said that Location History and Reporting Location causes the wakelock, but for me, most of the drain comes from the WiFi/Location related options as you said. Happy to know that battery drain has decreased for you.

Also try to update to latest Google Services if you haven´t do it.

:good:
[Nexus 4 Q&A, Help & Troubleshooting] Largamelion:
Just wanted to let you all know that Google Services is no longer showing up in my battery usage. It seems the suggested fix in this thread works.

Thx
[Nexus 4 Q&A, Help & Troubleshooting] ymwca:
Hi

Do you mean you turned off both GPS Satellites and Wi-Fi & mobile network location?
[Nexus 4 Q&A, Help & Troubleshooting] pesfan50:
Better

Okay it's better and better every day !
[Nexus 4 Q&A, Help & Troubleshooting] Largamelion:
Nope, I turned Wi-Fi & mobile network location off and GPS Satellites on. I had it the other way around when I posted the screenshot.
[Nexus 4 Q&A, Help & Troubleshooting] mangoman:
I also just got hit with this. Last two nights services used 70% and the phone was shut off in the morning. Problem is I need the wifi location for the transport app to work.

No idea why it just started doing this two days ago.
[Nexus 4 Q&A, Help & Troubleshooting] handyr:
Seeing the Same Issue

I believe I am experiencing some form of this bug / issue as well. About 3-4 weeks ago I noticed my battery drain started to increase dramatically. I can usually go 3 days between charges. All of the sudden i was at 50% after 24 hours.

After a few days of this I got the warning triangle up on my screen, something about "Data usage Warning." It turns out that the google services framework had used > 1.5GB !!!!!!!! of data in the past 5 or so days. I immediately wiped my phone (like wiped ALL partitions and started over), reinstalled the latest "stables" cyanogen mod , franco kernel and the few apps I have (Titanium backup + weather). I have no crazy apps on the phone, nothing.

After the wipe the phone is going great, back to three days between charges, etc. etc. Now last night the damn "Data usage warning" pops up again, and google play services has download 900MB of data in the past few days. I'm so pissed right now. I love android but I can't believe google acting this horribly. I had to upgrade my data plan to the next tier last month because of overages and now I can't go back down. So google has costed me $120 bucks a year for this stupid bug. I'm about ready to punch a wall and throw this phone into the harbor.
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Glad this helped you guys.

Try to update to latest Google Play Framework or try to disable the location options when you don´t need them.

Many people has reported this bug, it seems that Android tries to download the 4.3 update in a forever bootlop and this causes a big usage of MB on the background. You should try to change your ROM or GAPPS and see what happens. I really recommend BaNkS´s GAPPS, I never had a problem with them.

:good:
[Nexus 4 Q&A, Help & Troubleshooting] mangoman:
I got pa 3.99 with latest gapps, or is there another way to update the framework?
[Nexus 4 Q&A, Help & Troubleshooting] Galaxo60:
Try to make a clean install of PA with BaNkS GAPPS and see what happen. I´m on PA 3.98 with BaNkS GAPPS and I don´t have any issues.

:cyclops:
[Nexus 4 Q&A, Help & Troubleshooting] mangoman:
Could a Qi charger cause this? Two days without one and it was ok, one day on and services drained battery overnight again. Could also be location I guess.
[Nexus 4 Q&A, Help & Troubleshooting] thegios:
I have a galaxy nexus with stock 4.3 installed from scratch, all google apps/services updated to latest version and... I have been experiencing the problem as well.

Even in airplane mode (!!!!) in 10 hours I was going from 100% to 85%. thank to BetterBatteryStats I realised the phone was never going to sleep and the cause was NlpCollectorWakeLock. And i do not even use google now...

At today the only way to solve the problem for me is to set to off thye wifi/3G network position option.