yashsingh1/xdaforums huggingface dataset:
[Magisk] kgirlx:
Is this module still working on Oreo based ROM's.. Thanks..
[Magisk] mitchdickson:
Given that there is an Oreo version in the OP, what do you think?
[Magisk] toshionur:
I downloaded the file with magisk but google play services went, but "com.qualcomm.qti" came

is there any problem? how can i handle

My Device: ze600kl(sd615+2gb ram) + Resurrection Remix-6.2.1+ firekernel 2.9 + twrp 3.2.3.0 + magisk(+gm doze) + xposed

[IMG="com.qualcomm.qti"]https://i.ibb.co/Sv9Qjbt/Screenshot-Ayarlar-20190222-104854.png[/IMG]
[Magisk] mvasim007:
will this work for PIE on miui10???
[Magisk] martyfender:
[MENTION=4066277]otonieru[/MENTION] I have 5 Nextbook Ares 8A, x86, Android 6.0.1 tablets. I am using the latest Canary and unofficial Magisk builds with them, where the magisk.img is no longer used. Your latest v6 module was already installed on all of them during the frequent updates to Magisk. On one device only, it show battery optimization is not available for play services. I've uninstalled the module, rebooted and reinstalled it several times and even reinstalled it in TWRP, to no avail.

Is it possible it needs to be updated for the newer versions of Magisk that no longer use the magisk.img?

Install log attached.

Thanks

UPDATE: After flashing the magisk uninstaller in twrp, then a newer unofficial version of Magisk.zip, battery optimization for play services is once again showing up properly.
[Magisk] hyborian:
Yes, perfectly on my Pocophone with Pie.

I have a few phones, and I have to reboot them on Magisk updates, weekly rom developer updates, automated twrp backups 3x a week (auto reboot to recovery of course), etc. This means I have to manually optimize Google Play Services on each phone each time, a bit troublesome.

I made it simpler by having a script as a shortcut on my homescreen (or as a gesture shortcut) to do the work with just one button tap.

The script : (name it anything you want, with a .sh extension, and change attributes to rwxr-xr-x)

#!/system/bin/sh

dumpsys deviceidle whitelist -com.google.android.gms
[Magisk] demonoidmaster:
what exactly does those commands do other than ik it's supposed to dumpsys on deviceidle but what does dumpsys do? Delete older logs or something?

---------- Post added at 07:42 PM ---------- Previous post was at 07:37 PM ----------

That's because that's something that shouldn't be set to doze, it's a phone service, it's working as intended, this module only makes google play services doze when needed
[Magisk] hyborian:
What it does is remove Google Play Services from the Doze whitelist. This magisk module, on my phones at least, only makes it possible for GPS to be removed, and we remove it manually.

* I edited my previous post, still refining the boot script. But the script as a shortcut works real fine, one tap to remove GPS from doze whitelist.

more info if interested - https://www.protechtraining.com/blog/post/diving-into-android-m-doze-875
[Magisk] demonoidmaster:
so basically the script does what this module does
[Magisk] hyborian:
Good for you. This module does not remove Google play Services from the whitelist, on all my phones, it only allows it to be removed. I have to go to settings, then Battery Optimization, look for Play Services, and change it to Optimized.

So, on my phones, this module does the 1st job well, it comments out the line at /system/etc/sysconfig/google.xml.

But it still is not optimized automatically.

Since it works on yours, then it means it doesn't work on all phones.

.
[Magisk] Schroeder09:
So above someone said this works on pie. I thought it didn't a couple months ago. I just installed it on pie and it sure seems like it is NOT working. I click to optimize play services and a box comes up with a choice to optimize it. When I click optimize and then click "done" to close the menu, the menu closes and play services is still listed as not having been optimized.
[Magisk] Schroeder09:
I installed this in magisk, uninstalled it when I couldn't optimize the play services, and now saying "ok, Google" doesn't trigger my assistant. I have rebooted multiple times.
[Magisk] hyborian:
It works on Pie, on my Poco F1 phone.

You can easily check the file /system/etc/sysconfig/google.xml if it was modified as noted here -> https://android.stackexchange.com/q...d-other-default-white-listed-system-apps-doze
[Magisk] topbasework:
Which version u use?
[Magisk] hyborian:
Version of what ?

Enable Doze says v6. I use latest Global Developer Rom, Franco Kernel, NFS-Injector, latest Magisk Canary release.

For my Poco F1, Play Services is automatically optimized, no need to manually optimize it.

See attachment screenshot of my Battery Optimization screen, only 3 apps starting with G are not optimized.

