yashsingh1/xdaforums huggingface dataset:
[Magisk] ACardAttack:
Anyone have this keeping their phone awake?

I thought it was greenify, but I removed both, and then reenabled this, restarted and my phone was just "awake" and then deactivated it, rebooted and no issues. I'm using the + version.

I've had this issue for awhile, even when I install a new rom with a clean flash my phone is stuck awake far more often than not compared to now.

I'm also on CRdroid and I wonder if some its battery saving stuff is interfering with this module.
[Magisk] otonieru:
Check BBS,

We need to know more what keeping the phone awake.

Mine is sleeping fine
[Magisk] HannibalLecter:
mine too.

Buddy, can we get the REV 5 for GMS Doze + ?

or the Rev4 is good enough?
[Magisk] filipe_m:
Hi,

Since a few weeks ago I have a message on Magisk module saying: "Module will be updated at next reboot"

But nothing change after reboot the phone... And I think I have the last version...

Anything I can do?

Thanks
[Magisk] otonieru:
Try reinstall magisk,

Dont use beta yet,

And try flash the module from twrp instead
[Magisk] raviprakashji:
Spotify and all other music streaming services are paused after short time of screen lock.
[Magisk] filipe_m:
Thanks,

I install module from Twrp and is working fine.
[Magisk] davidk21770:
Thanks. Been wondering which of my battery savers was stopping spotify :)
[Magisk] raviprakashji:
Sorry i don't understand your question.
[Magisk] otonieru:
Not gonna happen for non+ version. Which version you used ?

You should whitelist spotify on your doze setting as well. Although thats not really neccessary
[Magisk] otonieru:
He didnt ask a question,

He's been wondering which of his battery saver causing his spotify to stop, and your comment is an undirect answer for his question, LoL
[Magisk] raviprakashji:
Okay i replaced with non-plus and will whitelist it. Hoping for the best results.
[Magisk] davidk21770:
Not a question. Keyboard autocorrect got in the way...

Been wondering which of my battery saver apps was stopping Spotify and you just told me. Thanks.
[Magisk] raviprakashji:
Non-plus working fine and not stopping music streaming.
[Magisk] HannibalLecter:
buddy this version for OREO is working WONDERFULLY for me on Oreo ROM :)

thanks for this.

Request a PLUS version REV 5 for Nougat too :)
[Magisk] ulxerker:
I can flash this successfully in TWRP, but it doesn't show up in modules in Magisk Manager, is that normal or did I miss something? I'm on OOS Oreo Open Beta 1 and Magisk 14.5 ...

Edit: in app settings it says that Google Play Services are battery optimized (aka dozeable), so I guess it works, though.
[Magisk] w1000i:
If I don't have Magisk , can I use this mod ?
[Magisk] DaveedDB:
Sure
[Magisk] Frenzi2012:
Use magisk manager
[Magisk] ulxerker:
I'm talking about the TWRP version of a module, so its meant to be flashed in TWRP.

And that's the reason why it doesn't show up in Magisk Manager, I assume.
[Magisk] otonieru:
Exactly. Magisk version is flashable through TWRP as well,

But TWRP version wont appear on Magisk Manager
[Magisk] emraz786:
I receive notifications from the Telegram only if I remove it from the white list
[Magisk] redmi_3g:
Thousand thanks to u for this masterpiece mods

All work perfectly without issue

Kill all gapps services on background

No FC..no crashes..no bug

And mostly my free ram is 1.7gb and no heating happen even hours internet surfing

Keep it up ya
[Magisk] lammpat:
Which version i can flash from twrp? There are 3 v for twrp..which one please?
[Magisk] ulxerker:
For Oreo: https://xdaforums.com/attachment.php?attachmentid=4341340&d=1511547957

For Nougat: https://xdaforums.com/attachment.php?attachmentid=4180675&d=1497378400
[Magisk] lammpat:
Thanks, one more question, I have flashed twrp version of OP which is 1st in the download section, can I flash nougat version suggested by you over that? I am on sultan laos 14.1.
[Magisk] otonieru:
The one you use is normal version,

