Solution to battery drain cause by Google Services - Android General

Hello,
May be you have battery drain cause by Google Services ? Not sure ? Install BetterBatteryStats from XDA and check deep sleep state and check which app cause wakeup. Deep sleep must be higher.
To prevent Google Services cause battery drain and allow the device to retrieve a normal high level of deep sleep state, here the solution :
Not Rom AOSP :
- Install App Ops from Play Store and follow the same trick bellow.
Rom AOSP (CM11…) :
- Go to Privacy Guard (App Ops) under Privacy, in Systems settings.
- Show system apps
- For Google Play Services and Google Search, deny these two permissions :
- Wake up (set to denied)
- Keep awake (set to denied)
That’s all, welcome back to battery life
Please, press my thanks button if this helped you.

Related

[GUIDE] 0% [0.0%/h] Idle Battery Drain on Stock ROM (XPosed & Amplify Required!)

The ORIGINAL:good: Amplify Guide Thread
View attachment 3106730
On the Portal News! Jan 8, 2015
{
"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"
}
TheBitBag Thursday, January 15th, 2015
Noob’s Space, 2015年08月30日
THIS IS REAL. This also goes against traditional methods/advice of reducing battery drain while idle. Idle battery drain comes mostly from Alarms and Wakelocks that want to work when they're supposed to be sleeping. This GUIDE will help you reduce your idle battery drain to 0% [0.0%/h] without turning your smartphone into a dumbphone. The EVIDENCE is all in the attachments.
0% [0.0%/h] does not mean no battery drain. BetterBatteryStats only detects up to one decimal point so 0.0% means you have a drain of between 0.01% - 0.09% or less than 0.1% so it shows 0.0%.
What you DON'T have to do
NO disabling GPS
NO disabling Auto Sync
NO disabling Google Now
NO disabling Location Services
NO disabling Location History
NO disabling Android Backup
NO disabling WiFi
NO disabling Google Services Framework
NO disabling Receivers
NO disabling Google Maps
NO disabling Facebook / social apps
NO converting Google Play Services to a User App
NO breaking Push Notifications
NO Tasker/Automation battery saving rules
NO Custom ROM involved
NO Init.d Battery saving scripts involved
NO Underclocking involved
NO changing of Governors involved
NO blocking Google IP addresses with Firewall
Doing any one of these "NO's" will reduce battery drain BUT you then mostly lose functionality. So how is it possible, what is involved, what do you get, and how do you do it?
What is possible
GPS - High Accuracy :good:
Choose Battery Saving and no near instantaneous GPS lock. Choose Device Only and Google Maps shows your last GPS location lock (which may not be your current location).
Auto Sync All your Accounts :good:
Google Now, Location Services & History working :good:
Turn off Location Services & History and Google Now doesn't work or as well and your GPS gets turned off.
Android Backup is on :good:
If turned off all your backups will be deleted (it's not a toggle) - thanks Google - not!
WiFi can be kept awake (even during deep sleep) :good:
Scanning always available :good:
Google Services Framework is not disturbed:good:
Receivers are not disturbed :good:
Google Maps is available :good:
It's still the best and has the most up-to-date maps.
Facebook /Social Apps are available :good:
They can be used as they are meant to be. These app can be tamed (with the exception of WeChat(!) - Whatsapp ok, Line Ok).
Google Play Services remains a system app :good:
As it should be - avoid complications.
* Instant Push Notifications :good:
(mileage may vary)
No need for Tasker/Automation battery saving rules :good:
Too many rules and they can also drain the battery. They tend to have one wakelock/alarm for each rule!
Completely Stock Rom (rooted) without need of Init.d, Governors, underclocking, Min/Max CPU, and everything Google is working :good:
Attachment 1: Other
6h 29m 19s Bat.: 0% [0.0%/h]
Deep Sleep
6h 28m 24s 99.8%
Awake
54s 0.2%
As you can see in the status bar, b & kb are being transmitted and the battery temp as well as the time, they are green in colour indicating that the device is connected to a live network - meaning WiFi is on and was never off.
Attachment 2: Kernel Wakelock
All under 15s for nearly 7 hours - if you have kernel wakelock problems, this guide can't help you. Amplify can't limit kernel wakelocks.
Attachment 3: Partial Wakelock
1s for nearly 7 hours - do you like what you see?
Attachment 4: Alarms
Wakeups: 1 for nearly 7 hours - do you like what you see? Com.google.android.gms puts all its alarms under this but each of its alarms is also Wakeups: 1 (see Attachment 5 in next thread).
* how to do it *
What you need
Root - find out for your own device
Xposed (download link)
Amplify (download link)
You can debloat, freeze, greenify but what can really bring your idle battery drain to 0.0%/h is Amplify (forum link). This guide (based on Xperia Z1 KitKat (now Lolipop) / my apps / my usage patterns) will list the alarms & wakelocks and time that they've been limited that I've used to gain the result I've shown you. NOTE: This is a guide and your phone/apps/usage patterns WILL be different. See Post #3 (especially Step 7) on how to test. Do NOT limit anything that doesn't drain for you (unless it's ads or privacy related).
Strikeouts mean that the alarms/wakelocks used to drain but no longer seem to but should still be safe for you to limit if they drain for you.
FIX for
suspend_backoff (kernel wakelock)
Alarms (Allow every 7200 seconds or 2 hours)
*
affects push notifications (alerts from mail, social apps, etc.) Things may get delayed if the phone has been idle for a while. Turning on the screen, connecting to a new WiFi or any event that wakes up the phone can trigger push notifications.
- ALARM_WAKEUP_CACHE_UPDATER
- android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED
- com.android.vending/com.google.android.finsky.services.ContentSyncService
- com.google.android.apps.sidekick.SCHEDULED_REFRESH
- com.google.android.sidekick.shared.a.a.UPDATE_CALENDAR_ACTION
- com.google.android.apps.gsa.kato.ACTION_ALARM
- com.google.android.googlequicksearchbox/com.google.android.sidekick.main.TrafficIntentService
- com.whatsapp.alarm.AVAILABLE_TIMEOUT
- com.whatsapp.MessagingService.RECONNECT
Alarms (Allow every 43200 seconds or 12 hours)
- android.content.syncmanager.SYNC_ALARM
- com.android.providers.calendar.intent.CalendarProvider2
(use alternative calendar here)
- com.facebook.push.mqtt.keepalive.KeepaliveManager.ACTION_INEXACT_ALARM.com.facebook.katana
- com.facebook.common.executors.WakingExecutorService.ACTION.ALARM.com.facebook.katana.Mqtt_Wakeup
- com.facebook.common.executors.WakingExecutorService.ACTION.ALARM.com.facebook.katana
- com.google.android.gms.gcm.ACTION_CHECK_QUEUE
- com.google.android.intent.action.GCM_RECONNECT
(may break push notifications for custom ROMs)
- com.google.android.gms.gcm.HEARTBEAT_ALARM
- com.google.android.intent.action.MCS_HEARTBEAT
- com.google.android.intent.action.SEND_IDLE
- com.whatsapp.alarm.CLIENT_PING_TIMEOUT
- com.whatsapp.messaging.MessageService.LOGOUT.ACTION
- com.whatsapp.messaging.MessageService.CLIENT_PINGER_ACTION
Alarms (Allow every 86400 seconds or 24 hours)
Custom Regex
CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{4,}
- android.app.backup.intent.RUN
- com.android.internal.telephony.data-stall (reported to break WiFi calling)
- com.google.android.gms/.checkin.EventLogService$Receiver
- com.google.android.gms/checkin.CheckinService%Receiver
Location alarms (both rough and fine)
* They wake up your device to get a fix (from GPS/network/cell towers) by Google Play Services for apps like Google Now and for Google's own database. GPS may be delayed in the background for Google apps like Google Now. Refresh manually. Navigation apps do not rely on these location alarms. They access the GPS directly.
- ALARM_WAKEUP_ACTIVITY_DETECTION
- ALARM_WAKEUP_ACTIVE_COLLECTOR
- ALARM_WAKEUP_BURST_COLLECTOR
- ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
- ALARM_WAKEUP_PASSIVE_COLLECTOR
- com.google.android.gms.flp.BATCH_FLUSH
- com.google.android.gms.location.fused.GPS_ALARM_BALANCED_ACCURACY
- com.google.android.location.reporting.ACTION_UPDATE_WORLD
- com.google.android.location.ALARM_WAKEUP_IN_OUT_DOOR_COLLECTOR
- com.google.android.location.ALARM_WAKEUP_SENSOR_COLLECTOR
- com.google.android.location.ALARM_WAKEUP_SENSOR_UPLOADER
- com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVE_COLLECTOR
- com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_DETECTION
- com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLLECTOR
- com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
- com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR
- com.google.android.gms.nlp.ALARM_WAKEUP_PASSIVE_COLLECTOR
- GPS_ALARM_BALANCED_ACCURACY
Alarms (Allow every 9999999 seconds or max)
- com.facebook.analytics.service.AnalyticsEventUploader.ACTION_ALARM
- com.google.android.gms.common.receiver.LOG.CORE_ANALYTICS
- com.google.android.gms.common.receiver.LOG_CORE_ANALYTICS
- com.google.android.gms.analytics.ANALYTICS_DISPATCH
- com.google.location.internal.AnalyticsUploadIntentService
Wakelocks (Allow every 7200 seconds or 2 hours)
- *net_scheduler*
- AlarmService#updateNTP
- ConnectivityService
- StartingDockService
- wake:com.whatsapp/.AlarmService
Wakelocks (Allow every 43200 seconds or 12 hours)
-
Wakelocks (Allow every 86400 seconds or 24 hours)
- QcConnectivityService
Location wakelocks (both rough and fine)
- NlpWakeLock
- NlpCollectorWakeLock
Wakelocks (Allow every 9999999 seconds or max)
- Analytics Wakelock
- *job*/com.facebook.katana/com.facebook.analytics2.logger.LollipopUploadService
- JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadService
- UploadServiceLogic-com.facebook.analytics2.logger.LollipopUploadService
DANGEROUS - DO NOT LIMIT / DENY
Wakelocks
- *backup* -(CAUSES REBOOT)
- AlarmManager (alarm clock can stop working, etc.)
- Icing (reported to force close Google Play services, etc.)
- pkg_move_lock (bootloop reported)
- UlrDispatchingService (Google play services has stopped)
Alarms
- com.oasisfeng.greenify.CLEAN_NOW (Greenify stops hibernating apps)
- com.system.analytics.cpa.service.Myservice (reported to force close FB Messenger)
Services
- com.google.android.gms/.checkin.CheckinService (its related wakelock will run wild)
- com.google.android.gms/.checkin.EventLogService (its related wakelock will run wild)
- com.google.android.gms/com.google.android.libraries.social.autobackup.FingerprintScannerIntentService (its related wakelock will run wild)
(also see other recommendations within Amplify)
Not Recommended
Wakelocks
- ALARM_WAKEUP_LOCATOR (required for "in Vehicle" trigger in Automation apps)
- AudioMix - affects notification sound
- ALARM_ACTION(#####) - WeChat will just create another (number)
- android.appwidget.action.APPWIDGET_UPDATE - affects widget accuracy (widgets drain battery, your call
- StartingAlertService - calendar notifications won't trigger
(also see other recommendations within Amplify)
Deny these Ads/Privacy related Services
After disabling any service, reboot the phone because it is dangerous to disable any service on-the-fly according to Amplify so it's only disabled on a reboot. Read warning here.
- com.facebook.katana/com.facebook.backgroundlocation.reporting.BackgroundLocationReportingNewImplService
- com.facebook.katana/com.facebook.analytics.service.AnalyticsService
- com.facebook.katana/com.facebook.analytics2.logger.LollipopUploadService
- com.facebook.katana/com.facebook.analytics2.logger.GooglePlayUploadService
- com.facebook.katana/com.facebook.videoads.scheduler.VideoAdsFetchService
- com.google.android.gms/ads.jam.NegotiationService (reported to force close Google Play Services on some devices)
- com.google.android.gms/.ads.social.GcmSchedulerWakeupService
- com.google.android.gms/.analytics.AnalyticsService
- com.google.android.gms/.analytics.service.PlayLogMonitorIntervalService
- com.google.android.gms/.analytics.service.RefreshEnabledStateService
- com.google.android.gms/com.google.android.location.internal.AnalyticsSamplerService
- com.google.android.gms/common.analytics.CoreAnalyticsIntentService
- com.sonymobile.enterprise.service/.GoogleAnalyticsLogger
- com.sonyericsson.android.socialphonebook/.analytics.GaInitService
- com.sonyericsson.conversations/com.sonymobile.conversations.analytics.GaInitService
- com.sonyericsson.extras.liveware/.analytics.AnalyticsService
NOW TESTING (please help to test and confirm, thank you!)
Nothing.
* how to test *
Screen On needs to be less than a minute as we want to find out what's draining in idle mode. If you've used the phone then there's no way to tell what's acting up when it shouldn't be and there's no way to separate the active from idle.
In BBS Settings - Advanced
Untick Alarms using API & Kernel Wakelocks using API (it's less accurate) unless using API is the only way to show alarms & wakelocks for your phone.
STEPS
Establish Baseline (battery ONLY drain)
Charge battery to full (100%).
Switch phone OFF.
After 7 hours or so turn it on.
To get drain / hour, divide % of battery reduction with number of hours the phone was off. Example, if battery % dropped by 1% after 7 hours, then 1 / 7 = [0.1%/h]. This is your battery only drain, without drain from Android OS, radio signal, WiFi, data, wakelocks, & alarms. You can't get a better drain than this without removing your battery.
Establish Baseline (Airplane Mode)
Charge battery to full (100%).
Switch phone to Airplane Mode.
After 7 hours or so turn off Airplane Mode.
Check drain in BBS. This is your battery drain, without drain from radio signal, WiFi, and data. You can't get a better drain than your battery only baseline.
Test Idle Battery Drain
Charge battery to full (100%).
Reset Amplify Device Stats NOT Reset to defaults.
(Useful for troubleshooting which limited alarm/wakelock is causing trouble)
Leave phone idle for 7 hours or more.
Check phone for any unknown reboot (running time in Amplify & BBS must be the same. If BBS has a MUCH shorter time or if it shows "Boot" instead of "Unplugged" then there was a reboot as BBS doesn't keep stats after reboot).
Report here for the cause of reboot and do not limit it anymore.
It is easier to use BBS as a guide for battery drain. Increase time of limited alarm/wakelock and/or limit other alarms or wakelocks. Don't limit something that doesn't cause drain for you (unless it's ads/privacy).
Repeat Step 1.
Your PHONE can't get a better drain than the two baselines.
[LINK] Why charge to 100% instead of setting custom reference and measuring from there?
Sometimes battery levels have been observed getting stucked at lower levels and not draining at all despite being in used for over half an hour. That is level lost and voltage lost are sometimes not in sync.
Level lost [%]: Bat.: -2%(71% to 69%) [0.3%/h]
Voltage lost [mV]: (4066-4066) [0.0%/h]
Level lost but no voltage lost or vice versa is not logical.
How to find problems with limited alarms/wakelocks
If it's not in the guide, you'll have to test it yourself.
In Amplify, RESET Device Stats.
Use the app you have a problem with.
Check in Amplify what alarms/partial wakelocks were triggered.
OR Disable Amplify, reboot and see if your problem still occurs.
If you need help
(Don't start using phone first - I can tell from screen on time)
ATTACH a Text Dumpfile - in BBS, --> Share --> Text Dumpfile and ATTACH as an ATTACHMENT (not post) the textfile. (Don't attach screenshots if there's a dump available)
IF Alarms & Wakelocks are already low OR if you have severe drain, then attach idle BBS text dumpfile + attach (as an attachment, NOT post): IDLE screenshots of
(Android) Settings - Power management
Battery usage (to see app usage)
History details (to see mobile network signal and coverage and others)
BetterBatteryStats
Graphs - in 3-vertical-dot menu (to see more detailed wakelock graph)
History - in 3-vertical-dot menu (to check for skipping and abnormal drain)
WiFi Connection Manager
Spectrum (to check for ovelapping with other WiFi networks)
Facing problems with abnormal battery % and shutdown ?
(from Sony support forum - removable/built-in batteries)
WARNING
To be safe, turn OFF your WiFI before using this battery trick. All your saved WiFi passwords can disappear with a hard forced shutdown/restart). WiFi passwords are supposed to be saved to Google (if you have backup enabled) but they're NOT restored by Google.
Use WiFi Connection Manager to save all your WiFi passwords onto the SD Card.
BBS note
NO posting in multiple threads for help (unless you didn't get a reply after a few days or want a different opinion).
The suspense is killing me. . .
mcdavid said:
The suspense is killing me. . .
Click to expand...
Click to collapse
Well, it takes time to type it all out and to decide what information to present and how to present it. In the meantime the screenshots are in my signature if you haven't seen them. Not sure if I also need to post them in this thread as attachment or inserted images.
Post #1 is DONE. Comments? Criticisms? Photoshop accusations?
Post #2 started. This guide will go faster once @cryptyk implements copy+paste in Amplify. Until then, I'll have to decide if I'm going to actually type them all out....
This is great. Subscribed
Hi
Thanks forma the PM.
I will try again tonight and will post in the morning
thegios said:
Hi
Thanks forma the PM.
I will try again tonight and will post in the morning
Click to expand...
Click to collapse
Welcome to the hobby of fine tuning battery drain. As you can see, after amplifying those NLP wakelocks and alarms, they hardly show up in BBS anymore so it's working. You can increase the limit of whatever shows up in BBS. What's happening now is that other apps are creating wakelocks and alarms most notably Facebook so Amplify com.facebook.katana. Then after another 5-7 hour idle period check again and repeat process.
This is getting worst and worst.
Tonight I got 12%.
Can u pls send me ur settings?
thegios said:
This is getting worst and worst.
Tonight I got 12%.
Can u pls send me ur settings?
Click to expand...
Click to collapse
There's no option to send settings and it'll be different for each phone as we have different apps. Just limit the wakelocks and alarms that cause drain in BBS. When you say worse you need to say what the cause is then limit them. Or post screenshots.
Here it is
thegios said:
Here it is
Click to expand...
Click to collapse
Limit:
Alarms
com.facebook.katana
com.facebook.orca
They are your FB main app and FB Messenger app I believe.
Bad news - for the past week or two my device had a random reboot that wasn't there before. Removing the last few items limited didn't solve it. I had to remove everything and start all over.
Good news - found the item and it's reproducible. It's the *backup* wakelock. When it's associated alarm kicks in, limiting the wakelock will cause a reboot. It was hard to find as I had limited both Google's backup alarm and wakelock without problem before. Google's backup has a massive drain on battery going on for more than an hour at a time if not limited.
I suspect, updates to Play Services causes this reboot. Nonetheless, limiting its related alarm still works. It just insists on kicking up a fuss now on staying awake when its alarm goes off. Thanks again Google. How about making the backup run when connected to a Power Source instead?
Post #2 continued with colour coded alarms/wakelocks according to Amplify. Post #3 started.
Quality idea. I think this is the most thought I have seen someone put into this.
TroostMe said:
Quality idea. I think this is the most thought I have seen someone put into this.
Click to expand...
Click to collapse
Thank you kindly. Hopefully you've been lurking around longer than when your account was created.
Celestial Fury said:
Thank you kindly. Hopefully you've been lurking around longer than when your account was created.
Click to expand...
Click to collapse
I have not been lurking around to much I just wanted to post some of my apps on this site and get to know some other people that either I can help or they can help me. So I guess your post was one of the first I have seen from this community but I meant what I said. Hopefully I can create some better apps using this community.
Some changes to Post #2. Trying to put everything into 3 time categories - 2h, 12h, & 24h.
Audiomix had to be removed as it stopped sms notification sound. I limited it at first as I usually play games with sound off but even with sound off it creates a huge unnecessary wakelock. So, I was trying to limit unnecessary drain when awake. Another Google design.
Also put Google's WiFi collection database alarm/wakelock into 12h. I practically go to the same places at the same time every day/week. Shouldn't they be able to tell it's the same place and already in their database? Hello, Google?
Others seem ok with no reboot. It's probably that *backup* reboot but I'm still going slow for now. Google backup alarm now at 24h with no reboot. More confirmation that it's only its wakelock that now gives reboot.
Update to Post #2
Forgot to add previously that Greenify and Sony's Stamina mode causes slight drain as well so they're also limited - they're working too hard.
APPWIDGET_UPDATE is now limited. I only have 2 low priority widgets so it's of no concern to me. However, it might have an affect if you depend on widgets.
Calendar (alarm) seems to settle down at 12h. There's really no need to trigger multiple times during a day like it wants to.
AlarmManager wakelock is actually listed under Not safe to limit in Amplify but it causes drain as reported by BBS and it can be safely limited without reboot so far. If there are other side effects I haven't experienced or linked it yet. If you do, let me know so I can test.
Google's News and Weather app also acts up and only seems to settle down at 24h. Then some other stuff limited that I used to limit before. I think we're getting there.

Disable location completely?

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

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

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

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

GSpace high battery consumption

Hi group!
I use stock ROM (EMUI 11 - 11.0.0.230) with GSpace for Gapps.
The thing is it keeps the device awake, according to the Gsam app.
Specifically, the *location* wakelock has the maximum time of keeping the system awake.
I have to manually kill the GSpace app after every Gapp I use, but this is kind of inconvenient.
I suspect Google Maps is the root app behind this (thus the location wakelock), but just killing it alone doesn't seem to do the job.
Googling about this didn't help, so I decided to post!
Any ideas/clues?
On settings - battery - app launch - automatic management, find the apps you want to kill, turn them on, turn them off - here turn off all 3 options.
You can also use (I use them too) Fast reboot and phone optimisation widget.

Categories

Resources