yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 Guides, News, & Discussion] rootSU:
Exactly what I am experiencing right now. On OB30, it started only after updating to the current OB, and only comes into picture when I am connected to 4G/LTE. Top targets are com.google.android.location.ALARM_WAKEUP_ACTIVITY_DETECTION and com.google.android.intent.action.GCM_RECONNECT.

Location one I can understand as I have set it to High Accuracy, but the GCM_RECONNECT is weird.

And only happens on 4G/LTE, WiFi doesn't trigger these wakelocks.
[OnePlus 3 Guides, News, & Discussion] patrickdrd:
GCM_RECONNECT is absolutely needed if you want to be getting notifications and

it's fired when you switch between wifi and mobile data I think

(your device registers with gcm at the start of the connection in order to be able to receive notifications)
[OnePlus 3 Guides, News, & Discussion] rootSU:
These are the stats for today.

WiFi was switched off whole day, only mobile network (4G/3G), don't know why net_scheduler is there. I have disabled it in MyAndroidTools. :confused:

Getting terrible idle time, and battery just gets hogged up when I switch on the screen. Normal browsing is like 1% per 3 minutes or so.
[OnePlus 3 Guides, News, & Discussion] rootSU:
So I left the phone overnight for the BBS log. Attached. 4G enabled with wifi off.

Net scheduler seems to be one of the hoggers, even though I have checked in MyAndroidTools that both "SchedulerInternalReceiver" and "SchedulerReceiver" are disabled.

Can anybody help?
[OnePlus 3 Guides, News, & Discussion] strongst:
Airdroid and Twitter causing wakelocks. Did you used it while display on? It's hard to separate them when display usage is present. You can try to unplug from charger and let it idle over night. Then you can see the truth wakelocks without screen on usage.
[OnePlus 3 Guides, News, & Discussion] jlb1959.01:
App opps manager apk will control which apps start on reboot as well as what stays awake,when rebooting you have to go thru those settings again as apo measurement will turn on after every reboot..
[OnePlus 3 Guides, News, & Discussion] sleepwalking0593:
Do we need to disable both the receiver and services or just reciever. I'm confused because in 5th point it says update and in update it says to disable service but above it, its written to disable receivers.
[OnePlus 3 Guides, News, & Discussion] MeggaMortY:
The receiver will restart itself, so I meant to just disable the service there.
[OnePlus 3 Guides, News, & Discussion] sleepwalking0593:
If you disable these you can't sync you account in the dictionary section of gboard app.
[OnePlus 3 Guides, News, & Discussion] RogerF81:
What about disabling the corresponding analytcis services as well instead only blocking the broadcast receivers? [MENTION=3378734]MeggaMortY[/MENTION] Would this do any harm?
[OnePlus 3 Guides, News, & Discussion] MeggaMortY:
What I did was disable and test if everything still works fine (usually 2-3 days). So you can try it this way, sadly I don't know more than that, and it's been a long time since I last did anything with it. Basically I've had the same build since I posted this thread and haven't touched it afterwards.
[OnePlus 3 Guides, News, & Discussion] RogerF81:
Ok I see, thanks anyways!
[OnePlus 3 Guides, News, & Discussion] ColdUser:
Is there a thread on XDA that can help people to get rid of all google services? I want tot remove all google services, but not that much experience yet.

Thank you in advance!
[OnePlus 3 Guides, News, & Discussion] DB126:
Search for micro-g. Be aware success at removing all Google Services is rom and device dependent and no nirvana if achieved. Lots of misinformation on alarms, wakelocks, etc. which are not necessarily evil. Being informed is your best tool. Good luck.
[OnePlus 3 Guides, News, & Discussion] ColdUser:
Thank you! Im gonna kill google?
[OnePlus 3 Guides, News, & Discussion] DB126:
Fools errand but everyone needs a faux villain.
[OnePlus 3 Guides, News, & Discussion] ColdUser:
Well i have to try and do whatever i want with my phone. Not google nonsense
[OnePlus 3 Guides, News, & Discussion] strongst:
For testing purposes: You can just disable Google play services

After that no Google app or service will be functional anymore.

That's an easy test without micro G(it can be difficult setup).

