Google play services draining my battery (GSam log included) - OnePlus 6T Questions & Answers

So I noticed my new 6T was having some heavy drain on standby so decided to install GSam.
I've clicked a screenshot of the GSam page below
https://i.imgur.com/qFE3xCe.jpg
Google play services is showing crazy amount of wakelocks. Anyone knows what's 'dozeservice'?
My battery stats show I've last charged my phone 17 hours before, OST 1 hour and 57 minutes as of now. Majority of the time phone was on WiFi and Bluetooth on (connected to my smart watch), adaptive battery disabled.
My battery stats: https://i.imgur.com/BZOL8Ep.jpg
Any solution?

These types of reports are generally not that informative - you should take an adb bugreport and then parse it with the Google Battery Historian: https://github.com/google/battery-historian. The Wakelock you are seeing is most likely not the cause of the CPU drain, especially when the Doze service is up top (which puts the phone to sleep). The NlpWakelocks are most likely due to you having Google Location Reporting turned on. Turning it off would conserve some battery, although you will also lose that functionality. But definitely give that a try and see how it goes (you will need to setup a Docker instance to get it up though)...

Related

Google Services/Google Play Service/Google Framework Services draining battery

Bear with me. If you are an expert on android maybe you can help me out here. First off, I have researched the crap out of this problem and still been unable to fix it, so YES, I did search before making this thread.
I am on a stock, rooted Verizon Galaxy S4. I have been watching my battery consumption carefully via the integrated battery settings menu, battery stats plus and wakelock detector apps. Mainly, there is a program or set of programs that typically is called "Google Services" that according to the integrated battery menu is consuming anywhere between 20-45% of my battery, sometimes more than the screen on time! My battery life is around 48hrs with 10hrs screen time but that is on the massive zerolemon 7500mah battery which I just bought, so I am not sure if that is above, below or just average (i.e. I have no real standard by which to judge).
Like I said I have read probably every thread about this problem with remedies such as; disable location, turn off google now, turn off google maps reporting, uninstall updates for google play/google play services/google framework settings, turn off google sync etc. I have tried them ALL, none seem to work. I have a feeling the issue is perhaps more in depth and above my head.
It gets more complicated. Although the stock android integrated battery menu reports it as using a massive amount of battery, the other two apps I mentioned above do not even report it, or at least not under a name that I regonize (perhaps that categorize it under a different process?). Under them screen time is by far the highest consumer.
So what to make of this? Is it a false report that the stock integrated android battery menu is reporting, and thus something to disregard? I doubt that because there are many other threads out there of people with the same problem and questions I have. But It's also not like my battery drains within hours. For instance, today I have been off the charge for 12.5hrs, with 3hrs and 40min of screen time and have 63% remaining on the 7500mah zerolemon extended battery.
If you can help, please do. If this is indeed a major drain I would really like to fix it.
Gulanowski said:
Bear with me. If you are an expert on android maybe you can help me out here. First off, I have researched the crap out of this problem and still been unable to fix it, so YES, I did search before making this thread.
I am on a stock, rooted Verizon Galaxy S4. I have been watching my battery consumption carefully via the integrated battery settings menu, battery stats plus and wakelock detector apps. Mainly, there is a program or set of programs that typically is called "Google Services" that according to the integrated battery menu is consuming anywhere between 20-45% of my battery, sometimes more than the screen on time! My battery life is around 48hrs with 10hrs screen time but that is on the massive zerolemon 7500mah battery which I just bought, so I am not sure if that is above, below or just average (i.e. I have no real standard by which to judge).
Like I said I have read probably every thread about this problem with remedies such as; disable location, turn off google now, turn off google maps reporting, uninstall updates for google play/google play services/google framework settings, turn off google sync etc. I have tried them ALL, none seem to work. I have a feeling the issue is perhaps more in depth and above my head.
It gets more complicated. Although the stock android integrated battery menu reports it as using a massive amount of battery, the other two apps I mentioned above do not even report it, or at least not under a name that I regonize (perhaps that categorize it under a different process?). Under them screen time is by far the highest consumer.
So what to make of this? Is it a false report that the stock integrated android battery menu is reporting, and thus something to disregard? I doubt that because there are many other threads out there of people with the same problem and questions I have. But It's also not like my battery drains within hours. For instance, today I have been off the charge for 12.5hrs, with 3hrs and 40min of screen time and have 63% remaining on the 7500mah zerolemon extended battery.
If you can help, please do. If this is indeed a major drain I would really like to fix it.
Click to expand...
Click to collapse
Did you trie to disable the network location? It works for me.
Moz007 said:
Did you trie to disable the network location? It works for me.
Click to expand...
Click to collapse
Yes that seems to work, but it's not really a "fix" as now I cannot use the location feature of many of my apps. Basically traded one problem for another, albeit lesser one.
I'm still trying to figure it out as since last update (MEA firmware) , my phone is heating a lot.
I had this problem with data connection on, I had this problem in airplane mode, but not strangely with having connection to wifi.
I also observed that google services and android system is consuming most of the battery. earlier when I used to get 8-10% consumption in full use in an hour, now, 8-10 % is consumed within 30 mins.
No tweaks are working. Frozen a bunch of apps but the problem is still there.
Just now I've uninstalled fileexpert HD , as "greenify" told me that since last 20 minutes my phone is on, it has taken 250+ wake locks.
I'm charging my battery to full to check if that solves my problem.
will try to disable location services and report back on the results.
Bump
Have the exact same problem, before the latest firmware my phone had awesome battery life, and now the battery goes from 40% to zero in just a few hours without any app running when I'm sleeping... it's horrible. Same problem with my wife's S4 since the latest update... It absolutely sucks.

