[GUIDE] Stop Google Play Services Wakelocks (AppMeasurement, net_scheduler, etc.)

xNAPx

Senior Member
Sep 26, 2010
583
84
48
On the initial guide I haven't seen anything about "appmeasurementjobservice" would that be safe to deactivate?

Sent from my ONEPLUS A3003 using Tapatalk
 

xNAPx

Senior Member
Sep 26, 2010
583
84
48
There are also other servicese like "firebasemessagingservice" is that safe too? Have you got links to those guides?

Sent from my ONEPLUS A3003 using Tapatalk
 

ondoin

Senior Member
Apr 15, 2017
56
4
0
Yeah, they removed it a couple of days ago. The problem I have is that the phone get slower instead of getting faster and the battery drains faster too. Plus, my logcat is spammed with the same errors again and again. I think there should be a sticky list here at XDA with services that are safe to disable.
 

DB126

Senior Member
Oct 15, 2013
15,235
9,944
253
Yeah, they removed it a couple of days ago. The problem I have is that the phone get slower instead of getting faster and the battery drains faster too. Plus, my logcat is spammed with the same errors again and again. I think there should be a sticky list here at XDA with services that are safe to disable.
I would oppose such a list (which could never be properly maintained anyhow) as mucking with core services, alarms, wakelocks, etc. is totally unnecessary on a healthy device despite the spin that suggests such actions are necessary to achieve a happy, healthy device. Squashing symptoms vs. addressing root cause is never a good solution as such actions generally spawn additional undesirable behaviors (symptoms) that must then be squashed. Vicious, never ending cycle of pain.
 

magnamentis

Senior Member
Jul 30, 2013
8,668
8,615
253
Al-Ándalus
magnamentis.com
Yeah, they removed it a couple of days ago. The problem I have is that the phone get slower instead of getting faster and the battery drains faster too. Plus, my logcat is spammed with the same errors again and again. I think there should be a sticky list here at XDA with services that are safe to disable.
I would oppose such a list (which could never be properly maintained anyhow) as mucking with core services, alarms, wakelocks, etc. is totally unnecessary on a healthy device despite the spin that suggests such actions are necessary to achieve a happy, healthy device. Squashing symptoms vs. addressing root cause is never a good solution as such actions generally spawn additional undesirable behaviors (symptoms) that must then be squashed. Vicious, never ending cycle of pain.
there is kind of such a list or more than one in the amplify xposed module threads and since it's exactly the same topic that lists give quite a decent idea about what should never be disabled and what can always be dispabled without any known downsides.

there is a huge amount of wakelocks that can or cannot be disabled depending on use cases and apps who need them. even though the latter has to be tested individually by each user the first to instances can safely be adopted.
 
  • Like
Reactions: meistr91 and rjm831

dead0

Senior Member
Sep 6, 2011
875
313
83
heres my latest init.d script to disable play services. I have tried to group as many as i can. this is provided as is so no support can be provided, your rom may need to be selinux permissive and support init.d scripts; i still havent worked out how to run it on boot with kernel as enforcing. otherwise u can run the script with any apps that support running shell scripts. tested on latest GMS v12.8.74. you may get random playstore fc but playstore will continue to work - trying to figure out which service causes it but no luck so far.
 

Attachments

muralimsir

Senior Member
Jul 4, 2017
79
29
0
Hyderabad
heres my latest init.d script to disable play services. I have tried to group as many as i can. this is provided as is so no support can be provided, your rom may need to be selinux permissive and support init.d scripts; i still havent worked out how to run it on boot with kernel as enforcing. otherwise u can run the script with any apps that support running shell scripts. tested on latest GMS v12.8.74. you may get random playstore fc but playstore will continue to work - trying to figure out which service causes it but no luck so far.
But, how can we undo this if something acts up? I want to try it.
 

ipredatorv

Senior Member
Jul 4, 2017
272
84
38
Here's a screenshot of play services battery usage from 100% after 16hours or so since full charge. latest script attached; so far no playstore FCs
You're awesome.
Are you planning to open a thread about this, or hopefully sharing your updated versions here directly?
 

rootSU

Senior Member
Apr 17, 2014
290
135
0
Google
Here's a screenshot of play services battery usage from 100% after 16hours or so since full charge. latest script attached; so far no playstore FCs
Does this stop net_scheduler wakelock?
I have Doze for GMS installed through Magisk, and even my device shows 2% battery use for the day by play services.
But in BBS, net_scheduler wakelock by different apps tops the list, on top is Youtube net_scheduler.
 

peterlee928

Senior Member
Oct 16, 2014
941
402
0
Does this stop net_scheduler wakelock?
I have Doze for GMS installed through Magisk, and even my device shows 2% battery use for the day by play services.
But in BBS, net_scheduler wakelock by different apps tops the list, on top is Youtube net_scheduler.
if u have xposed, use amplify module. blocks net scheduler.

that said, if net scheduler is not negatively impacting either your overall phone functionality or idle drain, then imho i would let it be. in my experience, more is lost than gained from restricting wakelocks that are harmless (assuming that they are indeed harmless).
 
  • Like
Reactions: plusminus_