That's correct, you can do whatever you want, but you will see that without Google it's been a lot more complicated sometimes ;)
[OnePlus 3 Guides, News, & Discussion] ColdUser:
I cant disable play services in installed apps and im on xiaomi eu rom Nougat.

However i followed the steps in this thread and Google play services is using now less battery.

That means that the services staying disabled hopefully.

I know how hard it is to get rid of google i have tried many things. But this works great on batt and cpu memory.
[OnePlus 3 Guides, News, & Discussion] strongst:
I really don't get you...

At first you ask you want to get rid off all google services (which is quite easy, you just need root, without its not possible) and now you're saying that you followed the guide to minimize the play services wakelock?

The method in op does not wipe all Google services out of your device, it just minimize the wakelocks of google play services.

These are 2 totally different things :rolleyes:
[OnePlus 3 Guides, News, & Discussion] ColdUser:
Yeah but if one thing doesnt work you gotta try the second.

So i have tried to get rid of all google apps but unfortunately to much misinformation.. phone not running stable.

And why i used this guide because when you disable wakelocks it helps also your battery power so that google play services not awake all the time and keep running in the background.

If you follow my first post you should now i dont have that much experience yet.. but im getting there.
[OnePlus 3 Guides, News, & Discussion] DB126:
And as you gain experience you will come to realize alarm and wakelock management is totally unnecessary to achieve good performance and battery life.
[OnePlus 3 Guides, News, & Discussion] strongst:
I want just remember you to my previous post https://xdaforums.com/oneplus-3/how-to/guide-stop-google-play-services-t3549760/post76457653 where I exactly how you can get rid of Google play services just for testing. There's no easier way imo.

But if you are no longer wish that and satisfied with your current achievement everything is fine :)

Good luck
[OnePlus 3 Guides, News, & Discussion] ColdUser:
I try everything i can to get as much experience.

Without falling you will not learn.

Thank you for you reply.
[OnePlus 3 Guides, News, & Discussion] ColdUser:
I know this isn't the thread for this post. But since we started the discussion. What i did now is uninstalled all google apps on titanium backup ( i made a back before) I also removed al Mi cloud settings and cloud account.. yeah watte heck you have to try i dont use it. I installed Lapps with Aroma and now i have 400MB sometimes 500MB free in memory usage.

No crazy things so far and any suggestions or comments are welcome.
[OnePlus 3 Guides, News, & Discussion] DB126:
Copious free memory is not necessarily a good thing on Android or any other modern operating system. How memory is being utilized is far more relevant.
[OnePlus 3 Guides, News, & Discussion] ColdUser:
Device is working stable so far i just need a app that shows the correct background runnings.

Is there a app that shows the correct background apps and processors?

And with what do you start to utilized the memory?
[OnePlus 3 Guides, News, & Discussion] strongst:
Any process manager, just search on Google play store https://play.google.com/store/apps/details?id=com.rhythm.hexise.task
[OnePlus 3 Guides, News, & Discussion] AmirKar:
Thanks for the guide !

So that's basically gonna prevent Google for tracking me ?

Cause when I am trying to purchase in Google store they still tracking me with error messages (cznot completed the transaction)

Even with bunch of apps of changing id eevice and even gsf ID.

If not, do u have any more ideas what can I do ?
[OnePlus 3 Guides, News, & Discussion] strongst:
Stopping Google play services wakelock (like mentioned here and in general) won't prevent you from being tracked by Google! It's just that the Google related framework won't keep your device too much awake with unnecessary wakelocks.

Only solution: uninstall all Google related stuff.
[OnePlus 3 Guides, News, & Discussion] AmirKar:
But I wouldn't be able to use Google store / or purchase there anything. Unless you have any idea how to modify the app ? Set some permission?

Would uninstall google service and reinstall again would do something ?
[OnePlus 3 Guides, News, & Discussion] strongst:
In your usage szenario you can have a look at "microG" if it's supported by your device/rom. Just make a research https://microg.org/
[OnePlus 3 Guides, News, & Discussion] AmirKar:
Ok I will take a look.

