yashsingh1/xdaforums huggingface dataset:
[Magisk] chrcol:
Thanks I think I will try this.

Here is what I am observing.

Whatsapp

If I send a message within 2-3 minutes of having the app open and screen is off, it will arrive instantly. The sender gets 2 ticks. Notification on my phone its received.

If I wait say 30 mins, and send another message. Sender has only one grey tick, on the receiving phone (oneplus6 OOS), it seems to never ever get the message at all, I waited 3 hours on one test, opened up whatsapp manually and bam message loads in, and at same time two other messages from family.

I am not even using this universal GSM doze, this is on stock wakelocks.

Whatsapp is also already set to not be battery optimized, I tried making it a system app, and also enabled the high priority notifications within the app and it still does it. Its a very troublesome app.

Currently greenify is not on the phone as many claim its pointless/useless for android pie, but I think I will try your trick and report back.
[Magisk] eierfrucht:
Not exactly. Plenty of minor reasons to give it a go:

1. Enter Doze / Deep Doze in a matter of minutes, not hours. Save battery, lose nothing. Also Doze on the Go is great, your phone keeps dozing while you walk / commute.

2. Lock screen by long pressing ◯ instead of the power button (some phones have no gesture screen lock option, you are limited to the mechanical power button)

3. Subdue poorly designed apps that break Pie doze otherwise

4. Wake problematic apps on GCM events like I described above

---------- Post added at 08:30 AM ---------- Previous post was at 08:30 AM ----------

Not exactly. Plenty of minor reasons to give it a go:

1. Enter Doze / Deep Doze in a matter of minutes, not hours. Save battery, lose nothing. Also Doze on the Go is great, your phone keeps dozing while you walk / commute.

2. Lock screen by long pressing ◯ instead of the power button (some phones have no gesture screen lock option, you are limited to the mechanical power button)

3. Subdue poorly designed apps that break Pie doze otherwise

4. Wake problematic apps on GCM events like I described above
[Magisk] gloeyisk:
Disabling Find My Device starts required since first release of Android 9, whenever I did modifying the XML the GMS keeps not optimized. And after Android 10 released, Google made a new service called "Lock screen service" which the old trick (disabling Find My Device + modified XML) unable optimize it, after that I made those 2 services become disabled for every reboot within the modified XML included in hope GMS will be optimized. Yes, so far, almost all Android 10 users told me that they've their GMS optimized starting from the latest stable build and some aren't.

About your tips I'm really appreciated it and want to thank you for your contributions, will observe more and I hope we'll drop for using 3rd party apps e.g. Greenify for make sure the current issue especially the one that made incoming messages got delayed. Greenify is supported and not conflicting with my module, but "let say" someone will and still having another issue if we use it since Greenify has its own doze setup. Will try to make sure if we use the module standalone that's more than enough without those 3rd party apps. I'm willing to wait your next great idea ;)
[Magisk] eierfrucht:
I have GMS Doze installed and Find My Device, if enabled, remains enabled and even works; so should I keep it disabled at all times for GMS to function properly?
[Magisk] gloeyisk:
If Find My Device enabled but your GMS optimized, it should fine. You don't need to disable it.
[Magisk] eierfrucht:
---------- Post added at 10:26 AM ---------- Previous post was at 10:23 AM ----------

How do i check if my GMS is optimized? It doesn't show up on the battery optimization list among other apps. Should i simply compare battery drain while dozing with find my device on , then off?
[Magisk] gloeyisk:
It's in:

Settings > Apps & notifications > Special app access > Battery optimizations.

After you find the place you'll see your GMS optimized or not.
[Magisk] eierfrucht:
I hope you excuse my short temper but I'm really annoyed by two things:

1. I can barely understand your broken English (this post took some time to decipher)

2. You seem to barely understand my Standard English.

I made it pretty clear that I'm well aware of the Battery Optimization tab -- but Google Play Services has never been listed there, ever. It's neither 'Allow Optimization' nor 'Do Not Allow Optimization' because it's not listed there. Like, at all. I can see every other user or system app on the list except Google Play Services.
[Magisk] gloeyisk:
I'm so sorry about my English, yes I'm aware of it and I understand everyone will feel the same as you too :crying:

As long as GMS not affecting your battery, that's mean the module working fine on you.
[Magisk] PeterImmel:
So....now I'M confused:

Do Google Play Services need to be optimized...or not?

Mine aren't optimized and if I tab optimize it doesn't take effect...
[Magisk] eierfrucht:
The way I see it:

