Skip to content

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

Add Sony BRAVIA KD-55XE8596 (UK, Android TV 9, BRAVIA_ATV2_EU S52)

Ben Redmond-Benhamaa6f4401f24b
diff --git a/README.md b/README.md
index ab7bed540..843d7aa19 100644
--- a/README.md
+++ b/README.md
@@ -178,6 +178,7 @@ SANYO · Thomson · Toshiba Fire TV · Vu · JMGO, Portronics, Stellamore, Wanbo
| Sony BRAVIA BF1 (BRAVIA 2 II class, BRAVIA_BF1_4K_A, MediaTek) | Google TV 12 |
| Sony BRAVIA KD-55X8509C (2015, "BRAVIA 4K 2015", SVP-DTV15, MediaTek), EU firmware | Android TV 7.0 |
| Sony BRAVIA KD-55X85J (2021, BRAVIA_VH2, MediaTek MT5895), South America | Google TV 12 |
+| Sony BRAVIA KD-55XE8596 (2017, "BRAVIA 4K GB", BRAVIA_ATV2_EU, MediaTek MT5891), UK | Android TV 9 |
| Sony BRAVIA KD-65X80J (2021, BRAVIA_VH2, MediaTek), India | Google TV 10 |
| Sony BRAVIA KD-65X9300D (2016, SVP-DTV15, MediaTek), Asia-Pacific | Android TV 8.0 |
| Sony BRAVIA TL2 (OD0M_EA_T32, TPV-built, MediaTek), Europe | Android TV 11 |
diff --git a/examples/README.md b/examples/README.md
index 646176217..825f961ad 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -52,6 +52,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `sony-bravia-bf1/` | Sony BRAVIA BF1 (BRAVIA 2 II class, BRAVIA_BF1_4K_A, MediaTek) | Google TV 12 | Samba TV, Sony promos/Select, demo mode, preloaded apps; Home switch in steps (setupwraith), ambient screensaver, applicationdisabler re-enables IoT |
| `sony-kd-55x8509c/` | Sony BRAVIA KD-55X8509C (2015, "BRAVIA 4K 2015", SVP-DTV15, MediaTek), EU firmware | Android TV 7.0 | Oldest chip in the Sony lists: Qterics/Sony device agents, Discover/BIVL and the recommendation services, Sony Select/shelf, retail demo, help apps, dead Video Unlimited; the stock launcher is `com.google.android.leanbacklauncher`, not tvlauncher, so pass it to `restore.sh`; `com.sony.dtv.tvx` also plays every HDMI input, keep it; voice and YouView off by choice; 1.5 GB, 1,144 → 991 MB used RAM; list only, the launcher half needs minSdk 24 (see #104) |
| `sony-kd-55x85j/` | Sony BRAVIA KD-55X85J (2021, BRAVIA_VH2, MediaTek MT5895), South America | Google TV 12 | Same build as the VH2 EU list; Samba TV ACR, Sony/Qterics agents, IDD, Sony promos/Select/tab, partner auto-installs, demo mode; Input key works without the service; setupwraith, launcherx and dreamx off after the launcher, ClockDream screensaver; reboot-checked |
+| `sony-kd-55xe8596/` | Sony BRAVIA KD-55XE8596 (2017, "BRAVIA 4K GB", BRAVIA_ATV2_EU, MediaTek MT5891), UK | Android TV 9 | Same product as `sony-bravia-4k-gb/` on the older S52 build: Samba TV ACR, Sony/Qterics agents, Sony Select/promos/Discover, recommendation rows, partner auto-installs, demo mode, hotel/pro-mode b2b packages; Chromecast, mirroring, DLNA, USB media, Assistant and phone remote kept; UK Live TV hands over to YouView, so launch `com.sony.dtv.tvx`; webapi kept for Home Assistant |
| `sony-kd-65x80j/` | Sony BRAVIA KD-65X80J (2021, BRAVIA_VH2, MediaTek), India | Google TV 10 | Samba TV, Sony device agents, Sony Select/tab, hotel-mode services, BRAVIA CAM leftovers; setupwraith off for a custom launcher; 4 GB /data fills up, trim caches before installing |
| `sony-kd-65x9300d/` | Sony BRAVIA KD-65X9300D (2016, SVP-DTV15, MediaTek), Asia-Pacific | Android TV 8.0 | No Samba TV; Sony Select/Discover/BIVL, launcher customizer, Sony/Qterics device agents, SDDP vendorprotocol, tutorials, dead Play Music/Movies; DLNA, USB media, Vewd, Japanese keyboard off by choice; Chromecast, voice, Prime Video, HbbTV kept; 32-bit, 1.5 GB; Inputs lists HDMI 1-4 with CEC names; reboot-checked |
| `sony-bravia-tl2/` | Sony BRAVIA TL2 (OD0M_EA_T32, TPV-built, MediaTek), Europe | Android TV 11 | TPV org.droidtv platform like the Philips 50PUS8517, not the usual Sony one: no Samba TV or Sony agents; retail demo, TPV partner auto-installs, Google feedback/Play Games; Prime Video, Disney+, Red Bull TV and preloaded games off by choice; stock tvlauncher off for the launcher; org.droidtv untouched, e-manual only hidden; Assistant, Chromecast, phone remote, updates kept; USB debugging alone opens 5555; ~1.7 GB; reboot-checked |
diff --git a/examples/sony-kd-55xe8596/debloat.txt b/examples/sony-kd-55xe8596/debloat.txt
new file mode 100644
index 000000000..7bbe37ebd
--- /dev/null
+++ b/examples/sony-kd-55xe8596/debloat.txt
@@ -0,0 +1,93 @@
+# Sony BRAVIA KD-55XE8596 (2017, model string "BRAVIA 4K GB", product BRAVIA_ATV2_EU, MediaTek MT5891), UK
+# Android TV 9 (API 28), firmware Sony/BRAVIA_ATV2_EU/BRAVIA_ATV2:9/PTT1.190515.001.S52/672101:user/release-keys,
+# security patch 2022-01-05 (Sony has stopped updating it). 2 GB RAM, about 8 GB /data.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sony-kd-55xe8596/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sony-kd-55xe8596/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Same product and platform as examples/sony-bravia-4k-gb (that list is firmware S54; this one is the older S52
+# build, on the UK retail model). The package set matches. The difference is in the choices: this owner
+# kept Chromecast, mirroring, DLNA, USB media, the Assistant and the phone remote, and also disabled the
+# hotel/pro-mode b2b packages, the old leanback launcher and the print spooler.
+# Applied 2026-10-19 (most of the list) and 2026-10-20 (Samba TV, agents, feeds). Not lived with for days
+# yet, and not yet checked across a reboot. Checked after every batch: Home, Netflix, Jellyfin, live TV
+# and the HDMI inputs all still work, and there are no new crashes. Re-enable anything that breaks with `pm enable <package>`.
+#
+# Stock launcher: com.google.android.tvlauncher (restore.sh's default). Its HOME filter has priority 2,
+# so `cmd package set-home-activity` reports Success but does nothing until it is disabled.
+# com.google.android.leanbacklauncher is also installed, but it has no HOME activity here.
+# Live TV / input app: com.sony.dtv.tvx. Keep it: it plays every HDMI input too. On this UK firmware Live
+# TV hands over to YouView (com.sony.dtv.youview + com.sony.dtv.youview.servicehost, Freeview Play),
+# which has no leanback entry of its own: launch com.sony.dtv.tvx, not youview. Keep both, and keep
+# com.vewd.core.integration.dia (HbbTV / red button). Hide only its "Internet Browser" tile.
+# Keep: com.sony.dtv.tvinput.*, braviasync* (HDMI-CEC), remotepairing, rcpowerkey, uinputservice,
+# imeproxy, sonysystemservice, settingsprovider, all com.mediatek.* and mtktvapi.agent, timers,
+# webapi.core and remoteaccess (Sony IP control, used by Home Assistant's Bravia TV integration).
+#
+# Notes from this firmware:
+# - The launcher works: built from launcher/, installed with `adb install`, and Home switched by hand. Inputs
+# lists HDMI 2, HDMI 3/ARC, HDMI 4 and Live TV, with the input labels set in Sony's settings and the CEC
+# device name in place of the port name, and real per-port "Connected" / "No device" status. config.xml:
+# live_tv_package com.sony.dtv.tvx; put com.sony.dtv.tvx in dock_apps if you want a TV tile.
+# - /data was down to 1.5 GB free, nearly all of it app caches. `pm trim-caches 8G` took it to 2.8 GB, so
+# run it before installing anything.
+# - The `uiautomator dump` of a launcher with an animated wallpaper never finishes, so use screencaps there.
+
+# ACR viewing tracker
+tv.samba.ssm # Samba TV fingerprints what's on screen
+
+# Sony and Google content, ads and promos
+com.sony.dtv.sonyselect # Sony Select app store/promo tile
+com.sony.dtv.sonyselect.overlay
+com.sony.dtv.promos # My BRAVIA promos
+com.sony.dtv.discovery # Sony Discover content bar
+com.sony.dtv.bivlinfo # BIVL content service list (feeds Discover)
+com.sony.dtv.tvlaunchercustomizer # Sony tweaks to the stock home rows
+com.google.android.tvrecommendations # recommendation rows for the stock launcher; other
+ # launchers' Watch Next and channel rows still fill
+android.autoinstalls.config.sony.bravia # Play auto-install of partner apps
+
+# Retail demo
+com.sony.dtv.demomode
+com.sony.dtv.demosupport
+com.sony.dtv.multiscreendemo
+
+# Telemetry, remote support and feedback
+com.sony.dtv.da.service # Sony device agent / remote support
+com.qterics.da.product # Qterics device agent
+com.sony.dtv.sonybugreportsys
+com.google.android.tv.bugreportsender
+com.google.android.feedback
+com.sony.dtv.b2b.vendorprotocol # Node.js SDDP broadcaster for Control4-style home automation;
+ # re-enable if you use one
+
+# Hotel / professional mode (unused in a home; the sony-bravia-4k-gb list leaves these alone)
+com.sony.dtv.b2b.hotelmode
+com.sony.dtv.b2b.prosettings
+com.sony.dtv.b2b.importexport
+com.sony.dtv.b2b.rs232csupport # RS-232C control; re-enable if something drives the TV over serial
+
+# Preloaded apps and leftovers
+com.sony.dtv.customersupport # Help tile
+com.sony.dtv.imanual # i-Manual
+com.google.android.videos # Play Movies
+com.google.android.play.games
+com.google.android.leanbacklauncher # old Android TV launcher, no HOME activity on this build
+com.android.printspooler # printing, nothing to print to
+
+# Left enabled on purpose: features, not bloat. Uncomment any line to disable it too.
+# com.sony.dtv.smarthelp # Help
+# com.sony.dtv.smarthomesettings # "Works with Alexa" setup (Amazon login, runs at boot)
+# com.google.android.youtube.tvmusic # YouTube Music
+# com.google.android.backdrop # ambient screensaver
+# com.google.android.apps.mediashell # Chromecast built-in
+# com.google.android.katniss # Google Assistant / voice search
+# com.google.android.tv.remote.service # Android TV phone-app remote (and Home Assistant's Android TV Remote)
+# com.sony.dtv.smartmediaapp # Media Player, plays files from USB
+# com.sony.dtv.osat.music # plays music from USB
+# screnmirroring.com # Screen mirroring (Miracast)
+# com.sony.dtv.networkapp.wifidirect
+# com.sony.huey.dlna.module # DLNA renderer
+# com.sony.huey.dlna.renderersettings
+# com.sonyericsson.dlna