yashsingh1/xdaforums huggingface dataset:
[Magisk] kmem:
Many of you said that you are still able to get push notifications while this patch is applied. Unfortunately for me whatsapp push notifications don't make it through very often, are there any other settings I can change to allow gms to doze but still get push notifications? I did notice a substantial battery savings while using the module. Thanks in advance.
[Magisk] Bewildered Wolf:
Umm, try to see in battery optimization, whatsapp should be in not optimised category. And which device are you using. ?
[Magisk] DE SEXIEST:
Do I need to root?
[Magisk] kmem:
Thanks for the tip. Whatsapp may have been optimized. Will reinstall the module and ensure it is not optimized and try again.

I am using a Nexus 5.

l am also using forcedoze, is this combination okay?
[Magisk] otonieru:
You should whitelist your whatsapp

Forcedoze is fine, am using it too
[Magisk] otonieru:
Magisk itself is a rooting solution,

And you are on magisk forum,

So... :p
[Magisk] elraffa:
I have disabled doze for gms module before install sysconfig patcher module, is it OK? After install and reboot, I'm getting WhatsApp messages normally and download manager is the only wich is not optimized

Enviado desde mi ALE-L23 mediante Tapatalk
[Magisk] Bewildered Wolf:
Idk :p with only this module I'm getting 9-10 hrs SOT. I don't feel a need to use force doze. But yes it's a very important tool. With combination with this module should be great.

//Press thanks if it helped.
[Magisk] meph02:
This module stay activated if I upgrade my stock OOS rom And dont reapply root After ?
[Magisk] Bewildered Wolf:
This is a Magisk module. And it into work without Magisk.

And this means you are not installing Magisk if you are not rooting your phone.

I hope you got your answer.
[Magisk] meph02:
yes, perfect. :good::good:
[Magisk] zgfg:
On Huawei P9, EMUI 5/Nougat, I have enabled the module from Magisk Manager. But in the Settings, Battery, Close apps after screen lock, system services like Google Play Services are not listed (and there is no option to expand the list - only user apps are listed and can be toggled). How can I chek if Goggle Play Services are forced to doze or not.
[Magisk] asusgarb:
Are you sure there are the 3 dots where you can select the possibility to view even system apps?

Inviato dal mio SM-P605 utilizzando Tapatalk
[Magisk] otonieru:
Close app on lock is totally different stuff. Thats EMUI feature, not doze

To check optimisations on EMUI

Open Setting - Apps

Tap the "gear" shape icon on the bottom center

Choose app with special access, and choose "Ignore Optimisation"

You will see all whitelisted app there

If the mod work, play services shouldnt be there
[Magisk] zgfg:
Thanks, I see now its menu on EMUI 5.0 (Huawei L09 c433 b386): Settings / Apps / Gear-Settings / Special Access / Ignore Battery Optimization

But with or without (uninstalled through Magisk Manager and rebooted) this module, GOOGLE PLAY SERVICES are NOT LISTED neither among Allowed list, neither among All list (Allowed and Not Allowed).

Attached screenshots

- DozeForGMS_Installation 1 and 2: Installation log through Magisk Modules

- Magisk-Modules 1 and 2; list of installed Magisk Modules

- IgnoreBatteryOptimizations-Allowed: Allowed (Whitelist) NOT SHOWING Google Play Services, BOTH IF MODULE IS INSTALLED OR NOT

- IgnoreBatteryOptimization 1,2...6: Allowed and Not Allowed list, NOT SHOWING Google Play Services neither among ALLOWED nor NOT ALLOWED

However, Google Play Services is listed among e.g., Usage Access apps list and Write System Settings list