.
[Magisk] :
I enanled module through magisk and it gave option to optimize play services but when i change to optimize the option stays the same even after changing to optimize
[Magisk] makopls:
try univ gms doze, working fine for me,. just flash and forgot
[Magisk] :
Dnt we need to change option to optimize ?

---------- Post added at 11:47 AM ---------- Previous post was at 11:45 AM ----------

Already tried that univ gms doze but the same issue it doesn't change to optimize
[Magisk] martyfender:
[MENTION=4066277]otonieru[/MENTION] Your module was apparently removed from the Magisk Repo. Do you plan on updating it's template so it can be restored?

Thanks
[Magisk] otonieru:
am currently not planning to update the module for new repo, as it's impact on PIE is lesser compared to previous android,

when i have time i'll update and put it here for user with older android but using newer magisk
[Magisk] hyborian:
[MENTION=4066277]otonieru[/MENTION], thanks for the time you have spent on this.

May I know the changes Enable Doze does systemlessly, and I will just write my own script to comment out the necessary lines from google.xml, even if not systemless (at least it will be immune to Magisk changes). Currently my script just comments out <allow-in-power-save package="com.google.android.gms" />, and it works fine.

I don't want to use the other module Universal Doze, it does too many stuff. I agree Pie is great, but I still have phones stuck at Android 6 due to their MTK hardware.

Thanks

p.s. never mind, thanks, I think I got it ...
[Magisk] jlb1959.01:
Is there a way to get v6 as its no longer in magisk and I somehow lost that file on my PC, thanks for any help...
[Magisk] MacGyverLarisa:
Here it is.
[Magisk] Bobthahog:
I have th8s app installed. Is it difficult to get it running in privileged mode? Right now I only am using it in root mode.
[Magisk] drawix:
Wella, the module wasnt the case.

I do clean install, set up and apps install and restart, boom i got 100 notifications about gms.*app* stopped working...
[Magisk] otonieru:
No it's very easy. :)
[Magisk] otonieru:
Whitelist in Doze, and Put in Priority in Notif setting,

Also in my case, i put it as apps that wont be managed by touchwiz battery saver
[Magisk] asusgarb:
After some hours this module seems stop working. Let me explain. In latest hour google play service consumption went from 6% to 41%. So I used BBS but it didn't give wakelocks. How much i hate google play service.

I have autosync disabled and all permissions denied in privacy guard, but still it's a battery killer.

But this module helps alot, so thank you very much [MENTION=4066277]otonieru[/MENTION]
[Magisk] otonieru:
As all we know, google updating their play services n play store periodically,

Even last month, i think i saw o e or two updates,

And during or post updates, sometimes sh*t happen,

For some reason, some alarm or services getting stuck, and keep the phone awake

What i suggest is clearing play services cache
[Magisk] Ubimo:
Can you somehow integrate this in your module?

So, after a Google update happens, your module does this?

Edit:

Or your module can re-initialize itself after a google update?

Edit2:

Can you please add "v3" in thread title? So we better see when there is a new version.
[Magisk] otonieru:
Creating a module which can detect updates from Google Play Services is way too much for me, i guess, LoL

Because that way, i need to create something like daemon, if thats the case, its better for me to create an app instead :silly:

For now, please do it manually
[Magisk] K.chez:
I just installed the mod but cant toggle on google play service under battery optimization
[Magisk] otonieru:
What ROM are you in,

Which file you used ?
[Magisk] K.chez:
I am on touchwiz mashmallow i used the first file in OP
[Magisk] otonieru:
Check your google.xml in system/etc/sysconfig

Is it successfully modified by magisk ?

What is your magisk version ? official magisk ?
[Magisk] K.chez:
Official version 12.0

Here is a screenshot
[Magisk] otonieru:
From what i see, magisk is not successfully replace your google.xml,

thus it wont work,

you install the module using magisk manager right ?
[Magisk] K.chez:
Yeah at first and then flash it through Twrp
[Magisk] otonieru:
Dont flash the magisk module through twrp.

Install it from Magisk Manager only. And reboot. Please try again

If you want to flash through TWRP use the TWRP zip version but that wouldn't be a systemless mod
[Magisk] K.chez:
I am giving it a shot again
[Magisk] otonieru:
From what i see from your log in another thread, your magisk might have problem with the magisk hide and wont start properly,

I suggest you do whole magisk re-installation
[Magisk] romskii:
I can't see this option for ticking play services on latest OOS beta. For me there are no system apps displayed. So how can I see that it's working?
[Magisk] otonieru:
How is Doze mode displayed in OOS today ? I thought its almost similar to stock