Would it solve my issue as described you think ?
[OnePlus 3 Guides, News, & Discussion] mattie_49:
Is this process known to stop google play services from recognizing the apps I have already bought and paid for?
[OnePlus 3 Guides, News, & Discussion] xNAPx:
On the initial guide I haven't seen anything about "appmeasurementjobservice" would that be safe to deactivate?
[OnePlus 3 Guides, News, & Discussion] rjm831:
I've done so & had no problems. Might also want to search thru XDA for other guides to de-Google. There are actually several.
[OnePlus 3 Guides, News, & Discussion] xNAPx:
There are also other servicese like "firebasemessagingservice" is that safe too? Have you got links to those guides?
[OnePlus 3 Guides, News, & Discussion] folusmile:
No link to download..it's not showing up in playstore. I think Google removed it
[OnePlus 3 Guides, News, & Discussion] mattie_49:
They removed my Android tools as well. Glad I had my pro version backed up. A simple google search is where it's at. Apk at the end.
[OnePlus 3 Guides, News, & Discussion] ondoin:
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.
[OnePlus 3 Guides, News, & Discussion] DB126:
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.
[OnePlus 3 Guides, News, & Discussion] magnamentis:
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.
[OnePlus 3 Guides, News, & Discussion] dead0:
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.
[OnePlus 3 Guides, News, & Discussion] muralimsir:
But, how can we undo this if something acts up? I want to try it.
[OnePlus 3 Guides, News, & Discussion] dead0:
you can either edit the script and change disable to enable then reboot or clear data/cache in app setting for play services/playstore/any other apps listed at the bottom of the script, delete script then reboot
[OnePlus 3 Guides, News, & Discussion] muralimsir:
Harmless, then. Regards.
[OnePlus 3 Guides, News, & Discussion] dead0:
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
[OnePlus 3 Guides, News, & Discussion] meistr91:
Any side effects?
[OnePlus 3 Guides, News, & Discussion] dead0:
Not really. Gmail/play store/android pay work fine
[OnePlus 3 Guides, News, & Discussion] ipredatorv:
You're awesome.

Are you planning to open a thread about this, or hopefully sharing your updated versions here directly?
[OnePlus 3 Guides, News, & Discussion] ainurrofiq:
How to implement it? Push it to system/bin/
[OnePlus 3 Guides, News, & Discussion] zputnyq:
That's an init.d script. It will be system/etc/init.d
[OnePlus 3 Guides, News, & Discussion] rootSU:
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.
[OnePlus 3 Guides, News, & Discussion] peterlee928:
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).
[OnePlus 3 Guides, News, & Discussion] ainurrofiq:
Thank you
[OnePlus 3 Guides, News, & Discussion] dead0:
i will probably just update it on this thread
[OnePlus 3 Guides, News, & Discussion] jordirpz:
Beginner question, is posible make a magisk module? Thank you
[OnePlus 3 Guides, News, & Discussion] dead0:
i dont use Youtube so couldnt really say...this is my only net_scheduler wakelock so far
[OnePlus 3 Guides, News, & Discussion] dead0:
im sure it is but i have no idea :laugh:
[OnePlus 3 Guides, News, & Discussion] DB126:
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.
[OnePlus 3 Guides, News, & Discussion] rootSU:
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
[OnePlus 3 Guides, News, & Discussion] peterlee928:
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
[OnePlus 3 Guides, News, & Discussion] strongst:
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.
[OnePlus 3 Guides, News, & Discussion] Lughnasadh:
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.
[OnePlus 3 Guides, News, & Discussion] MeggaMortY:
When you guys come up with a complete stable version just send me a pm and I'll update the main post. Sorry, am a bit busy right now and didn't really read through on the whole idea, but would like to have a nice tutorial for it when it comes to posting it on the front page.
[OnePlus 3 Guides, News, & Discussion] rootSU:
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.

did you find out what was causing the issue?

