[MOD][XPOSED][KK] Wi-Fi Deep Sleep
Only for Android KitKat.
Once installed this mod prevents Wi-Fi from waking up during device sleep mode and when you turn on the screen without unlocking it (to look at the clock, for example).
Normally Wi-Fi can be awakened and kept on due to Wifi locks held by certain applications that often use to abuse this opportunity. This results in Wi-Fi being turned on over up to the half of the total sleep time (or even more) which in turn of course eats the battery. Another issue is that once turned on by a single application it notifies and awakes lots of other apps that may start, for example, their heavy synchronization tasks, etc., making everything even worse.
Auto Wi-Fi apps
Nevertheless, Wifi lock is a good mechanism when used carefully, and generally it should be respected when deciding whether to switch Wi-Fi on and off. This becomes a problem for most of Wi-Fi management apps found in Play Market: they can switch Wi-Fi off in the middle of a Skype call just because the screen was turned off.
This mod alters a system state machine responsible for managing Wi-Fi so that once put to sleep it can not be woken up by any application that requests a lock. Wi-Fi is only put asleep when no application holds a lock. That is it doesn't cancel locks held already, but once all of them are gone, no one else is able to aquire a new lock until the screen is turned on and unlocked. This doesn't apply to special high performance Wifi lock, it still can be aquired as usual even in asleep mode (anyway, it seems that applications does not use to use this lock too often, so the battery should not became an issue).
- Download and install Xposed framework
- Then install Wi-Fi Deep Sleep module and activate it
To make the mod to take an effect proceed to Settings -> Wi-Fi -> Advanced
and make sure that:
- Keep Wi-Fi on during sleep is either Only when plugged in or Never (increases data usage)
- Scanning always available is turned off
The module provides no user interface, nor it runs any services in a background: only modifies a corresponding part of Android. You won't be able to notice it in the main menu or in a task manager. Think of it as a patch that can be turned on and off through Xposed installer.
The mod is open source (with permissive MIT licence), the source code is available on my GitHub
Wi-Fi Deep Sleep, Xposed for all devices (see above for details)
Xposed Package Name:
Current Stable Version: