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
examples: sony-kd-65x82l, an Australian BRAVIA 4K VH22 on the redirect route
chrislg530b6527def7fd0
diff --git a/examples/sony-bravia-4k-vh22/README.md b/examples/sony-bravia-4k-vh22/README.mddeleted file mode 100644index 47bc89a2d..000000000--- a/examples/sony-bravia-4k-vh22/README.md+++ /dev/null@@ -1,25 +0,0 @@-# Sony BRAVIA 4K VH22 (2023), Google TV 12--The same firmware build as [`sony-bravia-4k-vh21`](../sony-bravia-4k-vh21/), so its notes apply. What this unit-added:--## Launcher: the redirect route on Wi-Fi--`cmd package set-home-activity` prints `Success` and changes nothing on this build: Home still resolves to-`com.google.android.apps.tv.launcherx`, and with launcherx disabled it falls to setupwraith's-`.RecoveryActivity`. The installer's Home check therefore fails either way and rolls back as designed.-What worked, as on the second and third VH21 units:--- Keep launcherx and setupwraith enabled, and set `stock_home_redirect` (this folder's `config.json`).-- Install with `STOCK_LAUNCHER=none HOME_KEY_SERVICE=1 launcher/build-and-install.sh`, or on Windows- `launcher\build-and-install.ps1 -StockLauncher none -HomeKeyService` (the PowerShell script reads these as- parameters, not environment variables). It still ends on the Home check, before it enables the helper.-- Enable `com.gathin.tvhome/.HomeKeyService` the way the script's `enable_service` does, then confirm with- `dumpsys accessibility` that the "Home button" service is bound.--Checked: Home pressed in YouTube lands on `com.gathin.tvhome/.MainActivity` (`mFocusedApp`), the real remote's-Home button too, and after a reboot the TV started straight into the new Home with the helper bound.--## Undo--`TV_HOST=<tv ip> tools/restore.sh examples/sony-bravia-4k-vh22/debloat.txt`diff --git a/examples/sony-bravia-4k-vh22/config.json b/examples/sony-bravia-4k-vh22/config.jsondeleted file mode 100644index a439c1cf9..000000000--- a/examples/sony-bravia-4k-vh22/config.json+++ /dev/null@@ -1,7 +0,0 @@-{- "hidden_apps": [- "com.sony.dtv.tvx"- ],- "live_tv_package": "com.sony.dtv.tvx",- "stock_home_redirect": "com.google.android.apps.tv.launcherx"-}diff --git a/examples/sony-bravia-4k-vh22/debloat.txt b/examples/sony-bravia-4k-vh22/debloat.txtdeleted file mode 100644index e7bf8cc3f..000000000--- a/examples/sony-bravia-4k-vh22/debloat.txt+++ /dev/null@@ -1,62 +0,0 @@-# Sony BRAVIA 4K VH22 (2023, device BRAVIA_VH22, MediaTek MT5895), Asia-Pacific (Australia)-# Android 12 (Google TV, API 31), build BRAVIA_VH22_M_PA-user 12 STT2.230505.001.S136 682241 release-keys-# The same build as examples/sony-bravia-4k-vh21/, and every package on that list is present here.-#-# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sony-bravia-4k-vh22/debloat.txt-# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sony-bravia-4k-vh22/debloat.txt-# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.-#-# Stock launcher: com.google.android.apps.tv.launcherx, kept ENABLED (redirect route, see README.md), so the-# Undo line passes no launcher. Live TV / tuner app: com.sony.dtv.tvx.-# Keep the com.sony.dtv.tvinput.* services, braviasync, tvapi, sonysystemservice, the Sony settings apps,-# systemupdate and all com.mediatek.*: they drive HDMI, the tuner, Bravia Sync, updates and the remote.-# Kept by owner's choice: Google Assistant / voice (katniss, voicesearch, assistantadapter), Chromecast-# (mediashell), AirPlay/HomeKit, BRAVIA Connect phone link (seeds.iot, seeds.auth, remotestart), QuickSet,-# Netflix, Prime Video, Spotify, YouTube, firmware updates.-# Already disabled at the factory: com.sony.dtv.b2b.vendorprotocol, com.sony.dtv.kenhchonloc,-# com.sony.dtv.b2b.softap. Not in this list, so restore.sh leaves them alone.-#-# On Wi-Fi, the saved network belonged to android.uid.system, not setupwraith (cname=android.uid.system:1000),-# but setupwraith's RecoveryActivity still claims HOME, so it and launcherx stay enabled.-# The screensaver ships as com.google.android.apps.tv.dreamx/.service.Backdrop, not Living Fit, so livingfit-# was disabled with no screensaver change.-# Applied in three batches with a screenshot between, synced, then rebooted: nothing came back on.-# Same-day test (one evening, two reboots).-# Batch 1: telemetry and tracking-tv.samba.ssm # Samba TV fingerprints what's on screen-tv.samba.ssm.ui-com.sonyericsson.idd.agent # Sony IDD usage-data agent-com.sony.dtv.usercontext # user context providers-com.qterics.da.product # Qterics device agent-com.sony.dtv.da.service # remote-support session service-com.sony.dtv.sonybugreportsys # Sony bug report service-com.google.android.feedback--# Batch 2: ads, promos, help tiles, demo mode-com.sony.dtv.promos-com.sony.dtv.sonyselect # Sony Select app recommendations-com.sony.dtv.sonytab # Sony content tab / partner rows-com.sony.dtv.smarthelp-com.sony.dtv.helpguidecontents-com.sony.dtv.ecodashboard-com.sony.dtv.customersupport-com.sony.dtv.demosupport-com.sony.dtv.demosystemsupport-com.sony.dtv.multiscreendemo-com.vewd.core.integration.dia # Vewd-com.vewd.core.service--# Batch 3: BRAVIA CAM (no camera), unused apps, text-to-speech-com.sony.dtv.gestureapp-com.sony.dtv.sensingcamera.fwupdate-com.sony.dtv.sensingcamera.settings-com.sony.dtv.distancealert-com.sony.dtv.livingfit-au.com.ninenow.ctv # 9Now-au.net.abc.iview # ABC iview-com.swm.live # 7plus-com.apple.atve.sony.appletv # Apple TV app-com.google.android.videos # Google TV movies (purchases in it become unreachable)-com.google.android.play.games-com.sony.dtv.hbbtvplayer # HbbTV / red button-com.google.android.tts # text-to-speech: TalkBack and read-aloud stop workingdiff --git a/examples/sony-bravia-4k-vh22/tv.json b/examples/sony-bravia-4k-vh22/tv.jsondeleted file mode 100644index dbfa11f3f..000000000--- a/examples/sony-bravia-4k-vh22/tv.json+++ /dev/null@@ -1,6 +0,0 @@-{- "tv": "Sony BRAVIA 4K VH22 (2023, BRAVIA_VH22, MediaTek MT5895), Australia",- "os": "Google TV 12",- "brand": "Sony",- "notes": "Same build as `sony-bravia-4k-vh21/` (same-day test): Samba TV ACR, Sony/Qterics agents, IDD, bug report, Sony promos/Select/tab, help tiles, demo mode, Vewd, BRAVIA CAM suite; 9Now, ABC iview, 7plus, Apple TV, Google TV Movies, Play Games, HbbTV and TTS off by choice; Assistant, Chromecast, AirPlay, BRAVIA Connect, QuickSet and firmware updates kept; redirect route on Wi-Fi (launcherx and setupwraith on, `set-home-activity` prints Success and changes nothing); reboot-checked"-}diff --git a/examples/sony-kd-65x82l/debloat.txt b/examples/sony-kd-65x82l/debloat.txtindex 36b32352b..4c55964fe 100644--- a/examples/sony-kd-65x82l/debloat.txt+++ b/examples/sony-kd-65x82l/debloat.txt@@ -18,6 +18,20 @@# Reboot-checked (tools/check.py: nothing drifted, Home on the launcher; power-on lands on Home); Home, gear,# app buttons, Input, the mic button and volume hold-to-repeat checked on the real remote. Not lived with for# days yet.+# Also Sony BRAVIA 4K VH22 (2023, BRAVIA_VH22, MediaTek MT5895; product code not read), Australia, the same+# BRAVIA_VH22_M_PA build: every package below exists on it. Applied on 2026-11-01 in three batches with a+# screenshot between, without YouTube Music and the seeds.* phone link (kept by choice), without batch 3, and+# with the commented-out Australian-unit lines at the end of batch 2. On Wi-Fi the saved network belonged to+# android.uid.system, not setupwraith, but setupwraith's RecoveryActivity still claims HOME, so launcherx and+# setupwraith both stayed enabled and the launcher took Home by the redirect route (as on the second and third+# examples/sony-bravia-4k-vh21 units): cmd package set-home-activity prints Success and changes nothing on this+# unit, so launcher/build-and-install.sh with STOCK_LAUNCHER=none HOME_KEY_SERVICE=1 (on Windows+# launcher/build-and-install.ps1 -StockLauncher none -HomeKeyService: parameters, not environment variables)+# ends on its Home check before it enables the helper; HomeKeyService was then enabled the way the script's+# enable_service does, with stock_home_redirect com.google.android.apps.tv.launcherx in config.xml. The+# screensaver ships as dreamx's Backdrop, so livingfit went with no screensaver change. Reboot-checked twice:+# nothing came back on, power-on lands on the new Home with the helper bound, and the real remote's Home button+# opens it from inside an app. Same-day test, not lived with for days yet.## Apply: TV_HOST=<tv ip> tools/disable.sh examples/sony-kd-65x82l/debloat.txt# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sony-kd-65x82l/debloat.txt com.google.android.apps.tv.launcherx@@ -75,7 +89,16 @@ com.sony.dtv.ecodashboardcom.sony.dtv.distancealert # BRAVIA CAM (optional accessory) featurescom.sony.dtv.gestureappcom.sony.dtv.sensingcamera.settings-com.sony.dtv.sensingcamera.fwupdate+com.sony.dtv.sensingcamera.fwupdate # BRAVIA CAM firmware checker only; the TV's own updater (systemupdate) stays on+# The Australian VH22 unit disabled these too, by the owner's choice (Australian preloads, support tiles):+# com.sony.dtv.sonybugreportsys # Sony bug report service+# com.sony.dtv.customersupport # customer support tile+# au.com.ninenow.ctv # 9Now+# au.net.abc.iview # ABC iview+# com.swm.live # 7plus+# com.apple.atve.sony.appletv # Apple TV app+# com.sony.dtv.hbbtvplayer # HbbTV / red button+# com.google.android.tts # text-to-speech: TalkBack and read-aloud stop working# Batch 3: Google TV setup wizard, which also claims HOME (RecoveryActivity, priority 1) and would keep# Home away from the new launcher. Check `dumpsys wifi | grep -o 'cname=[^ ]*'` first: a network it ownsdiff --git a/examples/sony-kd-65x82l/tv.json b/examples/sony-kd-65x82l/tv.jsonindex 4a76cb393..96dbaee7f 100644--- a/examples/sony-kd-65x82l/tv.json+++ b/examples/sony-kd-65x82l/tv.json@@ -1,6 +1,6 @@{- "tv": "Sony BRAVIA KD-55X82L / KD-65X82L / XR-65X90L (2023, BRAVIA_VH22, MediaTek), India and US",+ "tv": "Sony BRAVIA KD-55X82L / KD-65X82L / XR-65X90L / BRAVIA 4K VH22 (2023, BRAVIA_VH22, MediaTek), India, US and Australia","os": "Google TV 12","brand": "Sony",- "notes": "Same firmware build as the VH21 list: Samba TV ACR, Sony/Qterics agents, IDD, Sony promos/Select/tab, demo mode; YouTube Music, Play Games, Sony IoT/phone link, help, Living Decor, eco dashboard and BRAVIA CAM extras off by choice; setupwraith off for the launcher (it owned only an unused 2.4 GHz network); gear button is scancode 646; Assistant, Chromecast, AirPlay, Apple TV, firmware updates kept; reboot-checked"+ "notes": "Same firmware build as the VH21 list: Samba TV ACR, Sony/Qterics agents, IDD, Sony promos/Select/tab, demo mode; YouTube Music, Play Games, Sony IoT/phone link, help, Living Decor, eco dashboard and BRAVIA CAM extras off by choice; setupwraith off for the launcher (it owned only an unused 2.4 GHz network); gear button is scancode 646; an Australian unit kept launcherx and setupwraith on and took Home by the redirect route (`set-home-activity` is a no-op there); Assistant, Chromecast, AirPlay, Apple TV, firmware updates kept; reboot-checked"}