Am stop using OOS long ago, LoL
[Magisk] jlb1959.01:
Great!!, much appreciated.
[Magisk] *justintime*:
Development stopped? Because no longer in Magisk repo?
[Magisk] MacGyverLarisa:
One page back it's your answer from the developer.
[Magisk] otonieru:
Here's update for PIE and Magisk 19 : https://drive.google.com/file/d/1-Nw6xHIhOPz06j4FqD-geAnMCz2NzPKX

practically the only update is allign .xml with the one in PIE and update module requirement for Magisk 19

it installed and works just fine on my Mi8 with Pixel Experience and Magisk 19.4 installed

try it yourself (at your own risk of course)
[Magisk] Azatecas:
Hello, this moduled worked great on my tablet running nougat, i installed the module on my mi a2 lite running stock pie with the latest magisk manager, when i go to battery optimization it allows me to toggle google play services however as soon as i leave the toggle settings it still says not optimized, i tried restarting the device but it still says not optimized any tips on how to get it working? Thank you!
[Magisk] *justintime*:
Thanks for the Pie update.... Apriciated
[Magisk] unibombz:
Wowzers I am behind the times.

I have been using PowerNAP an old Xposed application that worked well on N.

Now that I am on P I am looking for something that helps with battery. Is this the best, can you select what apps you want to not wake up?

This was the old app I used : https://repo.xposed.info/module/net.jzhang.powernap

The sounds promising. I am on the latest Magsik on P OS.

Thanks for the help if anyone can fill me in (I have been out of the loop)
[Magisk] otonieru:
With honesty,

i don't even think P need my magisk module any longer. I just update it so that it will compatible with latest magisk as well.

only thing you need on P is AppOps , and set it to deny "Prevent phone from sleeping" permissions for GMS and for other apps, set it to "Allow if foreground"
[Magisk] Richy19:
One thing your module does do is allow it to work as normal when not dosing.

So is the plan to add it into the main magisk modules? As in having it show up under downloads?
[Magisk] Detonatte:
Work with android 9 and Samsung Galaxy Note 9? Because flash module in magisk and no work :(
[Magisk] zack483:
It doesnt work on my phone. Rom havoc os oasp based. Pie.

The gms still can't optimize.
[Magisk] jho55:
I am running Lineage OS 15.1 Oreo and unfortunately it is also not working for me. GMS cannot be optimized. I edited the google.xml and also tried the xml from the oreo version here.

Is it working for anybody on LOS 15.1 Oreo?

edit: Something in my phone setup breaks it. I have a second phone, the same like my first phone and same los 15.1. But only a few apps installed. And there it is working! I will try to figure out what is causing it.
[Magisk] zzcool:
do you even need any of this any more i checked greenify it has a checkmark for doze did they implement it in greenify?
[Magisk] universed:
Hey All,

Trying to optimize my rooted Note 9 phone running PIE with this fix. The first page has instructions which seem to be for an earlier version of Android. This instruction "After reboot, go to "Setting" - "Battery" - tap the tri-dot menu on the top right and choose "Battery Optimisation" does not work in Pie, I don't see the BATTERY OPTIMISATION option. Is there a different way to install this fix in PIE?

Thanks,

D
[Magisk] jscheah:
Try deactivating find my device through the device admin option
[Magisk] 73sydney:
Only works until the next reboot........at the moment i havent seen a definitive way to stop Find My Device rearming....
[Magisk] Beatz106:
I've installed the Module and its working successfully in Oreo 8.1 (LineageOS)
[Magisk] universed:
I got this installed and I found Battery Optimization. When I scroll through the APPS NOT OPTIMIZED list I see Google Play Services and it is highlighted but when I click on it, It does not disappear and move to the Optimized list?

D
[Magisk] jaggillararla:
What other apps. ? :)
[Magisk] DaveedDB:
Other apps that have many wakelocks like whatsapp
[Magisk] omgomg:
Working fine on Xiaomi Mi9 with a stock global ROM.
[Magisk] sdembiske:
[MENTION=4066277]otonieru[/MENTION]

Does not appear to be working on LG G4 unofficial LineageOS 9.0 Pie.

While one is able to try and Optimize it in Settings > Apps & notifications > See all xx apps > 3 dot menu > Show system > Google Play Services > Advanced > Battery optimization (takes minimum two touches before able to access) > set Optimize > Done -- it continues to indicate on exit that it is Not optimized.

Note

: - <!-- <allow-in-power-save package="com.google.android.gms" /> --> is commented out in google.xml file in /system/etc/sysconfig/ but again with no apparent effect.

