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

dead0

Senior Member
Sep 6, 2011
875
313
83
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.
i dont use Youtube so couldnt really say...this is my only net_scheduler wakelock so far
 

Attachments

DB126

Senior Member
Oct 15, 2013
15,235
9,944
253
Beginner question, is posible make a magisk module? Thank you
While possible I doubt is will happen as the benefit simply isn't that great on modern devices running Android 6+. Yes, the metrics look impressive but in the end it boils down to battery life and/or performance, neither of which are significantly (operative word) improved using this bag of tricks.
 
  • Like
Reactions: jordirpz

rootSU

Senior Member
Apr 17, 2014
290
135
0
Google
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).
nope, no xposed. :(

i dont use Youtube so couldnt really say...this is my only net_scheduler wakelock so far
This is my wakelock scenario. Youtube is always on top, even though I don't even use it mostly. I use youtube vanced edition, have tried removing, reinstalling, clearing data/cache for youtube app, still the same issue
 

Attachments

peterlee928

Senior Member
Oct 16, 2014
941
402
0
nope, no xposed. :(



This is my wakelock scenario. Youtube is always on top, even though I don't even use it mostly. I use youtube vanced edition, have tried removing, reinstalling, clearing data/cache for youtube app, still the same issue
i recommend u get an idle dumpfile via betterbatterystats and submit that to the great minds to review :good:

if you check out the betterbatterystats thread, there are multiple links (and op, of course) that provide directions on how to capture a proper dumpfile
 

strongst

Forum Moderator
Staff member
Sep 18, 2007
11,636
8,591
253
prolific location
prolific-page.com
nope, no xposed. :(



This is my wakelock scenario. Youtube is always on top, even though I don't even use it mostly. I use youtube vanced edition, have tried removing, reinstalling, clearing data/cache for youtube app, still the same issue
This can be an issue with the yt Vanced version in combination with play services. Had this some months ago and now it's not coming anymore. Yt was awake but I never launched it.
 

Lughnasadh

Senior Member
Mar 23, 2015
1,848
1,204
143
nope, no xposed. :(



This is my wakelock scenario. Youtube is always on top, even though I don't even use it mostly. I use youtube vanced edition, have tried removing, reinstalling, clearing data/cache for youtube app, still the same issue
I'm using YT Vanced with no problems. Aside from doing a BBS dump like someone else suggested, maybe make sure you have location permission disabled for YT Vanced. The only permissions I have allowed is for storage.
 

rootSU

Senior Member
Apr 17, 2014
290
135
0
Google
i recommend u get an idle dumpfile via betterbatterystats and submit that to the great minds to review :good:

if you check out the betterbatterystats thread, there are multiple links (and op, of course) that provide directions on how to capture a proper dumpfile
have done it in the past, will do it. The problem is leaving it idle long enough that even the screen doesn't wake up. IIRC, the dump gets reset if you wake the screen and lock it again, and not stop the dump. Took me 3 nights to get the dump right as any call/alarm would wake up the screen and reset the dump.

This can be an issue with the yt Vanced version in combination with play services. Had this some months ago and now it's not coming anymore. Yt was awake but I never launched it.
did you find out what was causing the issue?

I'm using YT Vanced with no problems. Aside from doing a BBS dump like someone else suggested, maybe make sure you have location permission disabled for YT Vanced. The only permissions I have allowed is for storage.
I have no permissions allowed for yt vanced.
 

kend0g

Senior Member
Sep 11, 2013
1,133
332
113
This worked pretty good the first night i used it.. But after a couple days and reboots, this kills something with Google play games.. Now all my games say the progress won't be saved. Tried reinstalling still no go.. Guess i gotta reflash everything?

Nevermind i just enabled all the games stuff, copy and pasted, made a new sh file.
 
Last edited:

dead0

Senior Member
Sep 6, 2011
875
313
83
heres another test init.d script for play service v12.8.80, tried to keep this one a bit more balanced than my previous ones. again tried to label where most of the services apply to but i could be wrong. if you use play games then either delete the games section or edit disable to enable. I've disabled most of the backup services & receivers as i dont use it but if you need it then delete that section. i also added a sleep timer of 300 but you can reduce that if needed.

ps some service names have changed with play services v13.2.78 so some services/receivers may remain enabled if applying on that version
 

Attachments

Last edited:

Blue305

Senior Member
Jan 18, 2013
714
187
0
heres another test build for play service v12.8.80, tried to keep this one a bit more balanced than my previous ones. again tried to label where most of the services apply to but i could be wrong. if you use play games then either delete the games section or edit disable to enable. I've disabled most of the backup services & receivers as i dont use it but if you need it then delete that section. i also added a sleep timer of 300 but you can reduce that if needed.

ps some service names have changed with play services v13.2.78 so some services/receivers may remain enabled if applying on that version
Can you please tell me how to run this script? Thanks in advance
 

Pseudonym

Senior Member
Feb 22, 2012
1,770
727
143
Imus, Cavite
heres another test init.d script for play service v12.8.80, tried to keep this one a bit more balanced than my previous ones. again tried to label where most of the services apply to but i could be wrong. if you use play games then either delete the games section or edit disable to enable. I've disabled most of the backup services & receivers as i dont use it but if you need it then delete that section. i also added a sleep timer of 300 but you can reduce that if needed.

ps some service names have changed with play services v13.2.78 so some services/receivers may remain enabled if applying on that version
Will the location part disable navigation on google maps?