Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abusalimov/xposedwifideepsleep
Prevents Wi-Fi from waking up on the lock screen or by application Wi-Fi locks
https://github.com/abusalimov/xposedwifideepsleep
Last synced: about 1 month ago
JSON representation
Prevents Wi-Fi from waking up on the lock screen or by application Wi-Fi locks
- Host: GitHub
- URL: https://github.com/abusalimov/xposedwifideepsleep
- Owner: abusalimov
- License: mit
- Created: 2014-05-12T21:46:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-17T18:10:41.000Z (over 10 years ago)
- Last Synced: 2023-08-05T09:03:39.276Z (over 1 year ago)
- Language: Java
- Homepage: http://repo.xposed.info/module/ru.abusalimov.xposed.wifideepsleep
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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).
Background
----------
Normally Wi-Fi can be awakened and kept on due to [Wifi locks](http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html) 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.The solution
------------
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](http://developer.android.com/reference/android/net/wifi/WifiManager.html#WIFI_MODE_FULL_HIGH_PERF) 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).Installation
------------
1. Download and install [Xposed framework](http://repo.xposed.info/module/de.robv.android.xposed.installer)
2. Search for and install **[Wi-Fi Deep Sleep](http://repo.xposed.info/module/ru.abusalimov.xposed.wifideepsleep)** module
3. Activate the module and rebootUsage
-----
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.
Links
-----
- [Module page](http://repo.xposed.info/module/ru.abusalimov.xposed.wifideepsleep) on Xposed repo
- [Discussion](http://forum.xda-developers.com/xposed/modules/mod-wi-fi-deep-sleep-t2752947) thread on XDA