Logcat: https://pastebin.com/e7iNQTvY

Would appreciate if you could take a look and see what the issue is.

Thanks,

S.
[Magisk] Pupet_Master:
Does it work on miui ROMs?
[Magisk] Kris Chen:
Yes, it works at miui eu 9.8.1
[Magisk] thekokii:
Have the same with pie AICP :confused:
[Magisk] Windroid-user:
I'm using magisk 19.1 on galaxy note 4 running 6.0.1 marshmallow. This error log is produced when tried flashing in magisk.
[Magisk] Windroid-user:
I don't have /data/magisk

It's in /data/adb
[Magisk] bkuri:
Does not work on Havoc 2.8 (Pie). Let me know if you need more details.
[Magisk] CyberpodS2:
I have not had it work in some time on havoc, bootleggers or stock. Not sure what I'm doing wrong. I'm on 19.3 fwiw
[Magisk] pepit0grillo:
Can I use this module with Android Pie?
[Magisk] FullWipe:
Did you read the first post before asking questions?
[Magisk] pepit0grillo:
I always read OP before posting, thank you for caring about it and for ilustrate us with your help.

OP talks all about Nougat and Oreo, and there is only a link with Pie update, but there's no mention about plus (+) version and anything else. It could be fine to know if there's any limitation/side effects with Pie, as I am always curious about all things, specially with those I'm going to install in my daily phone.

Again, thank you for your help.
[Magisk] Predatorhaze:
So wich one we need for oreo 8.1 rom? The attached apk in op? because on magisk manager it does not find this mod,it only find universal gms doze.And is this mod almost the same as sysconfig patcher?
[Magisk] FullWipe:
"PIE & Magisk v19 Compatible Update"

I think it's more than enough to answer your question "can i use this module with Android Pie?".

It's a simple Magisk module.

Install it, test it and uninstall it if you notice any side effects.

The phone will not explode ;)
[Magisk] Windroid-user:
How come I can't use it on my phone though? Check near the bottom of the previous page for details.
[Magisk] comunity:
On Pie Syberia 2.8 just after reboot Google services is absent in Applications which are not saving energy. But in a few seconds - it appears. And it's impossible to set radio button Save (
[Magisk] sstekss:
Edit
[Magisk] massima:
Why isn't it available in the magisk manager modules search page? I thought it was no more developed :fingers-crossed:

EDIT: on COSP9+opengapps_pico_9_arm64 i can't save my setting, i choose optimized then save and again it shows not optimized.
[Magisk] Fahrialubis:
This one support Q bro?
[Magisk] demonoidmaster:
Maybe because there's no + version for Pie and that zip is the only one made for Pie? He was right yknow, you can't read, and you're a liar too, you said you read the op yet you asked if it works on Pie.. there's a zip for Pie in the op, so yes theres one for Android 9
[Magisk] pepit0grillo:
Ok, I'm a liar, and you're very disrespectful. Now you can get a life.

Bye
[Magisk] demonoidmaster:
Calling out lies is disrespectful ? Ok then
[Magisk] nikolai7:
tried in lineage 16 (android 9), using magisk v20 and the first zip (magisk v19 and pie) but doesnt seem to work. it lets me select optimization for google play services, but when i tap on it and accept, it wont change it and it remains in not optimized.
[Magisk] Kovhl:
Tried this module since universal GMS doze switches off everything except calls.

