by Antony Casamento
When device is unlocked WiFi will turn on. If device doesn't connect to an access point within 10 seconds WiFi will turn off. If device connects to an access point then WiFi will stay on as usual.
If connected to an access point and the screen is turned off and locked, WiFi won't turn off unless throughput is zero - thus allowing updates over WiFi whilst the screen is off.
Once there is no throughput, WiFi will turn off.
Hope you like, and let me know what you think! Improvement suggestions welcome.