yashsingh1/xdaforums huggingface dataset:
[Magisk] duniecool:
Had this module on the last android p preview and it worked like a charm, now on official 9.0. Now, google play services, while it has the option for optimized, does not stay optimized when checking the option. It stays "not optimized".
[Magisk] anbinhv:
Thanks dev for such a great modul! [MENTION=4066277]otonieru[/MENTION]

I read all the OP but still not sure which version to download? Zuk Z2 Nitrogen rom 8.1, Magisk 16.7
[Magisk] otonieru:
Simply donwload one in Magisk Manager download section.
[Magisk] Prattham:
Should this be working on pie?
[Magisk] bugggmenot:
Actually i can set Google play services to "Optimize" without installing this mode! maybe rom developer has implemented this ability!

I'm on Xiaomi redmi 3s with rom Xtended Oreo.
[Magisk] demonoidmaster:
it's just a line of code in the xml file that gets changed to stop it from being whitelisted from being able to be optimized like any other app, nothing fancy in your rom was made, the dev just has it already in it by default
[Magisk] simonand:
You should remind users, that google find my phone will not work, so it is pretty dangerous if you lost your phone.
[Magisk] otonieru:
Find my phone will work just fine.

In fact i lost my phone back then in Australia. And managed to recover it by using find my phone.
[Magisk] oroboros74:
I'm noticing Google Play Store gives me errors when it's downloading updates and the screen is off. It shows that 'dats is disabled'. I'm on a Galaxy Note 10.1 running CM13, Marshmallow.

I literally have to keep screen on for updates to be installed. Any suggestions?
[Magisk] PhilipZhu:
Thanks for the great module,I am using miui10 beta 8.8.7 on xiaomi 8, after installing this module on magisk. 16.7 I rebooted the system.but I can't find the option to turn off keep awake settings in miui battery isage settings. I would like to ask how to enable it in miui system .any help would be appreciated .
[Magisk] RiTCHiE007:
Awesome module but i cant seem to find the optimize settings for the google services. I have a oneplus 6 and when i check the "all apps" i dont really see any system app nor can i find the optimize option when i go the the app settings of the google services so i hope someone can help me with this!
[Magisk] TENN3R:
Not working anymore on Pie. The app shows in the list that I can optimize, but the option doesn't apply. Not sure if it's a system related problem
[Magisk] jandia7381:
+1

Same here on havoc pie
[Magisk] whizeguy:
Nice! I hate that every single app triggers Google play service to launch tho =p
[Magisk] flamedrops:
reserve.
[Magisk] mani169:
Same here.
[Magisk] henningsieh:
Doesn't work here on Oreo8.1, still whitelisted in configs!? :(

Manually uncommenting the line does it thow...
[Magisk] dschense:
Same for me on "P" PixelExpirience and Magisk 17.1
[Magisk] CyberpodS2:
Just bumping this to subscribe for updates about pie.
[Magisk] otonieru:
I havent use pie because havent feel the need of it, so i havent try it on pie,

can u guys send me the google.xml from pie so i can take a look ?

and just to make it clear,

the current situation on pie is that its still stated as not optimised even after the module installation ?
[Magisk] prismaanandito:
Thank you very much for this! Working really good on RR 8.1 N9208
[Magisk] Neejay:
Yep. Here's the Google.xml file.
[Magisk] mani169:
It looks like there is another new module for GMS doze released in September but it also doesn't seems to work with android Pie.
[Magisk] Neejay:
Yep, same for me. This alternate one at least gets it in the optimized list, but you can't get it to flip to optimized.
[Magisk] Fahrilubis:
still working with me, u just need open digital wellbeing then opem windows down schedule turn on then turn off again and see ur google play service in battery optimized
[Magisk] mani169:
But after sometime it reappears in optimized list.
[Magisk] Fahrilubis:
sad
[Magisk] L22EEW:
Same here on [9.0.0_r3] ►PiXeN-OS
[Magisk] Neejay:
I attempted to modify my Pie Google.xml to match this module's Google.xml, but it didn't work.
[Magisk] tezukaryoma:
I had tried all doze module 1 by 1 (including vr25 sys patch/universal gms) in MIUI 10, all not functioned, any help, please
[Magisk] Schroeder09:
Is development on this module done? Are there any plans to get this working with Android Pie?
[Magisk] SingularityHRT3:
I am on Pie and seems Google Play Services is actually optimised but shows not optimised in the Battery Optimisation list...

I could verify it using Greenify... In Greenify, You can't hibernate apps that are not optimised so when You try to add it to the hibernation list it will say it's not optimised so can't be hibernated...

