Better Battery Stats - what's causing "NetworkStats" & related Partial Wakelocks? - AT&T, Rogers HTC One X, Telstra One XL

Better Battery Stats - what's causing "NetworkStats" & related Partial Wakelocks?
I think I've isolated my battery drain down to a few things through BetterBatteryStats and GSam Battery Monitor:
1. "NetworkStats" as the longest Partial Wakelock and "RILJ" and "AlarmManager" as the highest count Partial Wakelocks in Better Battery Stats.
2. In GSam battery monitor "Android System" is almost always #1 for number of times waking devices, and usually followed in #2/3 by "Google Maps" and "Google+". Google+ sync'ing is turned off, but the "Sync Instant Upload" is turned on. I can't for the life of me figure out why Google Maps is always high on this list, even when I don't open the app all day.
Does anyone have any tips for how I can figure out what is triggering these NetworkStats/RILJ/AlarmManager/Android System/Google Maps wakelocks?
I'm thinking they are all related to each other through something like Calendar, or some other Android service gone awry. I don't know of any other way beyond Better Battery Stats and GSam to isolate the drain down to something more specific and measurable. Any thoughts or tips are appreciated.

Just wondering, is Google location services, gps satellites, location and Google search turned on?

erwaso said:
Just wondering, is Google location services, gps satellites, location and Google search turned on?
Click to expand...
Click to collapse
I did not turn off Google Location Services.. what apps/services fall under that?
I also did not turn off Location and Google search, but that shouldn't be causing wake locks when I'm not using my phone, right?
GPS Satellites were turned off.

I have the same issue on my nexus. I have all three option disabled but get google keeps have the network location service running in the background. I even cleared maps cache and force stop. it really annoying

r29 said:
I have the same issue on my nexus. I have all three option disabled but get google keeps have the network location service running in the background. I even cleared maps cache and force stop. it really annoying
Click to expand...
Click to collapse
Sorry to hear - but glad to hear I'm not the only one that has noticed this. Are you running stock, custom rom, or what? One suspect is the HTC weather widget, I have that on my home screen but it's set to sync only once every 4 hours.
There must be some way to delve into what is triggering "NetworkStats".

So some of the things I've done so far that have helped:
Uninstalled the applications on{x} and Pageonce. Both were regularly showing large amounts of wake locks.
Disable Google+ sync'ing in BOTH Settings->Accounts AND within the Google+ application. Within Google+ there are separate Notification, Messenger, and Hangout sync settings. I'm not positive that disabling from within the app is necessary but I was still getting wake locks from Google+ after disabling it within Settings->Accounts. I'll know soon enough if that helps.
Disable redditnews from checking for new mail. I had accidentally set this to check for new reddit mail every 15 minutes!
Disable GPS satellites, Google Location Services, and Location and Google search from within the Settings->Location menu. I did this to see if it would eliminate the Google Maps wake locks that I can't seem to get rid of or pinpoint the cause of. It's only been a day but it seems the Google Maps wake locks have been cut down, but not completely. It's driving me crazy not knowing what is triggering Google Maps to wake lock my phone. The hunt continues...

I am on a custom rom LiquidSmooth 4.0.4 base.. I have tried removing anything that deals with maps but that stupid service still starts

Related

Just hours of "EntriesRefresh_wakelock". Anyone else?

