yashsingh1/xdaforums huggingface dataset:
[Magisk] Utini:
I have 1.7.7 from the magisk repo.

And also I would like to have "find my device" enabled. Worked in the past too.
[Magisk] JumboMan:
Does module work if you disable find my device ?

---------- Post added at 08:48 PM ---------- Previous post was at 08:47 PM ----------

On some device you have to disable "Find my device" to optimize google play services

---------- Post added at 08:50 PM ---------- Previous post was at 08:48 PM ----------

I don't understand what you asking.

Do you want to execute script after more than 60sec - yes possible
[Magisk] jaggillararla:
Yeah after 60sec exactly
[Magisk] JumboMan:
how much wait time you want. Tell me i will upload build here

OR

You can edit /data/adb/service.d/23-gldp.sh
[Magisk] jaggillararla:
100 seconds ? Some other modules of mine are interfering. I wanna try if it works
[Magisk] voroxda:
To increase the wait time from 60 to 100 seconds did it. Now com.google.android.gms is optimized.
[Magisk] syntesys:
Hi,

How can I check if it's working in my device?

Thank you.
[Magisk] meduza:
Settings/apps/Google play services and then battery, check if it's optimized.

m.
[Magisk] syntesys:
I don't have the voice Battery on Google Play services, so it is not working?

Thank you.
[Magisk] meduza:
" voice Battery " ?!?

m.
[Magisk] syntesys:
I don't see any Battery entry in the menu.
[Magisk] meduza:
... that's strange, indeed ... Your menu looks completely different. I checked my on s8 with android 9 and tab s6 with android 10, they look exactly the same.

Check the OP of this thread, there is a description of a method to check via terminal.

m.
[Magisk] masemoel:
Update: works fine with OpenGApps (the other day I tried a ROM with prebuilt GApps)
[Magisk] Utini:
I tried disabling "find my device". Still doesn't work :/
[Magisk] MinatozakiSana:
Tried on my Poco F2 Pro Miui 12 EU Stable ROM Android 10. Not working. GMS still cannot be optimized. Tried using the scripts provided above to no avail.

Anyone experiencing the same?
[Magisk] gloeyisk:
New stable build is up!​

This module is now maintained outside Magisk online repo. You can grab every new release files from mirror links provided in OP. If you interest about Hash stuff, you can also check both SHA-1 and SHA-256 from GitHub Releases for every zip files.

Find these module useful? Feel free to show your support to my PayPal account.
[Magisk] jaggillararla:
Why outside magisk repo ?
[Magisk] tramp20:
Thank you.

What is the best way to install? With Magisk (install the zip from storage) or with TWRP?

I tried the last versions without any effect.
[Magisk] bradical711:
Install the zip from within magisk and reboot.
[Magisk] Attinderkahlon:
Hi, how to make it work ?

I flashed through magisk the latest build 1.8.0. but play services still can't be optimised. Before i used to copy the system folder in 177 zip to data/adb/modules/universal gms, which someone posted here. But in 1.8.0 I can't find that system folder also which used to make it work. Can you please help?

Thanks
[Magisk] bradical711:
Did you reboot after flashing?
[Magisk] Attinderkahlon:
Yes
[Magisk] meduza:
Confirming 1.8.0 doesn't work at all. Back to 1.7.7, it does the job.

m.
[Magisk] darkstar73:
1.8.0 causes random reboots on my phone. Reverting back to 1.7.7 fixes the issue.
[Magisk] gloeyisk:
Try module clean flash once, and make sure you've to wait 100 seconds for boot service.

I need more information, like step to reproduce your issue, list of installed Magisk modules. After that, we can

check what causing your phone goes into random reboots.
[Magisk] darkstar73:
I need more information, like step to reproduce your issue, list of installed Magisk modules. After that, we can

check what causing your phone goes into random reboots.[/QUOTE]

Flashed 1.8 in magisk. Phone would reboot within 2 minutes. After 4 reboots, I deleted 1.8 and reverted back to 1.7.7.
[Magisk] topbasework:
Sorry. I noob