I tried adding Play Services to the hibernation list without the module installed and with the module installed and indeed I was able to hibernate it while it still showed not optimised in Battery Optimisation list...
[Magisk] Neejay:
What phone and ROM are you using? I'm on s p2xl, and I can't even see GPS in greenify, nor in my magisk module list.
[Magisk] otonieru:
you need to choose "show system apps" or "greenify system apps" in greenify.

and,

of course it wont appear in magisk module list. it just never supposed to be there, lol
[Magisk] urgali:
To anyone having issues on pie:

It is actually possible to doze gms.

Install any gms doze module from magisk (this one as well), turn off any admin Google app (find my device, Google pay..), reboot and bam gms is dozed
[Magisk] Neejay:
Damn, you're right. Sucks to have to lose "find my device" permissions though...
[Magisk] Jamess27:
Try androidlost
[Magisk] lazostat:
17 alarms per hour is ok for Google play services? And 12 alarms for Android.
[Magisk] DaveedDB:
I have 8 for Android 5 for play services but my phone was in sleep mode all night so
[Magisk] lazostat:
With wifi on or off? Doze?
[Magisk] rauldzmartin:
Is this module doing something? Or just placebo? I'm not seeing differences over here.
[Magisk] oroboros74:
I tried another magisk gsm doze magisk module, but it was blocking Google backup/restore. I had it installed for a month or so and I want backing up since then. What about this one?
[Magisk] 1LyRa:
And paying in stores with Pay
[Magisk] lazostat:
Which one?
[Magisk] oroboros74:
Universal GMS Doze
[Magisk] Kuchayhilal:
How to make it work on pie ?
[Magisk] Dobsgw:
Disable device admin for google play services
[Magisk] calligari:
installed with magisk 17.3 on my device and not work on Xiaomi MI8 with MI8_8..11.1_EU ROM (Android P)

bootloop, phone unusable.

flashing file "EnableDozeGMS-TWRP-Uninstaller" in TRWP as not solved my problem

with my backup twrp restoration, system boot, but have a lockscreen, and on unlock i have a black screen :crying: no system

A full re-install of ROM on my system as solved my phone
[Magisk] Dobsgw:
To uninstall you could have:

Reflashed the module (it uses unity installer so would have uninstalled itself)

Uninstalled magisk and reinstalled later.

Not sure why you destroyed your system for a magisk module.
[Magisk] calligari:
I have reflashed your module, a uninstall-module.zip and magisk, without success.

but I have not tried to uninstall magisk.

luckily I did not lose any data (just few time), but this is the last time I try a magisk module, but if a control of very (too) greedy processes of google was very interesting :good:
[Magisk] Dreamer(3MF):
In-Case Of Facing A Bootloop/Bootscreen/Blackscreen Issue Due To Flashing A Module, Download CoreOnlyMode4Magisk From This Thread https://xdaforums.com/apps/magisk/module-core-mode-bootloop-solver-modules-t3817366 Then Flash It Thru TWRP Recovery.
[Magisk] Daped16:
The find my unit app for device administration keeps reverting back to 'on', meaning that the GPS are put as not battery optimised? What can you do about this?
[Magisk] demonoidmaster:
Maybe yknow, don't use magisk beta if you're not testing it, it's a beta for a reason, sometimes stuff won't work right. Go back to 17.1 and try again, there's no way this kind of module can bootloop a device, besides you could've just deleted your magisk.img in /data/adb/ , reflash magisk zip and reboot, the img file houses your installed modules
[Magisk] calligari:
Ok, i have some time.

I test install of this module .

Module installed in TWRP with file EnableDozeGMS-TWRP-by-otonieru.zip

I have also installed the OREO version (my device is on Pie)

But i not have a google service in settings/Battery & performance/Battery saver - choose apps

My battery saver is always Xiaomi made, no ?
[Magisk] don_dolarson:
Someone tried it on RR 7.1.2?
[Magisk] demonoidmaster:
Check there and see what it says in yours
[Magisk] demonoidmaster:
it'll work on any rom
[Magisk] Daped16:
Can you do anything about this?
[Magisk] ydudchak:
Hi, look like Magisk version does not work for me on Android Pie: Battery optimization - selected Not optimized. When I click, select "Optimized" and done - it reverts to Not optimized. Do you have TWRP version for Pie? Also uninstall zip? Thank you!
[Magisk] otonieru:
its not about that,

please read few posts back, you need to turn off GMS as device administrator. else it will always revert back
[Magisk] ydudchak:
thanks for reply