Is anyone seeing this copious amounts of this wakelock too? It's part of the Google Search app and its wakelock has now been active for close to 5 hours now just today and seems to be active for most of the day. This is reported by Better Battery Stats and is seems to be confirmed by high energy usage by the built-in batttery settings app, as Google Search hovers in the mid 20s percentage.
floepie said:
Is anyone seeing this copious amounts of this wakelock too? It's part of the Google Search app and its wakelock has now been active for close to 5 hours now just today and seems to be active for most of the day. This is reported by Better Battery Stats and is seems to be confirmed by high energy usage by the built-in batttery settings app, as Google Search hovers in the mid 20s percentage.
Click to expand...
Click to collapse
I got this wakelock overnight after completely disabling location services. My N5 was held awake literally the whole night by this wakelock. This morning I turned back on location reporting and the phone is deep sleeping once again. Very strange. Did you have location service disabled because that seems to be what is causing the wakelock?
I would like to find a solution to this so I can keep location services disabled without completely disabling Google Now for overnight when I can't access a charger.
GoldElocks said:
I got this wakelock overnight after completely disabling location services. My N5 was held awake literally the whole night by this wakelock. This morning I turned back on location reporting and the phone is deep sleeping once again. Very strange. Did you have location service disabled because that seems to be what is causing the wakelock?
I would like to find a solution to this so I can keep location services disabled without completely disabling Google Now for overnight when I can't access a charger.
Click to expand...
Click to collapse
Yeah, I have my location services set to "device only", which I guess is the equivalent to the former GPS only. It could be that the GPS is turning itself off and on continually while it's supposed to be sleeping, and the fact that I'm mainly indoors could explain the hours long wakelock.
I set it to GPS only on the Nexus 5, because that was the most battery friendly on the Nexus 4, but the way services now work, it could be the least battery friendly setting.
this is completely confirmed! my note3 wasnt sleeping at all with the new google search 20hrs of no deep sleep with location off and i turned location on and its been sleeping like a dream for the past hour.. Very weird though
Same issue here with my HTC One. I noticed my battery was tanking at about twice the normal rate today, so I just opened up Wake Lock Detector and saw that on about 5.5 hours of use, Google Search had it awake for 4.5 of them. I've just turned on location services to see if that fixes it.
But, I'm with you. I'd rather find a fix that lets me keep location disabled.
Me too. I have a Galaxy4 S4 with 4.3 stock Samsung ROM. WLD shows huge count of EntriesRefresh_wakelock with almost three hours from 12 por off charge.
Confirmed on the lg g2 on 4.3. I disabled Wi-Fi and mobile network location because of the horrible nlp partial wakelocks only to encounter the entriesRefresh wakelock leech. Keeps awake like 90 of the time. I'm going to go back to enable Wi-Fi and mobile location until this is cleared up.
I am unable to even use Google now.. if I enable Location Report it's burning up and running about 20%.. if I disable Location Reporting it's running 50%.. I like Google Now and don't have any use for the location stuff...
Anyone have any updates? My only other option is going to just be to wipe it and keep Google Now unused so it doesn't run at all..
You can try to greenify Google search which contains this wakelock if you have the paid version of greenify (hibernates system apps). They say it's inadvisable to hibernate system apps, but you can override it. I would do a full backup and try it. They refund your money in 3 days instead of 15 minutes if your not happy. I haven't had a chance to try it yet.
Sent from my LG-D801 using xda app-developers app
Oddly enough I never had this issue on my nexus 5, but my Nexus 7 is absolutely plagued with just hours and hours of this wake lock as soon as I turn location reporting off.
Same issue here, my N7 is going nuts with this.
the7thson said:
Same issue here, my N7 is going nuts with this.
Click to expand...
Click to collapse
This has happened on my N5 before. Force stopping it once I noticed and also rebooting seem to fix it.
I had this wakelock for 2 nights in a row, completely draining the battery BUT
I have location services enabled and GPS is on (I play Ingress all the time and the network loaction gives me a faster lock)
I too noticed this was my top partial wakelock yesterday even though I have location services on. First time I've seen that happen. But it wasn't as aggressive as it was when location services were off.
Sent from my LG-D801 using xda app-developers app
Noticed this keeping my Nexus 5 awake 51%, location services were disabled. My Nexus 7 and Moto X also have them disabled and they were only awake 1%. Google Search is showing 60% of the battery but my device has been mostly idle for 4 days now. I'll see if enabling the services helps otherwise I'm not sure what else to attempt.
ohmimpotence said:
Noticed this keeping my Nexus 5 awake 51%, location services were disabled. My Nexus 7 and Moto X also have them disabled and they were only awake 1%. Google Search is showing 60% of the battery but my device has been mostly idle for 4 days now. I'll see if enabling the services helps otherwise I'm not sure what else to attempt.
Click to expand...
Click to collapse
I got this wakelock this morning.... "entriesrefresh_wakelock"
my location reporting is off
I love my N5 but god......I'm experiencing battery drain frequently (when I'm not on WIFI) with different wakelocks...
Otherwise the battery life is very good, if google can fix it once for all
I had this problem on my Nexus 5 too. I "fixed" it by uninstalling updates for the Google Search app (you can get there by going Settings>Apps and tapping Google Search). However Google will re-update the app frequently so you will have to repeat the process. Here's hoping another update fixes this problem.
Either disabling Location reporting or Locations all together can get rid of this I believe. Tasker can automatically re-enable it when you leave your wifi zone.