Btw, similar Xposed modules used to have some GUI at least to show their own status but Magisk modules mostly rely only on native settings - but things work different on different phones and it would be beneficial for the module to display rhrough its own GUi did it succeed or not - or maybe, is there some log showing the real status of enabling Battery Optimization (Doze) to Google Play Services upon the rebooting?
[Magisk] geokilla:
Installed this module and I noticed it interferes with WhatsApp. I often end up not getting my WhatsApp messages when the screen is off, causing WhatsApp to send a notification saying "You may have new messages." I understand I can set it to high priority or whitelist WhatsApp, but how do I do that?
[Magisk] Gigobaito:
Settings -> Battery -> Three dot icon on the top right -> Battery optimization -> Got to "all apps" -> flag "don't optimize" under WA
[Magisk] briankamkobe:
If im using the twrp non plus version can i uninstall by replacing the Google xml file manually?like I see the original Google xml(before flashed)is renamed to Google bak after flashed gmsdoze,but I'm confused since after I flash the uninstaller it doesn't revert to my original Google xml since it's still called Google bak,so is it uninstalled completely if I rename it from bak to xml manually and reboot?since theoretically I thought the gmsdoze zip is only replacing the Google xml file when I flashed right?
[Magisk] kmem:
This seems to work for me, but I don't use WA that often so your results may differ.
[Magisk] demonoidmaster:
Why don't you either use the magisk module or flash the twrp version, you're overcomplicating things for yourself
[Magisk] efrainmartinez:
Hello I have flash the zip from recovery twrp, and Google play device disappear, but the Samsung push service still there. Is a way to move the Samsung push service? Thanks.
[Magisk] demonoidmaster:
This is for Google Play Services only
[Magisk] briankamkobe:
I tried using the uninstaller but the Google xml isn't the same as the file before I flash gmsdoze,so I decided to move manually and reboot.
[Magisk] otonieru:
you can simply disable samsung push from bk disabler. that service is unuseful for most of user

Or just find the samsungpushservice.xml in /etc/sysconfig

And comment out these lines :

<allow-in-power-save package="com.sec.spp.push" />

<allow-in-power-save-except-idle package="com.sec.spp.push" />

</config>

To become like this :

<!-- <allow-in-power-save package="com.sec.spp.push" /> -->

<!-- <allow-in-power-save-except-idle package="com.sec.spp.push" />

</config> -->
[Magisk] otonieru:
that (renaming the old bak to xml) will work, you are good that way :)
[Magisk] briankamkobe:
Will restrict Google play services background data usage cause late push notification for apps like whatsapp?also I not too sure the difference between the twrp non plus version of gmsdoze and the non plus twrp version of rev4 ?
[Magisk] otonieru:
non plus is non plus, there will be no difference in function between twrp n magisk version.

regarding background data, read my main post again in "side effect" section,

i never experience delay push for whatsapp, since am whitelisting it anyway
[Magisk] briankamkobe:
But if using plus version there will be delay right?
[Magisk] otonieru:
yes there will,

i personally never suggest the use of plus version, except the user really a battery life hardcore minded

for me 6-8 SoT is more than enough, LoL
[Magisk] Ubimo:
[MENTION=4066277]otonieru[/MENTION]

Today there appeared another flashable zip, how is his approach? What's different? Could we profit if we use both?

https://xdaforums.com/android/software-hacking/enable-battery-optimization-google-play-t3668908
[Magisk] otonieru:
Emmm...

Honestly it do exact same thing with no different approach. LoL

Can be considered as a clone/twins mod. Same approach, just different name. :silly:

And, no, dont flash both, since it will bring no extra benefit, only confusion :p
[Magisk] otonieru:
FYI to all users :

I just noticed that Magisk was updated to v14

Template is updated as well by topjohnwu

So i might update the module soon enough as well.

In the meantime. If you updating your Magisk to version 14 then please DWYOR, since i havent test this module with latest magisk just yet. :p
[Magisk] demonoidmaster:
I'll let you know if there's any issues or not with the current version

---------- Post added at 07:28 PM ---------- Previous post was at 07:08 PM ----------