Nlpwakelock causing device to stay awake

Google services is to battery consumer because it keeps phone awake. Something to do with location services causing it based on screenshot below. I'm latest nightly CM and seems to be the only one affected by this issue since nobody else complained about it
Sent from my SGH-I337 using Tapatalk 4 Beta
Same crap here as well. As u can see I'm on a totally different device. There was another thread on it with no solution I think.
---Sent from a viperx-ed OneX
Turn network location off. You really don't need it on all the time. That's the only way I know of getting rid of that wake lock.
I just realized. Location reporting turned itself back on, on maps app
I turned it back off. Will see if that helps.
When it was off I'd probably get 1min of that wakelock for the entire day.
---Sent from a viperx-ed OneX
mibtnt said:
I just realized. Location reporting turned itself back on, on maps app
I turned it back off. Will see if that helps.
When it was off I'd probably get 1min of that wakelock for the entire day.
---Sent from a viperx-ed OneX
Click to expand...
Click to collapse
If its of from boot, I don't get any.
jd1639 said:
Turn network location off. You really don't need it on all the time. That's the only way I know of getting rid of that wake lock.
Click to expand...
Click to collapse
x-actly.
NLP stands for Network Location Provider I would guess as it appeared to me first when Google Location Services asked me to switch on the WLAN location detection for "more accurate results".
Might be helpful if in some building where you don't get GPS locked but isn't really needed that much otherwise.
i have location access OFF and have HUGE DRAIN on Nlpwakelock
I had a similar problem on my Nexus4 - after I turned location services on and off again, the NlpWakelock would keep my phone awake and not go to deep sleep.
However, I found a fix for this issue. The culprit service is called GoogleLocationManagerService, and the solution is to disable this service only (I have no idea what other complications may arise from this, but at least my phone now goes to deep sleep). This service can be disabled with ROM Toolbox or a similar app.
In ROM Toolbox you go to App Manager, find Google Play Services and select Advanced Freeze. Now find the service (has a red border) called GoogleLocationManagerService and disable it. Now I can switch on and off location and still go to deep sleep, and location IS working.
ameinild said:
I had a similar problem on my Nexus4 - after I turned location services on and off again, the NlpWakelock would keep my phone awake and not go to deep sleep.
However, I found a fix for this issue. The culprit service is called GoogleLocationManagerService, and the solution is to disable this service only (I have no idea what other complications may arise from this, but at least my phone now goes to deep sleep). This service can be disabled with ROM Toolbox or a similar app.
In ROM Toolbox you go to App Manager, find Google Play Services and select Advanced Freeze. Now find the service (has a red border) called GoogleLocationManagerService and disable it. Now I can switch on and off location and still go to deep sleep, and location IS working.
Click to expand...
Click to collapse
i've been searching for a solution for ages and even followed the advice of another thread to disable location finding on both maps and google now and for some reason the nlpwakelock is still showing up. i'm going to try your fix but i was wondering if you've encountered any issues ever since disable googlelocationmanagerservice?
I often noticed nlpwakelock being the main culprit for Google Services battery usage. I even saw that it kept my phone awake for hours some days...
I tested some fixes and found that disabling the "use wireless networks" in the location services settings completely removed that wakelock.
Personally, I'd rather have that feature than save the little battery it uses. Despite keeping my phone awake for 1-2 hours on most days, as reported by GSAM Battery Monitor and Wakelock Detector, it uses a pretty small amount of battery:
Typically my phone's battery monitor will report about 20-30% of the battery used by Google Services. GSAM Battery Monitor seems to break that down into two parts: about 10% Google Services and 15% kernel, on average. However, these numbers are deceiving. That 10% that Google Services is only 10% of "App Usage" as reported by GSAM. Furthermore, App Usage is often only about 50% of my battery usage.
If my battery is at 50%, that means Apps only usage 50% * 50% = 25% of my 100% battery. Then, Google Services only used 10% of that 25%...so 2.5% of my overall battery capacity. I found this quite surprising considering the report that the wakelock keeps my phone awake for 1-2 hours...
So while Google Services is often shown as my #1 or #2 battery user in the App Sucker page, at 10-15% usually, that's only like 2-5% of the total 100% battery capacity each day. If I'm really going to be pushing my battery limits I might disable it to save some juice, but generally I find it's not worth disabling the feature to save such a small portion of my battery.
ender127 said:
i've been searching for a solution for ages and even followed the advice of another thread to disable location finding on both maps and google now and for some reason the nlpwakelock is still showing up. i'm going to try your fix but i was wondering if you've encountered any issues ever since disable googlelocationmanagerservice?
Click to expand...
Click to collapse
Hi. No, I've not had any issues,*but unfortunately the fix doesn't always work - but if the wakelock still persists, shutting down the service or location service again removes the wakelock, but it takes the manuel action of re-disabling the service again. Still better than having a wakelock though..