I removed, but it back

I think it is related with "Find My Device" - now I turned off and testing.
[Magisk] Ubimo:
How is this module different to Universal GMS Doze module?

Which one do you recommend?
[Magisk] ydudchak:
I recommend to directly update google.xml and forget about any of such extensions
[Magisk] demonoidmaster:
This module only modifies google.xml

Universal GMS has Xiaomi Doze (which for me crashed a few times back last time i had the module installed, dunno if the dev made it more stable now but ehhh it's a useless feature)
[Magisk] yasars:
Doesnt work on android pie... :( Any solution?

Mi a1 liquid os..

// Solution: disable.find my android under settings-- security and and the workinging
[Magisk] Bintang Krisna:
How do ya know if ita working after you had disabled the "Find my devices"?
[Magisk] demonoidmaster:
Go to your battery, click battery optimization and see if play services is removed from the "not optimized" list and see if it's optimized in the all apps list
[Magisk] andrea0807:
I have a problem, every time the device is restarted, Google Play Service moves to the non-optimized section, I always have to click on optimize every time the device is restarted.

I have xiaomi mi 8 with miui 10 (xiaomi. eu) pie.

Gms does not appear in the device administrator list in my case, so I can not disable it because it's not there.

Inviato dal mio MI 8 utilizzando Tapatalk
[Magisk] onionchibi:
What different between OREO_EnableDozeGMS+_TWRP_by_otonieru.zip and v6 on magisk module download?
[Magisk] ColdUser:
I triest installing Magisk version but it failed.

Magisk isnt installeded properly and im on 17.1?
[Magisk] slave200701:
Dito

Gesendet von meinem MI 8 mit Tapatalk
[Magisk] ColdUser:
There is a module in Magisk self that works.. just search for doze.

I dont know why the one from the thread is not installing in magisk.

But for now im using the Universal Doze that works also and for xiaomi.
[Magisk] demonoidmaster:
That one is for twrp abd is meant specifically for Oreo, while the other zips are for general use , also the difference is that GMS+ will remove everything from being whitelisted in Unrestricted Data while normal GMS doze module from either here or magisk repo will only remove Google Play Services from being whitelisted in battery optimization making it be able to doze like any other app when not needed on screen off
[Magisk] let92:
Do you use Universal Doze on Android Pie?
[Magisk] ColdUser:
I did used on Android Pie now im back on Oreo. And it work good on Pie

Verstuurd vanaf mijn MI 5 met Tapatalk
[Magisk] let92:
Good, I'll give it a try so, because I haven't found a Magisk module that works on Pie yet, thanks :)
[Magisk] ColdUser:
Do you need google play services for notifications?

Edit: wrong question in the wrong thread sorry.
[Magisk] otonieru:
its needed for FCM based notifications
[Magisk] chaoscreater:
What's the difference between this and the Universal GMS Doze module?

And I'm using Galaxy S8+ Oreo, should I be flashing the TWRP version or can I use the Magisk repo version? I tried the one on the repo and it looks like I can set Google Play Services to be optimized? There needs to be better documentation in the OP....
[Magisk] bleros:
How to add more in that list ?
[Magisk] ColdUser:
Thats Rom related.. from the screenshot i can see you Rom dont allow to optimize some apps.
[Magisk] bleros:
Yes i know but is possible to add them ?
[Magisk] ColdUser:
No i dont think thats possible.. like i said its ROM related and this module allowing to put the Google services in optimization.. so if you want that for you other system/apps you need a mod or a ROM like SYBERIA that sets everything in optimization, of course for some system apps its not possible.

Verstuurd vanaf mijn MI 5 met Tapatalk
[Magisk] Lola22i:
Of course you can ..

Click on Apps not optimized you will find All Apps , and there you can choose apps you dont want to optimize ..
[Magisk] bleros:
I mean to optimize those app that are not optimizable.
[Magisk] demonoidmaster:
I already answered this that someone else asked two pages back
[Magisk] chaoscreater:
Hmm, not sure about your passive aggressive comment. I didn't ask you specifically for help, so you could have ignored or if you did want to reply, at least write what you wrote 2 pages ago or even just link me to the post. This doesn't help anyone.

Anyway, found your comment, but not too sure what Xiaomi Doze is. I own Xiaomi devices and have never heard of Xiaomi doze. Did some research and couldn't find much info (very vague). Oh well, both this module and the Universal Doze module works for me and no issues experienced, so whatever I'll just leave it.
[Magisk] DaveedDB:
Pffff you're a senior member ,you should know to search first or read the last few pages ,that same question is asked almost every day in both these threads

You also double posted in both the threads at the same time which is against the xda rules
[Magisk] demonoidmaster:
Passive aggressive? No i just told you where to look. But now I'll be less nice with you, NEXT. TIME. READ. THREAD

God forbid i do reply to someone's question huh, based on your attitude i think it's best nobody helps you ?
[Magisk] don_dolarson:
How get this to work on OnePlus 5T running Oreo? Installed, rebooted, cleaned cache and dalvik as I haven't done it for a long time now (I do it everytime I'm in TWRP, occasionally) but I can't optimize it. Google Services aren't on the list of optimized/not optimized apps. Do I need to do something else? Is there more drawback with it installed except these mentioned in first post as delayed/stopped notifications and some user reported not working Find My Device? Will it stop occasionally running GPS? I discovered that when GPS is ON and I'm traveling with 4G connectivity (Wi-Fi disconnected), the Google Services are searching for GPS and it happens quite often (only device state) and it happens only when I'm traveling. When using 4G and I'm on the same position, it's not searching anything, sporadically. Im using Amplify as well, quite tweaked with delayed all recommended alarms and wakelocks. My hourly GMS in Better Battery Stats show about 8% and Alarms about 15% per hour. 115 apps installed. Saw someone mentioned to turn off Keep Awake for Google Services in Privacy Guard. I've App Ops Magisk module installed and can't find Keep Awake there
[Magisk] leprince2007:
Can I install this module on android 9?