- Not every ROM even lists Play Services on the Battery Optimization list

- Regardless of that, Universal GMS Doze attempts to enforce that optimization by overriding a number of settings

- You don't need to manually turn the optimizations on after installing GMS Doze

- If your ROM doesn't hide GMS from the list, it should automatically switch to Optimized, otherwise GMS Doze doesn't work

- If your ROM hides Play Services from the list , there's no way of telling other than watching the battery idle performance

Probably we need a terminal script to check if the changes have kicked in because of the ROMs that do not report on Play Services in the GUI or may be coming up with bull**** of sorts (like saying Not Optimized no matter what, while it actually could be Optimized all the way along)

---------- Post added at 08:36 PM ---------- Previous post was at 08:30 PM ----------

Different ROMs may employ different mechanisms for evaluating the (Un)Optimized state, and due to the hacky nature of GMS Doze the various GUIs may get fooled even while the actual settings overrides work as expected.
[Magisk] Giowi:
[MENTION=8350043]gloeyisk[/MENTION] sorry to trouble you but I'm not able to find your "fira font" for magisk. Can you help me? Ty
[Magisk] gloeyisk:
Rebuilding all of my font modules, and will be maintained outside Magisk online repo. You can find them on the mirror link I provided in OP. But the font is not ready yet, will upload them as soon as possible :fingers-crossed:
[Magisk] 73sydney:
On Pie and above whether using this, the other Doze type module or manual google.xml editing, doesnt make any difference for most people, theres no way to optimise GMS....just the way it is...you can get to the step where you can toggle it, but it just gets ignored...
[Magisk] Giowi:
can you send me the link. I'm not able to find it. Ty
[Magisk] gloeyisk:
It's here https://bit.ly/2P7Qn3A.
[Magisk] danieleb89:
After flashing v1.7.4_stable on a Oneplus 6 with Android Beta 10, I got a huge CPU usage by GMS, following a list of top 20 processes:

OnePlus6:/ # ps -eo pcpu,pid,user,args,cmd| sort -r -k1 | head -n 20
%CPU PID USER ARGS CMD
89.1 5710 u0_a206 com.google.android.gms.persistent .gms.persistent
83.3 18499 u11_a206 com.google.android.gms.persistent .gms.persistent
55.3 5735 u0_a206 com.google.android.gms gle.android.gms
52.6 18787 u11_a206 com.google.android.gms gle.android.gms
35.7 1098 system system_server system_server
11.4 21680 u0_a297 com.google.android.apps.messaging .apps.messaging
9.4 20894 u11_a206 com.google.android.gms.ui .android.gms.ui
8.1 21744 root ps -eo pcpu,pid,user,args,cmd ps
7.6 20450 u11_a206 com.google.android.gms.unstable id.gms.unstable
6.5 9086 u0_a319 com.google.android.wearable.app:background .app:background
5.6 18963 u0_a196 com.android.vending android.vending
5.3 12840 u0_a363 com.asksven.betterbatterystats_xdaedition tats_xdaedition
4.9 21745 root sort -r -k1 sort
4.6 2142 u0_a197 com.android.systemui ndroid.systemui
4.1 20877 u0_a211 com.android.chrome .android.chrome
4.0 20781 u0_a285 com.twitter.android twitter.android
3.6 21222 u0_a251 com.whatsapp com.whatsapp
3.5 754 root zygote64 main
3.4 21596 u0_a205 com.google.android.apps.turbo:aab .apps.turbo:aab

Before the CPU usage was normal, now the cores don't go below 1GHz, could you help me?

EDIT: removing the module and deleting /data/adb/service.d/opt.sh, everything is back to normal

EDIT 2: after an in-depth study I found that the culprit was this bug https://github.com/topjohnwu/Magisk/issues/2107 and it's currently being fixed, my fault for having raised a red flag
[Magisk] Kovhl:
The module is super but there needs to be a way to Black list apps...

-No WhatsApp if I lock the phone

-Downloads stop soon after I lock the phone....

Someone said high priority notifications etc will do.

Am on op6T oos 9.0.16

No, such things are not available anymore... They removed per app and system wide notification tweeks in name of update.

They removed the possibility of disabling google play services in name of update.

So I uninstalled googel play services but,

And google.maps play store stopped having access to location or network after the update if I uninstall google.play services.

OnePlus is moving towards the pro Google / posh ***** attitude from pro developer / pro user attitude.

Hence I came to seek help via this module .

But no use.