How i can whitelist gmail. After flash gms doze. I didn't get notification for new email. I need open manual gmail app,then new email just sync
[Magisk] gloeyisk:
Check Troubleshooting section, put Gmail to not optimizing battery use (in your system Settings), then reboot.
[Magisk] topbasework:
Thanks
[Magisk] :
Dev, what could be the reason(s) for not releasing it on Magisk repo? Don't think it's mentioned anywhere else.
[Magisk] bradical711:
Well, his reasons are exactly what you said they were, "HIS reasons". And truthfully, he doesn't owe anyone here an explanation. I feel like it's easy to come back and check on this thread as well as to check for updates manually. It's not like the dev releases consistent or even monthly updates, so just check back once or twice every couple months. Or when the module stops working due to an update.
[Magisk] erremes28:
Hey, newbie here..

I'm using Pixel Experience ROM here..

Need help how to whitelist GMS?

I mean, where i should input that troubleshooting code?
[Magisk] 73sydney:
I'll tell you (the brief version) of why my own module isnt in the repo: egos of people "approving" submissions

My own module still has managed 23,000+ downloads by people stumbling across it, via others reposting the link to its post, by my siganure, or when i post updates in its host threads :)

I was once told it "didnt do enough" to be included....yet count how many font modules there are that do nothing really....

Meanwhile others in the magisk world have routinely asked why it isnt in there

Go figure
[Magisk] Burt Squirtz:
This module doesn't affect SMS on occasion does it? I use Google messages, and of course I set it to 'not optimizing battery use'. but has it been known to occasionally make it so that SMS text messages are not received?

I'm not receiving about 10% of incoming messages, so I'm getting a little worried
[Magisk] 73sydney:
Not sure why youre quoting my post and asking a completely unrelated question...

Whiel im here, and this once, ill answer from my own experience

I flash the module (1.7.7 or earlier, havent tested the latest yet), and i dont do anything special after install

SMS/Google Messages works fine

Golden rule of anything IT related: People who fiddle tend to cause their own issues
[Magisk] gloeyisk:
Usually specific apps (e.g. Dialer and Messages) not using optimization. In other words, it'll not optimized by default to avoid delayed incoming messages/calls.

If these delayed incoming messages (or even calls) issues is happened on you since you're using Google Messages, so I've to whitelist IMS (which rely to GMS and Google Messages relies to it) in the future release.
[Magisk] 73sydney:
Ive never had an issue with Google Messages, just saying...
[Magisk] Burt Squirtz:
Very helpful information! you're awesome. very dumb question: how do I whitelist IMS?
[Magisk] bradical711:
Usually, your "IMS messages" app is whitelisted to begin with. So you shouldn't have to do it yourself unless you use a 3rd party messenger app on your device such as FB messenger, or WhatsApp etc.
[Magisk] meduza:
Thx., I'm staying with 1.7.7 first, since it`s working without issues and doing it's job :)

m.
[Magisk] Ata Ur Rehman:
hey, can anyone provide me 1.7.7 file please? i can't find it on github or anywhere. also why it removed from magisk?
[Magisk] gloeyisk:
I recommend you to use latest build.
[Magisk] Ata Ur Rehman:
thank man, ok so i downloaded and i have to flash in twrp right? just in case lemme know what to do if my device went bootloop
[Magisk] gloeyisk:
Only live install is supported (directly from Magisk Manager).
[Magisk] Ata Ur Rehman:
latest version 1.8.0 working like a charm! thank you dev for this amazing module.
[Magisk] Attinderkahlon:
Can someone please provide google.xml file in the latest 1.8.0 module because after flashing it's not in the module folder where it's supposed to be. Thanks
[Magisk] :
Nevermind
[Magisk] darkstar73:
Flashed 1.8 again and no issues this time.
[Magisk] Fishawy:
Flashed 1.8 on my OnePlus 7T, and there's no battery optimisation entry in Google Play Services.
[Magisk] jakito:
Check using a command

