Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Docs: ad-blocking Private DNS (AdGuard) as an optional extra

majniouic28cf2060313
diff --git a/PROMPT.md b/PROMPT.md
index 7feca06af..d674fea6a 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -48,6 +48,10 @@ Debloat
- Run `pm` commands one per shell call, chained commands may silently stop after the first.
- Disable in small batches and screenshot between them: a batch can take something load-bearing with
it and you cannot tell which.
+- Offer me ad-blocking DNS as an optional extra: on Android 9 and newer, Private DNS set to an
+ ad-blocking resolver (`settings put global private_dns_specifier dns.adguard-dns.com`, then
+ `settings put global private_dns_mode hostname`). Tell me it doesn't block YouTube ads, check an app
+ still plays afterwards, and note the undo (`private_dns_mode opportunistic`) in the README.
Launcher
- Check that the TV accepts APKs before building anything. Some China-market sets answer every
diff --git a/README.md b/README.md
index d49efe57e..78260f3bf 100644
--- a/README.md
+++ b/README.md
@@ -217,6 +217,19 @@ The launcher just lists what is installed and launches it with intents that have
**Isn't ADB access a security hole?** It is one explicit "allow this computer" tap on the TV, the
same as developing an Android app. Switch USB debugging off afterwards; the launcher keeps working.
+**Can it block ads inside apps too?** Partly, with Android's Private DNS (Android 9 and newer). Point
+it at an ad-blocking resolver such as [AdGuard DNS](https://adguard-dns.io) and every app's ad and
+tracker domains stop resolving, system-wide, surviving reboots:
+
+```bash
+tools/tv.py 'settings put global private_dns_specifier dns.adguard-dns.com'
+tools/tv.py 'settings put global private_dns_mode hostname'
+```
+
+It does not remove YouTube ads, which come from the same servers as the videos. If an app stops
+playing or the TV reports "No internet" (the resolver is down or unreachable), switch back with
+`tools/tv.py 'settings put global private_dns_mode opportunistic'`.
+
**AirPlay?** Not from this repo. Chromecast built-in stays for Android phones. For iPhones,
[jqssun/android-airplay-server](https://github.com/jqssun/android-airplay-server) works; an install
script for it is in [PR #84](https://github.com/Gathin23/cleanyourtv/pull/84).