It switches off without exceptions everything except calls .
[Magisk] angelus_kun:
Flashed miui version of this module, then I check with miui hidden settings and there is no optimization on gplay services and play store I need to apply manually the I reboot and optimization stay there idk if works or not but at least it shows optimized now
[Magisk] gloeyisk:
If your GMS shows optimized, then the module working fine even after a reboot or two.
[Magisk] angelus_kun:
Sad, didn't work it deoptimize by itself, do you recommend to try stable version?
[Magisk] gloeyisk:
Give a try for latest beta build.
[Magisk] angelus_kun:
Didn't work too, it shows not optimized maybe it's for aosp exclusively I know works because I tested there thanks anyway :D
[Magisk] yyz71:
Has anyone figured why device personalization services has stopped and gives force closes with this mod?

Pixel 4 Nov security patch.
[Magisk] gloeyisk:
Yes, known issue. Still figuring how to optimise the GMS without those issues.
[Magisk] yyz71:
Thanks ?
[Magisk] gloeyisk:
I need you to explain more rather than comparing my module and say anything bad about it. I did them with seriously and not taking risky to the user itself, but for myself. Had lots of personal test before releasing it to public and prioritized user/tester choices. About your WhatsApp you should read the troubleshooting I wrote in OP or in README, if you still not understand about it you can text me in Telegram (@gloeyisk) if you want to, so we can check what causing it. Lack of phone to test (especially I'm using Redmi 3 as my daily driver and I don't have any better phone that can run Android 10 normally) which makes me struggling to test everything. I trust my easy family can help me to make this module better and useful. In past, for now, and forever.
[Magisk] grifovunque:
but it is possible to flash also with recovery or only through magisk????
[Magisk] gloeyisk:
You can flash the module either from Magisk Manager or any custom recoveries (e.g. TWRP).
[Magisk] Kovhl:
Aah... Am sorry.

I understand the dedication levels of devs very much.

Am not complaining at all. I just said "oh bad I have no solution " ..I quit kind of.

It is becoming very difficult nowadays with Google .

Previously never used to be this much agony.

Things after rooting just worked .

How can any Devs test on all devices?? Very sad state.

Previously a rooted app is same for all Android. Now it's shud be tested on each phone's each Android version ... I don't know how Android became this much deep .

Take for example viper... It used to work like solid on all Android rooted phones.

Now each phone's got one variant of problem with the app . One thing Common is everyone's got problem.

Oxygen os and android used to be simple. Now it's too irritating.

Am sorry if it hurt you. I am not a person who insults devs by cursing their apps or modules.

Am basically very tired with androids . I am almost quitting oxygen os.

But respect you, I will explain my problem

---------- Post added at 04:08 PM ---------- Previous post was at 03:54 PM ----------

Why I was searching a module like the one you have created is,

My phone's apps won't work properly without Google play services.

I was using 9.0.5 oxygen until recently where I used to uninstall google play services and still google maps used to work (although it complains a lot that playservcies is not there) .

I updated to 9.0.16 .

Now Google maps won't identity my location at all after unisntalling play services.

Twitter insta whatsapp notifications won't arrive in time.

So I thought I will disable play services and enable it only wheni use maps for navigation.

They have removed the option to disable play services !!

But this playservices keep eating my battery if I allow it to run.

So I thought GMS doze will help .

After installing gms doze, what happened is,

Once phone is off, WhatsApp stops fucntioning after sometime.

I was running a download with browser and locked my phone. It canceled the download after sometime .

So I needed a way to Black list some apps from dozing.

I read it OP as to how to set notifications of a particular app which i want to fucntion properly while phone is locked , to high priority .

But this setting to change notification priority is also not present in my phone after update.

They removed the options to tweek that . Not just that - per app notification tweeks such as what to show on lock screen etc -eveything is removed.

Now there is only one setting for all apps.

There is no setting to change the priority of notifications .

So I have no way to change WhatsApp notifications priority to make it get through the doze.

I honestly explained Dev. This much only I know...

---------- Post added at 04:12 PM ---------- Previous post was at 04:08 PM ----------

Am using Android pie onplus 6T 9.0.16
[Magisk] sandrager:
Hi Kovhl ,

Had the same problem. You need to whitelist com.google.android.gms in doze settings. This will fix problem with whatsapp. I had the same problem. Also after a day or two it will remove itself again. Use tasker to send command every 20 minutes. This works for me

Hope that works

Sand
[Magisk] Kovhl:
But the main reason why I wanted this was I want to doze this Google $#!t ....

