by Arexalem
Version 1 (March 9, 2026)
Download (26 downloads)
Control Private DNS from quick tile (change, add, edit, remove DNS from your list). Automatically check whether the Private DNS is active then update the quick tile state accordingly. Need premium Automate v1.51.0.
How to setup:
• Add empty Automate quick tile: Notification (expanded) >> Edit >> Add tiles via drag & drop.
• Get permission: Automate settings >> Privileges >> Turn on "modify system secure settings".
• If you can't get the permission: Automate settings >> Privileged service start method >> ADB >> Follow the instructions given by the app >> Try granting the permission again.
Feature:
• Tap to cycle through the DNS list. Default has Off & Automatic in the list.
• Long Press shows 4 options: Add New, Edit, Remove, & Select entries in your DNS list.
• Shows a connected indicator with active quick tile if the Private DNS is active. Updated every time interactive state changes or when the network state changes or by periodic time. Set the key "interval" in the checkSettingDict to "x" sec to enable periodic checks.
• Automatically syncs the quick tile state with the Android system settings.
• If your settings have a custom Private DNS that is not in your list, you can choose to add it.
Other info:
• Private DNS active state is determined by running the "dumpsys connectivity" command "n" times for a short time (customizable).
• Normally, if it is set to Off it will have 3 running fibers, if it is set to Automatic or one of your Private DNS entries, it will have 4 (data off) or 5 (data on). If it stays at 6 or more running fibers, there is something wrong and the flow should be stopped.
If you find any bugs just tell me in the comments. Sorry, I'm bad at English.
Release version:
https://llamalab.com/automate/community/flows/52183
Current beta update:
- Improved check condition is now based on dumpsys not netcat (may not work on other devices, not tested).
- Added check for Automatic mode.
- Updated & improved fiber logic.
- Fixed unsaved DNS bugs.