The one attached above is + version,

It depends on your need,

If you dont mind your app losing background data capability, then u can use the + version alright :)
[Magisk] grunt12g:
Does this still break safety net? Is there a way to install without breaking?
[Magisk] ulxerker:
I'm using the Oreo version without breaking SafetyNet, before I was using the Nougat version also without issues.
[Magisk] grunt12g:
Are you on magisk 14? Tried through the manager a couple times and it breaks every time
[Magisk] ulxerker:
I'm on Magisk 14.5, before that I was on 14.3 ... try one of these versions and you should be good.
[Magisk] yung40oz84:
So this is the plus version right, not the regular? Can u do regular for Oreo? Will I miss many notification with this or what are the known side affects?
[Magisk] otonieru:
I already uploaded regular mod version for oreo above the post you quote,

Simply replace the .xml in the zip
[Magisk] grunt12g:
Just updated to 14.3 an still breaks. Maybe its just my phone. I don't know
[Magisk] otonieru:
You sure its this module that break your SN ?

Is there any other module in your magisk manager ?
[Magisk] grunt12g:
I have arise magisk compatibility for freedom os,

greenify4magisk, hevc+60fps+sm gc op3&3t&op5, op3&3t wifi channel bonding. Its when I add the mod is when it fails safety net

Edit: those are the only ones that are active

Edit; ok so I tweaked it around a little bit, testing different combos of the mods above and I think I got it working
[Magisk] lammpat:
no effects even after flashing, google service is giving me hard time. Phone do not want to sleep at all. What to do? :(
[Magisk] otonieru:
I used to have problem with arise and safetynet back in my time with samsung S8, you might want to check it out
[Magisk] otonieru:
Can you show me the details of the play services usage ? How long does it keep your phone awake ? Anything less than 10 minutes in a day usage still considered good enough i guess (mine only keep the phone awake for 8secs in 15 hours of usage though)

You might want to install BBS as well and see what stuff make the phone awake all the time

Try to install appOps and disable keep awake for play services as well,

Or if your Lineage OS already have appOps in it, just use the prebuilt one
[Magisk] Ubimo:
I have Magisk v13 and use Rev2. Is that bad?
[Magisk] edoardotavecchio:
Where did you find it? I can't find it anywhere in this thread
[Magisk] de.er:
https://xdaforums.com/showpost.php?p=72355498&postcount=12
[Magisk] Spartacus500:
Works on Samsung Galaxy S7 edge nougat 7.0 root Magiskv12?
[Magisk] GodKiller_222:
1. What the hell is this in your google.xml?:

<!-- <allow-in-power-save package="com.google.android.gms" /> -->
<allow-in-data-usage-save[B][COLOR="DarkOrange"]<!--[/COLOR][/B]package="com.google.android.gms" />

2. What's the point in replacing all the file for changing one line? Why not to make:

sed -i -r 's/(<allow-in-power-save package="com.google.android.gms".+?)/<!-- <\1> -->/' /system/etc/sysconfig/google.xml

It would be twice faster and tenfold more compatible.
[Magisk] Spartacus500:
Can somebody type this entry into the google.xml file?
[Magisk] GodKiller_222:
It's just a command to replace line in a file. You should not type it anywhere exept plugin script:)
[Magisk] Spartacus500:
Type this script in the terminal emulator and then you will see the slider for optimization?
[Magisk] GodKiller_222:
Long story short, this "plugin" only comments one line in /system/etc/sysconfig/google.xml in a lame way, by replacing whole file. You can do the same with your own google.xml using RootExplorer or similar app.

I just suggest to author do the same in a more appropriate way.
[Magisk] Spartacus500:
That's what I mean, but how do I edit that line? Can you describe exactly how to edit the google.xml file? Can I replace a file with root Explorer but how do I edit it?
[Magisk] otonieru:
Damn, i must be drunk typing or accidentally press something when doing the editing on mobile. Crap.

Am updating the module on the OP now

As for why i choose "replacing" method instead of inserting/mod line, because it will be cleaner that way

Thank you for finding the line error anyway
[Magisk] otonieru:
Module updated with typo error fixed.

Please kindly download and update to latest version. I'll update the template once i get in touch with better internet,

Thank you
[Magisk] Spartacus500:
Can you upload via TWRP to Samsung Galaxy S7 edge nougat 7.0 root Magiskv12? Works on Nougat 7.0?
[Magisk] otonieru:
Attached is TWRP flashable ZIP

Although i would suggest using Magisk Version instead

Am on S8 Nougat, and i dont think there would be problem with S7 Edge
[Magisk] Spartacus500:
Works on Samsung Galaxy S7 edge nougat 7.0, we will see what will effect after a few days :)
[Magisk] drawix:
im having big fingerprint delay, redmi note 3 pro on purenexus and franco, any idea?
[Magisk] suku_patel_22:
Working great on my Zuk Z2 running AICP
[Magisk] Bobthahog:
Working great on my Sprint Galaxy Note 5 running [MENTION=1042140]tdunham[/MENTION] Nougatized ROM. After I let battery charge fully I am curious to see the battery savings.
[Magisk] Ubimo:
How can I add samsung stock weather and weatherforecast also in doze mode? And probably IMS service? (don't know what that is, and for what I need it)
[Magisk] andybones:
HTC 10 RR ROM, edited the file manually and was successful. Thank you very much!
[Magisk] grunt12g:
Yeah that's what ended up being the problem. It works now
[Magisk] lammpat:
I have changed the settings as you said, I will post all the details if problem persists. I am not blaming you please don't take me otherwise. I can see that your zip is working for almost every one.?

I remember a case few months ago, same kind of problem was happening, Playservice was going crazy and phone didn't slept for a minute till battery reached the warning level .

I cleaned everything on the phone and reflashed rom and newer gapps, and everything went normal.

Thanks for all the work and instant replies. :)
[Magisk] HannibalLecter:
thanks so much for this. Request [MENTION=4066277]otonieru[/MENTION] to update the OP with latest versions for Nougat and OREO separately.

