yashsingh1/xdaforums huggingface dataset:
[Magisk] 73sydney:
install it, reboot

worry about it if you notice issues

no point trying to worry about things before they happen, you'll develop ulcers...

i didnt make it to 50 by being "risk averse"
[Magisk] RainGater:
Yeah right! Worry about it after sh*$ happens? No thank you!

FWIW, flashed it and didn't see any negative impact so far.
[Magisk] 73sydney:
Well, ive been using it since the first version, if there was a risk of anything terrible, i would have pointed that out :)

For the record, pretty much the point of magisk modules is they are reversible, meaning if you have a negative experience, you remove the module and reboot...hopefully this provides some clarity and comfort
[Magisk] Sourabh Gharde:
Thanks a lot. This works for me.

All olivelites (8A) have custom roms (with gapps) have system ui freeze and touch not responding. This isuue is not in vanilla with custom gapps package.

After flashing this module I haven't seen mentioned issue.
[Magisk] Sir_gpm:
Installed and profit right now. Thanks to Dev!
[Magisk] alefmm:
@gloeyisk

This module can't hold on Gservices on A11 (works perfect on A7 cause it does't use Light Doze and SMD stuffs).

Spoiler content hidden.

References:

Optimize for Doze and App Standby | App quality | Android Developers

Test and optimize your app for the power-saving features in Android 6.0.

developer.android.com

Platform power management with Doze | Android Open Source Project

source.android.com

Sensor types | Android Open Source Project

source.android.com
[Magisk] sturges:
I'm going to install a custom A11 rom and was wondering if the new version 1.8.4 work on Android 11 ?
[Magisk] alefmm:
No, this module don't effect on Gservices with Android 11.

For Battery optimization I choose to keep AOSP stock and using only Greenify was enough.

With UGMS my consumption and idle was terrible (up to 2 days of standby and 6h of SOT).

Without it I achieve 3 days of standby and 8-10h of SOT (6h using 120hz and 8-10h using 60hz).

My device is alioth running ArrowOS.

Spoiler content hidden.
[Magisk] danbest82:
Version 1.8.4 along with 1.8.3 on Android 11 definitely allow me to select Google play services on the "optimize battery usage" settings. Whether this helps with battery in the background and actually optimizes play services, I don't know.
[Magisk] alefmm:
Doesn't matter. Gservices still get party during idle even it "optimized" on Battery Settings.
[Magisk] RicardoDimm:
Gmail notifications are still delayed by around 8min when phone is idle. I already set Gmail to ''Don't optimize''.

Anything I can do to fix this?
[Magisk] Jona'san - sama:
Q .Which is better installation ?

Magisk or Custom Recovery
[Magisk] 73sydney:
You should be installing modules via magisk manager these days...
[Magisk] blackhawk_LA:
I'm having problems with maps apps not being able to use compass. It has happened every phone I had since years ago. And I've always had this module enabled. Could it be somehow related? Other apps [Gps Status] work without issues.

Thank you!
[Magisk] danbest82:
I have universal GMS doze installed and both Google maps and Waze work for me.

But it could be the phone and how it handles it?I'm not too sure.
[Magisk] 73sydney:
All my nav works too and ive been using this module for eons (since the beginning)
[Magisk] rodken:
@gloeyisk Does the Command-line for fix delayed incoming messages issue also apply to delayed notifications?

Code:

> su

> cd /data/data

> find . -type f -name '*gms*' -delete
[Magisk] blackhawk_LA:
Thanks. I know it's something GMS related since force stopping it and reopening the app solves the problem. But I don't know what is causing it
[Magisk] blackhawk_LA:
I think I've found the culprit. I have naptime installed and the option to disable motion detector seems to be disabling sensors access to gms.
[Magisk] Jona'san - sama:
Okay bro thanks for the answer
[Magisk] :
Shouldn't I be able to get this to work on Android 8? Always used to work but saw today slider was stuck on and tried 1.8.4 and same thing
[Magisk] Lycidias:
Does it work on pixel 6/pro, Android 12?
[Magisk] Danny94:
What does this module exactly do please ?

"Optimized and adjusted" is not a lot of informations.

Does it group gms services and execute them at a higher timeframe than usual ? Or does it increase the timefrime for each service or does it completly stop them ? Or some other magic stuff ?

