yashsingh1/xdaforums huggingface dataset:
[Magisk] demonoidmaster:
Because Greenify is what manages Doze, just like Forcedoze or Naptime are set to not-optimized

Optimized = app will be managed by Androids default Doze

But since you have Greenify or any other Doze apps do the work instead, it's better to have them not be screwed around with by Android itself, just like why Downloads & Download Manager isn't optimized .. So that Doze mode doesn't interrupt it while it's downloading something for example

Download managers such as ADM+ or Flud (for torrents) need to be non-optimized to work right
[Magisk] Medyredy:
Hey does 5Ghz drain more battery that 2.4Ghz? Like is it a significant drain? I'm using 5GHz at home.. should I switch?
[Magisk] demonoidmaster:
Nope, in this day and age there's little difference, besides 5ghz is better than 2.4ghz since everything else runs (home phones, microwaves, etc) on 2.4ghz , 5ghz is better but doesn't do too good if your walls are outta metal or super thicc concrete
[Magisk] Medyredy:
So does that mean my doze wasn't working properly if I had greenify optimized? I had been using this module for sometime, because I got to know how to use modules just a couple of weeks ago from magisk manager, but to be honest at times there is battery drain when the phone isn't being used..I don't know why that's the case..

Also is there a specific way to install this? Isn't just installation from magisk manager the way to do it? Also why are some ppl asking about how to install it? Can't just unticking the module or even deleting it from the magisk manager, then a soft restart enough? I'm sorry I'm a bit confused, as there's also a mention of TWRP.
[Magisk] demonoidmaster:
Magisk modules can be either installed via magisk or via twrp, doesn't matter

As for the unticking/deleting from magisk + soft restart thing you said , that's if you're wanting to disable (untick)or remove this module (trashcan button next to it), also don't soft restart, do a normal device reboot