I have a OP7 Pro and it's only optimized when using the command to check
[Magisk] 73sydney:
1.8.0 working fine for me here on Android 10 (pixel 2 XL), note it also worked in the brief time i had Android 11 on my phone a few days ago....
[Magisk] erremes28:
can someone tell me..

if using this module :

1. OK Google command, working?

2. GMAIL Notification, delayed because gmail apps not run in the background?

3. WHATSAPP Chat Notification, got delayed too?
[Magisk] lol128:
for the 1st time it works for me, thnx dev.
[Magisk] FullWipe:
Each phone responds differently so the only thing you can do is try it.

It's a simple Magisk module....you install it, you try it, if it doesn't work as you thought, you uninstall it and everything back as before.
[Magisk] 73sydney:
Can vary per device

But...

My Pixel 2 XL...

1) Quite happily responds to OK Google from the lockscreen, just set my alarm for tomorrow morning :) Thanks for reminding me

2) Gives me Gmail notifications

3) Will never have WhatsCrap, SnapCrap (or F@ceW@nk or any other social nonsense apps) installed on it
[Magisk] PoochyX:
Had to use a Lower version for it to work 1.7.7 did the trick for me....

([emoji88]Omni Rom[emoji88])
[Magisk] PriPhaze:
Is it just me or this module disables quick charge on the OnePlus 7Pro and so it seems to be charging at 10w only.
[Magisk] jakito:
Same phone as you and don't have the same problem.

It charges at warp and dash speed without a problem. I'm using OOS 10.0.7 btw
[Magisk] Choritrowhin:
bro can you show me

which command should I use in terminal?..

I faced the same issue...

I am in oneplus 6t OxygenOS 10
[Magisk] jakito:
You need to do "su", followed by "dumpsys deviceidle" and check for gms line there.

On the second post of this thread you have more information about this. The command is also there
[Magisk] Choritrowhin:
Bro I got this type of error

Is that ok?..
[Magisk] jakito:
Did you give superuser's access to termux before the command? (Using "su")
[Magisk] Choritrowhin:
Yes bro I did

But every time I got this type of error
[Magisk] jakito:
Then I don't know...I don't have that error

Maybe OP can help with a log

Maybe the problem is in termux? I doubt that's the case, but you can try a different terminal and see if the error persists
[Magisk] JasDevi:
Installed 1.8 didnt work but once i paste the system file in adb/module Universal GMS it worked. But it break google one and chrome browser sync
[Magisk] Attinderkahlon:
Where did You get the system file in 1.8 ? I can't find it when i extract the zip.
[Magisk] Sir_gpm:
Get it from telegram channel
[Magisk] skiku:
The channel in the OP post? I can't find it and I can't get the module to work
[Magisk] papoy1019:
Does anyone with MIUI 12 makes this work?
[Magisk] HRSE:
1.8.1 doesn't work on redmi note 9 pro global (joyeuse) stock rom V11.0.5.0.QJZMIXM

installed successfully, after reboot then gms still shows up in not optimized list (and unable to view/change setting)

dumpsys deviceidle still shows gms in whitelist

1.80 was also not working
[Magisk] the_poseidon:
try the one 1.7.7, it works well on masik miui 12
[Magisk] nfsmw_gr:
1.8.1 works fine on both my RN7 Running Pixel Experience Q, and on my Mi 9T Pro running Miui 12 Q.
[Magisk] papoy1019:
Any links?
[Magisk] FullWipe:
Search in 3d button is your friend.

Try to use it next time ;)

You would have easily found this post:

https://xdaforums.com/apps/magisk/module-universal-gms-doze-t3853710/post82916131#post82916131
[Magisk] Kdx_Cheater:
After 1.8.1 update I still have crash when going to Location in Settings.

Some apps still have similar crashes

I use Miui 12 with Android 10
[Magisk] xontax:
com.google.android.gm

this time its different. On OnePlus 7 pro its not .gms..
[Magisk] papoy1019:
Tnx anyways. I been looking at the wrong place. Ive been looking for links in the op. All available were 1.8.0 and 1.8.1.