[Q] Help with Tasker

Hey everyone, first I'm not really sure if this belongs in a Tasker forums. Seeing as I use a N5, I figured it could also go here. Anyway, I've been having some problems with Npl wakelocks. I downloaded wakelock terminator with xposed and it seemed to have helped, however something didn't seem right as my battery was draining the same amount as when the wakelocks were happening. The only time I wasn't having the drain was when location was set to device only, which makes sense.
I'm completely new to tasker. I've watched a few tutorials and I've messed around with it a bit but with not much luck. I wanted to do one of two things. Either have location set to battery saver/high accuracy when the screen is on, and have it set to device only when the screen is off. Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time. I feel like this shouldn't be that hard but I messed around with it and got no where. Anyway, what are your guys' opinion about this strategy and would anyone be able to help me with implementing these tasks. Thanks!
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Lokke9191 said:
I wouldn't go the route of using tasker for your problem. And I would ditch that xposed module for wakelocks too. I run rooted with xposed on high accuracy at all times. My battery life is great. You need to find the source of your battery drain and eliminate it. Don't look for a bandaid fix using tasker. My guess is you have some rogue app killing your battery. Give us a list of all your apps, or delete them all, and install them one by one to track down the culprit. Also, are you running stock Rom and kernel? What other mods do you have?
Click to expand...
Click to collapse
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
PsychDrummer said:
Another option is to have it set to battery saver/high accuracy when google now/maps is open and device only the rest of the time.
Click to expand...
Click to collapse
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
PsychDrummer said:
I can run the phone as normal today with location and everything on and post my BBS log after. Basically, when I'm at home the battery is great. However, ever since updating to the new google search app I've been having extreme wakelocks from the Npl whenever I would leave my house. Which is why I found a thread on xda that was talking about that exact wakelock. You're right though. I'm going to get rid of the app because it seemed weird. The wakelocks weren't showing up on BBS but I feel like it didn't get rid of them. Who knows though, maybe you're right and it is something else that's draining the battery which is why the wakelock app didn't help.
Anyway, I'm running stock ROM/kernel with xposed. I use greenify module, appOpsX, snapshare, gravity box, and gesture navigation module. With gravity box I just use custom quick settings, smaller nav bars, some status bar mods like the day and double tap to sleep. However, again I have had the same GB mods since before the drain. I use a pebble however I've never had a drain from that and I've been using it since Dec. Most of my apps are greenified including facebook, instagram, as well as all my music streaming apps. A lot of the google services I don't use are disabled like books/magazines/movies. I have snapchat, but I don't use it too much, and facebook messenger that I don't greenify. When I check GSam stats though, android system and kernel take the most battery, followed by music players if I was streaming music that day. The rest of the apps are way down the list.
I posted in the battery thread asking if anyone had the same problem with the wakelocks after having the latest google play services. I noticed mine is still 4.3 for some reason so I might just update manually from androidpolice and see if theres a difference. But yeah, I will keep this updated with todays logs.
Click to expand...
Click to collapse
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Lokke9191 said:
Try this. Use titanium backup to uninstall Google play services and Google search. Then launch maps, and reinstall both from the play store.
Click to expand...
Click to collapse
What would that do though?
jj14 said:
This is what I ended up doing. You will need the secure settings plugin for tasker.
Set up a new profile for application "Maps".
When on, launch task GPS On (Secure settings, configuration GPS enabled)
Exit task, launch task GPS On (Secure settings, configuration GPS disabled)
I used the app factory to create an app for this, and use that on my N5 and my second phone too. Works great. Enables GPS when I launch Maps for navigation, and switches to battery saving when I exit Maps
Click to expand...
Click to collapse
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Aerowinder said:
Just run device only all the time, like everyone else does. It's a problem with Google's code, and the same bad coding is clearly seen throughout their entire app lineup.
Click to expand...
Click to collapse
Well, I actually like to use maps and google now. However, I don't actually need the location on when I'm not using either of the two services which is why I wanted to setup tasker.
It'll change them from being system apps to user apps. This has solved nlp wakelocks for many others experiencing the same problems.
PsychDrummer said:
Thanks! So, how would I set this up using device only/high accuracy? I'm also super new to tasker so if you don't mind I might PM you asking for help.
Click to expand...
Click to collapse
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
jj14 said:
Sure.
It isn't that hard - install the secure settings plug in first, and when prompted, give it Superuser access. Then, create a new profile in tasker - call it whatever you want. Set up the profile for the application "Maps"
When Maps is launched, set it up to fire a new task (I called it GPS On) - this task just enables the GPS setting in the secure settings (under third party plugins)
GPS on -> high accuracy
GPS off -> battery saving mode
Set up an exit task (I called it GPS Off) - this turns the GPS settings in the secure settings off.
I can send you the apk if you want (but you don't really know me, so you probably shouldn't use an apk from a stranger! lol!), or you can try to import this attached xml into tasker (rename the file to remove the .txt extension - filename will be AutoGPS.prj.xml) - the xml option should be safe.
I haven't tried importing an xml, but it should be fairly straightforward (Save profiles in /sdcard/tasker/profiles and then, in tasker, long press the profiles "tab" and "import"). Before doing this, backup your existing profiles in tasker, just in case. Also, make sure you have secure settings set up before you import this.
Click to expand...
Click to collapse
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
PsychDrummer said:
Cool, thanks I will give it a try. And it would be the same if I want to have location on when using google search/now?
Click to expand...
Click to collapse
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
jj14 said:
Yes, it should be. But in my experience, I haven't found Google Search/Now really requiring high accuracy GPS level location for any of the features yet. It gets by fine with just battery saving mode. So, I only enabled this for the Maps application.
Actually, now that I think about it, I don't know how you'd enable it for Google Now - since it runs in the background to notify you about upcoming events. Since you aren't launching Google Now most of the times, I don't know how you'd set up Tasker to enable the high accuracy GPS for that (and it is possible that Google now using active GPS may be part of the battery drain issue - I don't know for sure)
Click to expand...
Click to collapse
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
PsychDrummer said:
I actually wanted to keep the device on "device only" location instead of battery saving. For Google now I wanted the traffic card, but I would only need it if I physically open google now. I don't really need the notification.
Click to expand...
Click to collapse
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
jj14 said:
To keep device only, you should use Location mode (in secure settings) and set it to Device only or whatever you need, instead of GPS.
Note that "Device only" still uses active GPS and "This mode may use more battery power and take longer to determine your location" (Ref: https://support.google.com/nexus/answer/3467281?hl=en)
The traffic card still works on "battery saving" because it uses cellphone triangulation, and shows you the traffic in your vicinity, and based on your destination.
Click to expand...
Click to collapse
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
PsychDrummer said:
I know, I have always used battery saving. The problem is that with battery saving, I'm having these extreme wakelocks and Google is constantly searching for my location which is what I think is the cause of the drain I'm having. I'm going to use my phone today by just using device-only location and see how the battery lasts. It should be much better since I'm hoping the phone will be deep sleeping longer. Basically, when I take my phone off the charger in the morning and I'm still at home for the first 2 hours of the day the standby time is great. It usually goes down 1-2% in those 2 hours even if I use the phone a little. However, once I leave the house is when I get constant wakelocks from location services and the battery stats to deplete a lot faster. I mean, I can still get through a day just because I don't use the screen a lot. I tend to only use about 1 hr 30 min on a regular day but I just want to play around with settings to see what works.If I can get the same standby time throughout the day that I get within the first two hours when im at home that would be great.
Click to expand...
Click to collapse
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
jj14 said:
That's strange. With battery saving mode, I get no wakelocks, which with device only or high accuracy, I used to get a lot of wakelocks by the location services.
But yes, no harm in trying out the options. Tasker+secure settings should be able to set up the battery saving or device only (as described above)
Click to expand...
Click to collapse
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
PsychDrummer said:
You get Npl wakelocks? So far I haven't gotten it and that's the wakelock that usually keeps my phone awake for 2 hours or so. basically, I think the way it works is that the device only setting uses more battery when using apps that use location such as maps but when the apps are not in use it uses no battery on location.
Click to expand...
Click to collapse
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
jj14 said:
No. Ever since I switched to battery saving (and tasker toggling to high accuracy when I use maps), I have no location based wakelocks (no NPL wakelocks)
Click to expand...
Click to collapse
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
PsychDrummer said:
Interesting, I've been having the opposite. I even took a screen shot of the wakelocks on the stock battery app where when the screen is off there's a huge amount of individual lines for awake (of course this is backed up by BBS). However when using device only the awake and screen on match almost perfectly.
Click to expand...
Click to collapse
Not sure why the difference, but regardless, as long as the individual 'fix' works, that's all that matters

[Q] 40% Battery Burn Overnight (with WLD Screenshots)

Hey guys,
I had the issue with the 40% battery burn overnight again. According to WLD, the CPU was awake for 96% of the ~11 hours since it was charged (which explains it). I want to make sure I'm reading these right, so I've posted screens of wakeup triggers and CPU wakelocks.
I've got Google Now turned on, the "OK Google" keyword detection turned off, location reporting on, location history on, and location services set to high accuracy (I use navigation and what not and would prefer to not have to toggle it constantly). Please see the attached screenshots.
Some googling of my own told me it's location reporting keeping it awake, which I'm afraid is the case, as I didn't have this issue for a while when it was off (it's also been on for several days and I haven't had this issue).
So, I have two questions in total. Is it Google Now's location usage that's draining my battery and keeping my phone awake? Also, since this isn't an every night issue, do you have any suggestions or recommendations to solve it without losing Gnow functionality?
I am running Carbon (July 1st nightly) and the Franco Kernel r55. Thank you very much in advance, this issue has alluded me and annoyed me for months.
Update: upon further research, I'm seeing that blocking wakelocks from Google Search / Google Now related location services will eliminate the problem without affecting Gnow functionality - is there any truth to this? I've also seen people claim to have disabled location reporting without loosing their weather, nearby events, etc. I worry that disabling the wakelock will impede functionality because I don't have the screen on often while traveling. I just can't seem to get a straight answer!
Update 2: after a phone call to Google (yes, they actually gave me a good answer), I was told that Location Reporting *only* tracks where you've been to give you travel time and similar things. Turning it off doesn't disable weather, nearby events, parking location, and so on, so it's looking like just disabling it is a good place to start.
turbofandude said:
Hey guys,
I had the issue with the 40% battery burn overnight again. According to WLD, the CPU was awake for 96% of the ~11 hours since it was charged (which explains it). I want to make sure I'm reading these right, so I've posted screens of wakeup triggers and CPU wakelocks.
I've got Google Now turned on, the "OK Google" keyword detection turned off, location reporting on, location history on, and location services set to high accuracy (I use navigation and what not and would prefer to not have to toggle it constantly). Please see the attached screenshots.
Some googling of my own told me it's location reporting keeping it awake, which I'm afraid is the case, as I didn't have this issue for a while when it was off (it's also been on for several days and I haven't had this issue).
So, I have two questions in total. Is it Google Now's location usage that's draining my battery and keeping my phone awake? Also, since this isn't an every night issue, do you have any suggestions or recommendations to solve it without losing Gnow functionality?
I am running Carbon (July 1st nightly) and the Franco Kernel r55. Thank you very much in advance, this issue has alluded me and annoyed me for months.
Update: upon further research, I'm seeing that blocking wakelocks from Google Search / Google Now related location services will eliminate the problem without affecting Gnow functionality - is there any truth to this? I've also seen people claim to have disabled location reporting without loosing their weather, nearby events, etc. I worry that disabling the wakelock will impede functionality because I don't have the screen on often while traveling. I just can't seem to get a straight answer!
Update 2: after a phone call to Google (yes, they actually gave me a good answer), I was told that Location Reporting *only* tracks where you've been to give you travel time and similar things. Turning it off doesn't disable weather, nearby events, parking location, and so on, so it's looking like just disabling it is a good place to start.
Click to expand...
Click to collapse
The data we need to see isn't shown in your screenshots. This is why I prefer BBS. You can just post a log and nothing will be missing.
Aerowinder said:
The data we need to see isn't shown in your screenshots. This is why I prefer BBS. You can just post a log and nothing will be missing.
Click to expand...
Click to collapse
Ugh, I knew I should have left it. I've got it installed now and will post a screenshot if it happens again. I've got Location Reporting turned off. I want to see if it will still give me the features I want, and if the battery drain issue stops, yippee. I will leave BBS there, however, in case it happens again.
turbofandude said:
Ugh, I knew I should have left it. I've got it installed now and will post a screenshot if it happens again. I've got Location Reporting turned off. I want to see if it will still give me the features I want, and if the battery drain issue stops, yippee. I will leave BBS there, however, in case it happens again.
Click to expand...
Click to collapse
All of the wakelocks that start with Nlp are due to location. Switching the location mode to Device only will stop them. Anything that relies on GPS still works fine. This should be the default setting.
I did a factory restore of the phone, latest Gapps, Carbon rom (07/07 nightly + 07/06 firmware), latest ElementalX Kernel now (so far, better temp/performance + equal or better battery). I know it's only an hour's worth of use, but a problem is pretty apparent.
Location reporting/history is off, Gnow is enabled, keyword detection is off. WiFi is on, and location services are in high accuracy mode. Why is a wakelock created by never released and how do I avoid that?
Is there any reliable setting I can use to avoid a random software issue eating up my battery? This inconsistency is driving me insane.

Disable location completely?

I have disabled Location reporting / History, wifi scanning and location itself.
But when I check privacy gaurd I see Location services, Play services and android system using fine location, cell scan and wifi scan.
Can anyone suggest what to do to stop google from accesing my location completely?
Any one?
mkiriti said:
I have disabled Location reporting / History, wifi scanning and location itself.
But when I check privacy gaurd I see Location services, Play services and android system using fine location, cell scan and wifi scan.
Can anyone suggest what to do to stop google from accesing my location completely?
Click to expand...
Click to collapse
Here is an solution, it also improve your battery life
Google has been recommending developers use Google Play Services for Android Device location GPS functionality which allows for Google Play Services to batch GPS requests, hopefully preserving battery life. However, developers still have access to the native Android location APIs which they could leverage to request device location.
Example image:
The solution
Fortunately if you’re using Cyanogenmod on your device, you can use the built-in Privacy Guard feature to limit Google Play Services ability to wake the device, which will permit your device to stay asleep unless you’re actively using it. You can also keep Google Play from being able to keep the phone awake, which will allow your device to sleep quicker, preserving battery for Angry Birds and Pandora.
Keep in mind, there are pros and cons to everything.
So, it’s not my fault if your everything begins to suck once you do this. The easy thing is that you can make changes, then toss your phone in your pocket and check back later and see if there is a noticable improvement in battery life. You will see in the same UI I’ll show below a long listing of how many times permissions were requested and if they were denied or not.
Consider denied events to be your battery life getting longer and longer
So, step one for your GPS problem + better battery life, go to settings on your device. Go down to Privacy.
Go to Privacy Guard
Click the three dots / hamburger bun / overflow menu and check the box for Show built-in apps.
Wait…it takes a LOOONG time to list all of the apps. Browse down to Google Play Services and then long press on the icon.
Scroll down to the options and based on the pros/cons above, choose your destiny and toggle some of the options.
Restart phone.
DONE.
Google wont start the GPS like you requested
Your battery life is also improved because Google Play Services is disabled :good:
Extra info
To reserve back, turn the options back to ON you have disabled.
NOTE: You will get an error popup that Google Play Services stopped if you start your GPS for example "Navigation" like TomTom, Navigon, ETC.
I hope it helped.
Stanely thank you for your reply, however the original question I had asked was different.
Why is play services using cell scan and wifi scan even when location is completely off? What else do i need to disable to stop it?
Also denying keep awake and wakeup causes play services to crash.
Been finding a solution couple of years now.Is there any way to completely turn off google track my location?Google has always a way to track us,even location services are completely turned off.

Google Play Services (com.google.android.gms) cause battery drain when in deep sleep

Android 5.1 stock rom, everything is up-to-date.
Yesterday, before to go to bed I've done the following:
I turned off wifi, set the phone to plane mode and activated the power save under the battery settings (which should reduce a lot of things). Before to lock the screen my battery was at 57 %. After 8 hour my battery was at 44 %.
Thanks to "BetterBatteryStats" - BBS - I've found, under the "Alarms" section, that the process com.google.android.gms was reported to be active at 56 %.
I am sure that I don't have other WakeLocks, firstly because no Wake Locks are reported by BBS - and the deep sleep is correctly reported also by BBS, and secondly because the phone is only awake when the screen is on:
I ask to myself: why Google Play Store remains active when there is no active connection on my phone, and when the sync is disabled? Furthermore, under the wifi option I also disabled the option wifi scan always available.
I think I'm on the right way to solve this issue. I've done some research and I installed "Disable Service" from the playstore.
First of all, please keep in mind that I use just few Google Apps: Gmail, Google App (to use the vocal assistant) and the Play Store. With the following changes all these apps still work without issues (at least for now).
last night i left my phone in standby as yesterday (plane mode, wifi turned off and powersave activate): for 8 hours is always stayed at 91 % of charge
Here the services of which I got rid:
LockScreenService
BackupTransport
Googlelocationservice
GoogleLocationManagerService
GcmService
These four services were always active as background processes on my phone.
Then, using Gemini App Manager, I went to Google Play Services, and by going under "AppOps" I turned off the "Wake Lock" authorization.
Furthermore, I also disabled other services related to G apps which I don't use:
com.google.android.gms.drive.api.DriveAsyncService com.google.android.gms.fitness.sync.FitnessSyncAdapterService
com.google.android.gms.games.service.GamesSyncServiceMain
com.google.android.gms.games.service.GamesSyncServiceNotification
com.google.android.gms.drive.metadata.sync.syncadapter.MetadataSyncService
com.google.android.gms.plus.service.OfflineActionSyncAdapterService
com.google.android.location.reporting.service.ReportingSyncService
com.google.android.gms.kids.restrictions.sync.RestrictionsSyncService
com.google.android.gms.drive.metadata.sync.syncadapter.SyncAdapterService
com.google.android.gms.subscribedfeeds.SyncService com.google.android.gms.kids.timeouts.sync.TimeoutsSyncService
com.google.android.gms.fitness.wearables.WearableSyncService
and all services related to Google Drive.
But the above section i'm not sure which is useful, since I never seen these services active on my phone, also because I uninstalled a lot of g-apps (Drive, Games, Plus, Books, News, Music).
I will keep updated this discussion when/if I will encounter some trouble (eg I want to test Google Maps and the GPS).
Dude i got the same problem!! But i play quite a lot with my Mi4c so i sould care what i'm going to stop!
This thing is really annoying anyway :/
How did you uninstall them my ex synced our phones plus added things to spy but its not even letting me forcestop some of them what he has added and is remote using or bridgung....has able to see everything text messages phone calls my pictures everything. ..HELP PLEASE HELP

Categories

Resources