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

voroxda

Senior Member
Jun 17, 2014
192
88
58
this is my final build for play services v14.3.66. ive only been testing it on havoc os pie but should work the same on oreo & nougat builds
First of all I have to say thank you for publishing your disable script. Let me telling you some thoughts to it. I think it should be put into init d or service.d folder and runs every time system is booting. To avoid that Google overrules your settings you put a delay of 5 minutes before disabling the components. That means that the full completion of boot process in all run levels is also delayed. I am not a friend of such a technologies. I think it is better to put the process in the background (sh -nohup ..).
Second point. There are round about 500 components you want to disable every reboot. But for the most of it, it is sufficient to disable it once. Only single components will enabled again by Google.
Third point. Your script, of cause, has to adopted for each need. For example not everybody has fb installed. I have made a control script to check which components are still enabled or not existing (related to play services v14.3.66), i will it append below. Approx. 10% are effected. My be you have a short look to it. I guess there are also careless mistakes like pm enable instead of pm disable.

Nevertheless a great thank for a very good approach.

Sent from my Galaxy S8+ using XDA Labs
 

Attachments

  • Like
Reactions: rjm831

dead0

Senior Member
Sep 6, 2011
875
313
83
First of all I have to say thank you for publishing your disable script. Let me telling you some thoughts to it. I think it should be put into init d or service.d folder and runs every time system is booting. To avoid that Google overrules your settings you put a delay of 5 minutes before disabling the components. That means that the full completion of boot process in all run levels is also delayed. I am not a friend of such a technologies. I think it is better to put the process in the background (sh -nohup ..).
Second point. There are round about 500 components you want to disable every reboot. But for the most of it, it is sufficient to disable it once. Only single components will enabled again by Google.
Third point. Your script, of cause, has to adopted for each need. For example not everybody has fb installed. I have made a control script to check which components are still enabled or not existing (related to play services v14.3.66), i will it append below. Approx. 10% are effected. My be you have a short look to it. I guess there are also careless mistakes like pm enable instead of pm disable.

Nevertheless a great thank for a very good approach.

Sent from my Galaxy S8+ using XDA Labs
thanks for that. ive made some edits and will reupload. ive been using this script for a good few years and editing when necessary so some lines will be for older versions. ive kept one activity as enabled due to for some unknown reasons, the google account setting option not showing if not enabled. the delay is there more for my personal use as i include the init.d script as part of my rom install so it gives me time to set up my google account as sometimes if the delay is too less, playstore will sometimes show device as not certified. the delay along with the additional apps can be removed by the user.
 
Last edited:
  • Like
Reactions: rjm831

JonasVFC

Senior Member
Sep 20, 2009
351
63
0
thanks for that. ive made some edits and will reupload. ive been using this script for a good few years and editing when necessary so some lines will be for older versions. ive kept one activity as enabled due to for some unknown reasons, the google account setting option not showing if not enabled. the delay is there more for my personal use as i include the init.d script as part of my rom install so it gives me time to set up my google account as sometimes if the delay is too less, playstore will sometimes show device as not certified. the delay along with the additional apps can be removed by the user.
Any downsides on using this? Btw, thank you very much
 

DB126

Senior Member
Oct 15, 2013
15,235
9,944
253
Any downsides on using this? Btw, thank you very much
Other than not required on most devices with a current Play Services build and likely to cause side-effects such as missed notifications, high CPU use on wake and a few other gems ... none whatsoever.
 

Fahrilubis

Senior Member
Jun 24, 2017
384
25
0
Jakarta
First of all I have to say thank you for publishing your disable script. Let me telling you some thoughts to it. I think it should be put into init d or service.d folder and runs every time system is booting. To avoid that Google overrules your settings you put a delay of 5 minutes before disabling the components. That means that the full completion of boot process in all run levels is also delayed. I am not a friend of such a technologies. I think it is better to put the process in the background (sh -nohup ..).
Second point. There are round about 500 components you want to disable every reboot. But for the most of it, it is sufficient to disable it once. Only single components will enabled again by Google.
Third point. Your script, of cause, has to adopted for each need. For example not everybody has fb installed. I have made a control script to check which components are still enabled or not existing (related to play services v14.3.66), i will it append below. Approx. 10% are effected. My be you have a short look to it. I guess there are also careless mistakes like pm enable instead of pm disable.

Nevertheless a great thank for a very good approach.
How to use this? Just copy and paste to init.d?

---------- Post added at 08:43 AM ---------- Previous post was at 08:42 AM ----------

this is my final init.d script for play services v14.3.66. ive only been testing it on havoc os pie but should work the same on oreo & nougat builds. the apps section can be deleted if not required along with a reduction in the delay if you wish
I got problem with safety net cause this, can u rebuild and dont touch related safety net?
 

voroxda

Senior Member
Jun 17, 2014
192
88
58
How to use this? Just copy and paste to init.d?

There are different possibilities to run the script.

Dead0 solution is able to run in the init.d folder:
#!/system/bin/sh
sleep 120 <---------
################################
# Google Play Services v14.3.66
#

That is not my solution. I let the app Tasker do the job. It starts 5 minutes after systemstart.
But equal which solution you prefer, you have to adapt the script to your personal needs, depending on your system (apps) and the installed Google playservices version. Then you have to differentiate between services, broadcast receiver which where enabled again by Google after system starts. All other you can run once.
In my opinion it is very dangerous to disable such a great amount of services and broadcast receiver. You will run into problems long time after you had run the script, for example when Google force an update of their playservices. In the OP are mentioned these services and broadcast receiver, which could be disabled without greater side effects. For me it works with the names:
Measurement
Analytics
Campaign
Wearable
Fit
proximity
kids
Reporting
Reporter
Systemupdate