Thnx again.

---------- Post added at 01:37 AM ---------- Previous post was at 01:24 AM ----------

Tnx. 1.7.7 is working. I wonder why 1.8.1 is not working?
[Magisk] jaggillararla:
Congrats u dozed it. All good. It's gms not gm(gm is gmail). I have 7 pro
[Magisk] amn1987:
In Redmi 3s running different Pie ROMs GMS Doze gets randomly disabled. Sometimes a reboot fixes it, other times I have to reflash the module. I am using 1.77 and BitGApps.
[Magisk] gloeyisk:
BitGApps contains GMS optimization by default, which meant outside my scope. I preferably clean GApps packages (unmodified).
[Magisk] amn1987:
OK. I will try with a different GApps package although in Pie only BitGApps doesn't enable GMS Doze by default, a terminal command has to be executed. Will try the latest version of the module. For some reason in Magisk it wasn't showing any update. Thanks.
[Magisk] jakito:
That's because the module has been removed from Magisk repository
[Magisk] Utini:
Still not working on my Android 10 (stock ROM).
[Magisk] warrencoakley:
Is this working on Android 11?
[Magisk] FullWipe:
Every Android system, every brand, every configuration, responds in its own way so the only way to get an answer is by trying it yourself. If you install it and it doesn't work, you uninstall it and everything back as before.
[Magisk] jonny789:
I have installed the latest version on android 10. But noticed that battery drain in standby state has increased. Could anybody tell me how to uninstall it ?
[Magisk] egar3427:
I'm on latest version (1.8.1). PixelExperience+ Rom on PocoF1 with NGK kernel. Battery optimisation shows googleplay services is optimised, but there's no gms on "dumpsys deviceidle". Is this working?
[Magisk] FullWipe:
Open Magisk Manager --> Modules --> Uninstall Universal GMS Doze --> Reboot system
[Magisk] jakito:
Having in consideration that gms appearing on "dumpsys deviceidle" means it's NOT optimized, I'd say it's working :good:
[Magisk] paolo0:
Hello, I'm using oneplus 6t with stock android 10 firmware Oxygen OS 10.3.5, I tried 1.7.7 , 1.8, 1.8.1 these 3 versions but on the system setting still CAN"T "optimized battery" for Google Play service.

any help ? thxxxxx:confused:
[Magisk] gloeyisk:
That's optimized already :rolleyes:
[Magisk] sssira:
help

line com.google.android.gms still existing on v1.8.1
[Magisk] papoy1019:
Try to use 1.7.7 version
[Magisk] paolo0:
saw this crash message in magisk manager, is that normal ?:confused:
[Magisk] gloeyisk:
Not related with this module, "com.google.android.gms.unstable" is related to MagiskHide (in Magisk Manager).
[Magisk] Didgeridoohan:
Also:

https://www.didgeridoohan.com/magisk/Magisk#hn_Beginning_of_crash
[Magisk] paolo0:
thank you ! :)

thank you ! :)
[Magisk] sssira:
same com.google.android.gms still exist
[Magisk] gloeyisk:
Could you please provide me more information? Like what modules do you've installed, do you've to wait for Magisk Boot Service, or so?

Because telling me "this is not working" is not helping.
[Magisk] sssira:
sorry sir, cause I don't know what information you need for my issue.

this is my module and magisk log (on attached file)
[Magisk] warrencoakley:
Not getting optimization on service's on Pixel 2 XL on Android 11.

Any ideas?
[Magisk] gloeyisk:
Your attachment can't be viewed.
[Magisk] voroxda:
Logfile ist ok (UTF-8 formatted)
[Magisk] warrencoakley:
Im lead to believe that just unistalling your module leaves traces and things haven't been reverted back to normal.

