Massive Google Play Service and WhatsApp Drain - Xiaomi Redmi Note 4 Questions & Answers

I'm facing a massive battery drain since yesterday because of Google Play Service and WhatsApp keep running in the background.
I tried to put Google Play Services to Doze Mode using Universal GMS Doze but didn't resolve it.
I noticed that both services are using 'accelerometer' and 'Significant Motion Detector' wakelock. See the screenshot.
Anyone knows how to fix this abomination?

Try restricting permission to those services
IceHotKilla said:
I'm facing a massive battery drain since yesterday because of Google Play Service and WhatsApp keep running in the background.
I tried to put Google Play Services to Doze Mode using Universal GMS Doze but didn't resolve it.
I noticed that both services are using 'accelerometer' and 'Significant Motion Detector' wakelock. See the screenshot.
Anyone knows how to fix this abomination?
Click to expand...
Click to collapse
Do you use location-based phone unlocking or some relevant service? I believe only those things would use these features of the device that you specified. One quick way of reducing battery usage can be restricting permission of using those features to the services but then again, that would disable certain features. Also, try using Aggressive Doze in Greenify and add those system apps to it as if location access is granted to Google Play Services, it would certainly drain your battery even if your GPS is switched off.

ADInfinity1999 said:
Do you use location-based phone unlocking or some relevant service? I believe only those things would use these features of the device that you specified. One quick way of reducing battery usage can be restricting permission of using those features to the services but then again, that would disable certain features. Also, try using Aggressive Doze in Greenify and add those system apps to it as if location access is granted to Google Play Services, it would certainly drain your battery even if your GPS is switched off.
Click to expand...
Click to collapse
I, indeed use location-based phone unlocking which is Smart Lock. I turned off that option and gonna see the results. Thanks for your tips.

IceHotKilla said:
I, indeed use location-based phone unlocking which is Smart Lock. I turned off that option and gonna see the results. Thanks for your tips.
Click to expand...
Click to collapse
You're welcome! Do hit the thanks button on my post if it helped.

Related

battery drain Google maps

