Google Play Services - Location and Battery Life - Android Q&A, Help & Troubleshooting

Hello all,
I recently flashed CyanogenMod on my Galaxy S5 and I've been trying to stop Google Play Services eating my battery. I've got Xposed and Amplify installed and I followed this guide
At 75% battery, Google Play has used 7%, Android OS 5%, Android System 2%. Compare this to my sisters phone, which is a HTC One M8, running Marshmallow Google Play Edition, Play services accounts for around 1% over a full charge.
I noticed that Google Play is constantly checking my location, I had the problem running both stock ROM and CyanogenMod. I don't use Google now and I've got Location History turned off. I've even set location to GPS only, but somehow Google still constantly checks my coarse location. I've disabled everything I can think of that might use my location, even auto time zone. Wifi and bluetooth scanning are both turned off. Initially I had a fresh install of CyanogenMod, Pico Gapps (Play Services and Play Store only), no Google account, but Play Services was still checking my location constantly. Using Amplify I've also disabled any services with "location" or "GPS" in the title.
According to Wake Lock Detector, my battery stats are pretty good. At 75% battery, Play Services has kept my phone awake for only 1 minute and 2 seconds. Awake time is usually around 2%, until I use Endomondo.
Any ideas where my battery power is going and how can I stop Google checking my location all the time?
Thanks in advance

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.
EDIT: Maybe I should have posted this in the general S4 forum?
Make sure you're running the most recent version of the Play Store, version 4.1.10. There was an issue with the previous version that was causing battery drain. Just do a search for the most recent play store .apk file and install it with the package installer.
Sent from my SCH-I545 using xda app-developers app
iwearthebelt said:
Make sure you're running the most recent version of the Play Store, version 4.1.10. There was an issue with the previous version that was causing battery drain. Just do a search for the most recent play store .apk file and install it with the package installer.
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
Yes! I saw this recommendation a million times. I was runing 4.1.6, which without much thought I assumed was newer than 4.1.10 (I interpreted the .10 to be a one instead of ten). But after your post it "clicked" for me, so I manually updated the play store and will see after the next charge whether it worked. Thanks again.
Gulanowski said:
Yes! I saw this recommendation a million times. I was runing 4.1.6, which without much thought I assumed was newer than 4.1.10 (I interpreted the .10 to be a one instead of ten). But after your post it "clicked" for me, so I manually updated the play store and will see after the next charge whether it worked. Thanks again.
Click to expand...
Click to collapse
iwearthebelt said:
Make sure you're running the most recent version of the Play Store, version 4.1.10. There was an issue with the previous version that was causing battery drain. Just do a search for the most recent play store .apk file and install it with the package installer.
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
So it looks like this did NOT work for me. Google services is still draining my battery.
Gulanowski said:
So it looks like this did NOT work for me. Google services is still draining my battery.
Click to expand...
Click to collapse
If it were me, I would next try flashing the no-wipe stock image from open1your1eyes0. I'm pretty sure that will fix your issue while leaving your apps & settings intact. It'll save you a lot of time and aggrevation as well.
I've been having a similar problem as well where every day google services seem to take up about 40% of my battery... I just updated to 4.1.10 play store and unchecked the Wifi & Mobile Network location in location setting yesterday evening. let see if this helps... today 3 hrs with no Google Services in my battery reading yet...
DA717 said:
I've been having a similar problem as well where every day google services seem to take up about 40% of my battery... I just updated to 4.1.10 play store and unchecked the Wifi & Mobile Network location in location setting yesterday evening. let see if this helps... today 3 hrs with no Google Services in my battery reading yet...
Click to expand...
Click to collapse
Well, I may have spoken too soon with my above post. As soon as I unplugged my phone earlier today I saw google services eating up the majority of my battery. But of course that only accounted for 1 or 2 minutes as I had just unplugged it. As the day progressed the amount used by google services did go up but not by as much as it previously had. So perhaps the update of google play store to 4.1.10 did work.
Currently, after being off the charger for 8hrs with about 1hr of screentime google services has used up 9% of the battery, which although not where I'd hoped is still much better than before.
Gulanowski said:
Well, I may have spoken too soon with my above post. As soon as I unplugged my phone earlier today I saw google services eating up the majority of my battery. But of course that only accounted for 1 or 2 minutes as I had just unplugged it. As the day progressed the amount used by google services did go up but not by as much as it previously had. So perhaps the update of google play store to 4.1.10 did work.
Currently, after being off the charger for 8hrs with about 1hr of screentime google services has used up 9% of the battery, which although not where I'd hoped is still much better than before.
Click to expand...
Click to collapse
well thats progress. As for myself, 1hr 27m screentime and 1 hr 40m voice call and off the charger for 10hrs 30mins. currently the battery is at 65% with no Google Services usage in sight. This is with Wifi, bt, and gps all enabled.
Go to data usage and tap on EACH program you do not need to have running background data and disable the background data. I only leave things unchecked like google play and services, email, just only a couple of things needed to get your messages. I freeze maps untill i need them and only have google location service on and gps and VZW off obviously. I only have email sync once an hour and only work email as i manually check for personal email.
Do that and your google services will behave. Android System never goes above 2% and Android OS is never above 5% unless im using wifi and such then it might creep up to about 9% after a few hours. Nothing else is ever above 9% unless its screen or device idle or cell standby.
Well, according to the stock battery report google services is still eating up my battery at 34% usage at 2h 19m. I unplugged 13h ago and used 2h 42m of screen time and am down to 28%.
BatteryStatsPlus reports google services as "Google Account Management", and although it says it has used the same time (2h 19m), it reports it as having used 6.42%. So I wonder if this is an issue of the stock battery report being too high, or whether google services really does consume 34%?
I'd really prefer to not start flashing things or wiping the phone. I hate messing with it and although I rooted it that is as far as I'd like to go. But that google play store 4.1.10 update didn't work.