Is there a folder somewhere i need to delete also?
[Magisk] bradical711:
That wouldn't be possible lol. The module is systemless, so as soon as you uninstall the module from magisk and reboot, the module and all of it's "traces" should be gone. There shouldn't be any traces of any module uninstalled to begin with as your "system" is/was never actually modified, hence magisk being "systemless"... The most these "systemless modules" can do is leave log files or something of the sort usually in "/sdcard/****" or some directory. If you've uninstalled the module from magisk and rebooted though, there shouldn't be any traces and you should be all good to go.
[Magisk] gloeyisk:
Uninstalling the module will surely removed the entire files, but if there's something left (I'll push a hotfix for this) you can do a quick check in path:

/data/adb/post-fs-data.d/cc-gldp.sh
/data/adb/service.d/ao-gldp.sh

Just delete these 2 files, execute the command-line for fix delayed incoming messages issue once (available in Troubleshooting section), then reboot.

I hope this will help you and make you feel better.
[Magisk] kirschdog1:
Same here! Trying to find 1.77
[Magisk] sauudmir:
Here
[Magisk] kirschdog1:
Thanks 1.77 got rid of it so google play is now optimized as it's missing the android.gms line!
[Magisk] sanoayyk:
On some ROMs, patched google.xml under /data/adb/modules/UniversalGMSDoze doesn't be genereated.

So that module folder is almost empty. Of course google services optimization doesn't occur.

I saw which happend on some ROMs AOSP and some ROMs MIUI.

Even in that case, /system/product/etc/sysconfig/google.xml exists normaly.

I don't know why patching doesn't happen but I can make optimization enabled

by porting patched google.xml from other device to under /data/adb/modules/UniversalGMSDoze correct directory.

If you have trouble google services not being optimized, check if /data/adb/modules/UniversalGMSDoze has google.xml correctly.
[Magisk] Sir_gpm:
Working good in Miui 12.0.4
[Magisk] JumboMan:
provide output of this command

list=$(find /system /vendor -iname "*.xml");for xml in $list; do if grep -q 'allow-in-power-save package="com.google.android.gms"' $xml; then echo "";echo "$xml";cat "$xml" | grep -n 'allow-in-power-save package="com.google.android.gms"'; fi; done
[Magisk] sanoayyk:
OK I did it. But I got different output between adb shell and terminal on device, so attached both.

Lmi is POCO F2 Pro, MIUI 12 eu stable Android10, gms doze NOT working.

In addition, I did it on another device.

Davinci is Mi 9T, MIUI12 eu beta Android10, gms doze WORKING.

They are same at the point of MIUI and Android version but only the former has trouble of xml generation.

I think permission is missing :(

There is no output when I type su before you command. How to do it correctly?
[Magisk] robbayani:
is this module not conflict with Greenify??

btw Greenify still recommended on Android Pie/Q/R??
[Magisk] JumboMan:
Run command on device itself in terminal emulator .

Give root permission before running command
[Magisk] Utini:
I ran this command (currently no gms dose installed as no version is working since 6 months now). Android 11 - no output at all after running the command.

1.7.6 was the last working version for me (with cp of the patched .xml).

Maybe I can contact you on Telegram or discord to work on troubleshooting this.
[Magisk] sanoayyk:
When I give root, it shows no output.
[Magisk] ferk42:
Is it safe to use this mod? I mean, he doesn't steal user information and stuff like that.
[Magisk] 73sydney:
Take a look at how many pages there are in this thread, and then ask that question again :)

Does it seem likely?

You can also look at the script and see for yourself...

Furthermore ive been using it since the beginning
[Magisk] jaggillararla:
Yeah and I'm using ur gpay script and GMs doze. So my phone is ultra
[Magisk] 73sydney:
No reason it should conflict in any way with Greenify afaik

Greenify...everytime i see this question i reply the same way:

"Even the makers of Greenify will tell you modern versions of Android do a great job at process management"

Somewhere on here, years ago is a convo between msyelf and the boffins in the Greenify thread where they admit that for most people on 7 or above, its surplus to requirements. Was not an argument, just an open admission....

Personally i think its definitely overkill and in some circumstances actually breaks stuff more than it helps on recent Android versions

I had license for Greenify and used it for eons, well at least from its inception...

I stopped using it as of Android 7