For a few days now I've noticed a massive battery drain of Google maps, up to 60 per cent of the battery use, without evening opening the app (must have been running in the background). I have temporarily disabled the app on my phone, but am I the only person with this problem?
stevennekens said:
For a few days now I've noticed a massive battery drain of Google maps, up to 60 per cent of the battery use, without evening opening the app (must have been running in the background). I have temporarily disabled the app on my phone, but am I the only person with this problem?
Click to expand...
Click to collapse
Make sure the "Location reporting" (in Google Maps settings) is disabled if you don't want the battery drain. Moreover, Google Now activates the Location reporting so you might have to disable Google Now as well...
P.s: this post should be in Q&A section, doesn't it ?
vakbrain said:
Make sure the "Location reporting" (in Google Maps settings) is disabled if you don't want the battery drain. Moreover, Google Now activates the Location reporting so you might have to disable Google Now as well...
P.s: this post should be in Q&A section, doesn't it ?
Click to expand...
Click to collapse
I have google now disabled all the time, and the location reporting was unchecked too.. Besides that, even if that had been activated, it shouldn't have taken 60% of my total battery (I had about 70% of my total battery left when I noticed it today), should it?
(...and yes, this one should be in the Q&A section, hadn't thought about that when I posted it though...)
I had the same issue. I turned all location reporting off and turned off Google now, also made sure GPS was off. All that helped a fair amount but Maps still kept running in the background even though I'd never used the app. In the end I used an app called Greenify to hibernate maps and a bunch of other background apps and it made a world of difference. Use wakelock detector to see which apps are causing wakelocks and disable any you don't need running.
Wyman Gibuil
use an extension car battery so it can add battery life even for month, just make sure you will get the same voltage
Its coz of google location services bug that HTC phones are having after the update.
If you are interested about it: http://www.androidpolice.com/2013/0...ssues-for-htc-owners-google-working-on-a-fix/
In short:
Only location service thats working if you have this bug, is gps. Rest of locations services (wifi, mobile newtwork etc.) wont work.
Who couses it? - latest updates for google services.
How to fix it? - atm google is working on fix. There is some type of user fixes you can try. (see post).
Hope it explains your drain. I have this bu and i get this unusual drain from maps too.

Aggressive doze kills GPS (app)

Hi,
when using aggressive doze on a rooted Nexus 4 with Android 6.0.1 in my GPS tracking app (I tried several), even though whitelisted, the tracking stops after a few minutes.
The apps still show as tracking thus I suspect the GPS itself gets killed and provides no signal/values anymore.
Is it a bug or a feature?
Thanks for the great work
DarsVaeda said:
Hi,
when using aggressive doze on a rooted Nexus 4 with Android 6.0.1 in my GPS tracking app (I tried several), even though whitelisted, the tracking stops after a few minutes.
The apps still show as tracking thus I suspect the GPS itself gets killed and provides no signal/values anymore.
Is it a bug or a feature?
Thanks for the great work
Click to expand...
Click to collapse
Uninstall Greenify and check.
If I disable aggressive doze it works.
If I uninstall the app too of course.
This is a limitation of the doze mode itself enforced by Android. I'm afraid there's no way to workaround that.
A new Tasker plug-in is added in 2.9.5 beta 1 to toggle Aggressive Doze. Hope this could do some help here.
Ah no problem, I thought it might be something like this. I'll just disable aggressive doze while using the app.
The tasker plugin would do this automatically for me, did I get this right?
oasisfeng said:
This is a limitation of the doze mode itself enforced by Android. I'm afraid there's no way to workaround that.
A new Tasker plug-in is added in 2.9.5 beta 1 to toggle Aggressive Doze. Hope this could do some help here.
Click to expand...
Click to collapse
Shouldn't it be enough to disable "Doze on the go" to maintain the gps sensor on?
I have this same problem, and the only way to allow a foreground sports tracking app to access the gps data is to disable both "Agressive doze" and "Doze on the go"...
daniel.mota said:
Shouldn't it be enough to disable "Doze on the go" to maintain the gps sensor on?
I have this same problem, and the only way to allow a foreground sports tracking app to access the gps data is to disable both "Agressive doze" and "Doze on the go"...
Click to expand...
Click to collapse
No. As someone tested before, the stock Doze also disables GPS.
Hello,
I had the same behaviour. I tested something this morning : added to whitelist my navigation app + LocationServices + FusedLocation.
And while I was on the road, the gps worked till I arrived. In the agressive doze log I see that the device did'nt went in Doze during that time.
Don't know if this is directly related, I'll give it another try tonight.
Didn't work tonight, lost gps signal. Something else prevented doze this morning.
Will give a try to the beta and the toggle.
Any news on the subject? I get GPS signal lost while using maps...
RFrancis said:
Any news on the subject? I get GPS signal lost while using maps...
Click to expand...
Click to collapse
I'm now using the beta + Tasker to prevent doze when my navigation apps are on. Works great.
madxxcow said:
I'm now using the beta + Tasker to prevent doze when my navigation apps are on. Works great.
Click to expand...
Click to collapse
Could you export the profile
Here is an example for Google Maps.
madxxcow said:
Here is an example for Google Maps.
Click to expand...
Click to collapse
You should probably re-enable aggressive doze with an exit task. This does not seem to be one of those system settings that will auto restore when the task terminates. Also note that this profile will not trigger if Maps or your GPS app is in the background. I am debating whether aggressive doze is worth the hassle.
I've been having the same issue for a while. I use Locus Maps to record tracks on airplanes (so it may run for 12hrs) and it turns off GPS. Sometimes its hard to tell if its lost because of Doze or I simply lost the signal.
Also, it is plugged into a power source (charging) so I believe Doze should be disabled while charging.
I see above mention of "Tasker". What is this?
eng3 said:
I've been having the same issue for a while. I use Locus Maps to record tracks on airplanes (so it may run for 12hrs) and it turns off GPS. Sometimes its hard to tell if its lost because of Doze or I simply lost the signal.
Also, it is plugged into a power source (charging) so I believe Doze should be disabled while charging.
I see above mention of "Tasker". What is this?
Click to expand...
Click to collapse
The simple solution is to avoid aggressive doze which is tagged 'experimental' and is known to cause some odd device/radio/app behaviors.
Davey126 said:
The simple solution is to avoid aggressive doze which is tagged 'experimental' and is known to cause some odd device/radio/app behaviors.
Click to expand...
Click to collapse
I'm sorry, I should have clarified. I was broadening to Doze itself as I thought I read that it will also disable GPS (but not as fast or "aggressively").
My behavior has been a little different. I notice that if I run maps navigation at the same time as recording my track, there is no issue. but if I just record my track, then it not be able to prevent GPS from stopping.
Perhaps this should go in another forum, I'm just not sure which
eng3 said:
I'm sorry, I should have clarified. I was broadening to Doze itself as I thought I read that it will also disable GPS (but not as fast or "aggressively").
My behavior has been a little different. I notice that if I run maps navigation at the same time as recording my track, there is no issue. but if I just record my track, then it not be able to prevent GPS from stopping.
Perhaps this should go in another forum, I'm just not sure which
Click to expand...
Click to collapse
Try running a GPS Status app (example) concurrent with your tracking app. Aside from helping to keep the GPS 'awake' most have a variety of useful features and functionality.
I have tried that but it does not seem to work. I'll have to check the GPS status options to see if there's something for keeping it awake.
I have noticed that if I run Navigation (not just Maps) in parallel, then the GPS will stay awake.
eng3 said:
I have tried that but it does not seem to work. I'll have to check the GPS status options to see if there's something for keeping it awake.
I have noticed that if I run Navigation (not just Maps) in parallel, then the GPS will stay awake.
Click to expand...
Click to collapse
- as previously noted make sure Aggressive Doze is disabled as it can break cross-app/component communications
- also add you tracker app to 'white list' of you haven't done so already
- good chance Google Maps (any navigation app) is using wakelocks to keep GPS active
- assume all is well when you disable Greenify
- if true you many need to step away from Greenify or consider another app with similar functionality like Force Doze

Greenify and Google play services keep awake

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

Battery setting - Launch - manage all automatically

Hi All
I'm trying to get my head around what Huawei have done with the "Launch" functionality. My naive understanding is that it's huawei's own attempt at greenify. Killing apps that are not being used... somewhat intelligently.
I'm wondering if this actually has any impact on battery at all, it certainly stops processes from launching and running.. notifications being missed etc.
Anyone have any ideas what this is actually doing, or if the setting is actually beneficial? I thought google was against this sort of practice when doze is their solution.
Secondly, the following apps are allowed to ignore battery optimisation out of the box:
Backup
Camera
com.huawei.hiviewtunnel
Email
Google Play Services
Google Services Framework
Health
HwLBSService
Screen recording
System update
Any one know if it is advisable to set these to don't allow ignoring of battery optimisations?
Thanks
alexs1mmo said:
Hi All
I'm trying to get my head around what Huawei have done with the "Launch" functionality. My naive understanding is that it's huawei's own attempt at greenify. Killing apps that are not being used... somewhat intelligently.
I'm wondering if this actually has any impact on battery at all, it certainly stops processes from launching and running.. notifications being missed etc.
Anyone have any ideas what this is actually doing, or if the setting is actually beneficial? I thought google was against this sort of practice when doze is their solution.
Secondly, the following apps are allowed to ignore battery optimisation out of the box:
Backup
Camera
com.huawei.hiviewtunnel
Email
Google Play Services
Google Services Framework
Health
HwLBSService
Screen recording
System update
Any one know if it is advisable to set these to don't allow ignoring of battery optimisations?
Thanks
Click to expand...
Click to collapse
Allow none of them. Cause no harm
lawtq said:
Allow none of them. Cause no harm
Click to expand...
Click to collapse
I'm wondering the same thing.
Are you sure that we can allow none of them app ?
I'm not allowing any apps that need to stay running (in the background) like Garmin Connect, Ad blocker, virus scanner and some more to avoid Huawei killing them. I see no difference in battery consumption.
sonydesouza said:
I'm wondering the same thing.
Are you sure that we can allow none of them app ?
Click to expand...
Click to collapse
I've disallowed all of them. I don't see any problems
lawtq said:
I've disallowed all of them. I don't see any problems
Click to expand...
Click to collapse
And did you see any improvments ?
sonydesouza said:
And did you see any improvments ?
Click to expand...
Click to collapse
Tbh no. Lol. Battery is great no matter what. But no harm either

Phone not going into deep sleep

What can I use to check to see what's causing my phone to not go into deep sleep mode at night or during the day. My batter all of the sudden is draining way too fast and almost dies at night.
Inside your settings there should be app called battery/ device health/ digital well being
It keeps track of app usage and battery drainage (this works if you dont have custom mods)
next it could be that your device is running in performance mode the whole time
flairepathos.info said:
Inside your settings there should be app called battery/ device health/ digital well being
It keeps track of app usage and battery drainage (this works if you dont have custom mods)
next it could be that your device is running in performance mode the whole time
Click to expand...
Click to collapse
I have power-saving mode turned off. I'm not sure about the app listed above. I don't see anything in settings. I just installed Better Battery Stats which I used to use a long time ago to see if that can tell me anything.
steelersmb said:
I have power-saving mode turned off. I'm not sure about the app listed above. I don't see anything in settings. I just installed Better Battery Stats which I used to use a long time ago to see if that can tell me anything.
Click to expand...
Click to collapse
But better battery stats will use more of your battery since its logging everything, all the time. And has your phone always been draining fast or is this something new?
flairepathos.info said:
But better battery stats will use more of your battery since its logging everything, all the time. And has your phone always been draining fast or is this something new?
Click to expand...
Click to collapse
I know it will but I can at least see what's going on for the short term. No, this just seemed to start about a week ago so I'm trying to figure out what new apps I may have installed.
steelersmb said:
I have power-saving mode turned off. I'm not sure about the app listed above. I don't see anything in settings. I just installed Better Battery Stats which I used to use a long time ago to see if that can tell me anything.
Click to expand...
Click to collapse
Leave power management disabled; ID and deal with each battery hog on a case by case basis.
Galaxy Labs Battery Tracker can be useful.
Karma Firewall. Package Disabler (not on Playwhore).
For starters:
Google backup Transport, Framework and Google Firebase... prime suspects.
Playstore, wretched apk it is.
Google play Services is another one to watch, try disabling it. A lot of apps are dependencies of it.
Any cloud apps.
All carrier, Google, Samsung and app feedback
WhatsApp, FB, etc, take out the trash.
Carrier update app, kill it if you don't want OTA updates jammed down your throat.
blackhawk said:
Leave power management disabled; ID and deal with each battery hog on a case by case basis.
Galaxy Labs Battery Tracker can be useful.
Karma Firewall. Package Disabler (not on Playwhore).
For starters:
Google backup Transport, Framework and Google Firebase... prime suspects.
Playstore, wretched apk it is.
Google play Services is another one to watch, try disabling it. A lot of apps are dependencies of it.
Any cloud apps.
All carrier, Google, Samsung and app feedback
WhatsApp, FB, etc, take out the trash.
Carrier update app, kill it if you don't want OTA updates jammed down your throat.
Click to expand...
Click to collapse
Would it be possible to explain to me why have an S21 if not to deactivate everything and make it a Nokia 3310. Stop using a smartphone, I have the solution ........... .
And if you have twrp and copy your system and vendore partition files to your pc you can also look in the priv-app section and their xmls to include apps to not run always

Categories

Resources