[Q] What is Google Play *net_scheduler* and why is it killing my battery?

With my phone largely idle, Google Play Services is consuming 40-50% of the power and seems to be stopping the phone sleeping. The net_scheduler wakelock is the biggest culprit causing up to around 800,000 wakelocks in a day. It got to the point where I couldn't get through a day of minimal usage without recharging during the afternoon. I don't use Google+, I have turned off location services and disabled Google books, movies, games, search and google+ apps. I still have sync enabled for Google apps data, calendar, chrome, contacts, gmail and internet but I have disabled sync for drive, Fit data, people and picasa which I don't use anyway.
The problem was worse when I was using Exchange Services to sync with my work email and calendar. Turning off email sync helped a bit but Google Play Services activity still seemed to ramp up and stay high when I had a calendar appointment in Outlook, even with the sync period set to manual. So I have now removed the Exchange account completely.
I am aware that Exchange Services seems to be a common problem, something to do with the version of the Exchange server? Anyway that is not within my control. The serious battery drain started maybe 4 weeks ago and Exchange Services was responsible for most of it. Having eliminated that, its now Google Play, which also seems to be a common problem but usually NlpWakeLock? My phone is currently showing it has been kept awake 1h51m by Google Play Services since this morning, and 1h39m of that is net_scheduler (435409 wakelocks). GSam battery monitor shows almost continuous background activity even when I am not using the phone. The highest battery usage per app is by Google Play Services at 27%, the next highest is Kernel at 9%.
The battery drain seems to be worse when I am at work, where the signal is poor and I am on wifi but that has always been the case. I also use wifi at home. I turn off mobile data while at work to try and reduce battery usage. Other than changes to reduce battery drain I haven't changed anything on my phone for ages and I haven't updated or installed anything new, although I think Google Play automatically updated itself a few weeks ago.
What is net_scheduler and how do I stop it or Google Play killing my battery?
stock Samsung Galaxy S3 LTE, not rooted, on T-mobile
Android 4.3
New battery less than a year ago.
Someone please answer your... I am having the same issue and it is riculous. On one plus oxygen.
I am having the exact same problem. 28929 wakelocks for *net_scheduler*
Thank you in advance for anyone's help!
Custom Samsung Note 3 Rom 4.4.2
Me too, pls help us to solve this problem. Thanks.
its my problem too , fk my battery ! plz help ...
Same problem. Recently, battery has been draining crazy fast in standby. Wakelock detector shows this net scheduler causing 263,000 wakelocks over only 4 hours standby and lost about 25% battery doing nothing. Android 4.3 on sony xperia sp.
Using OS monitor app, Android system and google services framework are consuming 60% cpu power when phone is just idle.
Google are a bunch of idiots.
---------- Post added at 02:02 PM ---------- Previous post was at 01:38 PM ----------
To fix, find Google Services Framework and clear data and cache. Instantly fixed the problem. CPU usage by Android system and Google framework dropped to 0 and wakelocks have stopped increasing.
I highly recommend the app OS monitor, let's you put a permanent notification which shows top 3 things consuming cpu power.
Before Clearing Framework (this was non-stop, even restarting didn't help)
After
problem has returned, google, you suck.
Hi, I have the same issue like you. I disabled some services of google play services and I was thinking that that was the reason of wakelock *net_scheduler*, but it isn't, because I flashed new ROM with all services enabled but *net_scheduler* is draining my battery again. Its strange that is showing it randomly, I mean some day I don't have that wakelock and the next day I have it. Really strange.
If anyone knows more about it please answer.
Hey,
I have the same issue. Since the last GPS update wont even last a day. I found also that the GPS are responsible and in my case its also the *net_scheduler* service. It is pretty active. I already tried a few things from here: http://forum.xda-developers.com/showthread.php?t=2357417
But so far nothing helped. It drains the battery really fast, yesterday my battery went from 50% to 30% in 20 min. That sucks.
If someone found a fix please post it here
Tried uninstalling google play services update, everything fine. Then updated it via play store and within a few minutes of update noticed phone was getting hot and laggy again. Same issue, something is going on with google play services causing massive wakelocks and high cpu usage. Currently at 1.4 million net_scheduler wakelocks in past 18 hours. Had to recharge twice even though phone barely used.
For no obvious reason, since yesterday I don't appear to be having the problem with Google Play Services any more. I haven't done anything to the phone, I am in the same location, nothing has changed on my end as far as I know unless I have inadvertently done or not done something that I normally do or don't do. In any case the problem appears to have gone away, or maybe it is just dormant waiting to drain my battery when I least expect it...
Something broken on the Google servers that they have now fixed?
Yep its fixed itself, there was an update on 18th June. The version with problems was 7.5.71 now its 7.5.74
Used my phone without google play services for a day and it actually doesn't affect much. You can still use play store, chrome but most other google apps won't work. Snaptube can be used as youtube replacement. If you can live without hangouts,gmail etc I'd recommend just removing it completely, save any future headaches.
Hmmm... I still have Google Play Services 7.5.71. Strangely Google Play Store says it has no connection, even though I am on wifi and other apps can connect fine. Maybe that's why it hasn't been able to hammer my battery?
What is the relationship, if any, between GP Services and GP Store?
spencetj said:
Hmmm... I still have Google Play Services 7.5.71. Strangely Google Play Store says it has no connection, even though I am on wifi and other apps can connect fine. Maybe that's why it hasn't been able to hammer my battery?
What is the relationship, if any, between GP Services and GP Store?
Click to expand...
Click to collapse
I got the no connection on play store after clearing google framework cache. Had to reboot phone to fix it. Could be why the issue has stopped for you as I noticed it did too after clearing framework at first.
Completely uninstall google play services, it will reset to factory default. Re-enable it and launch a google app such as youtube. It will prompt you to update and bring you to google play services page on play store where latest version will be downloaded.
Google Play Services updated itself over the weekend to 7.5.74, lets hope this one fixes the battery drain for me. I never get any option to update or not, the only reason I know it updated is because I have an app that automatically backup up any app that gets installed, so I can revert to the previous version if an update causes problems. I did try reverting GPS but installation of the previous version failed.
Anyway, is there any way to stop Google services updating automatically? I can't find anything in the settings. I have Play Store set not to update automatically but that doesn't seem to make any difference. When google play services updates I don't get redirected to the Play store, it just installs the update without asking me.
Follow these hints next time.
Anyone else still having this issue? It's issuing a lot of wakelocks for me (Marshmallow/TouchWiz Note 4)
Coldblackice said:
Anyone else still having this issue? It's issuing a lot of wakelocks for me (Marshmallow/TouchWiz Note 4)
Click to expand...
Click to collapse
Yep same for me (TW MM Note 4). Amplify shows *net_scheduler* to be by far biggest wakelock, which is what brought me to this thread. Google Play Services now at at v9.4.52. Hmmm.
wakelock
it is google play services which drains battery very drasticly
arctophile said:
Yep same for me (TW MM Note 4). Amplify shows *net_scheduler* to be by far biggest wakelock, which is what brought me to this thread. Google Play Services now at at v9.4.52. Hmmm.
Click to expand...
Click to collapse
Started happening to me yesterday - battery was great until this

Galaxy S3 running CM11 - SystemUpdateService won't stay enabled?

Hi,
For some reason SystemUpdateService is absolutely destroying my battery (phone awake 98% of the time) because it's not running and Android is constantly trying to run checks against it.
The service is under both of the following apps:
Google Play Services
Google Play Services Framework
If I use the DisableService app I can kick them back into action again... but whenever I restart my phone, they're disabled again. Also, sometimes they randomly switch off again at random.
Any idea how to keep these services running please?
Many thanks

Google Services Battery Drain

Beginning last week, I started to commute into NYC on the bus for work. This is when my battery charge would plummet at a high rate. Google (Play) Services was sucking it down. I haven't had this happen before. It was also responsible for 200 MB of background data so I turned it off. That seems to have stopped the bleeding. But I would like to figure out if there is a misbehaving app.
I installed Better Battery Stats, but I can't seem to find info as to which app is using Google Services. I would appreciate any tips on how to tease this information from my phone.
It appears that I solved my problem. I am not 100% sure exactly what fixed it because I tried so many things. For Google Play Services, I downloaded the lastest APK for my phone from APK Mirror. I installed that over the current installation. I wanted to install an old version, but it wouldn't install. I was afraid to uninstall Google Play Services to see if that would have worked.
I also had Mediaserver draining my battery. I had over 1,000 images on my SD card so I reduced that number to below 300 and it worked.

Greenify and Google play services keep awake

Team - I am running the latest version of greenify posted on the playstore. I've followed guides for enabling agressive doze on android 6.0 on my moto x pure (non root) -- including adbing to the device to grant permissions on the app. It seems to be working most of the time. The device seems to go to sleep and i've seen a great increase in battery. However, seemingly randomly i'll notice battery draining fast. When i look at my usage its google play services keeping the device awake 100% of the time. If i reboot the phone, google play services stops doing that and all is well for awhile, till it repeats. I've been unable to find the cause of this. I imagine i'm missing some information that we might need to track this down. thanks in advance!
tange1 said:
Team - I am running the latest version of greenify posted on the playstore. I've followed guides for enabling agressive doze on android 6.0 on my moto x pure (non root) -- including adbing to the device to grant permissions on the app. It seems to be working most of the time. The device seems to go to sleep and i've seen a great increase in battery. However, seemingly randomly i'll notice battery draining fast. When i look at my usage its google play services keeping the device awake 100% of the time. If i reboot the phone, google play services stops doing that and all is well for awhile, till it repeats. I've been unable to find the cause of this. I imagine i'm missing some information that we might need to track this down. thanks in advance!
Click to expand...
Click to collapse
That may not have anything to do with Greenify unless you have greenified Play Services. If you have, remove it from hibernation.
Usually Play Services will go berserk upon updating itself in the background. What you can try is clear it's data and cache and reboot. If you have TWRP, do it in recovery. If not, do it in Settings>Apps.
tnsmani said:
That may not have anything to do with Greenify unless you have greenified Play Services. If you have, remove it from hibernation.
Usually Play Services will go berserk upon updating itself in the background. What you can try is clear it's data and cache and reboot. If you have TWRP, do it in recovery. If not, do it in Settings>Apps.
Click to expand...
Click to collapse
Thanks for the info. Here's what i've done:
I removed greenify, performed the actions you suggested and left greenify off for about 12 hours. No issues with google play services and keep awake. I reinstalled greenify and everything was good for a number of hours. Unfortunately the play services keep awake started again about 3.5 hours ago. The phone has a solid 'awake' bar in battery settings and play services is the culprit with 3.5 hours awake. While i dont blame greenify, there's some sort of correlation of events here that I can't explain.
tange1 said:
Thanks for the info. Here's what i've done:
I removed greenify, performed the actions you suggested and left greenify off for about 12 hours. No issues with google play services and keep awake. I reinstalled greenify and everything was good for a number of hours. Unfortunately the play services keep awake started again about 3.5 hours ago. The phone has a solid 'awake' bar in battery settings and play services is the culprit with 3.5 hours awake. While i dont blame greenify, there's some sort of correlation of events here that I can't explain.
Click to expand...
Click to collapse
Do you have Xposed? If so, install AppOpsXposed and untick the "Keep Awake" function of Play Services. Another thing you can try is uninstalling the update to the Play Services, reboot and then manually update it and again reboot.
If it is still not arrested, Google is your friend.
Unfortunately I've the same problem on my OnePlus 2 with stock ROM. I've installed Greenify two days ago, and enabled aggressive doze with amazing results! Last night I enabled Doze on the Go (using ADB) and since unplugging my phone this morning there is this constant wakelock of Google Play Services. Disabling Doze on the Go as well as reinstalling Greenify didn't help. Looking forward to a solution!
This is a known problem. Sometimes it's worse and sometimes less, but Google Play Services is a known offender in this manner. And Google processes in general. Part of the reason for this is that Google often wakes up your device, periodically, to track your location (horrible, yes, and it continued to happen for me even when all Google location options I could find, as well as GPS, were turned off).
Solutions that have reportedly worked for some people in the past (try one at a time or all of them) - they don't require root:
-Make sure you do not Greenify/freeze/hibernate Google Play Services, or similar processes, as this may make the issue worse.
-Clear cache and data of Google Play Services.
-Manually update Google Play Services to latest APK version available from your device, downloaded from the web. Make sure you select the right version for you. http://www.apkmirror.com/apk/google-inc/google-play-services
-Try turning off as many Google background features as you can, such as location tracking/history, etc.
I guess some of these steps may only work after the next reboot, so reboot the device when you're done.
But as I said, this process is a known big offender. The above may not work, or may work temporarily. The stronger and more permanent solutions require root (you don't really need to try the above options if you do these). The more of them you do, the less 'keep awake' you should experience:
-Install Xposed Installer app and install Xposed Framework, so you can use the modules mentioned below...
-Use AppOpsXposed module (or CM Privacy Guard if you have it) to deny keep awake permission to Google Play Services, and other Google background apps.
-This is a big one: Install Amplify (Xposed module) from the Play Store, and it will automatically take care of limiting Google wakelocks. That's it. If you pay for the pro version, then you can additionally tweak and limit all wakelocks, alarms and services on your device (pretty cool and useful, but more involved, so for advanced users).
Cultar said:
..............
-This is a big one: Install Amplify (Xposed module) from the Play Store, and it will automatically take care of limiting Google wakelocks. That's it. If you pay for the pro version, then you can additionally tweak and limit all wakelocks, alarms and services on your device (pretty cool and useful, but more involved, so for advanced users).
Click to expand...
Click to collapse
The unpaid version of Amplify will block a maximum of a couple of wakelocks related to location. Only the pro version is capable of blocking other wakelocks and alarms including those of Play Services. But as you said, it is not automatic and you will have to set it up.
Any updates on this?
Google play services is awful
MSK1 said:
Any updates on this?
Google play services is awful
Click to expand...
Click to collapse
Not a Greenify issue. Some devices/ROMs/configs seem more susceptible to GPS runaway. Clearing GPS cache+data on occasion followed by an immediate reboot has proven helpful for some. Good luck.

Categories

Resources