What is Doze?
As we all know Android normally allows apps to run in the background, checking for new data, receiving notifications, and generally doing whatever they want. This is fine if you’re using your phone, but your phone doesn’t constantly need to be waking up if you’ve set it down on a table and walked away for a few hours. Doze kicks in when you aren’t using your device. When haven’t touched your phone in a while, it will go into a deeper sleep mode. (In technical terms, Doze prevents wakelocks from waking your device, keeping it in a lower-power sleep state.) This is especially useful for a phone you might leave on your coffee table, too. Rather than waking up all the time, the phone will be dozing most of the time, which should stretch its battery life much further.
Doze Will Not Block “High Priority” Notifications
“High priority” notifications will still come through, even when your phone is dozing. Notifications from your cellular provider, like SMS messages and incoming phone calls, will cut right through Doze so you won’t miss any messages. The phone will wake for alarms, too, so you won’t have to worry about missing those.
Other apps–for example, messaging apps like Google Hangouts, Facebook Messenger, WhatsApp, Telegram, and similar apps–can mark their notifications as “high priority.” High priority notifications will still be delivered to you, so you’ll get messages without having to wait for them. Most notifications aren’t marked as high priority, and won’t get through Doze, so as example Vainglory's notifications won’t wake your phone and drain your battery.
There are few things worth to know:
- The original Doze, or Deep Doze, is available since Android Marshmallow (6.0) and Light Doze is since Android Nougat (7.0).
- There are actually two state machines running in parallel for both Deep and Light Doze.
- Once either Deep or Light Doze enters its IDLE state, the battery saving actions are enabled. Namely, more time in IDLE less battery should be used.
- However, Apps having Wakelock or without respecting Doze IDLE state can still trigger activities consuming precious battery any time! For example, Google Play Service alone can totally kill battery regardless Doze or not!
- Whenever Deep Doze enters IDLE state, Light Doze will be overridden, or suspended, (i.e. in OVERRIDE state) until another motion is detected.
- Deep Doze would only work if there is any motion sensor available and would fallback on significant motion sensor if necessary. Without any sensor (e.g. on older phone) Deep Doze will never enter IDLE state (but Light Doze will still work).
- Some system service might be only affected by Deep Doze (e.g. UsageStatsService, GnssLocationProvider) and battery usage might be better in Deep Doze than Light Doze.
- Some battery saving Apps would disable (i.e. actually restrict) sensors to other Apps, but Deep Doze will still need to depend on motion sensors.
- The illusion that Light Doze always run before Deep Doze kicks in has to depend on proper settings (i.e. device_idle_constants for usual phone or device_idle_constants_watch for wearable watch).
Making this module as a simple way to prevent unnecessary GMS running in the background systemlessly. Optimized and tweaked with additional modified services for achieves better battery life. Here's the guides and I'll appreciate if you want to reports any issues by installed this module Standalone.
- API 23 or later is supported.
- Either install from Magisk Manager or any custom recoveries.
- Check whether BusyBox and SQLite is already installed (optional).
- Avoid to use similar modules or tweaks at once.
- @topjohnwu; Magisk
- Contributors and Donators
Copyright © 2019 GL-DP, gloeyisk. Licensed under the GNU General Public License v2.0