Its not very clear from description.

I have tried it on my phone idle with and witouth the module for 1 hour and it looks like there is not a lot of difference.
[Magisk] fobtob387:
I would also like to know, not really keen on flashing a module with such a limited description.
[Magisk] NoobaHooba:
What does "Command-line for disable Find My Device" do? Does it disable the app itself or does it disable the module's affect on the app?
[Magisk] danbest82:
Version 1.8.5 was released on GitHub. I installed it and could not make or receive phone calls and texts. I don't have time to troubleshoot right now but will try to get to it tomorrow. For now, I reinstalled 1.8.4.
[Magisk] danbest82:
Looks like the no calls thing was a fluke and worked today. As for the messages, need to run the "delayed messages command line fix"
[Magisk] RandomNewbie:
Nice project, sadly did not work in my case - I'm on LineageOS with Android 11 and OpenGapps installed. Perhaps something must be different there? Doing the manual editing in google.xml sadly did not do anything either. There must be some sort of other master setting these days.

By the way this is risky and bad advice. This can delete any sort of other files as well when they happen to have these letters. (imagine an app has critical files that have words like "paradigms" in the file name). Also because this command does not consider files with "firebase" in the name, which are also used these days.
[Magisk] RandomNewbie:
For anyone who had no success with this project, I rebuilt the google.xml without the battery whitelist line (based on this post on Stackexchange) and put it in a super simple Magisk module. It's not advanced at all like this project is (my module is just a simple text file in "system"), but this is what worked for me. And maybe does for some other people too.

Edit: I got a helpful message regarding this and need to say, this works only if the original config file is on /system. But it it typically the case on custom ROMs and if you flashed something like OpenGapps (which is the case for me and where it worked).

Edit2: I noticed thanks to MatLog in logcat that Google Play Services is not happy and keeps exiting some services due not getting its special exception. I'm not sure if I should keep this file up or if the original GMS Doze project from OP can create the same side effect. But please proceed with caution and test if this works correctly!
[Magisk] kouzelnik3:
This is not working on oneplus 10 pro - oxygen os 12.1.
[Magisk] F3N!X:
@RandomNewbie Sorry for the noob question but how could we adapt your module to the /system_ext location required by GApps packages like FlameGApps?

I've extracted your ZIP file, replaced "system" with "system/system_ext", compressed the files to ZIP again and installed it to my Magisk 24.3: OK. I can now see with Termux that the /system_ext/etc/sysconfig/google.xml content is your version, I mean with blank lines. But it doesn't change anything to this service battery consumption and it doesn't change the "Battery optimisation not available" status of Google Play Services, still no ability to enable optimisation :-(

Patching xml files fails when Gapps is installed in system_ext partition · Issue #10 · gloeyisk/universal-gms-doze

A number of Gapps flashable zip packages (such as Flamegapps), install Google Apps on system_ext partition and based on the code in customize.sh file, patching is checked only in system, product an...

github.com
[Magisk] F3N!X:
@gloeyisk Any chance to adapt your module's scripts to this /system_ext path? Or any way to make the @RandomNewbie solution work for FlameGApps?
[Magisk] Cosmii:
I installed the magisk module, found that notifications (from apps like Discord) no longer work, but then the GMS services are still disabled. I tried to re-enable via adb shell pm, but it says that the shell cannot change component state. How do I properly uninstall this and reverse all changes the module made? Thanks.
[Magisk] 73sydney:
Most (well written modules) will be completely reversible upon uninstall

This one should....

You could find your google.xml in one of these paths above, for example:

/system/etc/sysconfig/google.xml

/system_ext/sysconfig/google.xml

/product/sysconfig/google.xml

/vendor/sysconfig/google.xml

and check

<!-- <allow-in-power-save package="com.google.android.gms" /> -->

and if need be change to

<allow-in-power-save package="com.google.android.gms" />

and reboot
[Magisk] F3N!X:
@73sydney Thank you so much for taking the time for such precise, helpful and clear explanations. I will try ASAP and will tell you how it works :-)
[Magisk] F3N!X:
@73sydney

1/ test with modified gloeyisk GMS Doze after having added the path /system_ext/ to the lines you've highlighted: from 100% battery to 59% in 5 hours while not using the phone at all, Google Play Services totaling 32% of "battery usage since full charge". And if I go to the Battery Optimization menu I can see that battery optimization is still not available for Google Play Services. Result: no benefits.