[MENTION=4066277]otonieru[/MENTION]

Updated magisk 13.6 to 14.0

Everything ?

Gms still is optimized
[Magisk] Rom:
So this module is updated for v14 and works great, right ? :)
[Magisk] Kimbo82:
Not updated yet, but working for me as well.
[Magisk] :
so is this an Xposed/Magisk module or just a mod to install from twrp?

Edit: i didn't read the forum section...
[Magisk] Bewildered Wolf:
It's just a Magisk module.
[Magisk] WarriorMax:
Can the older version be installed on magisk 14?
[Magisk] otonieru:
v5 is up on the repo,use latest instead :)
[Magisk] Dante Enoshima:
[MENTION=4066277]otonieru[/MENTION] the flashable zip one isn't packed correctly
[Magisk] Rom:
I have make the same error yesterday for an other module too :angel:
[Magisk] otonieru:
Sorry for that,

Zip reuploaded. Thx !
[Magisk] enter.hk:
Isn't this module possible for los su zip ...

System mode...
[Magisk] zgfg:
I have switched to ForceDoze app (Root required) instead, using it's similar option to block notifications during Doze - because ForceDoze provides a Blocklist option and I can eg block Skype notifications but still keep WhatsApp notifications enabled.

While I previously using this module, I could have only all notificatoons blocked, hence was unable to block Skype but keep WA coming instantaneously
[Magisk] demonoidmaster:
Umm, ForceDoze only does one thing, makes your device go into doze mode faster. Has nothing to do with this module nor does it do the same thing as this

If you have apps you want whitelisted then unoptimize them in Battery
[Magisk] zgfg:
ForceDoze has many more options and I'm talking about Doze Notification Blocklist, see attach
[Magisk] Didgeridoohan:
But that still doesn't have anything to do with this module. :confused: All this module does is to let you add Google Play Services to the optimization list for Doze...
[Magisk] Bewildered Wolf:
Force doze works in different criteria. It just helps to kick doze earlier. It doesn't apply doze on the Google Play Services which is done by using this module.
[Magisk] zgfg:
I want to block notifications only from SOME applications (and prevent them to wake up from Doze, to drain the battery when long idle)

If I use this module, I STOP receiving ALL NOTIFICATIONS, even from WhatsApp
[Magisk] Didgeridoohan:
Removing notifications is not a feature of this module... But it can be a side effect, especially if you're using the + version.
[Magisk] demonoidmaster:
This has been talked about before, whitelist your apps (whatsapp for example) in Battery Optimization settings so that it appears like these apps that i have whitelisted
[Magisk] Hemacitta:
Help pls . Why is it failed when I try to install? I downloaded zip file from attachment and install it through magisk ,and it's always failed (detail in the picture)
[Magisk] Didgeridoohan:
Uninstall Magisk and Manager and do a clean install.
[Magisk] Hemacitta:
Okay , thankyou
[Magisk] kgirlx:
Latest

Which version is latest. I see v5 in OP. Is there newer.
[Magisk] raptorddd:
hi guys am a bit confused is it the other way around setting apps to doze on my phone.?

see pic below nougat 7.0

so my list that one not on are in doze mode? or for doze i need to activate. i see on top it says for optimization may drain more battery switch on.?
[Magisk] kwanthenewbie:
You need to switch on to set your apps to doze mode. Btw you can fine Sysconfig Patcher module in the Magisk forum to enable doze for system apps
[Magisk] demonoidmaster:
...v5 is v5, here or there it's the same

---------- Post added at 09:00 AM ---------- Previous post was at 08:58 AM ----------

Select the apps you see there that you may want (flip to switch to on) to add to the doze mode mechanic (battery optimization)

Anything in optimized list is affected by doze mode

Anything in non optimized list will not be included in doze mode
[Magisk] f.a.tonmoy:
which one is the latest or stable?!?
[Magisk] BIGWORM:
Literally just answered in the post before yours.
[Magisk] liver20:
Sorry for the question, but how have to install, i see 5 modules in OP

