by Георгий Владимиров
Turns off wifi and turns on mobile data when device is locked. When unlocked, turns on wifi, waits 10 seconds and if device connected to any wifi network, disables mobile data. If no wifi connects in 10 seconds, turns off wifi and enables mobile data.
1) Root (superuser) needed
2) Start the flow when wifi is enabled and mobile data is disabled.
3) Works good with presetted and open wifi networks. Please configure a new safe wifi network when the flow is stopped.