I have a Mi Box running 7.0 beta 1028. I am trying to get a Tasker task to run everytime I wake the device from sleep. The task requires wi-fi to run. And i have noticed that when I turn off the box and then on, the task will run fine. But if i leave the box sitting for a while the wi-fi connection will be lost and it has to reconnect when it wakes up. This makes my task not work as intended.
Is there a way to disable wi-fi from turning off and having to reconnect when the device has been sleeping?
Is there any system files i can Edit? I have root access to the system files.
I know i can do an Wait until wi-fi is connected in the Tasker task, but this makes it take 5-6 seconds before it runs (when wi-fi finally connects).
Thank you
Developer mode, disable sleep. worked in marshmallow... This also fixes Chromecast from disappearing, and makes sense why it's broken after sleep if the wifi is going away.