?

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[Magisk] Bewildered Wolf:
Flash the rev5 one in recovery.
[Magisk] Eng.Raman:
Tested on Zenfone 2 Z00A

Works Perfectly, thanks.:)
[Magisk] liver20:
Only 8kbp file?

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[Magisk] Bewildered Wolf:
That's what a module is.
[Magisk] FurFur_:
Hmm .. I used this module earlier and it worked as it should but since some time it doesnt seems to work .. or so? Im not sure.

I attached a screenshot so the dev might understand what I mean. :)

Im on Magisk v14 and I use the standard Version. Seems like the google play Services arent in Doze .. or they are ? Usually the battery drain would never be that much ..

Maybe anyone can help me :)
[Magisk] 24imelqui:
use appops available in playstore or privacy in setting on custom ROMS and disable Keep Awake of Google Playstore and Google Play Service maybe include Google Framework.
[Magisk] Bewildered Wolf:
Yup. i do the same thing.
[Magisk] onionchibi:
Excuse me, this module what difference with Doze?

https://play.google.com/store/apps/details?id=com.yirgalab.dzzz&hl=vi

Sorry for my bad English
[Magisk] Bewildered Wolf:
Read 2-4 pages back. And Please search before posting.
[Magisk] keshav_c17:
I am unable to install new version REV5 getting ERROR 1 in twrp and also i am unable to uninstall REV4 version getting ERROR 25 in twrp. Neither using Uninstaller zip nor from the magisk manager app.
[Magisk] Didgeridoohan:
Those error numbers usually mean diddly-squat without a matchning recovery log.

After flashing, go to Advanced - Copy log and then you'll have a log file that you can attach to a post.
[Magisk] Will008:
Great work, Has it been tested on Oreo yet?
[Magisk] Will008:
Just wanted to report back I've flashed the "EnableDozeGMS+_TWRP - by VR25" on Nitrogen OS (Oreo custom ROM) as i dont have magisk and now google play services is battery optimized.

Thanks for the good work devs.
[Magisk] Ubimo:
Is this module working with latest magisk 14.1?
[Magisk] ghbuur:
yeah even with 14.2 ;)
[Magisk] xloolx:
How to force doze download manager services ?
[Magisk] Magz Heaven:
Don't flash this directly when you are clean flashing a ROM. It will break your account on your bought apps. You need to flash this after u booted and set up the ROM. In any case, this mod is working greatly. :) Good job

El Psy Congroo
[Magisk] EzerchE:
I am having google play services has stopped error on every boot up.

S7 Edge

Superman rom 2.7.0

Magisk 14.0
[Magisk] enter.hk:
I m bit confused ...

About this module...

I don't use magisk manager n I did not root my phone...

Can we flash this module to make google play services white listed to make doze work on it ...
[Magisk] abalam:
No
[Magisk] rohitece06:
DozeGMS+_TWRP installs correctly but non-plus version gives installation error "too many links" or something.
[Magisk] mrfrantastic:
Sadly Magisk doesn't work on my device (don't get me started ^^) but xposed does (Moto G5).

So I kindly ask if it would be possible to get a Xposed Module. Obviously I don't expect a positive answer but at least I tried :angel:
[Magisk] mauam:
Download EnableDozeforGMS-Rev5, go inside the zip & extract the google.xml file from system/etc/sysconfig. Then using a file explorer like root explorer, go to your root/system/etc/sysconfig & make a backup of your original google.xml file (for when/if you want to uninstall/go back to your original file). Then delete it &/or replace it with the otonieru's google.xml file & give permissions like in the bellow pic, reboot.
[Magisk] demonoidmaster:
You do realize there's a non magisk version of this right? It's in the OP

---------- Post added at 02:24 PM ---------- Previous post was at 02:22 PM ----------

