Help solve/figure out this google problem please! - General Questions and Answers

Phone is Xiaomi Redmi 1s. The problem started happening after updating to MIUI 8. I have another Xiaomi phone on an older rom with the same Android version/ Google Services/Framework versions and no problem. Also tested various other phones without issue.
The official MIUI forum is completely useless so I'll try here.
If I have Location services set to battery saver or high accuracy (which means google location services is enabled) AND location history disabled at the same time, there is serious battery drain by the process com.android.google.gms.persistent. Before the recent Google Services update, what would happen is when the process starts, Data store under Google Play Services increased at the same time as high cpu usage, but now the data does not increase, however the bug happens for longer in standby and stops when you wake it. Before it would happen more when phone was active. It always shows itself as high % usage by Google Services and Android system is battery stats.
Have load of screenshots/bug logs but here's the most recent. Awake time would be longer but I stopped it once I noticed it was happening again (was testing since I updated to latest weekly rom) I can make the bug happen at will....100% of the time.
My main question to XDA. What is CMWakeLock? It is certainly related to the problem

Bug log belong to the screenshots above. Not the wakelock detector one if someone happens to look through it and checks by time.

bump

Related

[Q] Play Services crazy battery drain on brand new installation

I was having a few battery drain and stability problems so I decided it was time to do a fresh install of Android. The main culprit was Play Services but it was always a different thread and I could never get the problem under control. I was barely getting through a 16 hour day on a single battery charge even with only an hour of screen on time which is insane for these droid maxx's.
I flashed stock Android 4.4 and accidentally unrooted myself in the process, but that means I am 100% stock kitkat with the late April mini update.
I still have the Play Services battery drain bug.
I killed half my battery yesterday in like a half hour of screen on time and 7 hours of idle. The phone won't sleep. Google Play Services still shows as the culprit in the battery settings.
I've disabled Now, location settings, sync (it literally doesn't sync anything), wi-fi, and interest-based ads. (All tips I've seen from people that have had the bug across XDA). I've let Play Services update from 4.8 to 5.0. And it still won't let the phone go to sleep.
Anyone have any other thoughts on the issue? I'm ready to pull my hair out! I have no idea what's causing this bug but it's driving me up the wall.
BTW I don't have any meaningful screenshots right now because I'm not rooted yet. I'm going to try jcase's pie method to get root back and post via BBS, but in the meantime I've heard this is a fairly common issue, so I threw the post up in case anyone else has encountered and solved the problem. What I'll share in the meantime is that my phone has been off the charger today for 1 hr 39 min. Play Services has kept it awake for 1 hr 38 min.
empoweredh22 said:
I was having a few battery drain and stability problems so I decided it was time to do a fresh install of Android. The main culprit was Play Services but it was always a different thread and I could never get the problem under control. I was barely getting through a 16 hour day on a single battery charge even with only an hour of screen on time which is insane for these droid maxx's.
I flashed stock Android 4.4 and accidentally unrooted myself in the process, but that means I am 100% stock kitkat with the late April mini update.
I still have the Play Services battery drain bug.
I killed half my battery yesterday in like a half hour of screen on time and 7 hours of idle. The phone won't sleep. Google Play Services still shows as the culprit in the battery settings.
I've disabled Now, location settings, sync (it literally doesn't sync anything), wi-fi, and interest-based ads. (All tips I've seen from people that have had the bug across XDA). I've let Play Services update from 4.8 to 5.0. And it still won't let the phone go to sleep.
Anyone have any other thoughts on the issue? I'm ready to pull my hair out! I have no idea what's causing this bug but it's driving me up the wall.
BTW I don't have any meaningful screenshots right now because I'm not rooted yet. I'm going to try jcase's pie method to get root back and post via BBS, but in the meantime I've heard this is a fairly common issue, so I threw the post up in case anyone else has encountered and solved the problem. What I'll share in the meantime is that my phone has been off the charger today for 1 hr 39 min. Play Services has kept it awake for 1 hr 38 min.
Click to expand...
Click to collapse
Ive had this problem too... Only I am on 4.2.2. Only fix for me was either nandroid'ing back to a previous state [temporary fix] or using Xposed + WakeLock Terminator to prevent GPS from getting WakeLock [So far has been permanent for about 1 month]
There's a couple of ways to address this. As noted, this is an issue with the play services abusing the GPS. In addition, it's a problem with the stock firmware. As I am sure you want to continue using GPS, these options allow you to leave it on.
In the GPS configuration, it's possible to reduce or turn off access to GPS to individual apps.
There are apps that allow managing app permissions. You can use this to revoke access to various things. Use it to revoke play services access to GPS.
If memory serves me right, these don't require root.
I managed to get root back so what I'm experimenting with is the app ops settings. I'll report back with an update. Thanks for the ideas guys.

[Q] Higher idle drain?

Looks to me like there is a higher idle drain with the OTA/OTA Incremental update.
I'm seeing a 3-4x increase in amperage draw.
7-9mA before the update.
30-40mA after the update.
Nothing new installed.
Is anyone else seeing the same problem?
May have to go to my backup if this doesn't somehow fix itself.
My battery hasn't been great from the beginning. This update does seem to have made it significantly worse though.
It's starting to seem like it's worse than my Nexus 5!
mbudden said:
Looks to me like there is a higher idle drain with the OTA/OTA Incremental update.
I'm seeing a 3-4x increase in amperage draw.
7-9mA before the update.
30-40mA after the update.
Nothing new installed.
Is anyone else seeing the same problem?
May have to go to my backup if this doesn't somehow fix itself.
Click to expand...
Click to collapse
Turn off the " OK google " stuff , i had experience of it waking up device quite often and draining my battery, try turning them off ...
Other place to look out for what is walking up your device most of the time and deny them the access to wake up your phone , to hunt those apps , check
settings -> privacy -> privacy guard -> menu -> advanced -> device tab .
I found my facebook app / google play services was constantly waking up my device when on sleep , i denied "keep awake" to boost some more battery life ...
Hope that helps
For the first day, the phone was wakelocked by google play services. I used privacy guard to block it and unblocked it after a day and the drain has disappeared.
kokocabana said:
For the first day, the phone was wakelocked by google play services. I used privacy guard to block it and unblocked it after a day and the drain has disappeared.
Click to expand...
Click to collapse
For me it's been Android OS. It's used more than twice the battery as the screen and in 6 hours off battery has had 2 hours of "keep awake."
As a note I had disabled the google play services that was causing the drain when I first got the phone last month.
Vote for the issue here!
https://jira.cyanogenmod.org/browse/BACON-599

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

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

sensor_ind and Significant Motion Detector Kernel Wakelock waking up Device

Recently I have been facing a wierd battery drain issue... A kernel wakelock as "sensor_ind" keeps waking My Device up from Deep Sleep when the Device is locked... The time of device awake and the time that wakelock was on and the time Google Play Services used "Significant Motion Detector" is almost the same (in the screenshot all 3 is on for about 4 hrs)... Is it related to Doze function linked with Play Services or any app using it??? I tried different ROMs with different Kernel but this issue persists in all (for the last 1 week)...
I tried a lot of tweaks to fix it but none helped... I tried adding Play Services to battery optimisation, restricted running in background, restricted keep awake... Tried wiping Play Services data and reinstalling it updates...
I attached screenshots using BetterBatteryStats app before sleeping and after I woke up...
I have the same issue

OP7Pro battery drain 10%/h screen off 🤯 HELP

So I've had my OnePlus 7 Pro for over a year now and battery has been getting steadily worse. I've been running the latest stock beta channel (O2_BETA_5 atm) with Magisk and my battery drain has been consistently awful. I'd turn off WiFi in the evening and still my battery would be half gone by the morning. In the beginning the phone would easily last the day and now it barely gets me halfway through. I've attached a SS from AccuBattery showing a 10%/h drain with screen off. I've ordered a new battery but don't see the point of changing it before fixing this glaring software issue. I've done minor tweaks with root (including https://github.com/peterroth/OnePlusBatterySaver) so I don't know - maybe I ****ed something up. I would prefer not to do a factory reset but at this point I don't know what else to try. Please help!
Was also using beta 5, moved too the latest stable. Battery on last beta is bad.
Or maybe install BBS to monitor what's draining your battery
Lot of trash apps.
At least block the Gallery app with Karma Firewall; it doesn't need internet access unless you're using cloud services.
Any cloud services impact battery life...
Google Backup Transport, Framework and Google play Services are known serial offenders.
Google Firebase is another one that runs in the background mining your data like a little b$tch.
Trash apps sometimes wake up Google system apps or Android Services with their bs.

Categories

Resources