ShizuStore

Private DNS Quick Setting

flashsphere

3.4 · GitHub

Download APK
Quick settings Android 9+ 3 days ago GPL-3.0
787 ShizuStore
10.5k GitHub
155 Stars
1 MB Size

More about this app

QS tile for toggling the private DNS setting on or off

Private DNS Quick Setting

Translation status

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

Get it on Google Play Get it on F-Droid Get it on GitHub

No-launcher version

Get it on F-Droid Get it on GitHub

Contributing

Translations

Thanks to Weblate gratis hosting for open-source projects. You can submit translations on their website.

Translation status per language
Close

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.grantRuntimePermission
  • IPermissionManager.grantRuntimePermission
  • Settings.Global.putString
  • Settings.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.

Close

Changelog

What's new for version 3.4

  • Update dependencies
  • Update Turkish translations
  • Update Japanese translations
Close

Permissions

3 permissions requested

  • android.permission.WRITE_SECURE_SETTINGS
  • com.flashsphere.privatednsqs.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close

Sources

2 sources

3.4 Universal GitHub · com.flashsphere.privatednsqs
Selected Download
3.4 Universal GitHub · com.flashsphere.privatednsqs.nolauncher
Download