There's a non magisk version in the op.
[Magisk] jlb1959.01:
honestly I didn't know there was a non magisk,, which is that,I'm on magiak now but in the future that's good to know.
[Magisk] kwanthenewbie:
A version which can be installed to system without Magisk
[Magisk] jlb1959.01:
oh,,my dumb butt just checked the op with the different down down lds,,my bad.I've just used the updated magisk version.after o asked I went the the different down apks ,thanks for the person that brought it to my attention..
[Magisk] Magz Heaven:
[MENTION=4066277]otonieru[/MENTION] Can you make it working on Oreo? :)
[Magisk] nadeemakhtar1994:
Even after using this module, the battery drain of play service is pretty high and in bbs app it shows play services has so many alarm wakelocks. High time a new update is released to fix all this.
[Magisk] Magz Heaven:
[MENTION=4066277]otonieru[/MENTION]
[Magisk] otonieru:
Try to use AppOps to deny the "Keep Awake" permission of Google Play Services as well,

Btw, i haven't touch Oreo myself, so i yet tp take a look on how doze is implemented,

You can check yourself whether google.xml is still there in the same place or not,

If it's there, you might want to upload it here so i can take a look
[Magisk] demonoidmaster:
Ok but this only makes GPServices be put into the doze mode list, nothing more, it doesn't modify wakelock stuff
[Magisk] davidk21770:
Try background restrictor.
[Magisk] demonoidmaster:
I already have that app, all that does is flip the switch on/off for Run In Background

However i would like to see it be updated to also disable "Prevent going to sleep/Wake device up" for apps, which brings me to have been using App Ops anyways to manage all app permissions

Anyways my comment you replied to was a reply to the other user about him complaining that this doesn't modify wakelocks and such (which BackgroundRestrictor doesn't even modify either btw, it only enables/disables Run In Background for apps of your own choosing) and that it only modifies the whitelist of apps that don't get dozed (google play services aka gms)
[Magisk] 873578156:
We have the same module principle, in my https://github.com/873578156/magisk-omadm-service-doze, when I use your module, and the module of myself, battery optimization options there is a download manager, you can try to optimize him, it will only make some of the time, updates to the application will open on the screen. You can keep this project together.
[Magisk] theduke7:
This is from Oreo OOS on OnePlus 3 ...
[Magisk] otonieru:
Try to replace it with this one
[Magisk] theduke7:
thank you, i'm still trying to find if it's working though... on oreo (at least OOS) even using apps like greenify , it doesn't display play service on the optimize list (nor play store).
[Magisk] iluvatrix:
Even though able to optimize Google play services is there a fool proof way to confirm the Google play services do actually get dozed?
[Magisk] jelive:
In Greenify settings have u selected xposed features, then select system apps, then select plus at top and finally more apps at bottom?

Edit...some report success hibernating play services but others have gotten more issues. More positive results using ApOps and changing allow keep awake to deny...ymmv.
[Magisk] takur69:
working samsung j510fn nougat 7.1.1 api 25 magisk 14 stable

enable doze standar module

thnk you dev :fingers-crossed:
[Magisk] otonieru:
I can confirm that same method still working on OREO 8.0

At least on my Mate 10 with EMUI 8.0, i can set Doze for Google Play Services

Unfortunately for OOS users, it seems that oneplus is hiding the option for system app, although it might already dozed anyway.

I might need to create separate module for oreo, but as for now, oreo user can use my file on previous page.
[Magisk] gribna:
Is it normal that Google Play Services is not on battery optimization list at all? The doze module is installed. OP5 phone.

Oops, just realized what OOS stands for, shame on me.
[Magisk] Flounderist:
Hi, I just flashed the rev5 module on OP3T with LOS 14.1 and Play store couldn't show any app installed on the lost or any update availability (loading circle spinning for ever). I deactivated from magisk and I got bootloop upon reboot. I sorted switching off and rebooting. Now Play Store show updates and installed app again. Any suggestion? Magisk is 14.3.
[Magisk] otonieru:
Did you happen to flashed the module right after installing ROM ?
[Magisk] Flounderist:
No, I flashed on TWRP alone. Now is disabled in the modules section but still present.