If not ,is there an an alternative?
[Magisk] Jamess27:
I did And it's working very well
[Magisk] otonieru:
its called "prevent phone from sleeping" now
[Magisk] Spartacus500:
I tested this module on the S7 Edge Oreo 8.0 and I will say that there is nothing to put to sleep the Google Play services, all the time shows that it works in the background ...
[Magisk] don_dolarson:
What prevent phone from sleeping? What exactly are you referring to?
[Magisk] otonieru:
The "Keep Awake" permissions name, it was changed to "Prevent phone from sleeping"
[Magisk] don_dolarson:
I can't find anything like that neither. Screenshots are from a separate AppOpp Magisk module. Is this project dead? Does anyone have a solution to the Google Service not being listed in the list of optimized/not optimized?
[Magisk] demonoidmaster:
No you're just doing it wrong, the GMS Doze module works, it always has worked, either that ****ty unofficial appops app you're using is what's not listing all permissions or something else, also if play services ain't showing up blame your rom
[Magisk] demonoidmaster:
Further proof whatever appops thing you're using is trash vs the official app, in the real app these permissions all appear

Second pic is play services in the android permission manager in Mokee, it's set to not keep awake
[Magisk] don_dolarson:
I don't think so. I'm running official Oreo 8.1 + Zenith Kernel and there were more people in this thread having the same issue. No one ****ty module is installed. Description in the first post about OxygenOS being special isn't so clear for me. That's why I decided to post here... to help myself, as all other with the same trouble. Instead of boasting and blaming my phone, try to resolve the actual problem and tell what steps you've done. I only installed the module through Magisk, activated & rebooted. Any further tweaks needed? AppOpp isn't even mentioned in first post as a "must have" to get it work so I believe it hasn't anything to do with Google Play services not being visible in Battery Optimization. If my AppOpp module is so bad (though good opinions in the xda-thread), which one do you recommended then? I can't find advanced built-in Privacy Guard for OxyenOS Oreo, except the simple one which isn't good enough in my opinion. Not so much options like in the one through Magisk which I've.
[Magisk] demonoidmaster:
You don't need appops, if you can manage perms in your rom directly you can do that, but besides that doesn't matter much, only reason i have appops was to deny snapchat from scanning my devices installed apps

Why your play services don't show up is because some roms like to either hide it or outright have weird menus and stuff, also it clearly states that you can directly open the app info for gplay services, go to battery and from there see it's status

As for which appops to use, i said it multiple times that I'm using the official one (from the play store)
[Magisk] Lola22i:
Disable find my device from device admin apps and it will work
[Magisk] don_dolarson:
Thank you for your answers.

I know AppOpp isn't needed to get it working and I've installed it for some months ago to take the privacy control of other apps as I can't find proper Privacy Guard built-in into OOS, just some simple restriction (last screenshot). I'm always reading about modules before I install 'em to eventually not crack anything, and was reading some posts about disabling "Keep Awake" in Privacy Guard, but as you can see on my screenshots posted on last page, there isn't such an option in my AppOpps module. I believe it may be called "Wake Lock" ? Remember, it was just a tips from peeps here.