I have no permissions allowed for yt vanced.
[OnePlus 3 Guides, News, & Discussion] strongst:
It was caused by play services I think. Since I've updated them, no more wakelocks.
[OnePlus 3 Guides, News, & Discussion] kend0g:
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.
[OnePlus 3 Guides, News, & Discussion] dead0:
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
[OnePlus 3 Guides, News, & Discussion] Blue305:
Can you please tell me how to run this script? Thanks in advance
[OnePlus 3 Guides, News, & Discussion] dead0:
you will need init.d support, place it in system/etc/init.d folder with 0755 permissions and reboot or use a file manager that can execute shell scripts
[OnePlus 3 Guides, News, & Discussion] Pseudonym:
Will the location part disable navigation on google maps?
[OnePlus 3 Guides, News, & Discussion] TNSMANI:
No, to my knowledge. But wait for the script maker to confirm.
[OnePlus 3 Guides, News, & Discussion] dead0:
Google maps will still work
[OnePlus 3 Guides, News, & Discussion] dead0:
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
[OnePlus 3 Guides, News, & Discussion] voroxda:
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.
[OnePlus 3 Guides, News, & Discussion] dead0:
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.
[OnePlus 3 Guides, News, & Discussion] JonasVFC:
Any downsides on using this? Btw, thank you very much
[OnePlus 3 Guides, News, & Discussion] DB126:
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.
[OnePlus 3 Guides, News, & Discussion] Fahrilubis:
How to use this? Just copy and paste to init.d?

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

I got problem with safety net cause this, can u rebuild and dont touch related safety net?
[OnePlus 3 Guides, News, & Discussion] xNAPx:
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?

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

What about firebase? I miss it on your list
[OnePlus 3 Guides, News, & Discussion] RogerF81:
Hm, MyAndroidTools isn't available on the Play Store anymore. Does anyone know a reason for this?
[OnePlus 3 Guides, News, & Discussion] patrickdrd:
wrong thread I guess?

check here:

https://xdaforums.com/showpost.php?p=78932362&postcount=23
[OnePlus 3 Guides, News, & Discussion] Nafiganado:
Tried that and cannot disable receivers neither in LuckyPatcher. nor in My Android Tools: switching is ignored, receivers keep being active. Rooted, Android 6.01.
[OnePlus 3 Guides, News, & Discussion] techusthad:
I meant first post
[OnePlus 3 Guides, News, & Discussion] wongSlam:
Thanks for the guide! You can also disable multiple options at once in MyAndroidTools so you only have to reopen it once.
[OnePlus 3 Guides, News, & Discussion] jl2222:
Thank you for the guide. After the last update my Google Play Services was preventing my phone from going into deep sleep and this seemed to fix the issue!
[OnePlus 3 Guides, News, & Discussion] Mar-cel:
What wakeloocks can I deactivate?
[OnePlus 3 Guides, News, & Discussion] Choritrowhin:
Really amazing ...
[OnePlus 3 Guides, News, & Discussion] zilan:
It seems some of service always revert back to On everytime i reboot my phone, how to fix it? Its package measurement and analytics.

Or it's okay?
[OnePlus 3 Guides, News, & Discussion] 2x4:
Tried this for a few builds. Minimal or negligible impact
[OnePlus 3 Guides, News, & Discussion] thelad:
I'd have to disagree with the last comment that flat line is about 7 hours with no idle drain you should also disable nearby services and ANY other google services you don't use (games, fitness,calendar etc)
[OnePlus 3 Guides, News, & Discussion] 2x4:
Disable calendar? Disable location? Why even have a smartphone?

I use location and calendar regularly. Even with Google now disabled, doing what was suggested in this thread has no impact
[OnePlus 3 Guides, News, & Discussion] MeggaMortY:
This thread was about disabling services you mostly don't need...like companies requesting your personal in-app interaction data everytime they feel like it. It was written to help people who experience drain/annoyance because of that fact.

Please read the red text in the original post.
[OnePlus 3 Guides, News, & Discussion] Panic84:
I applied the first method and also disable the "net_scheduler" wakelock as sugested in the second approach.
[OnePlus 3 Guides, News, & Discussion] 水攸月羽:
Great appreciate to your guide!

It's really ridiculous that play service battery drain also happened on pixel, seems like google never care about the battery usage of their sevice and collect location and user data every few minutes.

After applying the changes, battery usage of play service decreased from 15% to 1%.
[OnePlus 3 Guides, News, & Discussion] bmdhj:
Just applied this. Any way more for me to find out what's idle drain? BBS really sucks in Nougat to find the root cause.
[OnePlus 3 Guides, News, & Discussion] jlb1959.01:
I'm in nougat and have no problems with drains.(crdroid,,vs985)..