2/ test with your GMS Doze Simplified : "battery optimization not available" for Google Play Services. Now fully charging to test again and I will modify this message if the results are different but I'm not so hopeful.

Apart of re-flashing phone from scratch with AospExtended and BiTGApps (or any already optimized GApp) rather than FlameGApps, I see no solution... :(
[Magisk] 73sydney:
occasionally you'll hit a ROM where it just wont work....used to happen on my old device
[Magisk] F3N!X:
At least I've tried everything I can with your valuable help. I will try again with BiTGApps.

Once again thank you very much @73sydney :)
[Magisk] Oxxxide:
Hello everyone, after installing this module, push notifications from applications stopped coming.
[Magisk] 73sydney:
https://xdaforums.com/t/module-universal-gms-doze.3853710/post-77868808
[Magisk] Oxxxide:
Thank you
[Magisk] F3N!X:
Just for info, tested BiTGapps on AospExtended but a fake error tells me that it's impossible to install it on ROMs that include GApps, while it's a pure Vanilla ROM. Tested again for one week with AEX + OpenGApps Pico + GMS Doze module and... GMS Doze module is working (I can enable battery optimization on Google Play Services and other Google apps, could have been great) but this f*****g Google Play Services app continues to crazily eat my battery energy... 106% of use now for example. My phone was charged at 50% yesterday night before going to sleep, I've enabled the airplane mode and stopped location services, and at wake up 7 hours later it was shut down out of battery. I'm so tired of this never ending issue, the ROM is great but seems unusable this way 🤔

Dunno yet what I have to do nor what I will do... This module visibly can't resolve this on my phone/ROM/GApps, and I don't know what's the root cause in this combination. But thanks anyway for the efforts on this module.
[Magisk] AndryOut:
Not working on oneplus 8 pro Oxygen os 12....What can I do?
[Magisk] xontax:
Not working on latest A12 with security patches
[Magisk] trawel:
Hi,

I'm running custom ROM based off A12.1. Is it possible that notifications still doesn't work though I've done the procedure mentioned in 'Troubleshoot' section?

I'm using the module together with battery guru (with force doze when screen off), might that be the issue?
[Magisk] JDC2389:
This module is trash, it should backup the xml before it gets modified so it can restore the stock xml on uninstall. The whole point of magisk is for the changes to be systemless and reversible!
[Magisk] 73sydney:
at the risk of repeating myself, only a few posts above...

https://xdaforums.com/t/module-universal-gms-doze.3853710/post-86836251

If you like you can try my very basic GMS doze module i made for someone else here once (and what i use myself), that copies the existing google.xml, copies it to the module folder and then edits it in place, in accordance with this long running method:

How to make Google Play services and other default white-listed system apps Doze?

Assume that I'm a user who doesn't like some system apps being automatically white-listed under Battery optimization settings and immune from battery optimization or is fed up with Play services

android.stackexchange.com

all the script magic is done in /common/install.sh
[Magisk] 73sydney:
and yet again.....

at the risk of repeating myself, only a few posts above...

https://xdaforums.com/t/module-universal-gms-doze.3853710/post-86836251

if its trash, then the info is out there to do it (and has been for years), feel free to make your own module

How to make Google Play services and other default white-listed system apps Doze?

Assume that I'm a user who doesn't like some system apps being automatically white-listed under Battery optimization settings and immune from battery optimization or is fed up with Play services

android.stackexchange.com

coming into a thread and calling something "trash" is not what a smart person does as its unlikely to gain any sympathy or support

its hard to make a universal module that alters system files and works on EVERY ROM/device, if you had ever made one, you'd know this...
[Magisk] MrCarb0n:
may I know what version you're talking about?
[Magisk] JDC2389:
1.8.6, also if I need to dirty flash or reflash my entire rom to restore after uninstalling a magisk there is something that should've been done differently, autobackup of xml file and restore it on uninstall of module... something! Sorry that I came off harsh but I was mad about that, it's whatever, I'm cutting my losses and reflashing.
[Magisk] xontax:
Um sorry I think it was rom specific. I'm now on CrDroid and it's working !
[Magisk] 73sydney:
It usually will only fail due to a ROM specific weirdness :)
[Magisk] Ky0sHiR0:
Hi all,

