Within the past few days I've noticed that me x727's battery has been draining quite a bit faster. Always at the top of the list in battery stats is System Service. I always have location services and Bluetooth disabled. Has anyone had a similar issue and figured out the exact cause?
edit: I just came across this post from someone else who has Mint SIM and they suggested entering the APN values manually instead of using what the network gives your phone automatically. https://community.zteusa.com/thread/13643#74674. So far it seems like phone is holding a data connection immediately after Wi-Fi disconnect, but time will tell how battery life will be.
edit 2: manually setting the apn values using what Mint Sim provides on their website has completely foxed the issue! My battery life is back to normal and my data connection holds normally again.
I have this exact same problem, but with location services on. Also, I had Android OS draining the battery. I don't know what is causing these issues. Hope someone can find the problem.
Habe also problems with System Services
{
"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"
}
Swipe away settings on recents
After one month without reboot or switch off the phone also i had the same problem: reboot the phone twice helped me.
Same issue here, System Service is about 50-70% of values of screen (e.g. if screen is 40%, System Service is 20-28%)
A reboot or swiping away settings don't seem to help for me.
Same here. I did rebooting the phone twice and swipe away settings does not seem to help, too.
- So enable background resource control if you disabled it before via *#46360000#*#*
- Limit the apps (particularly LeEco apps) running on start-up via Permissions setting
- Limit the apps showing notifications via Notification management
Joms_US said:
- So enable background resource control if you disabled it before via *#46360000#*#*
- Limit the apps (particularly LeEco apps) running on start-up via Permissions setting
- Limit the apps showing notifications via Notification management
Click to expand...
Click to collapse
Disabling the background resource control cause the System service and Android OS to ramp up? I disable it, because of notification issues with gmail, whatsapp, hangout, and outlook mail. Notification only works when I open the app. Other than that, notification never works.
crazy1990 said:
Disabling the background resource control cause the System service and Android OS to ramp up? I disable it, because of notification issues with gmail, whatsapp, hangout, and outlook mail. Notification only works when I open the app. Other than that, notification never works.
Click to expand...
Click to collapse
My notifications (gmail, yahoo mail, work email, messenger, hangout) are perfectly fine with Background Resource Control enabled.
Joms_US said:
My notifications (gmail, yahoo mail, work email, messenger, hangout) are perfectly fine with Background Resource Control enabled.
Click to expand...
Click to collapse
Really? Did you change any setting in the phone manager app or something like power saving management, auto launch, align wakeup, etc? Or you leave everything alone as default? I had this issue since 19s. Lol. I might be missing something.
crazy1990 said:
Really? Did you change any setting in the phone manager app or something like power saving management, auto launch, align wakeup, etc? Or you leave everything alone as default? I had this issue since 19s. Lol. I might be missing something.
Click to expand...
Click to collapse
I made sure the apps that send notification will auto-launch (Permissions menu) and they can notify (Notifications Management menu) and Important Notice star enabled as well. Google sync should be enabled under Account Management and some apps like Gmail have Sync options that should be enabled as well.
Align Wakeup and Ultra Long Standby both disabled and mine is running stock 21S.
And oh notifications are also coming thru my Gear Fit2 for convenience. =D
HTH
Joms_US said:
I made sure the apps that send notification will auto-launch (Permissions menu) and they can notify (Notifications Management menu) and Important Notice star enabled as well. Google sync should be enabled under Account Management and some apps like Gmail have Sync options that should be enabled as well.
Align Wakeup and Ultra Long Standby both disabled and mine is running stock 21S.
And oh notifications are also coming thru my Gear Fit2 for convenience. =D
HTH
Click to expand...
Click to collapse
Thanks for the help. I recently change the setting and will test it for a couple of days.
Edit: I test the notification after making some changes on what you did. The notification works, but it's 15 minute delay. It's not an instant. Is this normal?
This is ridiculous. My mother's galaxy 6 life is better now with this issue.
Sent from my LeEco Le Pro3 using XDA Labs
Replied by mistake, can someone delete this post please?
TheDethEgineer said:
This is ridiculous. My mother's galaxy 6 life is better now with this issue.
Click to expand...
Click to collapse
Sent from my LeEco Le Pro3 using XDA Labs
Its common issue if you browse various forums, many users with many different devices has this issue. Ofcourse google could optimise system better, but 90% of times its due to user configuration/buggy apps. First thing i would do is turn off backup under settings and location history.
Incogn said:
Its common issue if you browse various forums, many users with many different devices has this issue. Ofcourse google could optimise system better, but 90% of times its due to user configuration/buggy apps. First thing i would do is turn off backup under settings and location history.
Click to expand...
Click to collapse
It does seem to be a common issue from what i've found in my own research, however the issue seems to have gotten a lot worse on my device in the past few weeks for an unknown reason.
darkmuck said:
It does seem to be a common issue from what i've found in my own research, however the issue seems to have gotten a lot worse on my device in the past few weeks for an unknown reason.
Click to expand...
Click to collapse
I can guarantee you its your configuration fault. Its either buggy app, a buggy app or data restore, or buggy system service not letting device sleep properly. As i said earlier, i would start by disabling backup under settings, also location history reporting. Thats 2 things known to cause these problems. If that doesnt help would start looking into apps, 1 by 1. Safest way is to just clean flash or factory reset, then turn off backup and location history, and before installing any app or backup, i am 100% sure, the phone will sleep as a baby. Then start installing apps and look for culprit if its there.
I can confirm, that disabling location service (and location history) is a solution for battery draining. When I disable it in system settings, problem gone.
Related
Thats right
this rom is amazing but there is ONE big problem and that is Battery Drain while the phone is in deep sleep!
you allways gets around 80% deep sleep and 20% at 200mhz CPU usage.
i have found what causes it and there is two apps running that eats power.
1: Maps
2: Samsung Push Service
{
"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"
}
The easiest way is just to do a Force Stop on both then the problem is gone.
but i have not found what settings to use to stop them from running in deep sleep.
maybe someone can figure it out?
i want Google Maps but not Samsung Push Service
just killing Google Maps every time isnt right
Would autostarts work?
This post was pulled out of my arse.
Yeah me too facing the same thiing its mostly on 200mhz and the battery is dieing like hell
Edit i used titanium backup and froze both the apps
Hmm my battery life for today kinda idle usage but I tried with power saver mode on no visible decrease in performance too
Sent from my GT-I9100 using xda app-developers app
Actually I don't get the Samsung one on mine only maps
Sent from my GT-I9100 using xda app-developers app
i have done some more testing but im not 100% sure what causes the drain.
it has nothing to do with Samsung Push Service that for sure.
i use Better Battery Stats instead of CPUSpy to see more details and the only app that woke up the phone was maps.
but only if Google Now was on
i think its has something to do with Google Now and "Location and Google search" under Location Services
something bugs it out.
just disable Google Now and untick "Location and Google search" and restart the phone
then you should have your deep sleep at 90% or more
now its cool
this is just 2minutes so the % will rise for a longer time..didnt have time to test longer
you should not have any alarm for the MAPS here
i had two of them before
this one is still there but causes no problem
Set Google Now to OFF and untick Location and Google search and restart
i hope they fix this
you shouldnt disable apps to get decent battery life
where is the google now settings to turn it off?
http://support.google.com/nexus/bin/answer.py?hl=en&answer=2669986
neuropsychosis said:
Would autostarts work?
This post was pulled out of my arse.
Click to expand...
Click to collapse
I have the push service frozen. I used autostarts on Maps and disabled it every place I found it. Everything location based still works fine, course and fine. The only bad thing is that once you use the Maps app, you have to go and kill it and kill it out of the cache and make sure its done quick enough that it doesn't respawn. I'll be really happy when holding down the back button kills it entirely. It might be worth making a widget for that now that I think of it. Also, as posted, turning off Google Now is needed since it opens Maps (I think; its been a while since I trialled it).
It's a test version, it's for test purposes, if you decide to use it as your daily rom you must accept it's issues.
So, IMO this topic seems useless to me, a new version will be launched in a while.
Its not worthless. This helps people isolate what causes the drain and perhaps come up with ways to fix it.
This post was pulled out of my arse.
sergini said:
It's a test version,
Click to expand...
Click to collapse
nah its the real deal remember
sergini said:
It's a test version, it's for test purposes, if you decide to use it as your daily rom you must accept it's issues.
So, IMO this topic seems useless to me, a new version will be launched in a while.
Click to expand...
Click to collapse
new version of this leak?are you saying?
Have the same problem with deepsleep. I'm using original stock odexed rom and battery drain in deep sleep is around 1% per hour which is too much. On my previous rom I've used - MIUI ICS it was around 1% per 8 hours! This is a big difference and something is wrong with it. What's strange on this situation is that CPU spy shows 99% in deepsleep overnight, therefore there should be no big drain. Has anybody encoutered such problems? Just check the battery level when you go sleep and check in the morning by how many % it droppped... Besides this, the rom is almost perfect. Very smooth and stable.
UPDATE: After turning location services off, the battery in deep sleep is superb. No drain anymore. Not sure if it is because of that but now it works great. The best rom ever, even in beta stage! Looking forward for official.
This may be harder on Touchwiz since it apparently doesn't support shortcuts. Its worth looking into I suppose; I haven't any experience with Touchwiz apart from deciding I want to use another launcer. I use nova launcher which works well, others would be fine but my best experience is with Nova and Apex. Both should suffice.
For maps, I've disabled it everywhere in autostarts, then for using it and killing it on exit, so that it doesn't run as a service persistantly, I've used Smanager and Swidgets (you need both installed or another app that will run a shell script) to create a script that kills maps when it isn't the foremost app displayed. Note that this kills maps if you try to background it.
https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
https://play.google.com/store/apps/details?id=os.tools.smwidgets&feature=more_from_developer
Credits to this post; and most likely someone will bother to make a better solution that doesn't kill it when its backgrounded, with the info given there. As you can see, I didn't bother trying out the kill process the way it's layed out in the post but just freeze and unfreeze maps instead.
http://forum.xda-developers.com/showpost.php?p=30175170&postcount=3
I didn't bother messing around all that much and take note that you could just as easily have smanager automatically freeze maps on startup and not worry about autostarts. In any case, the script just unfreezes maps, checks every 2 seconds to see if its running as the foreground displayed app, and if not, freezes it. As such, you lose your maps icon and need to get an icon or icon pack with maps on it to use for your widget.
The script is as follows:
Code:
#!/system/bin/sh
pm enable com.google.android.apps.maps
am start com.google.android.apps.maps/com.google.android.maps.MapsActivity >/dev/null
while [ "`dumpsys activity top | grep '^TASK.*' | cut -d ' ' -f2`" = "com.google.android.apps.maps" ] ; do
sleep 2
done
pm disable com.google.android.apps.maps
Copy and paste the above to somewhere on your sdcard. It can run on the FAT filesystem with the given app. Other approaces would just need the interpreter to call the app (sh or bash if you have it installed), and that might work.. if not then putting it on the /data filesystem would be fine since its ext4 but it'll be gone when wiping data for an upgrade.
Pretty basic after reading the linked post.
pm enable: Unfreezes maps in the case that it is.
am start: Starts maps.
while, sleep, done: Checks every 2 seconds for Maps being in the foreground.
pm disable: Freezes maps app.
Much room for improvement but it suits me really well.
For Smanager and Swidgets, open Smanager, select root if needed, allow root, navigate to script (save it with a .sh file extension when pasting, though not sure if this is needed or not), tap on script, select little root icon so it runs as root, select "is script" if not already selected. exit Smanager but don't kill it. It will want to run as a cached process for starting it on boot, if you kill it on some point just open and close the app again.
Select to add a shortcut in launcher, choose SMshortcuts, select the script. Don't bother giving it a custom icon; best to do it in the custom launcher since it doesn't seem to scale the default one correctly I'm assuming it might not scale one you give it correctly.
Done.
If you wanted to use Smanager (or an alternative app, init.d script assuming it works on this rom, etc) to just freeze maps at startup and not wory about apps like autostart or Gemin, you'de just use:
pm disable com.google.android.apps.maps
That should remain frozen on a reboot, so ideally you'de want to test first to see if its already frozen or it would exit with an error but this might not be a bother for many people.
In an effort to optimize my battery life, I've come across a few different location related settings, and I'm not sure what the differences are between them, specifically in relation to how Google Now functions. The different settings are:
(1) Main Settings->Location Access->Access to My Location
I'm pretty sure this one is the "Master" setting. Toggling this switch off will disable all location services. However, if you leave this one on, you can independently enable/disable the following settings:
(2) Maps->Settings->Location Settings->Location Reporting (under Background Location Reporting)
(3) Maps->Settings->Location Settings->Report From This Device (under Background Location Reporting)
(4) Maps->Settings->Location Settings->Latitude Location Sharing (these options are clearly specifically for Latitude, so no confusion here)
(5) Maps->Settings->Location Settings->Location History
I guess I'm most confused about settings (2), (3), and (5). What is the difference between them and what effects do each of them have on Google Now? Anyone know?
EDIT: Note that I've had settings (1) and (2) enabled and (3) through (5) disabled for a few days now, and I've noticed significant battery savings, while still keeping some level of functionality via Google's Location Services.
Very good question. I've always wondered what I can turn off and still take full benefit of Google Now's learning, etc.
So far, with items (2)-(5) disabled, Google Now is still giving me location based pop-ups, which is good. I've gotten an ETA/driving directions card and an updated weather card based on my location. Also, the maps and network services wakelocks are much better. I still don't know what these items are actually good for though.
What OS ya'll using? i am on SKY Jelly Bean 4.1.2 and only see the 1st location as a place to change. i dont see the others.
shane.kelly55 said:
What OS ya'll using? i am on SKY Jelly Bean 4.1.2 and only see the 1st location as a place to change. i dont see the others.
Click to expand...
Click to collapse
I'm on stock 4.2.1
Never mind i'm a dummy. I found it.
I have 1 and 2 enabled and the rest disabled.
What about under the main settings: Wifi and Mobile network location. Think this might help unchecked?
I do like to use Facebook "Check In' function though....
I still don't understand what the hell some of these settings do or what services they have implications for. Damnit Google, always making things confusing.
I'm pretty sure you need #5 enabled if you want Now to calculate how much you've walked, ran.. biked for the month.
ellesshoo said:
I still don't understand what the hell some of these settings do or what services they have implications for. Damnit Google, always making things confusing.
Click to expand...
Click to collapse
Yup. That's exactly why I started this thread. It's very unclear.
Sent from my Nexus 4 using xda premium
The only one you need for Google Now to function is "WiFi and mobile network location".
Sent from my Nexus 4 using Tapatalk 2
I have a Verizon GS3 on stock leak JB and was experiencing this problem. I followed the instructions in the OP and no longer have ridiculous wakelocks from signalcollector.scannerthread. Anyway, thanks OP!
nyijedi said:
In an effort to optimize my battery life, I've come across a few different location related settings, and I'm not sure what the differences are between them, specifically in relation to how Google Now functions. The different settings are:
(1) Main Settings->Location Access->Access to My Location
I'm pretty sure this one is the "Master" setting. Toggling this switch off will disable all location services. However, if you leave this one on, you can independently enable/disable the following settings:
(2) Maps->Settings->Location Settings->Location Reporting (under Background Location Reporting)
(3) Maps->Settings->Location Settings->Report From This Device (under Background Location Reporting)
(4) Maps->Settings->Location Settings->Latitude Location Sharing (these options are clearly specifically for Latitude, so no confusion here)
(5) Maps->Settings->Location Settings->Location History
I guess I'm most confused about settings (2), (3), and (5). What is the difference between them and what effects do each of them have on Google Now? Anyone know?
EDIT: Note that I've had settings (1) and (2) enabled and (3) through (5) disabled for a few days now, and I've noticed significant battery savings, while still keeping some level of functionality via Google's Location Services.
Click to expand...
Click to collapse
How do you get to settings 2-5?
That are options in the Google Maps app.
Also worth noting.. I disabled Google now yesterday and got these battery times:
{
"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"
}
View attachment 1541577
For me I just keep data turned off and quickly flip it on in the pull down widget menu when needed. My phone last days on a single charge doing it this way. And the data turns on in about 5 seconds when needed.
Sent from my Nexus 4 using xda app-developers app
Here is my battery stats
Sent from my Nexus 4 using xda app-developers app
nyijedi said:
So far, with items (2)-(5) disabled, Google Now is still giving me location based pop-ups, which is good. I've gotten an ETA/driving directions card and an updated weather card based on my location. Also, the maps and network services wakelocks are much better. I still don't know what these items are actually good for though.
Click to expand...
Click to collapse
3 weeks now on my S3 and no major battery problems but trying to maximize by analyzing using BetterBatteryStats. All seems well except the Google Maps wakelocks when phone isn't being used. Which is odd. Found a thread that pointed me back here. It makes sense that Google Now is just wanting to see where you are. Too bad there isn't a setting to change the interval it which it checks.
Anyway, I disable 2-5 also as the user did above, but now when I go to my Google Now page, it gives me a card "Improve Suggestions - To get suggestions based on your location history, such as traffic alerts, Enable location history. So I would be surprised you still get ETA/driving directions card with that setting turned off?
I guess I will just see how much of a difference it make in both battery and functionality with most the location stuff turned off (2-5).
-- additional --
You're right. I just clicked 'additional cards' and got he current commute time to my 'work' location and local weather. The thing I think disabling this history may do though is from now on, if I started driving back and forth a lot to a location, it's not going to ask me to identify that location and show me ETA, etc. However, I actually work from home, so I just set my work location to my most common destination (downtown.) And I'm used to looking up directions on Maps and just keeping the 'show traffic' option on. So, so far, I don't see any big downside to disabling most of these settings in maps. But I've yet to see if it makes a diff on battery use.
Phone's been sitting next to me, unplugged for about 5 hours and I barely have used it and it is still at 92% Surfaceflinger is #1 process, then Media wakelock, then the only app I've used, then maps is way down the list at #8. So maybe I didn't need to disable those settings in the first place. LOL. It was just when I was using GSAM instead of BBS, the higher level view of the processes taking up the apps, I always though it odd Maps was always in the top 4 when I wasn't using the phone for anything. I guess if total battery use is reasonable/expected, then doesn't matter what is the top processes using it are.
---------- Post added at 02:41 PM ---------- Previous post was at 02:16 PM ----------
You one thing, there still isn't any definitive guide that I've found that tells you the side effects that the most common apps will have (what functions you gain/lose) by turning on/off these various settings. That would be really informative. There are bits and pieces here and elsewhere but it would be a Godsend if someone published a sticky or something that tells how all these settings specifically effect Maps, Google Now, Facebook, etc.
I also want to know how these settings effect Google Now. I got 4.1.2 on my Note 2 the other day and noticed maps using the most battery when I would look in settings.
Manly the setting "Report from this Device" it reads "automatically report you're location from this device"
Does that effect Google Now? It seems with that turned off, maps isn't using as much battery at all. I just want to know how it will effect Google Now and will it effect anything else?
Sent from my SGH-T889 using Tapatalk 2
If you're running a recent CM based or aosp ROM you've most likely encountered some pretty severe battery drain from Google Play Services (or Android OS as it sometimes shows up as). Below is a procedure that will halt the battery drain, but will not affect the running of your device.
Enter Privacy Guard through Settings/Security or Settings/Privacy, then click Advanced or Show Built-In Apps (depending on which ROM you're running). From here you can select Google Play Services and deny the Wake Up, Keep Awake, and Auto-Start options. Reboot phone. This should drastically reduce the amount of battery that Google Play Services and Android OS consume.
{
"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"
}
If you're on a ROM that doesn't include Privacy Guard or App Ops as standard you need to take a slightly different approach. Download this:
https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
Open the app and it should already be in the Activities tab, scroll down to Settings and click on it, that will open up a whole list of different options, scroll down to the App Ops option and click on that, hit the create button at the bottom of the screen.
This is going to add a Settings icon/shortcut to your home screen, click on that and you'll be taken into the secret App Ops section of the settings menu, from there just find Google Play Services and click on it, then disable the Wake Up and Keep Awake options. Reboot phone, no more Google Play Services battery drain.
Please note: If you rely on your location being updated frequently then this method might not be right for you. This method disallows Google Play Services from waking your device every minute to obtain your location and Google Now cards are affected as a result. All other Google services should function normally.
Donate To Me
Transmitted via Bacon
I can vote for this, I did have massive battery drain from google services, but now, none.
Glad to help.
Sent via Bacon
Do you need root access for this?
Yes. I'll add that information to the OP.
Sent via Bacon
This guide is a little excessive, the biggest battery killer for that app, especially if you use Google Now, is the wake ups permission, so denying just that will fix most of the battery drain. If you want to go the extra mile, denying the keep awake permission also which fix the other minor part and none of these fixes require root
EDIT: Just noticed you said AOSP, which doesn't have the wake up or keep awake permissions to deny IIRC, so what I said only applies to the CM ROMs
Calkulin said:
This guide is a little excessive, the biggest battery killer for that app, especially if you use Google Now, is the wake ups permission, so denying just that will fix most of the battery drain. If you want to go the extra mile, denying the keep awake permission also which fix the other minor part and none of these fixes require root
EDIT: Just noticed you said AOSP, which doesn't have the wake up or keep awake permissions to deny IIRC, so what I said only applies to the CM ROMs
Click to expand...
Click to collapse
While this may seem excessive, the fact is it works. My personal experience was that after changing the things mentioned that don't require root I still had Google Play Services draining my battery. As with anything though, mileage may vary. I'll add a note that the root section may or may not be required.
Forgive me for using a term (AOSP) that most XDA users associate with anything that's CM based. While it may not technically be 100% correct, it seemed to be in keeping with the vernacular used by your average XDA member.
Thanks for your input, I appreciate it.
Sent via Bacon
A much simple process (that doesn't require root) worked for me:
1. I used Privacy Guard to deny Google Services "Wake up," "Keep awake" and "Auto start."
2. Under Settings > Apps > Running I stopped all instances of Google Play services.
They still come back but aren't killing my battery with wakelocks. It seems to accord with what Calkulin said above.
Thanks a lot, I have done everything in the OP, will report back
CafeKampuchia said:
A much simple process (that doesn't require root) worked for me:
1. I used Privacy Guard to deny Google Services "Wake up," "Keep awake" and "Auto start."
2. Under Settings > Apps > Running I stopped all instances of Google Play services.
They still come back but aren't killing my battery with wakelocks. It seems to accord with what Calkulin said above.
Click to expand...
Click to collapse
Like I said just above, mileage may vary. It's awesome if doing just that worked for you, but for others it isn't enough for some reason.
Sent via Bacon
timmaaa said:
If you're running a recent CM based ROM you've most likely encountered some pretty severe battery drain from Google Play Services (or Android OS as it sometimes shows up as). Below is a series of procedures that will halt the battery drain, but will not affect the running of your device.
The first thing you need to do is to enter Privacy Guard through Settings/Security or Settings/Privacy, then click Advanced or Show Built-In Apps (depending on which ROM you're running). From here you can select Google Play Services and turn off everything except for location. This may or may not be enough, if you still suffer battery drain please move on to the next step.
Please note: everything below this point requires root!
Next you need to download Android Tuner. Open it and pull out the side menu, scroll down to the Apps Manager section and select Application Startups. Open the box at the top and change it to All, click the button in the bottom-right until it says System, scroll to Google Play Services and select it, a huge list will open, scroll to very near the bottom and find the Wakeup option, uncheck the box.
Go back to the main menu of Android Tuner and pull out the side menu on the left, scroll down to the Apps Manager section and select Application Manager. Click the centre box at the bottom until it says System, scroll to find Google Play Services and highlight it, press the Manage button in the bottom-right and select Permissions. This should bring you to the Perms tab, swipe across to the Services tab. In this list you want to uncheck anything that starts with Ads or Analytics, you also want to uncheck anything that starts with com.Google.android.location.reporting as well.
Sent via Bacon
Click to expand...
Click to collapse
Do these changes revert back to how they were before when cyanogenmod releases the next update to their ROM?
sharp2G said:
Do these changes revert back to how they were before when cyanogenmod releases the next update to their ROM?
Click to expand...
Click to collapse
Its already confirmed to be fixed in the next OTA. So you won't need this.
zephiK said:
Its already confirmed to be fixed in the next OTA. So you won't need this.
Click to expand...
Click to collapse
It's nice to have now instead of waiting.
Thanks a lot for this guide, it makes more help to maximise my battery life witch drains too much on aosp roms, i'll see how it changes.
mbudden said:
It's nice to have now instead of waiting.
Click to expand...
Click to collapse
I didn't mean it like that, read carefully. He was asking if the fix from. This would be saved over for the next Ota when the next Ota will contain the fix so therefore it doesn't matter if this "fix" stays.
Sent from my One using Tapatalk
So what does it really affect? Is it to stop reporting data to Google for their analytic stuffs, e.g. ads personalization?
knzzz said:
So what does it really affect? Is it to stop reporting data to Google for their analytic stuffs, e.g. ads personalization?
Click to expand...
Click to collapse
Yeah that's pretty much it. It arrests reporting for targeted advertising.
Transmitted via Bacon
Just got my phone and saw this thread, haven't experienced any battery drain but I'll just apply this fix first just in case, thanks :good:
Thank you so much
I did what you said on the other thread doing "system tuner" first, and on the Android tuner i dont have the option to check/uncheck any ads etc?
Hi,
Since the Google play services were updated to 7.0.92 & 7.0.93 I am having very nasty Wakelock and battery drain.
I tried clean flashing multiple roms, all the same. I tried AICP, Euphoria, SimpleAOSP, Terminus all have this wakelock.
Even tried multiple different kernels.
Anyone having the same ?
Thanks
{
"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"
}
This is because of a bug in the systemupdateservice..
For a templorary fix go to privacy guard > advanced > google play services > deselect wake and keep awake.. See my screenshot
Hope this helps
CapnMarius said:
This is because of a bug in the systemupdateservice..
For a templorary fix go to privacy guard > advanced > google play services > deselect wake and keep awake.. See my screenshot
Hope this helps
Click to expand...
Click to collapse
Where is this in English, please?
Settings > Privacy > Privacy Guard > Advanced (in the menu) > Google Play services
And there you disable "Wake up" and "Keep awake".
Assuming that you're on a custom ROM
Look this post http://forum.xda-developers.com/showthread.php?p=59368850
CapnMarius said:
Settings > Privacy > Privacy Guard > Advanced (in the menu) > Google Play services
And there you disable "Wake up" and "Keep awake".
Assuming that you're on a custom ROM
Click to expand...
Click to collapse
Well, I'm not :crying:. 10x for the answers.
CapnMarius said:
Settings > Privacy > Privacy Guard > Advanced (in the menu) > Google Play services
And there you disable "Wake up" and "Keep awake".
Assuming that you're on a custom ROM
Click to expand...
Click to collapse
I'm having the same issue as OP and I'll try your solution.
But are you 100% sure that its safe and won't cause any bugs? I mean with syncing google stuff and so on.
I'm on Mahdi 2.9 @ 4.4.4 and for 3 days I'm struggling with this giant wake lock...
Jakub_Z. said:
I'm having the same issue as OP and I'll try your solution.
But are you 100% sure that its safe and won't cause any bugs? I mean with syncing google stuff and so on.
I'm on Mahdi 2.9 @ 4.4.4 and for 3 days I'm struggling with this giant wake lock...
Click to expand...
Click to collapse
I haven't experienced any bug's yet and I'm using this fix for a few days now
aymnahmd said:
Hi,
Since the Google play services were updated to 7.0.92 & 7.0.93 I am having very nasty Wakelock and battery drain.
I tried clean flashing multiple roms, all the same. I tried AICP, Euphoria, SimpleAOSP, Terminus all have this wakelock.
Even tried multiple different kernels.
Anyone having the same ?
Thanks
View attachment 3205361
View attachment 3205362
View attachment 3205363
Click to expand...
Click to collapse
try installing app ops xposed module
then change permissions for play services
CapnMarius said:
I haven't experienced any bug's yet and I'm using this fix for a few days now
Click to expand...
Click to collapse
Yup. Works like a charm for now - thanks
It cried few times for other permissions at reboot but i denied all od them
Jakub_Z. said:
Yup. Works like a charm for now - thanks
It cried few times for other permissions at reboot but i denied all od them
Click to expand...
Click to collapse
No problem man!
Don't block all permissions, for example: don't block contacts on your SMS app
Guys I don't mean any offense but flat out blocking Play Services when the issue is a single SystemUpdateService wake lock is not the best way. You're effectively shutting off the water main to deal with a faucet leak. There's adverse effects in denying Play Services the ability to wake your phone
The best band aid solution is to use Wakelock Terminator to block the SystemUpdateService wake lock. Its still not a root cause fix but its better than borking the rest of Play Services.
Google needs to implement a dedicated wakelock detector for its playservices... Keep watching the playservices and then shut it if there is too much wakelock.
This playservices wakelock is going on and on in my device for the past 3 or 4 days. It will keep quiet for a while and then start right back up
Hi. It happened to me too. I deleted Google Play Services data and rebooted and that fixed it few days ago. I was on the 3-15 Banks gapps for Lollipop 5.1 (and currently running Omni 5.1 rom).
My pet peeve is extra long "mobile radio active" periods of time for processes that uses 3G. Google Play Services usually used to be my #1 battery drainer for the extended 3G radio on time for various Lollipop stock/aosp/CM roms I tried last few months. I use Google Now and G+ with few syncs here and there.
But there were days when other apps, such as Chrome or anything that uses 3G that used to keep the modem on and become the top drainer.
Then I thought why not disable background data use on 3G for Google Play Services? For the last two days doing that, I don't see Google Play Services in my battery usage list. Knock on wood! I still get my Gmail push and other GCM pushes so hope I'm not breaking things too much. Oh, Just checked, Google syncs are broken so I'll have to manually sync it or find a way to do it with Tasker.
(I also use Tasker to disable Location services while not using Google Maps or Nokia Here. If I leave location services on, the location related wakelocks goes thru the roof and kills the battery)
Best of Luck
aymnahmd said:
Hi,
Since the Google play services were updated to 7.0.92 & 7.0.93 I am having very nasty Wakelock and battery drain.
I tried clean flashing multiple roms, all the same. I tried AICP, Euphoria, SimpleAOSP, Terminus all have this wakelock.
Even tried multiple different kernels.
Anyone having the same ?
Thanks
View attachment 3205361
View attachment 3205362
View attachment 3205363
Click to expand...
Click to collapse
dmo580 said:
Guys I don't mean any offense but flat out blocking Play Services when the issue is a single SystemUpdateService wake lock is not the best way. You're effectively shutting off the water main to deal with a faucet leak. There's adverse effects in denying Play Services the ability to wake your phone
The best band aid solution is to use Wakelock Terminator to block the SystemUpdateService wake lock. Its still not a root cause fix but its better than borking the rest of Play Services.
Click to expand...
Click to collapse
Just out of curiosity, do you know what adverse effects will take place if you deny wakeup and keep awake for Google play services?
I am curious because I have those two denied, but I don't think I notice anything negative.... but just because I haven't noticed anything yet doesn't mean something isn't actually going wrong in the background lol.
Cheers
dmo580 said:
Guys I don't mean any offense but flat out blocking Play Services when the issue is a single SystemUpdateService wake lock is not the best way. You're effectively shutting off the water main to deal with a faucet leak. There's adverse effects in denying Play Services the ability to wake your phone
The best band aid solution is to use Wakelock Terminator to block the SystemUpdateService wake lock. Its still not a root cause fix but its better than borking the rest of Play Services.
Click to expand...
Click to collapse
What exactly is this 'best band aid solution'? Wakelock terminator does not work on Lollipop as xpose is not yet supported.
Thanks
The privacy Guard workaround worked. I hope it won't affect my experience with CM11 too badly. I also had to do the same thing with google services framework to get deep sleep.
Another way to solve this is to enable google update service of them both with disable service(play store app)
Disable these two services using Disable Service App. That's it, nothing more!
{
"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"
}
GoogleLocationManagerService
GoogleLocationService
Full Service Name:
com.google.android.location.internal.GoogleLocationManagerService
com.google.android.location.internal.server.GoogleLocationService
My Idle drain which was around 20-30 even with Wifi Data etc off was down to single digits with Wifi and data ON.
Other things I've tried and failed :
Deny Wake Up and Keep Awake permissions to GPS.
Greenify GPS , this only works for a short while but as soon as GPS is back online battery drain also comes back.
Get servicely to kill GPS.
Uninstall and reinstall GPS from play store.
Clear GPS data.
And a few more that I can't remember.
WARNING :
THIS WILL ESSENTIALLY BREAK LOCATION SERVICES.
If you don't use location, well and good.
If you do, you'll have to re enable these two services every time you want to use Maps or any app that uses location.
I use Tasker to re enable them whenever the app launches.
I've attached two apps for enabling and disabling these two services, you can use them as shortcuts whenever you want to enable or disable the two services.
Also attached xml files of the tasks that you can import into tasker. Profile condition should be whatever apps that use location when launched. Use Enable service task as enter task and disable task as exit task.
Minor bug I noticed with Google Maps, enable the two services and turn on Location then launch app, but it won't show you your location sometimes, exit app clear it from recents launch again to get it working.
Thank you for this fix, the issue was driving me nuts. Every other fix I've tried turned out to be only temporary, but after following your instructions the drain seems to be gone for good.
Thank You and Queries
This has helped the most of all the "Fixes" I have tried. Makes a very drastic difference. It's appalling that Google or it's Dependants would wan't to know your Location at such great cost to battery-life. It would have been great if switching the Location On and Off switch in Settings automatically Enabled and Disabled these services for the user.
Any particular reason why your Application has to keep monitoring in the background? Both Enable and Disable keep running for me. Couldn't they exit after they are done?
Thank You in any case for your work.
on&off said:
This has helped the most of all the "Fixes" I have tried. Makes a very drastic difference. It's appalling that Google or it's Dependants would wan't to know your Location at such great cost to battery-life. It would have been great if switching the Location On and Off switch in Settings automatically Enabled and Disabled these services for the user.
Any particular reason why your Application has to keep monitoring in the background? Both Enable and Disable keep running for me. Couldn't they exit after they are done?
Thank You in any case for your work.
Click to expand...
Click to collapse
It doesn't keep monitoring in the background, at most it'll get cached for a while.
There should be no side effects.
Good One
Great Find and explanation.
Thanks
thank you it's work very well
Thanks it works for Samsung S3 as well
Thanks a lot !
PSA: I recently disabled google location history and the drain seems to have lowered to 10mAh, without having to disable those two services.
Just thought others could try the same and see if it helps.
Enable location, then turn off location history.
Google settings - Personal info & privacy - Activity controls - Location history.
I kept location on for a day in battery saving mode then turned it off.
venky716 said:
PSA: I recently disabled google location history and the drain seems to have lowered to 10mAh, without having to disable those two services.
Just thought others could try the same and see if it helps.
Enable location, then turn off location history.
Google settings - Personal info & privacy - Activity controls - Location history.
I kept location on for a day in battery saving mode then turned it off.
Click to expand...
Click to collapse
The drain was definitely there even with Location History off before I disabled the services. Perhaps they fixed the issue with a GPS update? Although everything I know about Google tells me that's highly unlikely.
Sauronych said:
The drain was definitely there even with Location History off before I disabled the services. Perhaps they fixed the issue with a GPS update? Although everything I know about Google tells me that's highly unlikely.
Click to expand...
Click to collapse
I don't know if Google has fixed it, but I saw lower drain recently.
Not as low as with the services disabled but still acceptable.
Have you ever used the privacy guard to deny these services ??
Sent from my A0001 using Tapatalk
adibaba777 said:
Have you ever used the privacy guard to deny these services ??
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
I have and it doesn't work anymore with the recent play services update. What a shame, it used to be such an easy fix! I'll try the methods OP stated and see how it goes. Play services have been plaguing me for far too long!
@venky716
You are my hero!!!
After all the romours what actually cause the battery drain by google play service, thats the real reason!
With the privacy guard fix sometimes there was less battery drain, sometimes it was more, but with this fix my phone almost not losing battery in standby at all! And with Tasker its so easy and I don't have any problems with google maps or here maps.
Thanks alot!!!
Why not just turn off location until you need to use it? Isn't this just doing the same thing just a lot more clicks and time involved?
? Good Luck and GOD BLESS!! ?
Yeah, you should think it would be so easy
Without turning off this services you will still have this battery drain. Maybe Google is still checking your location even if you turn it off or its just that play services wakes up the phone only to find out that there is no location to check.
So if I want to use maps with gps, will this fix affect me?
Enviado desde mi Oneplus One
johnb380 said:
Why not just turn off location until you need to use it? Isn't this just doing the same thing just a lot more clicks and time involved?
? Good Luck and GOD BLESS!! ?
Click to expand...
Click to collapse
I keep location disabled at all times but found that this service was still active all the time and disabling it immediately brought down the idle drain.
elargento said:
So if I want to use maps with gps, will this fix affect me?
Enviado desde mi Oneplus One
Click to expand...
Click to collapse
Yes it will, with the services disabled you won't be able to use maps.
In order to use maps you'll have to re-enable the service, either by tasker or desktop widget shortcuts provided in the OP, before using maps.
Read the OP again carefully [emoji14]
Especially the last part about maps.
venky716 said:
I keep location disabled at all times but found that this service was still active all the time and disabling it immediately brought down the idle drain.
Yes it will, with the services disabled you won't be able to use maps.
In order to use maps you'll have to re-enable the service, either by tasker or desktop widget shortcuts provided in the OP, before using maps.
Read the OP again carefully [emoji14]
Especially the last part about maps.
Click to expand...
Click to collapse
Sorry I asked the wrong question. I meant if I use the phone's gps for offline navigation apps like Viago or navmii.
Enviado desde mi Oneplus One
Year it has solved for me. Cm12.1 with ak kernel.