[Q] Google Services wakelock kills battery - HTC Desire C

Google Services is killing my battery with its incessant wakelocks! How do I get rid of this?
I flashed my phone a few days ago... from ICS to JB 4.1.2.... I also loaded NOPE kernel and overclocked to 850 MHz. I thought it was the overclocking that was killing my battery but it looks like it's some of the google services.... they keep cpu wakelocking the phone while it should be sleeping. I mean come on, 6444 wakes in 15hrs?
I see that it's a common issue but there doesn't seem to be an easy fix. Can anyone walk me through what they did to solve? attached are my battery/wakelock stats for reference

You can always greenify it (play store -> greenify). Mind it does restart quite often, so it is a real pain, but most of the google apps depend on it. You could also go to google settings on the phone, and in the location section disable location reporting and location history. This is the main battery killer in google services.
P.S. What's the rom you're using on the pictures?

I read that turning off both GPS and network location services will help fix this.... but then all my apps become dumb. I'm looking at the Google Services screen in Wakelock Detector (image first post) and I can see the wake count for different functions or programs. e.g. NetworkLocationLocator woke 206 times, but GTALK_CONN woke 1668. Is there any way to disable certain aspects of the Google Services app or is it an all or none scenario?
P.S. What's the rom you're using on the pictures?
Click to expand...
Click to collapse
It's Speed Droid by addictz10 with the Samsung S5 skin (it's called CM11 CM10.2 TouchWiz 5.0 theme in the Store). The first green pic is using Wakelock Detector and the other 2 are the OS Battery screen.

Well, as for gps, you can turn it off, because it is rarely needed for your phone to have that precise information on your whereabouts. As for network location service, don't turn it off, just turn location reporting and location history in google settings (not phone settings). As for gtalk, well, you'll have to uninstall hangouts and to disable/remove google talk to stop that behavior. I don't think that there is a way of stopping certain wakelocks, and I agree that it would be great if it could be done...

Related

[Possible solution] Google maps wakelock