I'll switch to the Google Store AppOpps app then and disable the module. Thanks for that!

I disabled Find My Device but still can't see Google Play services. It is in app list and can go to the battery management from there, but in battery management I can't see it on the list anymore. You can clearly see every module and setting on screenshots. There's one more Magisk module installed which isn't visible on the screenshot and it is YouTube Vanced.

Installed version of Magisk is 18 / 17.1
[Magisk] don_dolarson:
Oops.

Something went wrong with attachments and I can't edit them in the post through the xda app.
[Magisk] demonoidmaster:
It says it's optimized, that's good enough even if where it brings you (if you click of the "battery optimized" text) doesn't list it, however if at the top you can select show all apps then go down and i assume those three dots at top right will say Show System apps or such, mine doesn't have that as all my apps show up even overlays etc etc
[Magisk] don_dolarson:
The "battery optimized" text which you see on 2nd picture is from my applist Google Play Service > Battery tab - not Settings > Battery. It was always as optimized there, even before this module installed. When I click on it then I'm redirected to Settings > Battery, and it's not on the list of optimized/not optimized. It's the same thing as I go Settings > Battery. Just another way of doing it. Three dots in Settings > Battery on Oreo have 2 doze settings. In applist, I don't even need to show "app system apps" to find Google Play services. This mod definitely not work for me. I don't even noticed any battery improvement with it installed and uninstalled. Completely no difference. Will try something else.
[Magisk] CyberpodS2:
I just tried installing this, but not sure I understand it. When I go to battery optimization and switch Google play services to "optimized" then hit done, it still shows as not optimized. How can it be validated that it is or is not actually working?
[Magisk] demonoidmaster:
Then that means your rom has this already applied, meaning this module will not do anything in your case, just uninstall it and set gplay services keep awake to off using app ops

Also be it from the battery optimization screen or the one from per app info screens, it's still the same, if it says it's optimized then it's optimized

---------- Post added at 10:46 PM ---------- Previous post was at 10:43 PM ----------

Means this module isn't doing the proper change on your device
[Magisk] don_dolarson:
Thank you for your help. And the KEEP_AWAKE wakelock must be WAKE_LOCK in AppOpps? It's description is like "prevent smartphone going into standby" . Otherwise, there isn't any called KEEP_AWAKE.
[Magisk] don_dolarson:
Sorry for my "troubles" guys. This module is now disabled and I can see the Play services being "not optimized" , so this module worked out of the box all the time. Strange that I couldn't see any bigger differences in battery time (overall) while it was activated. I bet it's because I've well tweaked Amplify with all the common Play services & wakelocks down to 0.3-0.4% battery usage while deep sleep, without this mod. I want to test it further now when I discovered it's actually working. I guess now it's all about to block privileges for Play services? Is the WAKE_LOCK right privilege to block in AppOpp?
[Magisk] don_dolarson:
Huh? No one can help with this last question?
[Magisk] bleros:
This is unnecessary i never see google play service on my battery usage doesnt drain battery
[Magisk] mitchdickson:
Ok well if you never see it, it must mean that nobody else needs this tool.
[Magisk] drewski_1:
look harder ;)
[Magisk] bleros:
Nope ? wont drain to much battery anyway i will monitor with gsam or better battery stats. And will tell you

---------- Post added at 06:01 ---------- Previous post was at 06:01 ----------

No
[Magisk] shouk_1987:
If I forgot to disable find my device admin still google play services is optimized so is it necessary to disable the device admin ?

I mean why to.disable it if google play services will still be optimized , I am in pie custom rom poco f1
[Magisk] hyborian:
Not on my Huawei, I don't know how Huawei does it. Battery life is awesome, unrooted.

Another one is my Asus. Everything is optimized by default, and I mean all. Yet I don't miss any call or messages. Again, I don't know how they do it.

However, definitely found on my other devices ...

---------- Post added at 06:43 AM ---------- Previous post was at 06:39 AM ----------

This module does not automatically optimize Play Services in the doze list on all my xiaomi phones. However, this module enables me to optimize Play Services manually which is fine.

But it's nice to have it automated. Can I just modify /system/etc/sysconfig/google.xml ? Thanks

P.S. noticed this module already disabled the line as mentioned here -> https://android.stackexchange.com/q...d-other-default-white-listed-system-apps-doze

So I guess have to do it manually in my case for now.

.
[Magisk] bleros:
Same with this and without 0.5% 1.5% percentage