This google is everywhere ... Kind of irritating.

WhatsApp why the hell it needs gms to work !! That's a messenger for God sake.

Am thinking of shifting to lineage os. I will give a try there
[Magisk] twist3d0n3:
How do you think it would get the messages?
[Magisk] hulyahulya:
i change 5 rom for whatsapp notification for this . i thoght this is rom mistake . this is so much boring wasted my time. When somebody write me whatsapp notifications not work
[Magisk] Kovhl:
The same way it used to get messages in previous days- when I had lineage os or cm13 installed on my phones without any Google play services or gapps installed.

---------- Post added at 06:07 PM ---------- Previous post was at 06:04 PM ----------

Oh the #*** .

Then WhatsApp has made changes in their app to make use of play services to receive push notifications.

Don't know who gives such ideas to these people .
[Magisk] hulyahulya:
i should back 17.2 or will you update this ?

its happen android 9 too ?
[Magisk] Sir_gpm:
If I am in Xiaomi phone need to stick to Xiaomi versión? Or can use standard version?
[Magisk] Bi0haZarD:
:confused:
[Magisk] gloeyisk:
No, follow the newest build. Device/ROM specific module are only for exceptions. If all beta builds less to no issue, I'll merge it into stable one.
[Magisk] Kovhl:
Couldn't understand ....

Am on androind pie.
[Magisk] CrazyBytesVE:
There is a bug with the module and with Miui. The location configuration option gives FC when the module is active. It is spoelfully stopped failing, but it is usually impossible to enter the location in Miui.

Enviado desde mi Redmi 5 Plus mediante Tapatalk
[Magisk] Gruber008:
Hello, first of all thank you for the module.

I'm using OnePlus 5 on Pie (OOS 9.0.8) with xXx.

After installing this module I'm still experiencing GMS wakelocks (I disabled Find your device) but they seem a less frequent now, is this okay?

I used BetterBatteryStats since I can't find GMS in battery optimization settings.
[Magisk] gloeyisk:
xXx already contains my module (or mod) to optimise the GMS since 1.8 released. But, for make sure, ask him first whether he still adding my script or not.
[Magisk] Gruber008:
No, I disabled your mod in xXx since he doesn't support OnePlus 5 anymore, only Magisk module of Universal GMS Doze is activated.

I was just wondering if this is okay (previous screenshot) for the GMS wakelocks or the numbers should be even lower?
[Magisk] gloeyisk:
It depends to your usage.

Quick example: You set your location to High Accuracy all the time, you're mainly using GCM dependent apps (WhatsApp, etc.), slowest respond from the GMS itself to fetch the data and synchronizations, and so on. The results of how high or low the wakelocks is will vary.

Well, I think we need to give it a try another day or two and we'll see the newest result (I hope you use latest build of the module).
[Magisk] WarriorMax:
Recently flashed module on my 3 year old Redmi Note 3 with Android 10. Working great. Along with naptime app I get around 5.5 hrs SOT + 1 hr Awake + around 18 hrs deepsleep. I feel you module worked even better on android 10 than on pie.
[Magisk] 1LyRa:
Yay!

Thank you :)
[Magisk] gloeyisk:
Congrats! :D
[Magisk] 1LyRa:
But now i can't use Pay in stores:(
[Magisk] gloeyisk:
Yeah currently that's the issue, but everything depend on you. If you want use GPay, then remove my module.

All is fine, nothing to force you to use my module ;)
[Magisk] Tchania:
Anyone encountered gear pairing problems after installing this module?
[Magisk] gloeyisk:
Hello, what's the problem? :)
[Magisk] Tchania:
Hello, I'm on note 9 rooted (and I have libsecure storage companion module installed so that gear connects after reboot on my rooted note 9). After installing this module, I noticed my gear sport not connecting after reboot. I didn't know what was causing it and couldn't pair even after reseting the watch and the gear app. But when I disabled Universal gms doze module from magisk, it paired normally. I'm not sure if this is clear enough but this is what happened.
[Magisk] gloeyisk:
Ahh a Samsung device and its Gear. Well, have you check firstly that the GMS is optimized? Second, OEMs already input to the known issues which I can't fully guaranteed for the module working well. But I promise to keep up this works without any glitches ;).
[Magisk] Tchania:
Your reaction "Ahh a Samsung device and its Gear" made me understand what's going on lol. I guess it's my bad for not checking requirements thoroughly and target devices. Sorry for taking some of your valuable time and I appreciate your answers a lot :)
[Magisk] gloeyisk:
Very well, if my module become worse for your device, feels free to remove it. As you can see I never force everyone to use my module :D.
[Magisk] Tchania:
No worries :) I am well aware that everything on root stuff is done at my own risk ;)
[Magisk] techloverxda:
I've installed this module. Now what? Is it working already? :)