Do I need to perform:

> su

> cd /data/data

> find . -type f -name '*gms*' -delete

Every restart?

After few minutes if I run above commands it's give me another output.

I don't see my xml in /system /system_xml /vendor etc.
[Magisk] xontax:
just to claryfi, that's normal after the update to 1.8.7 ? How can we check if gms doze is working. Su gmsc says not optimized..
[Magisk] 73sydney:
Update:

just to make people aware that my simple GMS Doze module referenced at the following post location had issues and wouldnt have worked for google.xml paths other than /system/, it should be fixed now for all other possible locations

https://xdaforums.com/t/module-universal-gms-doze.3853710/post-86830581
[Magisk] Cpt.mactavish:
I'm facing same issue ...I'm using crdroid 8.8 with flamegapps full

How to solve this? @gloeyisk sir plz help
[Magisk] xontax:
Same setup here, I reverted to 1.8.6 meanwhile
[Magisk] SnoOkilow:
1.8.7 doesn't work for me too on Magisc 23, Android 11, Samsung Note20Ultra (Google Play services 22.30.59) - I reverted to 1.8.6 - here is a good test of optimization > su > gmsc. Fix 1.8.7 pls!
[Magisk] shivrajsingh:
No version working after latest android patch. Realme GT 2 Pro.
[Magisk] bzz11g:
Pixel 6, A13 Stock, Magisk 25.2 Zygisk, version 1.8.7 didn't work

$ su
# gmsc
Google Play Services is Not Optimized

can't activate battery optimization in settings for Google Play Services
[Magisk] DahakePL:
Not working, tried either 1.8.6 and 1.8.7.

OP9 Pro OOS12.1 C64
[Magisk] CuRs3d_As5a5s1n:
is there a proper way to uninstall this magisk module? or just removing it from magisk is enough? few posts above a guy said it doesn't get uninstalled properly. It's working fine for me, running gmsc says it's optimized, but I'm having the same issue, no notifications, and running the command in troubleshoot section doesn't fix it permanently.
[Magisk] 0xsharkboy:
Hey, is there any alternative to use GMS doze but keeping notifications (for Discord, Snapchat...) ? I really like the way GMS doze save battery but it's pretty disturbing if I can't receive my notifications. Thanks by advance ^^
[Magisk] 73sydney:
Have you actually tried the module (and read the 2nd post about delayed messages etc)

https://xdaforums.com/t/module-universal-gms-doze.3853710/post-77868808

the above *usually* works

OR tried my minimal one linked below:

https://xdaforums.com/t/module-universal-gms-doze.3853710/page-85#post-86830581

General Good Idea: Please specify what you have tried (if anything) when asking for help on threads, its endlessly useful

Note: The problem with humankind these days is we're never sure if people have actually tried things or are just turning up to be spoonfed a certainty that lazy millennials and gen-zer's think everything should have...we would literally never get to the moon if we were starting now, millennials and gen-zers would just sit around and post to see if anyone else had done it yet....
[Magisk] 0xsharkboy:
I'll try this, thank you very much !

And yeah sorry x( I didn't specify that I didn't really try anything
[Magisk] 73sydney:
sometimes you have to jump in and try/take risks, its arguably so much safer using magisk modules as theyre reversible, over the days of manually editing files....
[Magisk] 0xsharkboy:
I understand that, I already bricked my personal phone trying to edit manually file the last week... But I think it worked, so thank you very much 🙏
[Magisk] xerel89:
I use Lineage 19.1 on my xiaomi redmi note 9 pro

And is doesn't work

What I make wrong?

I read here a lot of post but I can not found a solution....

Here the bug report

File on MEGA

mega.nz
[Magisk] ammar_maher:
My device is op 7t , with crdroid 8.9 android 12

I installed the gms doze 1.8.7 and when i chwck the optimization it says not optimized , any help please ?
[Magisk] 73sydney:
Please read the previous page, it contains all you need to know

You should learn to read the last few pages of any thread before creating a new post, if youre having an issue, then most likely others are too, therefore the answers are probably (if they exist) in the last few pages of any thread. If you cant find the answer in the last few pages, then by all means create a new post.
[Magisk] 73sydney:
General suggestion:

Please post logs as attachments in a zip file here in future, no one is going to go to mega or a filesharing site to download a log file

On to the issue....

Also realise that the dev of this module hasnt maintained it in quite a while

I have bothered to download the log and this should be pretty self evident where the problem is 9see red text):