What i do use: https://xdaforums.com/showpost.php?p=83030295&postcount=900
[Magisk] robbayani:
yeahh.. i'm also buy Greenify license..

since android 6(MM) greenify "little" useless.. but still good for old phone running custom rom below MM
[Magisk] myaslioglu:
1.7.7. Works fine here. Galaxy s20 latest firmware..

1.8.1 does not..
[Magisk] zubi182:
I have the same problem with a Samsung s10+. Since 1.7.7, find my device don't disappear
[Magisk] as2014:
Not working

Hi

I have tried 1.7.7/1.8.1 & none are working.

Device =poco x2

Custom os = Evolution x 4.6 based on Android 10

Kernel =4.14.197-Hardrockkernel v3.1+

When I am checking via Termux with command dumpsys device idle, gms line is available.

Let me know if anything else needed.
[Magisk] JumboMan:
Those users have any problem like module not working , can contact me on telegram

https://t.me/JumbomanXDA

I have some test builds for you
[Magisk] amn1987:
The issue persists even after flashing Open GApps Pico. Latest 1.81 version of UGD. Sometimes I have to reboot 2-3 times to get GMS Doze working again. When its not working Battery Optimization for Google Play Services it shown as Not Optimized. If I click on Optimize option it has no effect.

UGD works w/o any issues in Q ROMs for the same device. Any idea why in Pie ROMs it stops working randomly after a reboot?
[Magisk] Dildoman:
Is this mod support my device tecno i2 android 8.1 api 27 ??
[Magisk] gloeyisk:
Yes, it's supported starting from API 23.
[Magisk] pwn1ca:
works perfectly for me, many thanks to the devs! :)
[Magisk] massima:
Onto my tablet, without magisk and with a custom Rom (android10) i think to have enabled battery saver for GMS. I simply edited the file google.xml stored in /System/product/etc/sysconfig. I commented these 2 string adding <!-- -->, so:

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

Now it is possible to power save GMS. I've lost anything???
[Magisk] -CALIBAN666-:
Use it on my Huawei P8 Lite 2017 with Bootleggers Pie Rom and custom kernel,it works awesome,thanx.
[Magisk] |Chaos|:
Miui Location Crashes on all latest versions

Location service settings crashes after installing on 1.8.1,1.7.7 .

Pls help need this module for my device .

My device is k20 pro
[Magisk] gloeyisk:
Since you're running Android 10, you also need to disable Find My Device for make GMS optimized.

Send me a recorded log when the location crashed and I'll check it.
[Magisk] LuminousMazim:
Hey is it fine to leave it Find My Device on? Just in case the worst happened at least i can track my phone.

Or is it gonna make the module not working as intended?
[Magisk] amn1987:
Can anyone please tell me whether the module works well in Pie ROMs or not? In Q ROMs with latest version 1.81 there's absolutely no issue. But in Pie after restart most of the times Battery Optimization for Google Play Services isn't working and I have to reboot 2-3 times before it starts working again. Needless to say without GMS Doze idle battery drain is quite high. I have used various versions ranging from 1.76 - 1.81. Currently using Open GApps Pico. Previously NikGApps and BitGApps. Thanks.
[Magisk] JumboMan:
I have some test build. If you want to test then you can contact me on telegram https://t.me/JumbomanXDA

---------- Post added at 05:34 PM ---------- Previous post was at 05:17 PM ----------

For this module to wirk properly , you have to disable "find my device"
[Magisk] LuminousMazim:
Ah alright, can i safely enable the service after i run the disabled command if in the future i decided to not using the module?
[Magisk] JumboMan:
Yes
[Magisk] -CALIBAN666-:
Im using it with Pie and its working perfect,just disable find my device in settings,done.My old phones battery lives longer,minimum 2 hours more for me since i use it,great.Have Opengapps Pico installed.All fine.Cheers!!!
[Magisk] amn1987:
So it appears to be an issue with the Pie ROMs for the device. I run AOSP based custom ROMs and I never keep Find My Device active. Still after reboot the module stops working and multiple reboots are needed before it starts working again.