[Q] GCM_LIB holding constant wakelock causing bad battery drain

I have a weird battery drain problem...(Bell I337M, latest firmware)
I realized mid-morning that I was dropping battery a LOT faster than I normally do. I don't use my phone much at work so after the course of a work day I'm usually left with around 85% battery remaining. Today, however, my battery dropped all the way down to just over 40%.
I checked the battery stats and saw that Android System was the next highest source of battery usage - with a "stay awake" time of over 12 hours so far. I installed BetterBatteryStats and it points to an Android System process called GCM_LIB holding the wakelock 100% of the time. My phone has not once dropped into deep sleep.
I think this may be the Google Cloud Messaging service, so I tried investigating every avenue I could. I've rebooted three times. I've removed every single account on my phone. I've stopped every push or polling application. GCM_LIB continues to hold the wakelock.
Any ideas? I really don't want to have to wipe the phone if I don't have to, I have everything configured just the way I want it to be.
got_milk said:
I have a weird battery drain problem...(Bell I337M, latest firmware)
I realized mid-morning that I was dropping battery a LOT faster than I normally do. I don't use my phone much at work so after the course of a work day I'm usually left with around 85% battery remaining. Today, however, my battery dropped all the way down to just over 40%.
I checked the battery stats and saw that Android System was the next highest source of battery usage - with a "stay awake" time of over 12 hours so far. I installed BetterBatteryStats and it points to an Android System process called GCM_LIB holding the wakelock 100% of the time. My phone has not once dropped into deep sleep.
I think this may be the Google Cloud Messaging service, so I tried investigating every avenue I could. I've rebooted three times. I've removed every single account on my phone. I've stopped every push or polling application. GCM_LIB continues to hold the wakelock.
Any ideas? I really don't want to have to wipe the phone if I don't have to, I have everything configured just the way I want it to be.
Click to expand...
Click to collapse
I had the android system drain when I used google edition roms but I fixed it by adding a few build.prop entries to make the phone sleep better. I didn't have this issue with stock touchwiz roms tho
Deeper Sleep / Better Battery Life
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
Hi, some of our users said this.
As you can see from this screen: https://plus.google.com/communities/112636044705492129107 they have the same problem of you.
Have you found a solution?
GCM LIB is deprecated as per the GCM website, it has been superseded by GCM Server and GCM Client. Please use the GoogleCloudMessaging API instead of the GCM client helper library. The GCM server helper library is still valid.
There are a number of open bugs against GCM_LIB, including this one and I doubt they will be addressed.