Any suggestion? I don't get a big drain fro GSM but I found your tool interesting, I would like to use it until it keeps Play Store functions available.
[Magisk] otonieru:
Send me your original google.xml of LOS 14.1

There might be slight difference
[Magisk] Flounderist:
Where it's located?
[Magisk] :
same situation on OnePlus 5, last OOS 4.5.14 (nougat)

after flashing last version (v5) from repo in Magisk module manager,

I still can't see play service on the optimize list (nor play store)

I turned on advanced optimization

I checked my google.xml file, it was changed, so doesn't this work ?

I flashed others module in Magisk 14 with no problems

forgive me, i didn't have the time to read the last 54 pages

just ask other OOS users if this mod works on our device or not

thanks !!
[Magisk] theduke7:
i don't know about Nougat, but a lot of things changed in Oreo, it might be that Google hid those services, but in the file they exist and the file now changed, it might be working, at this point no way to really know.
[Magisk] otonieru:
The fact that i still managed to optimise Play Services on my Mate 10 running Oreo means same method is still working,

But Google, indeed change the content of google.xml itself, thus a mod for nougat might not work straight away in oreo, or even if it does, it might break some other functions

On top of that, oneplus decide to change the way their OS showing which apps are actually being optimised, make it even harder for us to check,

Especially when i no longer have any oneplus device to test with
[Magisk] :
It seems to work pretty well on OnePlus 5, last OOS 4.5.14 (nougat)

My "play service stats" went from 12-13% to 2%
[Magisk] dsg2003:
Small question: I am using an Oneplus5 device with latest OOS (nougat) and this magisk module. It is very important for me, that messages from whatsapp and gmail and tapatalk have no delay. Do i have to set these apps on a whitelist? and when yes, where is the whitelist? I don't use any batteryapps like naptime or greenify. Only Amplify.
[Magisk] razgriz1234:
dont know if it has been asked as i didnt see it in my quick skim of the pages is this confirmed working on the pixel 2 and pixel 2 XL?
[Magisk] HannibalLecter:
do you have a newer version working on Oreo?

I want to use this on Bacon, cancro and Hydrogen :D
[Magisk] otonieru:
You can replacing the google.xml file in the zip with attached one

Extract it first
[Magisk] HannibalLecter:
thxxx a lot. will try. Can you also provide anupdate for the + variant with the background data also dozed/disabled?

A separate zip for oreo altogether will be amazing for everybody :D
[Magisk] otonieru:
Am waiting for Magisk15 to be released to update to new module template altogether

In the meantime,

You can try this TWRP version zip.

It will doze your background data and background location (oreo implement unthrotled location services for GMS as well)

Please consider this as beta version. Am using it on my Mate 10 without issue though.
[Magisk] HannibalLecter:
wow this is AMAZING. I have many devices. I will use this on Cancro and bacon and report to you how battery stats come out to be.

One thing I have been facing in all OREO ROMs is Wake:CollectionChimeraSvc kernel wakelocks that keep the phone awake ALL the time. Does not let the phone enter deep sleep at all and this is across deviced. tested on Bacon, cancro (xiaomi mi3) and Hydrogen (xiaomi mi max)

have you ever faced this?

BBS screenshots

---------- Post added at 12:29 AM ---------- Previous post was at 12:27 AM ----------

@otonieru also brother, I see that for Nougat the + variant is Rev4 whereas your normal variant is Rev 5.

Can we also get a Rev 5 for + variant for Nougat as 2 of my devices are still on Nougat :) :)

Or is the + variant Rev4 is as good as normal variant Rev5?

thanks a lottttt :) :) :)