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
Add Chromecast with Google TV 4K (sabrina) debloat list
Gonzalo García Quirogab5b60900767e
diff --git a/examples/README.md b/examples/README.mdindex 944aba859..78eeda2fa 100644--- a/examples/README.md+++ b/examples/README.md@@ -10,6 +10,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `xiaomi-mitv-axso0/` | Xiaomi MiTV-AXSO0 (dangal) | Android TV 9 | PatchWall, Mi analytics, MiLink; voice, Chromecast, unused streaming apps off by choice || `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA || `oneplus-tv-dubai/` | OnePlus TV (D00, Dubai) | Google TV 14 | HeyTap/OnePlus extras, OnePlus Connect, Smart Home |+| `google-chromecast-gtv-4k/` | Chromecast with Google TV 4K (sabrina) | Google TV 14 | Google telemetry and ad services, ambient mode, launcherx + setupwraith; wireless-debugging pairing, YouTube button remap |To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.diff --git a/examples/google-chromecast-gtv-4k/debloat.txt b/examples/google-chromecast-gtv-4k/debloat.txtnew file mode 100644index 000000000..975e2b44a--- /dev/null+++ b/examples/google-chromecast-gtv-4k/debloat.txt@@ -0,0 +1,62 @@+# Chromecast with Google TV 4K (2020, device sabrina, product sabrina_prod_stable), 2 GB RAM+# Google TV 14 (SDK 34), build UTTC.250917.004 (14193937)+#+# Apply: TV_HOST=<ip:port> tools/disable.sh examples/google-chromecast-gtv-4k/debloat.txt+# Undo: TV_HOST=<ip:port> tools/restore.sh examples/google-chromecast-gtv-4k/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Stock launcher: com.google.android.apps.tv.launcherx. No Live TV app and no HDMI inputs (it's a dongle):+# leave live_tv_package empty in config.xml.+#+# Known quirks on this firmware:+# - ADB on port 5555 is closed (connection refused). Android 14 uses Wireless debugging with a pairing+# code: Developer options > Wireless debugging > Pair device with pairing code. `adb mdns services`+# lists both the pairing and the connect port, then `adb pair <ip:pairport> <code>` and+# `adb connect <ip:connectport>`. The connect port changes every time debugging is toggled or the+# device reboots. Tested with the stock adb on Windows; tools/tv.py assumes port 5555.+# - `cmd package set-home-activity com.gathin.tvhome` returns Success but launcherx stays the default.+# Disable BOTH com.google.android.apps.tv.launcherx and com.google.android.tungsten.setupwraith+# (setupwraith re-enables launcherx), only after the new launcher is installed.+# - With launcherx disabled the YouTube button on the remote does nothing. It sends BUTTON_3+# (keycode 190). Button Mapper only remaps added buttons in its paid Pro version; Key Mapper+# (open source, keymapperorg/KeyMapper) does it for free. Play Store lists Key Mapper as incompatible+# with this device, so install the -foss APK from its GitHub releases, then over ADB:+# pm grant io.github.sds100.keymapper android.permission.WRITE_SECURE_SETTINGS+# settings put secure enabled_accessibility_services io.github.sds100.keymapper/io.github.sds100.keymapper.system.accessibility.MyAccessibilityService+# Map trigger "Button 3" (short press) to action "Launch app > YouTube". Record the trigger with the+# physical remote: keys injected with `input keyevent 190` don't reach Key Mapper, and D-pad presses+# made while recording get added to the trigger.+# - com.google.android.tvrecommendations and com.google.android.apps.education.cast2class ship+# disabled at the factory; `pm disable-user` on them fails with "Shell cannot change component+# state". Don't add them to a restore list either.+# - Disabling dreamx leaves screensaver_components pointing at it. Point it at the launcher's clock:+# settings put secure screensaver_components com.gathin.tvhome/.ClockDream+# - Animation scales already ship at 0.5x on this build.+#+# Kept on purpose (all work after this list): Google Assistant (com.google.android.katniss),+# Cast receiver (com.google.android.apps.mediashell), phone remote (com.google.android.tv.remote.service),+# Play Store / Play Services, Gboard, Bluetooth, com.google.android.tv.dfuservice (remote firmware updates).++# Telemetry, feedback and ads+com.google.android.feedback+com.android.tv.feedbackconsent+com.google.android.tv.remotecontrol.logging # remote usage logging+com.google.android.apps.tv.netoscope # network diagnostics reporting+com.google.android.federatedcompute+com.google.android.ondevicepersonalization.services+com.google.android.adservices.api # Privacy Sandbox ad services+com.google.android.ext.adservices.api++# Preloaded apps+com.google.android.play.games+com.google.android.videos # Google TV / Play Movies+com.android.printspooler+com.google.android.marvin.talkback # re-enable if you need the screen reader++# Google ambient mode screensaver (replaced by the launcher's Clock screensaver)+com.google.android.apps.tv.dreamx+com.google.android.backdrop++# Stock launcher: disable LAST, after com.gathin.tvhome is installed (see quirks)+com.google.android.apps.tv.launcherx+com.google.android.tungsten.setupwraith\ No newline at end of file