by Fran T
Version 18 (December 23, 2024)
Download (211 downloads)
Disables Wi-Fi and Mobile Data to prevent Internet access while certain apps you specify are running. Works with or without Root access or the "access deprecated system features" permission (and Automate Legacy Extension).
The flow detects whether the UI is needed to do the setting by checking for an exception from the Wi-Fi and Mobile Data Enable blocks during setup. In order for the UI method to be able to turn Wi-Fi and Mobile Data on and off in Android Oreo and above, those tiles must be present in Quick Settings. To see if they are, expand the status bar by swiping down twice. If either tile isn't present, tap the EDIT or “pen” button, then drag the tile to add it.
𝗡𝗼𝘁𝗲: If you have logging enabled for the flow and notice an exception, that's normal and is the way the flow determines whether the non-root/non-Legacy Extension UI workaround is needed to enable and disable Wi-Fi and Mobile Data the first time it's run. The flow continues to run normally.
Updates:
• Workaround for change in behavior of Wi-Fi Set State block, update for Android 11
• Improved app list management; update for Android 11 app launcher behavior; improved stability of Wi-Fi setting when using UI; improved reliability of clicking on Quick Settings tiles; now saves settings to a file; added "Show" flow
• Added support for Samsung devices
• Catch failure caused by Automate not waiting for the Accessibility service to start after reboot
• Improve Wi-Fi API check (Samsung phones re-enable Wi-Fi when it's disabled via the API)
• Improved app list management
• Replace deprecated block