This module made Google play services optimized in battery section ( althought I didn't do it manually , neither I cud change to not optimized )

This module have reenabled the os to disable google

Play services.. surprise.

I diabled that and all other googel apps. And restricted baground battery for these hyenas ( just in case)

[ What's app won't receive messages (why the hell it is routed through Google play services to receive push notifications I don't know) when phone sleeps idle. .but that's ok ... I will consider switcing to lineage OS. ]

Am on OnePlus 6T 9.0.16 Magisk stock kernel.

Noticeable changes :

Usually I get 6.5 to 7 hrs screen on time.

Now 10 hrs.

I can afford to check wahtsapp once in a while in exchange I get 3 hrs extra battery life .

Thanks dev ? ?

Any other advice as to how to improve... Am all eager ears dev.

And also , any ways to make WhatsApp receive push notifications without Google play services and google maps to work without it ??

I have to enable play services if I need to use maps.
[Magisk] Beatz106:
Any fix for users of LineageOS 16?? The module isn't working at all
[Magisk] shmykelsa:
Seems like this module is not working on my OnePlus 6T running OxygenOS 10 (Android Q)
[Magisk] Ulf3000:
THE SOLUTION :

Quick study (if you are interested, one of the discussion can be found Here) reveal that Google put simple configuration is /system/etc/sysconfig/google.xml that WHITELISTING Google Play Services from the DOZE Mechanism.

------------------------------------------------------------------------------------------------------------------------------

edited this file manually and also disabled all the samsung **** in that folder too
[Magisk] DaveedDB:
That's what this module used to do ,but Google and most of the new phones mostly Chinese have other persistent apps that stop the phone from dozing quickly, even whatsapp has a stupid wakelocks that links with gms that's why some people receive delayed msgs etc ,also the devs are trying to provide this for various devices ,which is challenging one device it might work and another it won't, hell even the same device one running nougat and one pie or Q they might not work either
[Magisk] Beatz106:
How this works because this module isn't working on Pie (LineageOS)
[Magisk] Ulf3000:
you take a root capable explorer (im using total commander) and then edit the files with a text editor(total commander has that build in) . refer to the 1st post in this thread!

but i reverted the google play services becasue of google maps which would give me problems then...

now i completely disabled doze and installed an old xposed module deep sleep battery saver . it might be specific to my phone (samsung s7 oreo) but i get better idle battery usage that way and all apps still work normally (unlike with doze)...
[Magisk] iyodmr:
It only works on magisk 14?
[Magisk] miss:
no work in miui.eu
[Magisk] Spartacus500:
Works for someone on Samsung Galaxy S7 / S8 / S9 etc. android 9.0 Pie? I tried at home on Samsung S7 9.0 Pie, after the first reboot, the phone hung on the text samsung and suddenly a black screen ... I managed to enter the downloaded mode and after rebooting the phone started, but you can not move the slider to optimize google gms 🤔
[Magisk] varunpilankar:
This module isn't working on OnePlus 7 running Android 10 (OOS 10.3.8, Magisk 22.1)

Any solution?
[Magisk] coolpixs4:
Universal GMS Doze​

Android 13 support

Added GMS to battery optimization and disabled another components

Fixed broken API checking and Multi-User support

Moved to inbuilt (Magisk) BusyBox

Improved pre-boot conflict fixer and proper boot script execution

Improved superuser checking method and used cmd flag arguments

Improved XML patching logic

Minimized root path checking depth

Revived overall code quality and syntax

Rewrite GMS state checker bin

GitHub - gloeyisk/universal-gms-doze: Patches Google Play services app and certain processes/services to be able to use battery optimization

Patches Google Play services app and certain processes/services to be able to use battery optimization - gloeyisk/universal-gms-doze

github.com

BUT NO Custom Recovery installations over TWRP ???
[Magisk] knightofzealot:
Does not work on Xiaomi Poco F1 with crDroid 9.2 Android 13 with NoGravityKernel 4.3.1 ver.10.3.7
[Magisk] Spartacus500:
Try disabling those apps in security and then check.
[Magisk] knightofzealot:
Don't have those apps because I used nikGapps core when flashing my ROM
[Magisk] VR25:
I was testing this in 3 development projects and I think that the modified "google.xml" file my cause Google Play Services to randomly crash. This prevents the user from setting up their Google account upon initial system configuration. There's also the risk of account data loss/corruption due to GMS crashes.
[Magisk] otonieru:
Well, there might be a complication if the file was modified prior to account set up,

Although i never had any google play services crash on my phones, all of it.

So i think this mod best applied once everything related to google services is properly set up first
[Magisk] Bobthahog:
I have never had Google Play services crash since installing this module. Just my input.
[Magisk] VR25:
I've tested it even further and I have to confirm, it doesn't cause any issue. Even if you install before setting things up. Other modules trigger the problem, especially debloaters (i.e., if you debloat AOSP Webview without having Chrome installed to replace it, then gms will crash).
[Magisk] VR25:
Hey [MENTION=4066277]otonieru[/MENTION], I've added some tweaks to your mod for even better results.
[Magisk] shantam3108:
Pls tell us what are the tweaks.

Thanks
[Magisk] VR25:
I disabled the following:

"Packages that always have internet access while the device is in power saving mode, even if they aren't in the foreground."

Reasoning: power saving mode should always be what is means. It makes no sense to keep running hungry apps when it's activated.

"GmsCore must always have network access even when data saver is on for GCM and other things."

Reasoning: again, non-sense. It breaks data saver's purpose.

"Play Store likewise must have unrestricted network access to support other applications even when data saver & power saving mode are on." Again why? Answer: non-sense.

That's all I changed.

Besides, you can always enable these functions manually from settings. Not that I would do that anyway, because that's all non-sen... you got the point. :p