Private DNS Quick Setting
3.4 · GitHub
More about this app
QS tile for toggling the private DNS setting on or off
Private DNS Quick Setting
Toggle and configure your Private DNS settings on Android 9+ from the comfort of your quick settings panel.
This is a fork of joshuawolfsohn/Private-DNS-Quick-Tile with changes to add the following features:
- Add "Require device to unlock" setting to toggle tile
- Shizuku support
- Configure multiple DNS
- Custom tile icon (.png and .svg only) for each DNS
- Manual backup and restore
Setup
In order to change the Private DNS settings, this app requires the
WRITE_SECURE_SETTINGS permission. It can be granted either by Shizuku or ADB.
1. Shizuku
As of v1.23, the permission can be granted automatically if you have Shizuku installed and started.
2. ADB
The permission can be granted using ADB with the command:
If you're using the launcher (Play Store) version:
adb shell pm grant com.flashsphere.privatednsqs android.permission.WRITE_SECURE_SETTINGS
If you're using the no-launcher version:
adb shell pm grant com.flashsphere.privatednsqs.nolauncher android.permission.WRITE_SECURE_SETTINGS
Check out https://private-dns-qs.web.app/help on how to use adb to grant the permission.
Download
Launcher (Play Store) version
No-launcher version
Contributing
Translations
Thanks to Weblate gratis hosting for open-source projects. You can submit translations on their website.
How Shizuku is used
Can switch Private DNS off, automatic, and hostname modes via `Settings.Global` after Shizuku grants system settings access
This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.
How this app uses Shizuku
Shizuku is used to grant the system settings permission the app needs, after which it changes the Private DNS mode directly in system settings.
- Switch Private DNS modes: Choose off, automatic, or a specific hostname in the app and the choice is saved to the system Private DNS settings.
- Cycle modes from Quick Settings tile: Tapping the tile switches to the next enabled mode (off, automatic, or a saved hostname) and updates the tile to show the active choice.
- Switch modes from shortcuts: Launcher shortcuts for specific providers apply that hostname or mode immediately to the system Private DNS settings.
Android APIs or commands used
IPackageManager.grantRuntimePermissionIPermissionManager.grantRuntimePermissionSettings.Global.putStringSettings.Global.getString
Notable details
The same system settings access can also be granted once with an ADB command, after which Private DNS switching works without Shizuku.
Changelog
What's new for version 3.4
- Update dependencies
- Update Turkish translations
- Update Japanese translations
Permissions
3 permissions requested
Sources
2 sources
Sources
2 sources