I have been using the OREO version with Spectacular results.

If I dont use this, then the background location and sensor collection does not let the device sleep AT ALL.

Just one question, Is the NOUGAT version you provided the latest / I mean Revision 5 ? there is a + rev 4 in the OP.
[Magisk] ulxerker:
V5 is that latest version for Nougat and Magisk 14.X only. Versions before that don't work on Magisk 14.X but on Magisk 13.X.
[Magisk] otonieru:
For Nougat, simply use V5. Thats the latest

i will take out Rev4 to prevent confusion

I'll also upload OREO version to main post
[Magisk] HannibalLecter:
thanks for updating the OP.

But I still see that the first 2 downloads attached in the OP are OLD. They can be removed too.

Also, I flashed the + rev 4 so, now to flash rev 5 should I use the Uninstaller (Uninstaller looks OLD) first and then flash rev 5?

Or can I flash rev 5 directly over previously flashed rev 4?

Does the uninstaller also needs to be updated to be able to uninstall rev 4/5?
[Magisk] otonieru:
Uninstaller will work regardless what version is installed. And updating can flashed over without uninstallation.
[Magisk] jlb1959.01:
correct me if I'm wrong,the first two are for non magisk,so why take off op??.
[Magisk] otonieru:
No, you are right,

Thats why i keep it there.
[Magisk] jlb1959.01:
thank you,as I use it with my ROM(obviously with supersu)..
[Magisk] HannibalLecter:
sorry I didnt get it.

Now I do. Thanks. :good:
[Magisk] ulxerker:
BTW: when on Oreo, does it really matter what version of Play Services I use?

there are 940 and 948 versions (for Android 8.0+) available, but right now I'm using a 440 version (Android 6.0+) without problems.

so which version would be better and why - any thoughts [MENTION=4066277]otonieru[/MENTION] ?
[Magisk] HannibalLecter:
does this wonder not work on x86 intel based devices?