Enviado do meu U FEEL através do Tapatalk
[Magisk] gloeyisk:
Hi thanks. First, which Android version you use? Second, the main function is, is that the Google Play services is optimized already?
[Magisk] techloverxda:
I'm using Android 6.0

I've checked it on battery settings. Yes it is. I thought there was some app to control it. :)

Another question, if one day I need to uninstall the app, will the settings be like before the module? Thank you and congrats for your module. :)

Enviado do meu U FEEL através do Tapatalk
[Magisk] gloeyisk:
Thanks I'm glad my module working for you, and also no no there's no app for do controlling just flash and profit.

If you "sometimes" remove my module, yes, all of the settings would be back to default status.
[Magisk] techloverxda:
Nice. Keep up the good work.

Enviado do meu U FEEL através do Tapatalk
[Magisk] lazostat:
How many alarms from Google play services per hour is normal to have?
[Magisk] gloeyisk:
I can't tell to be precise. But all users will facing different experiences.
[Magisk] vagsvag:
Thx 4 this nice module. It worked to my device but i have a fc

"﻿com.qualcomm.qti.statspolmanager has stoped". Anyway to fix this?
[Magisk] gloeyisk:
It seems the module affected to your default QTI, very well I'll do a check soon and thanks for the report! ;)
[Magisk] 73sydney:
Its never worked on Pie for amny months now, everything setup correctly including Find My Device disabled, doesnt make any difference

Tested across every Pie ROM

To be 100000% fair no alternative to this mod worked either......not even the original manual google.xml edit
[Magisk] WarriorMax:
Well u should try the optimised gapps next time instead of open gapps.
[Magisk] 73sydney:
"try the optimized gapps next time" is not a helpful reply

its a blanket statement without any info or link, and probably refers to custom/optimized gapps that isnt applicable to my architecture most likely

Please actually add some detail to your reply.....
[Magisk] WarriorMax:
It isn't very difficult my friend to search on xda. Anyhow give exlite gapps a try. Its minimal & optimised gapps.
[Magisk] 73sydney:
See my previous comment about "probably refers to custom/optimized gapps that isnt applicable to my architecture most likely"

So, thanks, but your advice is not applicable to me.
[Magisk] hulyahulya:
anyone have still problem with xiaomi phones ? whatsapp not wake up . i cant get message when system go to doze
[Magisk] Alin CG:
Go to Notifications and set the preferred app notification to High Priority.
[Magisk] Embotido:
Even after uninstalling the module, I still can't find find my device in the settings. Any way to bring it back?
[Magisk] cnjax:
You could try dirty flashing your rom
[Magisk] hulyahulya:
its already pick this setting but my problem another . i can get notification but after 30 - 40 sec later when im on lock screen. when i disable modul from magisk . i dont have any problem lock screen
[Magisk] answa:
Normal version on my xiaomi phone always reverts back to not optimized after restart.

Tried miui version and sometimes it reverts back to not optimized and sometimes it doesn't. Can I do something about it?

edit: Even if I put services to optimized it reverts after some time, even without the restart.
[Magisk] blackhawk_LA:
Try disabling find my device
[Magisk] answa:
I did but it didn't help.
[Magisk] Revontheus:
Pardon me, but won't the "rush" of stalled activities due to Doze simply offset the marginal savings of having Google Services on Doze?

Iirc, battery management on android is not as bad as the previous versions where Greenify and other battery-saving apps were necessary.
[Magisk] Bi0haZarD:
Problem is not related to module. Lock app in memory by long pressing desired app in recents. Boom problem solved.
[Magisk] gloeyisk:
GL-DP wishes you Happy New Year 2020!​
[Magisk] RYU810:
happy new year

i have some issue with about Universal GMS Doze, is there way to auto disable find my device ? I find it works if turn off my location before restart my phone.
[Magisk] Ferbee:
Hey, I've noticed that the only way I can get gms to become optimised is by disabling gpay from being a device admin.

Is there anyway to use gpay and this module?

Also happy new year
[Magisk] funnymagnet12:
After reboot mForceIdle = false
[Magisk] Zaiaku:
Just to confirm this is one of those modules where you install it and forget about it, and it just does everythng on it's own?