I have been in trouble for a past month. Google maps was holding partial wakelocks on sleep with all settings sync check boxes cleared in Google maps app. But it didn`t help. Settings->Battery always had google maps in here for lower or higher percentage. A day ago I started using better battery stats and noticed networklocationpassivecollector holding wakelock. So i dig into Settings->Locaion access-> Access to my location switch is on. If i switch it to off and then again back to ok dialog "Locations consent" appears when I pressed disagree the problems went away. Dialog message: Allow Google`s location service to collect anonymous location data. Some data may be stored on your device. Collection may occur even when no apps are runing.
Can somebody with google maps wakelock problem confirm this?
Open maps and then location settings in that and disable the report from this device option.
Sent from my Nexus 4 using Tapatalk 2
If you disagree in that dialog, then your location discovery will be less accurate, because one of the 2 checkboxes on that screen will not be set.
This appears to be a location settings bug. This also happened to me but with the Facebook app.
vukis said:
Can somebody with google maps wakelock problem confirm this?
Click to expand...
Click to collapse
I had Google Maps related wakelocks as well. They went away when I turned off everything that had to do with
Location reporting form Google Maps, Account Settings and GPS Settings. I'm not sure which "feature" was
causing it but there is indeed a problem.
Can anybody with this wakelock problem install Greenify app from play store. I had this problem but as soon as I hibernated maps they no longer cause wakelock and GPS and all the location settings are on. Maybe it will help same as me without a need to switch anything off.
Sent from my Nexus 4 using xda app-developers app
Hi
vukis said:
I have been in trouble for a past month. Google maps was holding partial wakelocks on sleep with all settings sync check boxes cleared in Google maps app. But it didn`t help. Settings->Battery always had google maps in here for lower or higher percentage. A day ago I started using better battery stats and noticed networklocationpassivecollector holding wakelock. So i dig into Settings->Locaion access-> Access to my location switch is on. If i switch it to off and then again back to ok dialog "Locations consent" appears when I pressed disagree the problems went away. Dialog message: Allow Google`s location service to collect anonymous location data. Some data may be stored on your device. Collection may occur even when no apps are runing.
Can somebody with google maps wakelock problem confirm this?
Click to expand...
Click to collapse
Google uses Android phones to keep its Wi-Fi database up to date, saves driving around in a car and getting into trouble for collecting data This is why they state it may use some data even if you aren't using Maps or location services.
Disabling reporting of locations from Maps doesn't change the wake locks, as it isn't the reporting causing most of them.
So Google will use your device to scan for Wi-Fi points, plus enable your GPS if it can to get a location fix to update it's location database of Wi-Fi points. To further confuse things Google seems to have some adaptive way of using devices, perhaps after a time they give individual phones a rest from reporting, or they use more of your phone the more you use more of the service, sort of our cost for getting free location services. This means different people see different battery usage from Google Maps, and the same person will see loads one day then it suddenly stops another.
The best way of stopping it is if you have root access download an application that lets you disable apps, and then disable Google Maps, only turning it on when you need it.
Regards
Phil
PhilipL said:
Hi
Google uses Android phones to keep its Wi-Fi database up to date, saves driving around in a car and getting into trouble for collecting data This is why they state it may use some data even if you aren't using Maps or location services.
Disabling reporting of locations from Maps doesn't change the wake locks, as it isn't the reporting causing most of them.
So Google will use your device to scan for Wi-Fi points, plus enable your GPS if it can to get a location fix to update it's location database of Wi-Fi points. To further confuse things Google seems to have some adaptive way of using devices, perhaps after a time they give individual phones a rest from reporting, or they use more of your phone the more you use more of the service, sort of our cost for getting free location services. This means different people see different battery usage from Google Maps, and the same person will see loads one day then it suddenly stops another.
The best way of stopping it is if you have root access download an application that lets you disable apps, and then disable Google Maps, only turning it on when you need it.
Regards
Phil
Click to expand...
Click to collapse
Interesting. Is this an assumption or the fact? If former, could you link up the source please?
What about this app ? https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts
Envoyé depuis mon Nexus 4 avec Tapatalk
Follow the link in Q2 in this post: http://forum.xda-developers.com/showpost.php?p=15869904&postcount=3
Hey guys. Thanks for great advises I will try auto starts (or greenify), because after disagreeing to Google passive collector Google Now stopped working. But maps wake locks are still away
And yes Google do collects Wi-Fi routers information. I noticed that when I bring my router to other place all connected laptops web based Google maps showed that our current location is my home

Location reporting in Google services for 4.4 KK Sense roms

Recently I found the NLP wakelocks have used up much of the battery and can't a way to switch of Google location reporting. Any thoughts? I don't want to switch off all location services as I may need them for Maps or so...
I experienced exactly the same problems leading to a ton of wakeups from Google service. The only solution for me until now was to switch off all locations even though the weather and everything doesn't work properly anymore..

Massive battery drain by google service with fresh install of CM11 nightly

After a fresh install, i experienced massive battery drain (50%+ over night).
the culprit was google service, easily identified in the battery overview.
It prevents the phone from going to sleep mode.
i searched for the problem and found
http://forum.cyanogenmod.org/topic/...ce-wakelock-on-cm11-m7-massive-battery-drain/
"it's a new ota update service that was added in a recent Google Play Services update."
Solution:
http://forum.xda-developers.com/showpost.php?p=53739230&postcount=5031
quote:
Finally I was able to block the SystemUpdateService wakelock, using this app:
https://play.google.com/store/apps/details?id=com.rs.autorun (Autorun Manager)
go to settings, enable the option to show system entries
(refresh services)
find google play services and disable:
SystemUpdateService$Receiver
SystemUpdateService$ActiveReceiver
SystemUpdateService$SecretCodeReceiver
done... no more wakelock and it didn't break anything, syncs all work ok
I know this app doesn't look the best, but I tried others like "Android Tuner Free", "Disable Services", "Gemini App Manager", etc, but they allowed me to only disable the main service and didn't show the other receivers that had to be disabled.
Click to expand...
Click to collapse
One thing to add: If you clicked too much in Autorun Manager, it stops working and says "only changing of 10 entries allowed in the free version".
I wont give tipps to bypass this behaviour, so first think, then click.
the app can reset your services status from the menu, if you misclicked.
well, im not sure if this worked out well..
after 6 hrs, still google service takes a huge chunk of my battery. will report tomorrow.
installed latest nightly over this one, flashed google apps zip again, did not wipe anything, did not deactivate any google apps nor services, problem gone.