Just tried to flash on Asus zenfone 5. It failed with error 255?
[Magisk] otonieru:
Have u tried manually replace the .xml file ?
[Magisk] otonieru:
This mod will allow it to be dozed, doesnt matter which version actually used,

Am on 440 myself on OREO. 11.9.51 - 440 to be exact

The last three digit define which platform and screen dpi it should run on.

Here's the detail :

XYZ

* X defines Android version:

0 for Android <5.0

2 for Android 5.0 and 5.1 starting with Play Services v8

4 for Android 5.0 and 5.1 before Play Services v8, Android >= 6.0 after

5 for Android Wear

7 for Android 5.0

8 for Android TV

9 for Android 8.0+

* Y defines CPU architecture:

1 for armeabi

3 for armeabi-v7a

4 for arm64-v8a

5 for mips

7 for x86

8 for x86_64

* Z defines DPI:

0 for universal nodpi

2 for 160

4 for 240

6 for 320

8 for 480

So, if you are on Oreo with an Arm64 cpu, and 480dpi screen,

All those number you stated will serve you just fine
[Magisk] jelive:
Currently on Oreo and using v5...seems working. Any advantage switching to Oreo version?
[Magisk] HannibalLecter:
no haven't tried that. I used the + TWRP variant.

Could you please let me know where and how to replace the XML file.
[Magisk] otonieru:
Extract google.xml from the zip,

Open /system/etc/sysconfig

Replace google.xml in that directory with the one you get from the flashable zip.

Set permission to 644

Dont forget to backup the original
[Magisk] der_Kief:
same here ...

How to know that this module work on EMUI 5 (here P9 Lite) ?
[Magisk] otonieru:
If your Huawei is Global Version,

It will be listed under "App" - "Special Access" - "Ignore Battery Optimisation"
[Magisk] otonieru:
See attached. It listed as "Not allow"
[Magisk] der_Kief:
as my previous speaker already mentioned ... there is not such an "Google Play Services" entry in that list. Independent if module is installed or not.
[Magisk] Zorachus:
I'm rooted on the Pixel 2 XL.

I assumed my download is the last file in the OP ? The one that starts with Oreo in the name ?

And then I flash that in Recovery ? Because in Magisk Manager I don't see an option to load or install files ?

Let me know, please. Thank you
[Magisk] ulxerker:
Correct and correct.
[Magisk] Zorachus:
Thank you for confirming, so I just flash this zip in Recovery, and that's it ? Or once rebooted do I I need to do something ?

I followed OP instructions, go in Settings - Battery - Battery optimization- All apps - Google Play Services ( greyed out, states Battery optimization not available )
[Magisk] ulxerker:
Strange, for me its working exactly this way and Google Play Services are battery optimized ... this has to be Pixel specific, maybe you want to ask in the Pixel 2 XL forums, too.
[Magisk] otonieru:
For pixel, you might want to do a manual installation,

Am not sure whether thet put the config file in system or in vendor partition,

Because Pixel use A/B partition if am not mistaken
[Magisk] Zorachus:
I head someone mention Magisk Modules ? Where's that ? When I open Magisk I only have a few options, like settings, and SuperSU or Magisk, but there's no Modules thing.
[Magisk] otonieru:
Erm,

In download section in your magisk manager (need internet connection)

Or in attachment in main post.
[Magisk] Zorachus:
Thanks, I had some setting enabled not showing download section. Once I unchecked that the Downloads optionn appeared.

Installed GSM Doze. Rebooted. Went into Settings - Battery - Battery optimization - All apps - Google Play Services ( two options available but the top one was already selected stating optimized on or something )

Do I need to do anything else, or it's self running ?
[Magisk] otonieru:
If its optimised, its working

You dont have to do anything else :)
[Magisk] ulxerker:
Although it's optimized it still drains a lot over the time.
[Magisk] otonieru:
Definitely something wrong,

Install BBS and check, how long Play Services keep your phone awake,