FATAL EXCEPTION: main

Process: com.google.android.gms.ui, PID: 20080

android.util.AndroidRuntimeException: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: android.content.pm.PackageManager$NameNotFoundException: Application package com.android.webview not found

you dont have a webview app installed, perhaps you havent flashed g-apps (containing webview/chrome) while (after) flashing LineageOS, or done some sort of debloating or using micro-g

putting "Application package com.android.webview not found" into google will ultimately lead you here:

Android System WebView - Apps on Google Play

Web content for apps, powered by Chrome

play.google.com

If you go there and you see an Install button , then try installing it

You have a ROM issue, not a "this magisk module" issue
[Magisk] xerel89:
OK thanks sorry for that , but I am sure I have I had a webview manager installed, I am here online with my phone and when I installed your linked app says aurora corrupt app!
[Magisk] 73sydney:
i have no idea what aurora is....

unless you mean aurora store....that wont work

not sure what a "webview manager" is

think youre making this harder than it needs to be, or the ROM has issues

in any event you dont have a module problem, you have a ROM one.....perhaps ask for help in the thread for the ROM in your devices home forum

as already noted a page back, most failures of this module come down to ROM issues....you might have noticed the previous page people using LineageOS based ROM's have all the issues....

theres nothing more i can suggest here, as i dont use that ROM...
[Magisk] rocketda7331:
Download latest bromite webview and install this(it should say Update if you have webview module) and then restart, your apps should recognize bromite webview to be used now and it should work. I have to do this so webview module works properly.
[Magisk] xerel89:
Fine thanks is working :D
[Magisk] 73sydney:
if you have to do that then your ROM is broken....
[Magisk] xerel89:
Now the module is working, BUT when I go with my phone in the find my device app, then he can not found the phone and I don't can it ring it
[Magisk] rocketda7331:
How come? I don't have to do that if I want to use regular android webview, it does work just fine. it is only necessary for me when I install webview manager which disables android webview to replace it with bromite. I think you were left with the impression there is no webview in my ROM which is not true, the instructions I provided are needed only when you have already taken steps(aka dl webview manager for magisk) to replace it. if I remove the module default wv works fine, but just installing the module is not enough in my experience for all apps to start using the replacement
[Magisk] 73sydney:
i was mostly pointing out the fact you both are making things harder for yourselves by using all that stuff, not to mention creating unnecessary posts because of it here :)
[Magisk] rocketda7331:
Certainly veered slightly off topic because the person was having problem with different magisk module - but at the time they were asking for help, they incorrectly assumed the problem was with gms doze module so the heart was in the right place.

I do not think that changing the webview provider "is making things harder" for ourselves..it is essentially switching from one browser to another, this is like saying installing firefox on your windows10 pc is making things harder for yourself cause you already have edge there. While technically offtopic, I feel like this gms doze module and webview manager module are very similar in spirit - both aim to offer a lightweight alternative to google products and/or modify or control how much various google services drain your battery or send telemetry and for many of us this is the reason for rooting in the first place!

I am personally enjoying this module with no problems, have play services set to battery optimized and play services doesn't even appear in battery consumption stats until after 25-30hours of use and then it only reports 0.1% of battery use by that time(accubattery stats). no problems with notications.
[Magisk] 73sydney:
In all the years ive been doing Android ive never seen anything but drama come of trying to "beat Google"...ive tried microg (several times - all making the device harder, less productive to use - not worth the bragging of "look how much Google i dont have on my device") etc and never seen the point, using a GMS doze module etc is a way of trying to modify the behaviour of the system, but leaving the system intact and working. But trying to edit the system because of some philosophical argument makes no sense to me, never has, never will, and just creates way more forum posts than are needed....

Its worth pointing out ive spent plenty of time creating things, magisk modules etc, to work around or make things hopefully more functional, so i understand this wish to improve things, but im not removing core functions to do it....and creating more thread comments

Sorry, but after so many years of it, im very much over the "look how im beating google" stuff... :)