As for greenify, once installed greenify manages Doze and such things, it pretty much manages Android Doze instead of Android itself, but for apps like Greenify, Naptime, Amplify (wakelock/alarms/services blocker), HEBF (has it's own forcedoze feature), Lspeed (has Forcedoze feature) or forcedoze, etc etc these apps all constantly run so it's best to whitelist them (aka setting them to non-optimized) if they don't seem to work as intended, because some of them (like Naptime for example) auto whitelists themselves
[Magisk] Medyredy:
From what I've read, to enable this module to work correctly we have to..Install the module, and from "privacy guard" untick keep awake of Google services, and then I should not optimize Google services from the stock LAOS 14.1 battery optimization, I should let this doze module take care of that..am I missing anything?
[Magisk] otonieru:
No,

The basic steps is by optimising Google Play Services from stock battery optimisation option

Privacy Guard thing is fully optional.
[Magisk] .wojtek:
OK, I´ve searched the thread to no avail. I´ve installed the module on the Resurrection Remix (OnePlus3, Nougat 7.1.2) but… I can't find the Google Play Services in the Battery optimization list. And when I go to system app details and go from there to battery information there is only "Details of use", refresh button, Force stop, report and details of use.

Any help would ge greatly appreciated :)
[Magisk] demonoidmaster:
If you have Battery in app info just press it, then on the next screen it'll tell you if it's optimized or not
[Magisk] SingularityHRT3:
Will it help in decreasing these alarms if I add Google Play Services to doze list...
[Magisk] otonieru:
It might. But i dont see a particularly large number of alarm in that list.
[Magisk] SingularityHRT3:
Google Play Services and Android had almost equal alarm all Night... These were the only major alarms and device was at Deep Sleep all the time (awake for only a few minutes while sleeping for hours) but still I had 7% drain for 8 hrs with 4G on and in BBS I the graph showed that it had too many wakelocks (thought the device didn't wakeup)...

You can see that in the screenshot, it was in the second quarter of the graph where the screen is off for a long time...

Should I go for the Oreo GMS+ TWRP version in end of the 1st post or v6 in Magisk Manager (even though You have an explanation, I am just asking again, Sorry)???
[Magisk] otonieru:
Your phone aint sleepin

Download AppOps from play store, and use it to disable "keep awake" of Google Play Services
[Magisk] SingularityHRT3:
I just did it after enabling Your Magisk Module... Thanks for reminding... Will report next Morning...
[Magisk] .wojtek:
For some reason it doesn't, and it has suggestion "check how you can optimise use of the battery" and it takes me to location settings o_O
[Magisk] otonieru:
It normally would appear like in my screenshot.

Although OOS based ROM known to move and mod certain thing out of place, blame oneplus for that, who get further and further away from stock flow :silly:

Regarding location setting, its normal, it bring u there so u can change the location mode from high accuracy to bbatery saving.
[Magisk] SingularityHRT3:
I set Google Play Services to optimised and disabled keep awake and let My device untouched for 8 hrs and I lost 10% in that time even though it shows device was in Deep Sleep...

P.S. previously I was plagued by a kernel wakelock named sensor_ind which woke My device from sleep regularly if I had My ambient display on... It also used to drain similar amount but now it doesn't seem to be the case (or may be it is but not showing up in both BBS and Kernel Auditor)...
[Magisk] lvbaal:
I'm a bit confused regarding the Play Service app property ¨keep awake¨, which you set to ignore. On my device (Oreo 8.0) in App Ops, I see a property ¨prevent phone from sleeping¨. Is this the same, or is keep awake some other property?
[Magisk] demonoidmaster:
Same thing, app ops lists it diffently than Privacy Guard, but both are the same

On Android you have Keep Awake (privacy guard) / prevent from sleeping (app ops and other apps), run in background and run at boot.

Do not touch run in background and run at boot
[Magisk] SingularityHRT3:
Isn't this too much??? It drains 1% each hour...
[Magisk] otonieru:
You can try disable location, all your alarm is location services related.

or

stop using facebook and messenger altogether.

and see what stats you get.

Best exercise is to actually set up tasker to initiate location services toggle when you open/closing certain app.

My location services & scanning is off by default. But will automatically turned on when i open, for example, Maps or Uber. And will turned off automatically again, 10s after i close/clear those mentioned app.
[Magisk] SingularityHRT3:
Will limiting them using Amplify help??? Are those alarms fetching location info for other apps as well (like Facebook)???
[Magisk] HiQual:
Interested in that - is it part of Magisk (which I am not familiar with)?

MAny thanks
[Magisk] jelive:
Can also use Macrodroid from PS to do many tasks effortlessly...easier to use than Tasker.
[Magisk] shehabskull:
Hi folks.. where can I find the donwlaod link of this module for magisk 16?

EDIT: Never Mind, found it in the magisk-download section.
[Magisk] Jeroen1000:
dear developer,

I thankfully used your module on a Oneplus5T running Nougat 7.1.1. After applying your mod, the list of apps under Battery optimisation got a lot longer. I was able to access this list via Greenify and this list also showed me Play Services was being optimised. So it worked flawlessly for me.

However, now that I have updated to Oreo 8.0, System apps no longer appear in said list. I have whitelisted an app there, called Mysms (this is not a system app), but when following your workaround for OPO devices (last paragraph under "The Solution") , it shows me there Mysms is still being optimised. So one of them must be wrong, it can't be both Optimised and Not Optimsed at the same time:)

Please refer to the screenshots. Long story short: how do I find out whether Play Services is being optimised or not?
[Magisk] demonoidmaster:
Did you try removing it from the whitelist, rebooting and adding it back? Because you upgraded from Nougat to Oreo, new OS yknow, things get changed so it would be best to remove it all and add those you need back to "not optimized" one by one
[Magisk] Jeroen1000:
Yes I have. The thing is, I can't seem to check whats optimised now and whats not. Is there per chance a terminal command that spews out a list?

edit: I have a suspicion it is no longer working for Oneplus5T phones on Oreo:(
[Magisk] SingularityHRT3:
Is it safe to block those alarms above 15 counts??? Seems like Xposed is not working for Me so no Amplify to limit them but I can block these alarms, but is it safe??? What are the shortcomings of blocking it altogether???
[Magisk] Jeroen1000:
Please see in attach the google.xml file. You will see that gms is still whitelisted thus patching failed. Unless I'm missing something here:)

I'm referring to this section:

<!-- These are the standard packages that are white-listed to always have internet
access while in power save mode, even if they aren't in the foreground. -->

<!-- GmsCore must always have network access for GCM and other things. -->
<!-- <allow-in-power-save package="com.google.android.gms" /> -->
<allow-in-data-usage-save package="com.google.android.gms" />
<allow-unthrottled-location package="com.google.android.gms" />
[Magisk] otonieru:
I checked your file. And no, GMS was already commented out. Thus, no longer whitelisted.

Whitelisted in XML = Cant be optimised
[Magisk] ashumishra01:
Whatsapp notification delayed and i checked in background running services, whatsapp was not even present there. When i open the whatsapp app only then i recieve messages.
[Magisk] DaveedDB:
Sounds like you used the + version try the normal and see if it works better
[Magisk] HiQual:
If you are using the + version, go to settings - apps - whatsapp - enable background data and check all notifications are switched on.
[Magisk] Nonononoki:
I'm on Magisk 16.3 and it says that I need Magisk 14+. How to fix this?
[Magisk] otonieru:
Which module did you use ? Use the one in magisk repo.
[Magisk] Jess182:
is this module work on android stock 8.0 (i have Mi A1)?

Thanks
[Magisk] otonieru:
It does
[Magisk] dviree:
Removing battery optimizations for texting apps will make my battery drain faster right ?
[Magisk] ulxerker:
Not really, its more kinda placebo ... so just try it.
[Magisk] iZLeeP:
Thanks for the module. However, I am unable to see Google Play Services in the Battery Optimization settings. Running stock rooted Android 6.0, with Magisk 16.0 and this mod installed from the repo.
[Magisk] atulclassic:
Can anyone guide whether i need to install this module or not by looking at the attached.

Running Oxygen OS Open Beta 36 on Oneplus 3
[Magisk] dcillusions77:
Can't tell anything, because you have no stats to view
[Magisk] atulclassic:
Its already optimised in screenshot..do i need to flash this module
[Magisk] dcillusions77:
If Google play services is draining your battery then yes
[Magisk] Fahrilubis:
What is magisk repo? Ive magisk 16.4, which one should i download? Im not really want + version just need normal version then this module break safety net (twrp&magisk version)?

Btw im orea 8.1
[Magisk] ulxerker:
The repo version is the version you download in Magisk manager download section, just use this and you're good.
[Magisk] Fahrilubis:
I dont understand repo... Repo is some module in magisk manager right?
[Magisk] ulxerker:
Yes.
[Magisk] otonieru:
Repo is...errrr..repository...

"A place where things are stored" -> this from cambridge

And, in magisk case, the repo store modules
[Magisk] Fahrilubis:
Already flash ur module v6 if im not wrong in magisk download, thx module work wells dude
[Magisk] trantiendat3004:
working on htc 10 oreo , thanks :D
[Magisk] Fahrilubis:
Dude its safe to use?
[Magisk] Spartacus500:
[MENTION=4066277]otonieru[/MENTION]

Not work for S7 Edge Oreo 8.0.
[Magisk] otonieru:
How do you check your battery optimisation list ?
[Magisk] Spartacus500:
Simply all the sliders are in the same place and you can not change them.
[Magisk] batuken:
Thanks for this. Works well on Redmi Note 3 running RR Oreo.
[Magisk] otonieru:
Is your /system/etc/sysconfig/google.xml successfully replaced by magisk ? Check the modification date
[Magisk] Spartacus500:
I have replaced the google.xml file manually with root Explorer, and like the pictures I can not add these applications.
[Magisk] otonieru:
am not sure whyso many app cant be optimised. but samsung always have their own xml config in same directory, and you might want to look into those file. or maybe you can attach it here.
[Magisk] Spartacus500:
The entire folder with S7 Edge Oreo BTU
[Magisk] immerzu:
Installed on a BQ Aquaris M5, Android 6.0.1. Functional Super !!!

Only google photos will not sync when mobile in standby.

Thank you.
[Magisk] vjendra:
My Oneplus3 is not working, play services not showing in battery optimisation
[Magisk] otonieru:
Have you reboot ?
[Magisk] otonieru:
The TWRP version will flash the new file straight away to system, it's not a magisk flashable, thus it wont show in magisk indeed
[Magisk] smohanv:
Understood... Is it not going to feature in magisk modules in future..
[Magisk] vjendra:
Yes I rebooted twice, reinstalled and again rebooted twice
[Magisk] otonieru:
The magisk version will always be act as a module

TWRP version is just an alternative for one who are not using magisk for root, and dont want to mod the file manually :)
[Magisk] reawo:
can i get rid of this module withing TWRP? since when i installed it i get bootloops with magisk installed (so i dont have root or magisk after booting up to delete it from magisk manager)

HLTE just stays at Samsung Galaxy Note 3 Screen with the Kernel warrenty bit message and loops there, wont even try to start booting system
[Magisk] K.chez:
Just download it and have it enable in magisk but can't enable google play services in battery optimization
[Magisk] Ubimo:
I don't see this file but similar files.

I can't figure out the ongoings inside this files, I'm too stupid. :p

I kindly ask if you can aslo provide a magisk module for samsung stock weather and samsung stock weather forecast app as they are not hibernateable?
[Magisk] HamsterHam:
Hmm, interesting. I'm using his builds as well on ABC ROM. The file isn't replaced for me.
[Magisk] drawix:
this module cause all gapps stopped working notification on pure nexus (redmi note 3 pro) any one with same problem? Maybe hotfixes?
[Magisk] :
Have you rebooted? Magisk mods will only take effect after rebooting.
[Magisk] Rhodesgod:
i have checked my idle drain and notice this :

can this module fix this ? :confused:

it was amazing if we could select alarms manually.

thank you.
[Magisk] otonieru:
Notification delayed is expected. But a total stop of service is uncommon,

What kind of gapps for example ? Gmail ? It will still push during doze maintenance windows time,

I dont use youtube nor any other google apps notif. I dont use hangout, duo, G+ etc, so can't really say about all those app aside from email,

But i can make sure that line, wa, telegram, and elses going through with no issue
[Magisk] otonieru:
This module will help to some degree,

You need to combine with AppOps for better results in term of that alarm thingy
[Magisk] :
Speaking of AppOps, where can we find one that works on Nougat?
[Magisk] otonieru:
https://play.google.com/store/apps/details?id=rikka.appops

This works perfectly on my Touchwiz 7.0

Install it as system plugin, or run it in privilleged mode to get maximum detection of API
[Magisk] :
Thank you very much! :D
[Magisk] prusto2k:
Otoneiru

Although, in my experience (i use this mod on all of my three devices) my notif for LINE, WhatsApp and Telegram (my main comm app) is never been delayed. ( I put all these apps in my whitelist btw)

How did u do that? White list, where is it?
[Magisk] Anm92:
Firstly, Thanks! You did a great job. Installed 1st time on my Oreo-Aosp Rom, with Magisk Manager. Increased SOT by 1hr.

Unfortunately, I had to flash stock ROM. When I Restored again, The module doesn't work that well. I uninstalled and then reinstalled but no change.

BTW, Play services app DOES run in background( 4-5 processes including Location manager), but its also added to the "Battery optimization" . Strange. Any fix for that?
[Magisk] Spartan117H3:
Nevermind, I figured it out.
[Magisk] meistr91:
Hi guys! I have been using this modules on all my phones from xperia z1 to z5 ant it was working properly on every stock rom or custom. But now i have got:

Oneplus 6 debloated stock rom +twrp +magisk.

But what i find out on OP6 that in battery optimization screen there is NO play services listed. But still installed module and nothing has changed.. maybe on OnePlus we need to do it differently?:o
[Magisk] Shararti1:
I m using Xiaomi Redmi Note 3 (Kenzo) and Using Aex Nougat 4.6. and using this module in Magisk but Google Play Service is still awake for me always...

attaching my screenshot it taken on previous battery cycle.
[Magisk] demonoidmaster:
ok and did you turn off keep awake for Play Services?
[Magisk] meistr91:
What you mean turn off keep awake? Premision?
[Magisk] demonoidmaster:
This
[Magisk] Shararti1:
yes already all 3 Options r off. Keep awake, Run in Background and Auto boot. but its still awake
[Magisk] demonoidmaster:
Don't turn off run in background and auto boot
[Magisk] Shararti1:
so only keep awake i should turn off ? will check tonight and see
[Magisk] mattie_49:
If you turn off run in background. Google Play services goes berzerk and will find its own way to work for sure. Just deny it from allowing device to sleep
[Magisk] demonoidmaster:
Use better battery stats to find exactly what's going on, also if i were you I'd use Amplify to manually put limits on wakelocks and alarms
[Magisk] Shararti1:
Ok will test and soon post results..

---------- Post added at 08:44 PM ---------- Previous post was at 08:41 PM ----------

I have BBS will find out soon and Amplify works with Xposed which i m not using and also its a Paid App too as few features does not work in free one.
[Magisk] bleros:
I installed manualy with root explorer reboot and was enabled automatically, but i dont see any battery usage by google services lol :confused:
[Magisk] Shararti1:
these screenshots might help...
[Magisk] otonieru:
1.9% / h is not actually bad. And google wake up is not that much. Most of it come from locator. Only app i know can manage that is amplify indeed.
[Magisk] otonieru:
Sorry, late response.

I've checked your folder, and it doesnt differ much. Maybe you can try to use the original google.xml file from your phone and manually comment out the whitelist line.

Samsung latest oreo .xml has one or two different lines and might play part in why it doesnt work on your phone
[Magisk] otonieru:
May i know the timeframe of this "1h" keep awake ? Because, 1h might sounds big in 5h of standby, but then it is small if thenstandby time is, let say, 18h. :)
[Magisk] Shararti1:
well this was taken i short time of idle. as i sleep less. and regularly its 8+ hrs and till then its 1+ hrs of google play services
[Magisk] smk513:
Is "OREO_EnableDozeGMS + _TWRP_by_otonieru.zip" the latest version?