It's not even in the top 10 list over here
[Magisk] jelive:
Is there advantage using Oreo version over V5?
[Magisk] otonieru:
Difference in oreo version is that it adding extra code/lines in config file, syncing it accordingly with stock config from OREO,

If you are on Nougat, there would be no extra benefit.

If you are on Oreo, Oreo version will prevent any bugs/problem with other functions to occur
[Magisk] Sinaptik:
Hi,

I downloaded Nougat version for Magisk, I was able to install it on Magisk manager.

I rebooted twice but I can't see Google play services in the battery optimization list.

What can I do, please?

I'm quite sure it's not the case but is this kind of modules depending of local language, package name is the same regardless of system language, I think? (I'm using French system language)

Thanks for your help!
[Magisk] otonieru:
What is your phone model and ROM ?

And, no, its not language dependant
[Magisk] smatak:
Hello,

I have same issue. Google Play Services are on the top.

Did you solve it somehow?
[Magisk] ulxerker:
Not sure yet, but I'm on it ... I'll let you know when I have some results.
[Magisk] jelive:
Removed v5 and installed Oreo version thru twrp...so changes config files w/o magisk module, correct?
[Magisk] ulxerker:
Correct.
[Magisk] smatak:
Ok, thank you. :)
[Magisk] Zorachus:
It's not a Magisk module ? When I first installed the Oreo version from the OP list, I did flash through TWRP, and when I go into Settings - Batttery - Battery optimization - Google Play Services is greyed out, it's not working.

But when I go through Magisk - Downloads - GSM Doze - Install that, then I do find it under Battery optimization and it seems to be working then.
[Magisk] ulxerker:
I did a bit of research and I think I got it ... go into settings of Google Maps -> notifications -> disable them all.

At least for me it helped as Play Services's drain is back to normal at the moment.
[Magisk] Sinaptik:
Hi Otonieru,

I'm using a OnePlus 5 with stock OxygenOS Rom coupled with latest Nougat version of Flash kernel.

Thank you for your help. [emoji846]
[Magisk] otonieru:
OOS is well known for not showing Google Services in the doze optimisation list. So unfortunately sometimes we cant really check it,

Previously, it is possible to use other app like greenify to see the optimisation whitelist,

But in latest OOS, its been disabled
[Magisk] Sinaptik:
Heck!

So, no known workaround ?

Not so important, GMS isn't using tons of my battery life but I'm always searching ways to improve it.

Thank you!
[Magisk] otonieru:
Other ways to improve it is by using AppOps, either the stand alone app, or the one come with Brevent,

Use it to Ignore the keep awake permission of Play Services and Google App

Brevent AppOps need a small donation, totally worth it though, it work in Oreo
[Magisk] briankamkobe:
can u show me the setup u done on ur phone to get 8 hr sot?apart from denying keep awake permission in brevent or appsops and using gmsdoze ofc,did u debloat or use greenify,lspeed, background restrictor or naptime power nap,disable journaling and logging etc these tweaks or mods?and is there a significant difference in battery with and without gmsdoze since my standby 17 hrs and in battery usage gms didn't appear in battery usage list so I'm hesitant to further enhance it or leave it as it is for now.I used device maintenance function to put apps to sleep as well...and did u tweak kernel settings too or use stock kernel?

p.s. I assumed u disabled all unused functions like bt nfc etc
[Magisk] otonieru:
For basic functions, i disable BT and NFC when its not used, turning it on all the time is just stupid, i leave wifi scanning on though, my riding app force me to do so

My "power saving" apps are Greenify and Brevent. I greenify & brevented most of app, except WhatsApp, LINE, Advanced Download Manager and DirectChat Pro.

My greenify set up is "shallow hibernation" for most app except Gmail, Chrome and Files Explorer (which wake up way too often) for those i use "normal hhlibernation). I use "Aggresive Doze" and "Doze on the go" option as well

I optimise almost any app except the app i stated in greenify whitelist above

I ignore keep awake for Google Play Services, Google Services Framework and Google App