Inexplicable battery drop; no distinct partial wakelocks.

When keeping my phone on idle during the night, it dropped by around 30%.
I have installed BetterBatteryStats.
The largest user of the battery is "Android OS", according to the battery graph in the settings menu. However, in BBS, the largest partial wakelock is Connectivity Service, which was on for only ~6 minutes.
However, under CPU states, it says that the CPU was idling at 250 MHz for many hours?
This is undoubtedly some sort of phantom battery drain. It has occured for many weeks during the use of the phone.
In addition, with 'Wakelock Detector', it too says that the largest wakelock is usually for around 6 minutes, by Facebook more often that not. However, the total stats say that the phone was awake the entire time, and it has not entered Deep Sleep at all.
I would greatly appreciate your help and tips. Thanks
cald said:
When keeping my phone on idle during the night, it dropped by around 30%.
I have installed BetterBatteryStats.
The largest user of the battery is "Android OS", according to the battery graph in the settings menu. However, in BBS, the largest partial wakelock is Connectivity Service, which was on for only ~6 minutes.
However, under CPU states, it says that the CPU was idling at 250 MHz for many hours?
This is undoubtedly some sort of phantom battery drain. It has occured for many weeks during the use of the phone.
In addition, with 'Wakelock Detector', it too says that the largest wakelock is usually for around 6 minutes, by Facebook more often that not. However, the total stats say that the phone was awake the entire time, and it has not entered Deep Sleep at all.
I would greatly appreciate your help and tips. Thanks
Click to expand...
Click to collapse
You could try ds battery saver from Google play i use it and loose about 3% over night 7 hours
Yeah this looks weird.
I'm no BBS expert, but what I would do is, disable everything. Weather widgets and so on, Facebook sync and whatever else you have syncing in the background. Basically make it a dumb phone temporarily by disabling all the stuff you have running.
Then reboot and let it sit for an hour without touching it.
Check BBS again, choose "since boot" and look for partial wakelocks and battery consumption.
If it seems OK, turn something back on, for example add a weather widget and enable Facebook sync again. Don't enable too many things, just one or two! Reboot. Let it sit for an hour without touching it. Check BBS again. If the result now is again worse than it was before, you know that something you just added or enabled is causing the drain.
If everything seems OK, enable something else, whatever it may be - an RSS reader syncing, Instagram, Flipboard, Skype - I don't know what you have on your phone. Reboot and let it sit, check BBS again.
10 hours of WiFi on and WiFi running. There's your phantom drain.
Let me guess, you have scanning enabled in Wifi settings?
jaythenut said:
You could try ds battery saver from Google play i use it and loose about 3% over night 7 hours
Click to expand...
Click to collapse
Kiahnlliya said:
Yeah this looks weird.
I'm no BBS expert, but what I would do is, disable everything. Weather widgets and so on, Facebook sync and whatever else you have syncing in the background. Basically make it a dumb phone temporarily by disabling all the stuff you have running.
Then reboot and let it sit for an hour without touching it.
Check BBS again, choose "since boot" and look for partial wakelocks and battery consumption.
If it seems OK, turn something back on, for example add a weather widget and enable Facebook sync again. Don't enable too many things, just one or two! Reboot. Let it sit for an hour without touching it. Check BBS again. If the result now is again worse than it was before, you know that something you just added or enabled is causing the drain.
If everything seems OK, enable something else, whatever it may be - an RSS reader syncing, Instagram, Flipboard, Skype - I don't know what you have on your phone. Reboot and let it sit, check BBS again.
Click to expand...
Click to collapse
Thanks for the detailed advice. I'll disable everything, reboot, and then keep it for the night. And I'll install DS Battery Saver.
ShadowLea said:
10 hours of WiFi on and WiFi running. There's your phantom drain.
Let me guess, you have scanning enabled in Wifi settings?
Click to expand...
Click to collapse
Nope, I'm afraid not.
UPDATE
I did as you advised before, disabling everything. The drop over the night was only 10% this time, but this inexplicable drop persists nevertheless.
I had the same thing happening yesterday night. When my phone is drained, I usually charge it in the evening, reboot and then let it sit for about 5-6 hrs with everything except NFC off. Normally, I have a battery drop within those 5-6 hrs of about 1-3%. But yesterday morning after the same procedure, I had lost 30%. I did a reboot then and battery usage went back to normal. So I charged my phone yesterday night and did a reboot, and surely enough I only had 1-3% of battery lost over night. Strange.