Something keeping my device awake

I am not having any battery life issues, but I know I can get better usage out of the phone if I could figure out what is causing battery drain.
Here is my usage so far, WiFi has been off 90% of the time, but notice how it shows WiFi as on the whole time:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I installed the "wake lock detector" app, and here are the results:
Wakelock triggers:
CPU wakelock:
I tried finding those exact processes in "Disable Service" app, but they do not exist. Also I do not understand why WiFi shows as always on when it is off.
I am on the Pure Shamu 5.0.1 ROM, default kernal.
Any help would be appreciated.
Regarding WiFi always on; there's an option in the WiFi settings under Advanced that allows the phone to continuously scan for WiFi networks even when WiFi is toggled off. This is on by default.
I imagine this is why the devices report WiFi on even if you've turned it off.
TheAmazingDave said:
Regarding WiFi always on; there's an option in the WiFi settings under Advanced that allows the phone to continuously scan for WiFi networks even when WiFi is toggled off. This is on by default.
I imagine this is why the devices report WiFi on even if you've turned it off.
Click to expand...
Click to collapse
You are correct, this fixed the WiFi issue. Now I just need to figure out how why my N6 is staying awake for so much time.
vikramjatt11 said:
You are correct, this fixed the WiFi issue. Now I just need to figure out how why my N6 is staying awake for so much time.
Click to expand...
Click to collapse
I bet its the same thing a few of us have ... its been discussed a fair bit here : http://forum.xda-developers.com/nexus-6/general/n6-battery-life-owners-thread-t2946742/page62
Basically it seems its a process called " sensor.ind" once it starts up , it just doesn't shut off and keeps the device awake all the time. haven't found a fix.
Also it didn't show up in wakelock detector, but it does in betterbatterystats under " kernel"
vikramjatt11 said:
I am not having any battery life issues, but I know I can get better usage out of the phone if I could figure out what is causing battery drain.
Here is my usage so far, WiFi has been off 90% of the time, but notice how it shows WiFi as on the whole time:
View attachment 3056375
View attachment 3056376
I installed the "wake lock detector" app, and here are the results:
Wakelock triggers: View attachment 3056377
CPU wakelock: View attachment 3056379
I tried finding those exact processes in "Disable Service" app, but they do not exist. Also I do not understand why WiFi shows as always on when it is off.
I am on the Pure Shamu 5.0.1 ROM, default kernal.
Any help would be appreciated.
Click to expand...
Click to collapse
Regarding your Wakelocks... You have some of the top offenders on your phone. Facebook, Search and the rest of the Google Apps like Hangouts and Google Plus. Then judging by your Greenify Wakelocks it looks like your phone is hibernating certain apps only to have them woken up fairly quickly.
Now it's easier to tell if you truly have an issue by using Better Battery Stats and leaving your phone unplugged and idle over night and then grabbing a Dump File first thing in the morning.
Those stats you posted do let you know what has been running, but it is during moderate to heavy use.
Some suggestions...
Allow for Greenifying of System apps under experimental features and Greenify everything. Get rid of the Facebook app and use the site. Turn off Sync and Notifications for only the essential apps and manually sync. If you're a moderate to heavy user anyways you won't be missing out too much and manual sync works well.
Personally I ditch most Google apps and Greenify the ones I do use. I also use Nova Launcher and don't use Google Now and Search or OK Google. However I still think if you tamed your apps you should be in good shape and be able to use the Google apps you enjoy.
Download App Ops from the Play Store and deny permission to Google Play Services for "Keep Awake"
Its a huge battery drain. And no there are no side effects by denying permission. Been doing that ever since Google Play Services have been draining battery.
You also use Facebook + Messenger which are known contributors to poor battery life especially messenger. I don't know if you have "Ok Google" on all the time or google now but disable that, google search is using way too much battery.
zephiK said:
Download App Ops from the Play Store and deny permission to Google Play Services for "Keep Awake"
Its a huge battery drain. And no there are no side effects by denying permission. Been doing that ever since Google Play Services have been draining battery.
You also use Facebook + Messenger which are known contributors to poor battery life especially messenger. I don't know if you have "Ok Google" on all the time or google now but disable that, google search is using way too much battery.
Click to expand...
Click to collapse
Wouldn't denying Keep Awake for google play services disable things like location services & app authentication with google when the phone is otherwise idle? Some people may want those things
Mistertac said:
Regarding your Wakelocks... You have some of the top offenders on your phone. Facebook, Search and the rest of the Google Apps like Hangouts and Google Plus. Then judging by your Greenify Wakelocks it looks like your phone is hibernating certain apps only to have them woken up fairly quickly.
Now it's easier to tell if you truly have an issue by using Better Battery Stats and leaving your phone unplugged and idle over night and then grabbing a Dump File first thing in the morning.
Those stats you posted do let you know what has been running, but it is during moderate to heavy use.
Some suggestions...
Allow for Greenifying of System apps under experimental features and Greenify everything. Get rid of the Facebook app and use the site. Turn off Sync and Notifications for only the essential apps and manually sync. If you're a moderate to heavy user anyways you won't be missing out too much and manual sync works well.
Personally I ditch most Google apps and Greenify the ones I do use. I also use Nova Launcher and don't use Google Now and Search or OK Google. However I still think if you tamed your apps you should be in good shape and be able to use the Google apps you enjoy.
Click to expand...
Click to collapse
Thanks for your input.
Got better battery stats, will be testing this out tonight before I Greenify any system apps or switch back to Nova. I personally like the google now launcher a lot because of the ability to just swipe right to access google now. Its not as smooth in Nova with a gesture, or as swipe up the home button.
As far as sync, I couldn't find any way to turn off sync for each app like in KitKat. Now there is only an option to turn off sync for all apps (under Settings > Accounts).
zephiK said:
Download App Ops from the Play Store and deny permission to Google Play Services for "Keep Awake"
Its a huge battery drain. And no there are no side effects by denying permission. Been doing that ever since Google Play Services have been draining battery.
You also use Facebook + Messenger which are known contributors to poor battery life especially messenger. I don't know if you have "Ok Google" on all the time or google now but disable that, google search is using way too much battery.
Click to expand...
Click to collapse
I'm going to check better battery stats tonight, and then change things up tomm accordingly. I'll probably end up uninstalling Facebook + messenger. If there is still battery drain my google search (which I'm sure will still be there), I will use app ops to deny those permissions and report back on my findings.
And I do not have OK google on all the time, but I do use Google now. Yes, I know google search is using too much battery, that's is what I was hoping to tackle.
aewig said:
Wouldn't denying Keep Awake for google play services disable things like location services & app authentication with google when the phone is otherwise idle? Some people may want those things
Click to expand...
Click to collapse
No it doesn't disable that feature. I've done this for over 4 months since I've had the oneplus one which suffered from this same problem.
Battery is much better with the permission denied as it consumes a large amount of battery and wakelock.
Read more http://forum.xda-developers.com/oneplus-one/general/guide-google-play-services-battery-t2832525
Sent from my Nexus 6 using Tapatalk
vikramjatt11 said:
Thanks for your input.
Got better battery stats, will be testing this out tonight before I Greenify any system apps or switch back to Nova. I personally like the google now launcher a lot because of the ability to just swipe right to access google now. Its not as smooth in Nova with a gesture, or as swipe up the home button.
As far as sync, I couldn't find any way to turn off sync for each app like in KitKat. Now there is only an option to turn off sync for all apps (under Settings > Accounts).
I'm going to check better battery stats tonight, and then change things up tomm accordingly. I'll probably end up uninstalling Facebook + messenger. If there is still battery drain my google search (which I'm sure will still be there), I will use app ops to deny those permissions and report back on my findings.
And I do not have OK google on all the time, but I do use Google now. Yes, I know google search is using too much battery, that's is what I was hoping to tackle.
Click to expand...
Click to collapse
Go to your Accounts, Click on Google, then click on your email address and you'll see all the apps and their sync options.
Based on the suggestions I received, I've done some things over the past few days to see what changes.
What I did:
Uninstalled: Facebook, Messenger (Facebook), Google (search).
Disabled: OK google detection, Google Now.
Installed: Better Battery Stats, Greenify (pro), Wakelock Detector.
Turned off auto sync for most google apps.
Greenified all apps possible plus system apps (with pro version).
My initial screenshots are in the original thread, I was seeing much less "device awake" time after uninstalling the few apps. Here are my results after a full days use:
The device awake time is still at 65%, even after uninstalling the apps listed above. Upon taking these screenshots, I fully charged my N6 to 100%, then took it off charge, restarted it, and left it overnight for 7-ish hours. The drain over this period was a small 3%, which was great, didn't have to recharge when I woke up. Screen shots below.
Upon seeing dicks sporting goods causing lots of wakelocks, I uninstalled the app today. I had right around 4 hours SOT. I was at work for 8 hours, which is at the first floor of a airport garage, and there is barely any signal, so i believe I could have gotten better results had it been a college (nonwork) day. Here are the screenshots from right now, at 13% battery.
Couldn't post any more screenshots in previous post, so here they are:
You should be looking at CPU wakelocks and not wakeup triggers. Wakeup triggers just shows what processes were scheduled to automatically wake up to do certain tasks. CPU wakelocks shows which apps actually kept the phone awake.
You can also turn on the kernel wakelocks in the settings menu to see what system processes are keeping the phone awake.

Drain impossible to fix

Hello,
After many weeks trying to solve Google Play Services, I still have this boring issue.
I'm using Slimm Rom 3.8 with Locked Bootloader
- GPS, Wifi and NFC always off
- Stamina always on
- Brightness under 25%
I don't use much the phone (No facebook, less than 30min on internet, no Youtube, no Music)
I tried :
- to disable SystemUpdateService from Google Play Services and Google Framework with the App "Disable Servces"
- Uninstall updates of Google Play Services and reinstall in both way (Play Store / with APK)
- Using Amplify, AppOpsXposed, Greenify, PowerNap (from this link : https://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884) and Force Doze
- Disable all Xposed modules (for now I'm using Android N-ify, BootManager, Greenify, Hide Emergency Button & Marshmallow SD Fix)
- Factory reset / flash KitKat .ftf file / Root again / Flash Slimm Rom
I also tried with other Rom like eXistenZ Marshmallow v5.6.5 and AOXP 1.5.7 ROM but I till have the issue.
I took some screenshots so maybe it can help you find what is causing drain.
Thank you in advance for your help
i use slimm and sometimes the battery percentage is going for example from 65% to 59% ,etc, and not only; i had xperience rom from marillia, cm12, existenz, and some - resulty is same. Next time my friend, dont buy SONY!!! ) that i said to myself. Anyway, what i saw from ur picture, google play services drain a lot of battery; also ur signal is very poor.
Try to set ur network to gsm only (not lte./edge) for normal use, and see that guide...maybe will help u. Also that
I've been fighting with Google Play Service for months because of the battery drain problem. In the end (tired of changing rom ecc..) I founded the solution on the last Xperia Concept Rom without root. Now the drain is totally gone, and I get 2 days battery life with ~5/6h screen time (using greenify only for aggressive doze, and having FB, Messenger, WA, telegram, gmail ecc..). Before, on others rom I couldn't get more than 4h screen time lately, so I'm super happy
op3n said:
i use slimm and sometimes the battery percentage is going for example from 65% to 59% ,etc, and not only; i had xperience rom from marillia, cm12, existenz, and some - resulty is same. Next time my friend, dont buy SONY!!! ) that i said to myself. Anyway, what i saw from ur picture, google play services drain a lot of battery; also ur signal is very poor.
Try to set ur network to gsm only (not lte./edge) for normal use, and see that guide...maybe will help u. Also that
Click to expand...
Click to collapse
Thank you for all your information but sadly I already tried all of that without success =/
I think that my next phone will not be Sony, even if I like them the camera isn't as good as they annonce.
Matteo Mazzu said:
I've been fighting with Google Play Service for months because of the battery drain problem. In the end (tired of changing rom ecc..) I founded the solution on the last Xperia Concept Rom without root. Now the drain is totally gone, and I get 2 days battery life with ~5/6h screen time (using greenify only for aggressive doze, and having FB, Messenger, WA, telegram, gmail ecc..). Before, on others rom I couldn't get more than 4h screen time lately, so I'm super happy
Click to expand...
Click to collapse
I was thinking about installing stock rom without root but I really don't like all the pre-installed apps. It is a big dilema in my head ^^
slutman said:
I was thinking about installing stock rom without root but I really don't like all the pre-installed apps. It is a big dilema in my head ^^
Click to expand...
Click to collapse
I know the feeling! But consider that on concept you don't have any, and the few Google apps I don't use are disabled. The only real thing I missed was double tap lock screen off, but I managed with Power Toggle :good:
https://forum.xda-developers.com/z3-compact/development/rom-slimm-t3359831/post69260867#post69260867
Didgesteve said:
I have posted several times in this thread ways to fix the Google battery drain. It's now such a long thread that some people may have missed my previous posts, so to summarise : (this is not guaranteed to fix your phone, I am just trying to help)
Method 1
Factory reset, restart to recovery, flash full Slim rom(nothing else) . Restart. Log in to Google from scratch, leave the phone for some time before installing any mods. Let Google phone home and set the phone up before installing Xposed, amplify, firewall etc etc.
Restore apps with Titanium Backup, but just apps+data, NO system apps, NO Google apps. I realise a full factory reset is beyond most users compression, but this is really the best way and will fix 90% of the problems I see posted on the thread.
Method 2
The lazy 'I don't believe I need to do a factory reset' method
Disable all Xposed modules, go into airplane mode, no wifi.
Reboot phone.
Delete your Google account.
Use Titanium Backup to delete the data on the following apps:
Google account manager
Google backup transport
Google play services
Google play store
Gmail
Google calendar sync
Google contacts sync
Google bookmarks sync
Google services framework
Download manager
(it will get more & more difficult to do this as once you remove the Google account, Google. gms, keeps FCing)
Reboot to recovery, wipe cache & dalvik, reboot phone.
Enable network.
Add Google account, leave it with 'synchronise accounts' for some time, let Google do its thing before enabling Xposed or any other system mods(important)
Enabling a firewall or excessive privacy control (like trying to mask your IMEI or account) will just piss GPS off and it will try even harder to phone home, causing huge battery drain. The more you try and block the various Google services the more they try get out.
I don't believe that the battery drain is connected to this rom specifically. I know the Dev has made some tweaks to try and help, but if you take the time to read the Google forums, this problem effects most makes of phone and all firmware versions.
Edit: You should always do a recovery backup before making any changes to your phone, I am not responsible blah blah blah
Click to expand...
Click to collapse

Categories

Resources