I ignore body sensors permission for WhatsApp (which surprisingly use a lot of it)

I ignore location permissions from almost all apps, except for my travelling app (UBER, Grab, Maps), Instagram (needed for setting up location based promotion), WhatsApp (location sharing) and Google Play Services.

I disable FirebaseInstance and Appmeasurement service from almost any installed apps that using it.

I let Huawei manage app launch automatically for all apps, except one stated in my greenify whitelist

I doze all apps, except one stated in my greenify whitelist

I tweak my own stock kernel CPU config using my own Interactive Governor calculation (based on voltage usage data from kernel source) - i wrote it here : https://xdaforums.com/mate-10/how-to/guide-advanced-interactive-governor-t3718123 - you can actually calculate a config for your own device based on same logic if you want/have time to do so

I leave screen on auto for most of the time.

In office am connected to WiFi, outside, am on 4G all the time

My daily highest usage is always : Screen, LINE, WhatsApp, Youtube, Chrome, BattleBay, and occasionally a riding app (if i travel a lot that day)
[Magisk] jlb1959.01:
you can go into apk mirror,look up the version of Google play you have installed then go into mirror apk and down load a newer version.I'm on 11.9.51 and I can doze googleplay services..
[Magisk] briankamkobe:
one more thing do u use facebook and messenger or any adblockers like adaway or Adblock plus?do u think they would impact battery too even put them to sleep?also as u stated there are only 4 apps u didn't greenify or brevented?since I'm not sure disable firebase and appmeasurement in whatsapp or other apps affect push notifications or introduce other negative side effects as well.also did u greenify system apps as well and which settings u used inside greenify (like which one u preferred to use in greenify settings)and do u prefer to use greenify or Samsung device maintenance always sleeping apps function or using both?
[Magisk] otonieru:
Nah, i never install facebook app. Thats a true battery drainer. I use browser when i need to access facebook.

I use Adaway for adblocker. And it has almost to none impact for battery. Except if you use custom host with a huge database, it will drain your batt faster indeed. But am simply use deault setting.

Yes i greenify some system app. On my current phone most of google app (music, game, movie, newsbook) are system app, so i greenify the one i used, and disable one i didnt.

I already wrote some of my greenify config above (Aggressive doze, doze on the go, shallow/normal hibernation)

But here's some screenshot

Anyway, disabling appmeasurement and firebase wont delay your WA notif, as long as WA itself is in priority list/whitelist
[Magisk] deif102:
Does the EnableDozeGMS+_TWRP_-_by_VR25 version work in cm13 (Android 6.0.1), right?
[Magisk] jlb1959.01:
yes,I'm using it on cm13..
[Magisk] jlb1959.01:
I guess everyone has different ways of doing things,I get 6-8 hrs sot with naptime,,stock doze,as well as stock kernel on candy ROM 7.1..
[Magisk] bbender716:
Fyi works on Pixel on 8.1
[Magisk] ulxerker:
From what app are those 2 last black screenshots in your post's attachments? Its not MyAndroid, right?
[Magisk] matrixios01:
I have youγI have activated it module and I think because of the otand I think because of it when I file a file from chrome is interrupted at 66%. I would like to know if someone else is facing this problem.

Στάλθηκε από το Nexus 6P μου χρησιμοποιώντας Tapatalk
[Magisk] ilyuha1108:
Can I install via recovery without magisk?
[Magisk] jandia7381:
Yes, i flash the one for oreo zip via twrp and working just fine
[Magisk] otonieru:
That will only happen if you use (+) version.

Try normal one
[Magisk] ulxerker:
[MENTION=4066277]otonieru[/MENTION]
[Magisk] matrixios01:
I do not know if the module is blamed. I use what's in magisk's repo. Equally I'm happy with the module and I've seen a difference in the battery and thank you for that. I asked here because I'm looking to see what's wrong. Do you encounter a similar problem in chrome?

Στάλθηκε από το Nexus 6P μου χρησιμοποιώντας Tapatalk