Verizon S7 Edge Battery Life Terrible

And there's nothing I can do about it. I only have a gear s2 connected at all times and wifi and mobile data off whenever possible. Before I leave to the gym battery is at 44%. After the car ride there it drops one percent. I unlock the phone, connect my powerbeats, and open youtube and there go another 5%. After a YouTube video there is 7% drain. About a 10 minute video too. Leaving the gym and hour later and I see a maybe 20% battery loss. I don't know how people with regular S7s get 4-5 hours SOT because I get only 3.5 maximum. I bought the edge looking for better battery life but it's practically no different than my S5. If anyone knows a magic trick to this, I need to know now because this is extremely annoying.
IF you got the device from an official retailer, just return and get a new replacement. Losing 7% watching a 10' video is not right even with max brightness. You can fix the standby drain by using Forcedoze (which helped reduce my standby drain by 50% to about 1% every 2 hours). 3.5 hours SOT is terrible even with max brightness. Just get a replacement please. It's not worth the time and frustration.
IF you don't have the option of getting a replacement. Forcedoze can help with the standby drain. Factory reset, set up normally (personally, I just turn off bluetooth NFC location and turn them on when needed), and hope that your terrible screen on time is software related.
konoi said:
IF you got the device from an official retailer, just return and get a new replacement. Losing 7% watching a 10' video is not right even with max brightness. You can fix the standby drain by using Forcedoze (which helped reduce my standby drain by 50% to about 1% every 2 hours). 3.5 hours SOT is terrible even with max brightness. Just get a replacement please. It's not worth the time and frustration.
IF you don't have the option of getting a replacement. Forcedoze can help with the standby drain. Factory reset, set up normally (personally, I just turn off bluetooth NFC location and turn them on when needed), and hope that your terrible screen on time is software related.
Click to expand...
Click to collapse
Do you think it might be my location by any chance? Maybe the service in my area causes this drain. I also have gps on because of my gear s2 but I can turn that off and see what happens. GSAM tells me the in the past 30 minutes the drain rate is 15% per hour. I browsed the Internet a bit and have been using it the whole time. I'll try to also do a full battery drain test on geekbench with full brightness and see what it tells me.
MarLap2000 said:
Do you think it might be my location by any chance? Maybe the service in my area causes this drain. I also have gps on because of my gear s2 but I can turn that off and see what happens. GSAM tells me the in the past 30 minutes the drain rate is 15% per hour. I browsed the Internet a bit and have been using it the whole time. I'll try to also do a full battery drain test on geekbench with full brightness and see what it tells me.
Click to expand...
Click to collapse
It's a good possibility. I have a fairly weak signal where I am most of the day and only get about 4-5 hours of SOT. I have all radios off except WiFi and data when needed. Still with my usage I only charge every 2 to 3 days. I don't get the drain like you do from watching youtube though.
My battery life also sucks. I barely use my phone during the day and it almost dead when I go to sleep. Most of the day I am connected to wifi between my work or home. My old htc m8 one could last 40 hours. I think part of the problem is because I do not have root on this phone. I kind of regret switching because I cannot get root. I cannot use applications to adjust cpu or control my wifi, data and to turn off apps from starting automatically. I think tonight I am going to try and calibrate my battery.
I had horrible battery life after taking the 2 OTAs. BetterBatteryStats would not report the device going into deep sleep at all and I was losing about 10% per hour on standby. I did a Factory Data Reset and all the problems cleared away. BBS is reporting deep sleep after about 5 minutes of the display going dark. I have Wifi, data, Bluetooth, and high-accuracy Location services turned on at all times. I lose about 2.5% per hour now with AOD turned on on standby.
Guess my advice would be to due a FDR after every OTA....
Guys, I had terrible battery life when I first got the phone. Off the charger at 6am, under 20% by 5pm... Follow my steps below and I bet your battery will do a 180 and be very nice. Mine gets me 35-40+ hours on a charge.
Disable the bloat apps you don't want in app manager.
Turn off Google usage and diagnostics reporting for the Google app, and if you use the Google keyboard, there too. This and the next one were the biggest improvements by far.
Turn off Samsung "Send Security Reports," and in the same place, turn off auto-update Samsung security updates.
Turn off device/Bluetooth/WiFi scanning.
Set keep WiFi on during sleep to while charging.
In permissions, I turned off location for any app I didn't think needed it. I went from 30+ to about 15. If an app requires location to work, you will get a popup warning when disabling location for it.
Lastly, I did a Restrict Background Data on several apps I didn't think needed it.
My phone started dozing and the battery drain dropped way out.
I keep AOD and Bluetooth on at all times and connected to my smartwatch all day, and my car about an hours a day.
Hope this helps! Apparently out of the box the S7/Edge battery life is terrible...
gettinwicked said:
Guys, I had terrible battery life when I first got the phone. Off the charger at 6am, under 20% by 5pm... Follow my steps below and I bet your battery will do a 180 and be very nice. Mine gets me 35-40+ hours on a charge.
Disable the bloat apps you don't want in app manager.
Turn off Google usage and diagnostics reporting for the Google app, and if you use the Google keyboard, there too. This and the next one were the biggest improvements by far.
Turn off Samsung "Send Security Reports," and in the same place, turn off auto-update Samsung security updates.
Turn off device/Bluetooth/WiFi scanning.
Set keep WiFi on during sleep to while charging.
In permissions, I turned off location for any app I didn't think needed it. I went from 30+ to about 15. If an app requires location to work, you will get a popup warning when disabling location for it.
Lastly, I did a Restrict Background Data on several apps I didn't think needed it.
My phone started dozing and the battery drain dropped way out.
I keep AOD and Bluetooth on at all times and connected to my smartwatch all day, and my car about an hours a day.
Hope this helps! Apparently out of the box the S7/Edge battery life is terrible...
Click to expand...
Click to collapse
I installed forcedoze and did the adb non-root command and now my phone's battery is holding up better. I think the phone was just sleeping.
It's ridiculous one has to do all this to get closer to acceptable battery life.
Google and SEC should be ashamed of themselves!
It's not just VZW devices either. AT&T are just as bad.
I've given up on trying to get acceptable standby drain and just let the device live on a wireless charger.
GeoFX said:
I had horrible battery life after taking the 2 OTAs. BetterBatteryStats would not report the device going into deep sleep at all and I was losing about 10% per hour on standby. I did a Factory Data Reset and all the problems cleared away. BBS is reporting deep sleep after about 5 minutes of the display going dark. I have Wifi, data, Bluetooth, and high-accuracy Location services turned on at all times. I lose about 2.5% per hour now with AOD turned on on standby.
Guess my advice would be to due a FDR after every OTA....
Click to expand...
Click to collapse
You need to turn off all radios when you go to sleep for the device to enter deep sleep. I had the same problem and when I started turning off wifi and mobile data for the night GSAM reported deep sleep and I was only losing 3% per night.
MarLap2000 said:
You need to turn off all radios when you go to sleep for the device to enter deep sleep. I had the same problem and when I started turning off wifi and mobile data for the night GSAM reported deep sleep and I was only losing 3% per night.
Click to expand...
Click to collapse
I keep all my radios on (BT, LTE, and WiFi) and BBS and GSAM Pro all report that my phone goes into Deep Sleep.

Categories

Resources