and the Uninstaller still work?
[Magisk] mattie_49:
Yes. The latest version will always be the one in magisk installer. That is if your installer apk is up to date.
[Magisk] hfxiaozi:
my phone is OP3 with oos nougat

i download it from magisk v16 repository.

but it is not working,why?
[Magisk] bruceblake26:
K
[Magisk] SGSIV:
this module crash safetynet, cant bypass
[Magisk] FullWipe:
No problem here with this module and Safetynet.
[Magisk] otonieru:
This module wont causing SN problem. Reinstall your magisk
[Magisk] DarkCorax:
Working. No Problem for this module?

https://imgur.com/a/m9PF3x3
[Magisk] smohanv:
I flashed via TWRP and is working fine. I could navigate to settings / Apps / Special access / Ignore battery optimization and could "disallow" for Google Play Services. Thanks.
[Magisk] let92:
Anybody with a OnePlus 3 can confirm this module works? I've installed it, but I can't see Google Play Services under the optimized app :(
[Magisk] gFknQ:
It works for me on Custom rom
[Magisk] let92:
Yeah, I finally found where OnePlus put the optimized apps and there were also Google Play Services inside that list. But I've anyway battery drain caused by Google Play Services and I don't understand why :crying:
[Magisk] Dreamer(3MF):
Kindly Check The Module Of ClearPlayStoreWithServicesData4Magisk From This Thread https://xdaforums.com/apps/magisk/module-google-playstore-services-data-t3789498.
[Magisk] Phelicks:
What module could be installed to Pixel 2 XL with Android P DP4 via Magisk? Or TWRP only?
[Magisk] nahean.ahmed:
which one should I install for asus zenfone 2 laser (Z00L)?? currently on viper OS nougat.
[Magisk] riccetto80:
it work very nice, i dont see delay in whatsup messages!!!

GG devs!
[Magisk] otonieru:
The one from magisk manager
[Magisk] otonieru:
You can use one in magisk manager i think, should work just fine
[Magisk] Phelicks:
It is not installing.
[Magisk] DaveedDB:
Come on dude it tells you why it's not installing lol
[Magisk] Phelicks:
I do not want to install v14 of Magisk to DP4 Android. I'm not sure that it will work.
[Magisk] Didgeridoohan:
The solution is simple. Install from the Manager downloads instead.

The zip you're trying to install is based on an old template and can no longer be installed on current versions of Magisk (v16.3+).
[Magisk] otonieru:
By saying 14, it means 14 and above, LoL

Also, just install from the manager directly. Easier that way
[Magisk] Phelicks:
It says that data/magisk isn't installed properly. I'm indtalling from magisk manager.
[Magisk] Didgeridoohan:
Don't download any zip from here. Install by going to the Manager Downloads section, and install directly from there. As I've already explained, the zip you've downloaded from here is outdated and won't install on Magisk v16.3+.
[Magisk] otonieru:
Which version of magisk you use ? And how did you install it ?
[Magisk] Phelicks:
Thanks, i did it.
[Magisk] x.trinity:
It's not working on my side.

RR, the latest 07162018 build.
[Magisk] Diresh:
From your screenshots you can see that it has worked, play services is no longer on the list of not optimized apps
[Magisk] otonieru:
Thats how it works. By "optimising" google play services. Not the other way round :)
[Magisk] x.trinity:
As I remember in earlier doze versions I could have made doze tweaks all around not optimized apps. Ok..
[Magisk] mkdante381:
Nice magisk module. This is possibile to adding "carrier services"?
[Magisk] otonieru:
Carrier services use less than 0.1% battery per day, so its harmless
[Magisk] mindlery:
I don't use anything by google that requires this to be running except a playstore update as far as I know and I never auto update of course. It is optimized now and with a ton of bloat removed it said 7% since last charge. Will let you know but having it go optimized is a solid punch in the chops no matter what. Thanks.
[Magisk] mindlery:
Okay I am going to just give you a 3 hour result because I might forget and the mAh reading has not changed at all. Wow. Well from 158 mAh in 12 hours to 6 mAh in 3 hours.

And just to see if it works if I leave my phone idle.... charged it a bit and after a couple hours 2 minutes usage and 0 mAh. Yeah i'd say if it worked any better it would self charge my phone.
[Magisk] Fahrilubis:
Already optimized google play service but google still drain my battery like 1-3% both google play store&service? Help [MENTION=4066277]otonieru[/MENTION] oreo 8.1
[Magisk] otonieru:
1% in how long ? 1% in 6-12 hours can be considered harmless
[Magisk] arddy1:
Battery optimization for play service resets occasionally in miui oreo. Any solution? :(
[Magisk] FullWipe:
Uninstall greenify and use only doze function.
[Magisk] otonieru:
No need to hibernate it using greenify.