Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
Fold-ins for #1488, #1710, #1930, #1964, #1975 and #1991
Gathin23afa010f9742d
diff --git a/README.md b/README.mdindex ddc5ac697..ca5bfa807 100644--- a/README.md+++ b/README.md@@ -67,7 +67,7 @@ The three steps below are written for a coding assistant: the computer needs tothe TV, with a shell on it. Without an assistant, [Doing it by hand](#doing-it-by-hand) is the same job,run by you.-Any of these work: Claude Code (on [0G Private Computer](https://pc.0g.ai) or an [Anthropic plan](https://claude.com/pricing)), [Codex](https://github.com/openai/codex) or [Antigravity CLI](https://antigravity.google/product/antigravity-cli).+Any of these work: Claude Code (on [0G Private Computer](https://pc.0g.ai) or an [Anthropic plan](https://claude.com/pricing)), [Codex](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli) or [Antigravity CLI](https://antigravity.google/product/antigravity-cli).| Where | What to do ||---|---|diff --git a/docs/devices/xiaomi-mitv-astr0-blueplanet.md b/docs/devices/xiaomi-mitv-astr0-blueplanet.mdindex f264ee1ab..e9f0c3b0b 100644--- a/docs/devices/xiaomi-mitv-astr0-blueplanet.md+++ b/docs/devices/xiaomi-mitv-astr0-blueplanet.md@@ -90,15 +90,15 @@ off. Keep `screen_off_timeout` at 2147483647 (never); any finite value makes thebackground. A hand-built manifest without `<uses-sdk>` fails to install with`INSTALL_FAILED_DEPRECATED_SDK_VERSION`.-## Firmware `OS3.0.119.0.USTAATV`: periodic cleaner, ADB and VPN persistence+## Firmware `OS3.0.119.0.USTAATV`: the periodic cleaner and boot broadcastsSame set, after an OTA from `.106` to `OS3.0.119.0.USTAATV`. Everything above still holds.-Three further behaviours are worth documenting.+Two further behaviours are worth documenting.### `PeriodicCleaner` re-enables disabled packages and kills background apps`pm disable-user --user 0` on `com.xiaomi.wakeupservice` and `com.xiaomi.voicecontrol` does-not survive a reboot on this build, and a VPN service in the background is killed at idle.+not survive a reboot on this build, and background services are killed at idle.The cause is the firmware's periodic cleaner:adb shell cmd periodic enable false # -> periodic cleaner enabled: false@@ -111,29 +111,8 @@ That setting survives reboots. It also took `com.xiaomi.wakeupservice` from ~50%A receiver registered for `BOOT_COMPLETED` and `LOCKED_BOOT_COMPLETED` is never invoked,and `adb shell am broadcast -a android.intent.action.BOOT_COMPLETED` is refused. Becausethe firmware also clears `adb_enabled` on every boot, ADB cannot be restored from a-broadcast receiver — which is why an approach that works elsewhere does nothing here.--Home is started on every boot regardless, so the launcher can restore the flag itself:-- adb shell pm grant <home.package> android.permission.WRITE_SECURE_SETTINGS--then from `onCreate`:-- Settings.Global.putInt(getContentResolver(), "adb_enabled", 1);--A single write is not enough when the flag is cleared after Home is already up. Register a-`ContentObserver` on `Settings.Global.getUriFor("adb_enabled")` and write `1` back whenever-it reads `0`, guarded by a read so the observer cannot feed itself. Verified across cold-boots: port 5555 is open again with no manual step.--### Always-on VPN autostarts a VPN client-- adb shell settings put secure always_on_vpn_app <vpn.package>- adb shell settings put secure always_on_vpn_lockdown 0--The system starts the app's `VpnService` at boot, so a client whose own `BOOT_COMPLETED`-receiver is blocked still comes up. Verified with `tun0` present after a cold boot using-Clash Mi (`com.nebula.clashmi`).+broadcast receiver — which is why an approach that works elsewhere does nothing here. ADB staying off+after a reboot is what this repo wants anyway: switch network debugging on by hand when you need it.### Debloat list notediff --git a/examples/tcl-55ep640/debloat.txt b/examples/tcl-55ep640/debloat.txtindex 8ebe52d8f..ca9dab332 100644--- a/examples/tcl-55ep640/debloat.txt+++ b/examples/tcl-55ep640/debloat.txt@@ -79,4 +79,4 @@ com.android.printspooler # printing servicecom.android.dreams.basic # stock "colors" screensaver# 5. After the launcher is installed-com.google.android.tvlauncher # stock launcher, replaced by launcher/\ No newline at end of file+com.google.android.tvlauncher # stock launcher, replaced by launcher/diff --git a/examples/tcl-65c8l-google-tv/README.md b/examples/tcl-65c8l-google-tv/README.mdindex 5791bbe3f..61d2b3eca 100644--- a/examples/tcl-65c8l-google-tv/README.md+++ b/examples/tcl-65c8l-google-tv/README.md@@ -130,16 +130,7 @@ Kayo `au.com.kayosports.tv`, 7plus `com.swm.live`, 9Now `au.com.ninenow.ctv`, 10SBS `com.sbs.ondemand.tv`, Spotify `com.spotify.tv.android`, YouTube Music`com.google.android.youtube.tvmusic`, Live TV `com.tcl.tv`.-## Ad-blocking DNS (optional)--Private DNS to an ad-blocking resolver works on this TV (it does not block YouTube ads):--```-TV_HOST=<tv ip> tools/tv.py 'settings put global private_dns_specifier dns.adguard-dns.com'-TV_HOST=<tv ip> tools/tv.py 'settings put global private_dns_mode hostname'-```--Undo with `settings put global private_dns_mode opportunistic`.+Private DNS to an ad-blocking resolver works on this TV (it does not block YouTube ads).## After a firmware updatediff --git a/examples/tcl-75p635/README.md b/examples/tcl-75p635/README.mdindex 534eb0b63..0d686fa09 100644--- a/examples/tcl-75p635/README.md+++ b/examples/tcl-75p635/README.md@@ -33,4 +33,5 @@ TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py "pm disable-user --user 0 cOn this TV, `cmd package set-home-activity` must be called while the new launcher isalready in the foreground, then `setupwraith` must be disabled immediately after.The /product system version of setupwraith respawns on every HOME keyevent until it-is fully disabled-user. `launcher/build-and-install.sh` handles this automatically.+is fully disabled-user. `launcher/build-and-install.sh` runs set-home-activity but does not disable+setupwraith, so disable it by hand right after the install, as the list's header says.diff --git a/examples/tcl-75p635/debloat.txt b/examples/tcl-75p635/debloat.txtindex 2254ccfc3..3f0881532 100644--- a/examples/tcl-75p635/debloat.txt+++ b/examples/tcl-75p635/debloat.txt@@ -12,7 +12,8 @@# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-75p635/debloat.txt# Restore: TV_HOST=<tv ip> tools/restore.sh examples/tcl-75p635/debloat.txt com.google.android.apps.tv.launcherx# Everything is DISABLED, not uninstalled. Comment out anything you use.-# Disable setupwraith before launcherx (order matters on this TV).+# Disable setupwraith before launcherx (order matters on this TV). Disabling setupwraith gives Home+# back but can break casting (Chromecast built-in) after a reboot; comment out its line if you cast.# Run set-home-activity while the new launcher is in the foreground, then# immediately disable setupwraith; the system /product version respawns# on HOME keyevents if set-home-activity is not set first.diff --git a/examples/tcl-75p635/tv.json b/examples/tcl-75p635/tv.jsonindex 0bbfc428a..3aab491d6 100644--- a/examples/tcl-75p635/tv.json+++ b/examples/tcl-75p635/tv.json@@ -2,5 +2,5 @@"tv": "TCL 75P635 (Smart TV, BeyondTV4, G07), AR07 build","os": "Android TV 11","brand": "TCL",- "notes": "TCL promos, gallery, voice, unused preloads, TalkBack off; Chromecast, Miracast, USB MediaPlayer and firmware updater kept; launcher replacement works (CleanYourTV Home); setupwraith disabled after set-home-activity; notereminder resets on reboot — re-disable after restart; [Live TV config](tcl-75p635/README.md) sets com.tcl.tv for Inputs"+ "notes": "TCL promos, gallery, voice, unused preloads, TalkBack off; Chromecast, Miracast, USB MediaPlayer and firmware updater kept (casting can stop after a reboot with setupwraith off); launcher replacement works (CleanYourTV Home); setupwraith disabled after set-home-activity; notereminder resets on reboot — re-disable after restart; [Live TV config](tcl-75p635/README.md) sets com.tcl.tv for Inputs"}diff --git a/launcher/app/src/main/res/values-pt-rPT/strings.xml b/launcher/app/src/main/res/values-pt-rPT/strings.xmlindex 849676881..838471203 100644--- a/launcher/app/src/main/res/values-pt-rPT/strings.xml+++ b/launcher/app/src/main/res/values-pt-rPT/strings.xml@@ -9,4 +9,5 @@<string name="tile_add_to_dock">Adicionar à dock</string><string name="tile_replace_in_dock">Substituir por outra app</string><string name="dock_edit_pick_place">Escolha o lugar da dock para esta app e prima OK. Voltar para cancelar.</string>+ <string name="more_inputs">Mais entradas</string></resources>