You should upgrade or utilise an culling browser.
[MAGISK 16][Battery Saver][6.0+] ENABLE DOZE on Google Play Services
I actually made this module for my personal own employ, just who knows, someone hither might find it useful as well.
PIE & Magisk v19 Uniform Update
UPDATE NOTES :
OOS Nougat & Oreo User might not be able to find organisation app on Battery Optimisation list, you tin can work around this by using 3rd party app like Greenify or Naptime to open Doze Whitelist, you will encounter Google Play Services already listed as “Optimised App”. Or get to App Info from setting, choose “Battery” and scroll down to “Battery Optimisation” – if the module work, information technology should written “Optimising Battery Use”
OREO User, Delight Utilise OREO version. v6 Update is already in the Magisk Repo.
I always find that Google Play Services is style too aggresive in doing its activities in the background. And its no hugger-mugger that this main services from google is oftenly one of the main culprit for the sub par bombardment operation on most stock or fifty-fifty custom ROM beyond devices.
THE Thought & THE BARRIER :
Starting in Android 6.0, Google has introduced one of my favorite features in battery saving : DOZE (quick read nearly this Hither), information technology assist us to make apps go into a “shallow” hibernation state. Where it utilize less energy but retain it’due south functionality.
Thing is, this characteristic is NOT applicable for Google Play Services. Thus, information technology cant help yous to save the battery from being eaten past Google Play Services. And this is not for no reason of course (read SIDE Issue/NOTE section bellow for further explanation)
THE SOLUTION :
Quick report (if you are interested, ane of the discussion tin can be constitute Here) reveal that Google put simple configuration is
that WHITELISTING Google Play Services from the DOZE Machinery.
And so to make DOZE able to piece of work on it, we
merely need to remove
WHAT THIS MODULE Exercise – SYSTEMLESSLY
Past installing this module, you tin move Google Play Services from the “App Non Optimised” list to “App Optimised” which mean
DOZE mechanism will piece of work its magic on Google Play Services, thus should saving you more juices/batt throughout the day.
THE SIDE Consequence/Annotation :
Saving energy never come without side effect. Aforementioned goes with this method.
Past enabling Doze on Google Play Services, it will theoritically delay/break some it’s services. About noticeable might be the GCM (cloud messaging) services.
App that apply this services might experience filibuster in notification when Doze already kick in.
Although, in my feel (i use this modern on all of my three devices) my notif for LINE, WhatsApp and Telegram (my main comm app) is never been delayed. ( I put all these apps in my whitelist btw)
The one i noticed had slight delay is GMail. Only i bank check my postal service regularly throughout the day, then i demand no existent time notif for that.
As for all other main services like Accounts, Alarm, Location and elses, i never have any effect with them when i got this module active. GPS piece of work fine, Alarm ringing, Account Syncing normally.
HOW TO INSTALL :
SO if after reading all the PROs and the likely CONs to a higher place , y’all nevertheless interested in trying this mod,
Simply dowmload it from the attachment, and install it through your MAGISK MANAGER. And reboot.
After reboot, go to “Setting” – “Battery” – tap the tri-dot menu on the height right and choose “Battery Optimisation”
Choose “All Apps” and switch ON the toggle for Google Play Services (in nigh ROM, information technology will be automatically switched to ON in one case this mod is installed)
ENJOY And then ! :highfive:
WHAT IS THE Deviation
• Plus (+) version modified by @VR25 has an extra feature, which removing Google Play Services from Background Information Access Whitelisting. Thus enabling data saver or restricting groundwork data will touch Google Play Services likewise. This might save you extra juice, just BEWARE for interrupted background information activities.
Cull the one suit you most.
This Modernistic should compatible with whatsoever Marshmallow and Nougat ROM (Official & Custom) that has Google Play Services Installed on it,
Tested on :
OOS, LOS, CM13, MIUI, EMUI, and TouchWiz
If you found that this module causing consequence for your set upward, but uninstall information technology from magisk manager, or utilize the TWRP Uninstaller.
Screenshot of expected level of Google Play Services Battery Usage :
Sent from my Nexus 6 using XDA Labs
Htc x on viper rom. This breaks fingerprint sensor/home button for me
My S8, OP3 and P9 all has fingerprint scanner, and work normal.
Can yous try,
Before placing finger on the scanner, turn on your screen starting time by pressing lock button,
If it managed to scan, and then it means information technology doesn’t actually break FP, it just the telephone go to deeper sleep (since GMS is now hibernated every bit well) and pass up to wake upward but past placing finger.
But if information technology atill refuse to scan even with screen on. Send me a logcat
My S8, OP3 and P9 all has fingerprint scanner, and piece of work normal.
Can you lot try,
Earlier placing finger on the scanner, turn on your screen first by pressing lock push,
If it managed to browse, so it ways it doesn’t really break FP, it just the phone go to deeper sleep (since GMS is now hibernated too) and refuse to wake up but by placing finger.
Simply if it atill decline to scan even with screen on. Send me a logcat
I don’t have any FPs gear up up but waking screen and using it every bit a home button does non work and I go no vibration either even though it’due south set to 90 in exkm
edit requite me a few minutes to reinstall and I’ll go a logcat for you
Sent from my Nexus 6P using Tapatalk
so after flashing this time I lost root and no cell serviceafter reboot. Looked at your module.prop and from my understanding with v12 modules are supposed to use versioncode 3 not 1. So I inverse it iii and zipped information technology back up. Booted into twrp used magiskmount to delete this module and flashed the ane with three every bit versioncode and afterward booting up I take root and cell service and my abode button is working like it should.
Crap, so that’southward where the issue belong,
although am using v1 myself on v12 Magisk, since it’s supposed to have backward compatibility. And so far there’southward no issue.
I think ROM combination might have something to do as well,
but equally for now i’ll update the installer nix.
Thx for the debug!
Crap, so that’s where the result belong,
although am using v1 myself on v12 Magisk, since information technology’s supposed to take backward compatibility. And so far there’southward no issue.
I remember ROM combination might have something to practice as well,
but equally for now i’ll update the installer null.
Thx for the debug!
No problem! Happy to assistance. If you need a tester for anything only allow me know
- Jul ane, 2013
My rom is Unofficial LineageOS 7.1.two.
P.S. I also tried flashing it with TWRP without success. I’ll endeavor this module in my tablet to check likewise (Lineage 7.1.two too).
Inviato dal mio SM-P605 utilizzando Tapatalk
Hi. I tried installing it. Installation worked and module appeared in the list, but on reboot it disappear. I’one thousand on Galaxy Note 3 with custom kernel and custom magisk. I’ve asked if it could be that magisk’southward trouble, but maybe could be this module fault?
Inviato dal mio SM-P605 utilizzando Tapatalk
Well, all i can say is that i only test it on official Magisk
Only, effort utilise the new module fastened, and whether it solve your issue
Well, all i can say is that i just test it on official Magisk
But, endeavour apply the new module fastened, and whether it solve your outcome
Only for information, with modified magisk didn’t work, but it works in both devices with official magisk 12.
And now let’s examination its impact on battery life![emoji1]
Inviato dal mio SM-N9005 utilizzando Tapatalk
. Improved my bombardment life a lot :fingers-crossed:
BTW, there is likewise Download Director which cannot exist optimized. Can yous add it to your module?
Works like a amuse.
BTW, in that location is also Download Manager which cannot exist optimized. Can you add together it to your module?
Yous do realize if you’re downloading a large file and download manager is optomize your download will cease presently later on y’all turn off the screen when doze starts. Download director doesn’t produce any wakelocks or alarms.
You do realize if you’re downloading a big file and download managing director is optomize your download will stop soon subsequently you plough off the screen when doze starts. Download manager doesn’t produce any wakelocks or alarms.
Subconscious downloads such as play store or play services are also downloaded with this app.
Subconscious downloads such as play store or play services are likewise downloaded with this app.
What is your point?
———- Mail added at 04:21 PM ———- Previous postal service was at 04:17 PM ———-
Subconscious downloads such every bit play store or play services are also downloaded with this app.
Download manager is contained from those services. If everything is optomize, nix should be invoking download manager in the commencement identify during doze. Thus download manager shouldn’t be bothered with the battery optomize selection.
What is your point?
———- Post added at 04:21 PM ———- Previous post was at 04:17 PM ———-
Download managing director is independent from those services. If everything is optomize, nothing should exist invoking download director in the first place during doze. Thus download manager shouldn’t exist bothered with the battery optomize option.
This is true @Shished
I even put ADM to whitelist. I dont want any of my downloads interrupted when the screen is off or when am sleeping
Thus, it shouldnt be bothered.