With no guarantee.
Good luck.

Sent from my Galaxy S8+ using XDA Labs
 
  • Like
Reactions: rjm831

Fahrilubis

Senior Member
Jun 24, 2017
384
25
0
Jakarta
How to use this? Just copy and paste to init.d?

There are different possibilities to run the script.

Dead0 solution is able to run in the init.d folder:
#!/system/bin/sh
sleep 120 <---------
################################
# Google Play Services v14.3.66
#

That is not my solution. I let the app Tasker do the job. It starts 5 minutes after systemstart.
But equal which solution you prefer, you have to adapt the script to your personal needs, depending on your system (apps) and the installed Google playservices version. Then you have to differentiate between services, broadcast receiver which where enabled again by Google after system starts. All other you can run once.
In my opinion it is very dangerous to disable such a great amount of services and broadcast receiver. You will run into problems long time after you had run the script, for example when Google force an update of their playservices. In the OP are mentioned these services and broadcast receiver, which could be disabled without greater side effects. For me it works with the names:
Measurement
Analytics
Campaign
Wearable
Fit
proximity
kids
Reporting
Reporter
Systemupdate

With no guarantee.
Good luck.
Ah thx dude i will try, btw where i can download for myandroidtools? Or similiar app?
 

xNAPx

Senior Member
Sep 26, 2010
583
84
48
I was thinking of the same, in the script there are too many services disabled. By the way do you still recommend to use myandroidtools app?

Sent from my ONEPLUS A3003 using Tapatalk

---------- Post added at 03:56 PM ---------- Previous post was at 03:43 PM ----------

What about firebase? I miss it on your list
How to use this? Just copy and paste to init.d?

There are different possibilities to run the script.

Dead0 solution is able to run in the init.d folder:
#!/system/bin/sh
sleep 120 <---------
################################
# Google Play Services v14.3.66
#

That is not my solution. I let the app Tasker do the job. It starts 5 minutes after systemstart.
But equal which solution you prefer, you have to adapt the script to your personal needs, depending on your system (apps) and the installed Google playservices version. Then you have to differentiate between services, broadcast receiver which where enabled again by Google after system starts. All other you can run once.
In my opinion it is very dangerous to disable such a great amount of services and broadcast receiver. You will run into problems long time after you had run the script, for example when Google force an update of their playservices. In the OP are mentioned these services and broadcast receiver, which could be disabled without greater side effects. For me it works with the names:
Measurement
Analytics
Campaign
Wearable
Fit
proximity
kids
Reporting
Reporter
Systemupdate

With no guarantee.
Good luck.

Sent from my Galaxy S8+ using XDA Labs
Sent from my ONEPLUS A3003 using Tapatalk
 

voroxda

Senior Member
Jun 17, 2014
192
88
58
I was thinking of the same, in the script there are too many services disabled. By the way do you still recommend to use myandroidtools app?

Sent from my ONEPLUS A3003 using Tapatalk

---------- Post added at 03:56 PM ---------- Previous post was at 03:43 PM ----------

What about firebase? I miss it on your list For me Myandroidtools pro is working very well. Some guys are also using SD maid pro. This tool is specialised for boot complete receiver. In the settings dialogue you can change a filter list, so that all services and broadcastreceiver can be disabled. But I have no experience with this app. I think it's a good alternative if you have already installed SD maid.
And the primary function of SD maid (system- and appcleaning) is absolute great.
You mentioned firebase services and broadcast receiver. In my opinion this depends on each app. Some apps have to gather informations from there firebase platform. So they will not work, if you disable the related service or broadcast receiver. You have to play with it.



Sent from my Galaxy S8+ using XDA Labs
 
  • Like
Reactions: DB126

ColdUser

Senior Member
Apr 5, 2018
190
15
18
I was thinking of the same, in the script there are too many services disabled. By the way do you still recommend to use myandroidtools app?

Sent from my ONEPLUS A3003 using Tapatalk

---------- Post added at 03:56 PM ---------- Previous post was at 03:43 PM ----------

What about firebase? I miss it on your list

For me Myandroidtools pro is working very well. Some guys are also using SD maid pro. This tool is specialised for boot complete receiver. In the settings dialogue you can change a filter list, so that all services and broadcastreceiver can be disabled. But I have no experience with this app. I think it's a good alternative if you have already installed SD maid.
And the primary function of SD maid (system- and appcleaning) is absolute great.
You mentioned firebase services and broadcast receiver. In my opinion this depends on each app. Some apps have to gather informations from there firebase platform. So they will not work, if you disable the related service or broadcast receiver. You have to play with it.
Is it harmful to disable all receiver's in SD maid?
Actually i wanna disable all of it including"find device" because of GMS Doze i have to disable it after every reboot.
I did disabled every location receiver in SD maid.
 

voroxda

Senior Member
Jun 17, 2014
192
88
58
Is it harmful to disable all receiver's in SD maid?
Actually i wanna disable all of it including"find device" because of GMS Doze i have to disable it after every reboot.
I did disabled every location receiver in SD maid.
I'm not able to say whether it is harmful or harmless. It depends on your device and on your apps. For example in my calendar app I'm not able to disable the location related services, because to each calendar date, you are able to define a location and this was validated by the location service. Maybe you have other apps and it's absolutely no problem for you, but you have to check this on your device. My advice is to make a backup, either Nandroid or myAndroidtools is also able to backup Services, Broadcast Receiver
Activities and Content Provider. If you run in troubles, you can restore the old settings again.

Good luck

Sent from my Galaxy S8+ using XDA Labs
 
Last edited:
  • Like
Reactions: ColdUser