Battery Drain in Deep Sleep with Stock JB 4.1.2! - Galaxy S II General

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.

Related

Different Location Settings & Effects on Google Now and Battery

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

[GUIDE][PSA] Google Play Services battery drain fix

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?

[FIX] Google Play Services Idle Battery Drain Issue Solved

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.

[ROOT] Notifications Problem Workaround

So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
duraaraa said:
So to work around these issues, the only way to do it is to disable Doze.
Click to expand...
Click to collapse
Have you also tried selecting the Performance plan?
Performance setting still won't work.
Sent from my HUAWEI NXT-AL10 using XDA Premium 4 mobile app
Maybe it can help.
{
"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"
}
Sent from my HUAWEI NXT-L29 using Tapatalk
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
How did you get in that setting? I can't find it in my phone 'setting'
snugroho3 said:
How did you get in that setting? I can't find it in my phone 'setting'
Click to expand...
Click to collapse
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Is greenify working ok without xposed?
sure thing, xposed only enables some extra functions. been using greenify without xposed for a long time now
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
duraaraa said:
So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
Click to expand...
Click to collapse
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
johnweber7375 said:
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
You can check using adb.
I don't have the phone now (it's bricked) so I'm sorry to say I can't be sure the command is right, but I think you should see something like disabled if you run
adb shell dumpsys deviceidle
Then you will know that it worked.
greyhulk said:
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
Click to expand...
Click to collapse
I spend a LOT of time figuring it out, but it was definitely Doze.
The dead giveaway is that Hangouts (high priority message so Doze doesn't matter) worked fine.
I'm happy it works for you. Let's hope Huawei fixes this. Most Chinese users don't really care about Google Cloud Messaging and get their notifications through other services which Doze doesn't affect, so I'm thinking they're not likely to fix it, but we'll see.
Anyone that disabled doze can check how big of an impact it is on battery life?
Also anyway to fix without root?
I solve this issue by giving priority to the important apps notification and all warking perfect now
My device is L29 with kangvip rom
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks mate it helped me solving the notification issue without needing to root my phone.
This does indeed work. Have a look at this thread as well.
http://forum.xda-developers.com/android/apps-games/root-doze-settings-editor-android-t3235130
I wonder if there is some parameter in an apk or in the kernel I can edit so when you flash a ROM doze is disabled by default.
Thanks buddy for that doze thread!
I disabled hangouts and the battery life got much much better
Other notifications I have set via the settings--->notification panel---->notification manager and set according to the app use
bibiner said:
Anyone that disabled doze can check how big of an impact it is on battery life?
Click to expand...
Click to collapse
No difference at all for me. Standby time is just as good. Huawei's own "Doze" still works if you want it to, also.
bibiner said:
Also anyway to fix without root?
Click to expand...
Click to collapse
Yes you can run that command with ADB without root and it will work just as well. Just be sure to have USB debugging enabled in developer options. The part about root is so that you can use Tasker to automate the process instead.
somboons said:
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks for the greenify hint mate!

System Service draining battery life (SOLVED)

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.

Categories

Resources