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 BRAVIA KD-55XF7596 (BRAVIA_ATV3_4K_EU, Android TV 9)
Jaimee19b399ce51c
diff --git a/README.md b/README.mdindex 8b6bd4dca..c5848bde5 100644--- a/README.md+++ b/README.md@@ -186,6 +186,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| 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-55XF7596 (2018, "BRAVIA 4K GB ATV3", BRAVIA_ATV3_4K_EU, MediaTek MT5891), EU | 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.mdindex 88e0942b6..f043a641e 100644--- a/examples/README.md+++ b/examples/README.md@@ -89,6 +89,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `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 Android 8 (minSdk 26, see #146) || `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-55xf7596/` | Sony BRAVIA KD-55XF7596 (2018, "BRAVIA 4K GB ATV3", BRAVIA_ATV3_4K_EU, MediaTek MT5891), EU | Android TV 9 | Same build as the X900F (ATV3) plus the XE8596 leftovers: Samba TV ACR, Sony/Qterics agents, Sony Select/promos/Discover, launcher customizer, recommendation rows, partner auto-installs, demo mode, hotel/pro-mode b2b; Assistant, USB players, dead Play Music off by choice; Chromecast, mirroring, DLNA, phone remote, Prime Video, firmware updates, Sony IP control and vendorprotocol kept; smarthomesettings is a TV_INPUT_HARDWARE false positive; launcher works; reboot-checked || `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-55xf7596/README.md b/examples/sony-kd-55xf7596/README.mdnew file mode 100644index 000000000..9e7f369a5--- /dev/null+++ b/examples/sony-kd-55xf7596/README.md@@ -0,0 +1,48 @@+# Sony BRAVIA KD-55XF7596 (Android TV 9)++**Model:** Sony KD-55XF7596 (2018, X75F series), EU firmware+**Platform:** `BRAVIA_ATV3_4K_EU` / device `BRAVIA_ATV3_4K`, MediaTek mt5891 (`ro.build.product` still says `BRAVIA_ATV2`)+**OS:** Android TV 9 (SDK 28), build `PTT1.190515.001.S54 672201`, security patch 2022-01-05+**RAM / storage:** 2 GB, 8.1 GB `/data`++Same firmware build as [`sony-xbr-65x900f/`](../sony-xbr-65x900f/debloat.txt), so this list is that one plus the+leftovers [`sony-kd-55xe8596/`](../sony-kd-55xe8596/debloat.txt) disables, with this owner's choices.++## What was tested++- The 38 packages in [`debloat.txt`](debloat.txt), applied with `tools/disable.sh` in six blocks (Samba TV+ and promos, demo, telemetry, help, optional features, hotel mode and leftovers). After each block: Home+ screenshot, Netflix, HDMI 1 and the DVB-T input, and the crash log. No crashes.+- Rebooted afterwards: all 38 still disabled, nothing re-enabled by the firmware. Free RAM after boot+ went from about 200 MB to about 500 MB.+- Launcher built from `launcher/` and installed with `launcher/build-and-install.sh`. Home confirmed+ with `dumpsys window | grep mFocusedApp` before and after a reboot. Netflix, YouTube, Input, Settings+ and Home work on the real remote without the accessibility services. Inputs pill switches HDMI 1.+- No antenna was connected: for DVB-T only the tuner service answering was checked, not reception.++## Kept on purpose++Chromecast, screen mirroring, DLNA, the phone remote, Sony IP control (`webapi.core`, `remoteaccess`) and+`com.sony.dtv.b2b.vendorprotocol` for home automation, Prime Video and Sony firmware updates. Left alone as+untested: YouView (`com.sony.dtv.youview`, `com.youview.tv.servicehost`), `interactivetvutil`,+`b2b.noderuntime.*`, Vewd/HbbTV, `dialservice`.++## Notes from this firmware++- Android 9 has no `topResumedActivity`. Check what is on screen with+ `dumpsys activity activities | grep mResumedActivity`; `mFocusedApp` is in `dumpsys window`.+- HDMI 1 is `com.sony.dtv.tvinput.external/.ExternalTvInputService/HW2`, DVB-T is+ `com.sony.dtv.tvinput.tuner/.DvbTerrCableInputService/HW0`. The active input shows in+ `dumpsys tv_input | sed -n '/sessionStateMap/,$p' | grep inputId`.+- Screenshots of Netflix, HDMI and Live TV come back empty (0 bytes).+- `disable.sh` skips `com.sony.dtv.smarthomesettings`: it asks for `TV_INPUT_HARDWARE`. It is a false+ positive here (`pm query-services -a android.media.tv.TvInputService` does not list it), and the package+ already shipped disabled on this set.+- With `katniss` and `backdrop` off, `voice_interaction_service` and `screensaver_components` still name+ them. Android ignores disabled components, and leaving the settings means `restore.sh` brings both back.+- The stock `tvlauncher` HOME filter has priority 2: `set-home-activity` only takes effect once it is+ disabled, which `build-and-install.sh` does in the right order.+- No display overrides: 1920x1080, density 320, `display_density_forced` null, before and after.++config.xml used: `hidden_apps` `com.sony.dtv.tvx` and `com.sony.dtv.tvxlauncher.programguide`,+`live_tv_package` `com.sony.dtv.tvx`.diff --git a/examples/sony-kd-55xf7596/debloat.txt b/examples/sony-kd-55xf7596/debloat.txtnew file mode 100644index 000000000..8acbe04ba--- /dev/null+++ b/examples/sony-kd-55xf7596/debloat.txt@@ -0,0 +1,107 @@+# Sony BRAVIA KD-55XF7596 (2018, X75F series, model string "BRAVIA 4K GB ATV3", MediaTek mt5891), EU firmware+# Product BRAVIA_ATV3_4K_EU, device BRAVIA_ATV3_4K (ro.build.product still says BRAVIA_ATV2). Android TV 9 (API 28).+# Firmware Sony/BRAVIA_ATV3_4K_EU/BRAVIA_ATV3_4K:9/PTT1.190515.001.S54/672201:user/release-keys,+# security patch 2022-01-05. 2 GB RAM (about 200 MB available with the stock UI), 8.1 GB /data, 3.4 GB free.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sony-kd-55xf7596/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sony-kd-55xf7596/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Same firmware build (S54 672201) and platform as examples/sony-xbr-65x900f, so this is that list plus+# the leftovers examples/sony-kd-55xe8596 disables, with this owner's feature choices.+# Stock launcher: com.google.android.tvlauncher (restore.sh's default), HOME priority 2; the only other HOME+# answer is com.android.tv.settings/com.sony.dtv.settings.system.FallbackHome. leanbacklauncher has no HOME.+# Live TV / input app: com.sony.dtv.tvx. Keep it: it plays every HDMI input and the DVB tuner.+# 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, Home Assistant), Play Store, Play Services, Gboard.+# Also left alone, untested: com.sony.dtv.youview + com.youview.tv.servicehost (ship on the EU firmware+# and hook into tvx), interactivetvutil, b2b.noderuntime.*, vewd/hbbtv, dialservice, servicemode.+# Already off on this TV before the list: com.sony.dtv.promos, com.sony.dtv.smarthomesettings+# (both listed below; restore leaves them disabled because the recovery record saw them that way).+# Display: Physical size 1920x1080, Physical density 320, no overrides, display_density_forced null.+#+# Applied 2026-10-21 in six batches (the sections below), checking Home, Netflix, HDMI 1 and the DVB-T input+# after each one, then rebooted: all 38 still disabled, nothing re-enabled by the firmware, no crashes,+# display values unchanged, MemAvailable up from about 200 MB to about 500 MB after boot.+# Notes from this firmware:+# - Android 9 has no topResumedActivity line: check apps and inputs with+# `dumpsys activity activities | grep mResumedActivity`, and the input with+# `dumpsys tv_input | sed -n '/sessionStateMap/,$p' | grep inputId` (HDMI 1 = ExternalTvInputService/HW2).+# Netflix screencaps come back empty too, like HDMI and Live TV.+# - disable.sh skips com.sony.dtv.smarthomesettings: it asks for TV_INPUT_HARDWARE. It was already off from+# the factory/owner and `pm query-services -a android.media.tv.TvInputService` does not list it, so it is a+# false positive here; no TVINPUT_ALLOW needed while it stays off.+# - Launcher works: built from launcher/ and installed with build-and-install.sh, which disables tvlauncher+# (HOME priority 2) before set-home-activity. Home confirmed with `dumpsys window | grep mFocusedApp`+# (on Android 9 it is in dumpsys window, not dumpsys activity) before and after a reboot; Netflix,+# YouTube, Input, Settings and Home on the real remote all work without the accessibility services.+# config.xml: hidden_apps com.sony.dtv.tvx and com.sony.dtv.tvxlauncher.programguide,+# live_tv_package com.sony.dtv.tvx. The UI stays at 1920x1080 / 320 dpi, no zoom.+# - With katniss and backdrop off, voice_interaction_service and screensaver_components still name them;+# Android ignores disabled components, and leaving them means restore.sh brings both back untouched.++# ACR viewing tracker+tv.samba.ssm # Samba TV fingerprints what's on screen++# Sony and Google content, ads and promos+com.sony.dtv.promos # My BRAVIA promos (already off)+com.sony.dtv.sonyselect # Sony Select app store/promo tile+com.sony.dtv.sonyselect.overlay+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.sony.dtv.tvlaunchercustomizer.overlay.apporder # app order overlay for the stock home+com.google.android.tvrecommendations # recommendation rows for the stock launcher+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++# Preloaded help apps+com.sony.dtv.customersupport # Help tile+com.sony.dtv.smarthelp+com.sony.dtv.imanual # i-Manual++# Off by choice on this TV: features the owner doesn't use. Comment out any you want.+com.google.android.katniss # Google Assistant / voice search (mic button)+com.google.android.speech.pumpkin # offline voice-command parser for the Assistant+com.sony.dtv.smartmediaapp # Media Player, plays files from USB+com.sony.dtv.osat.music # Music, plays music from USB+com.sony.dtv.smarthomesettings # "Works with Alexa" setup (already off)+com.google.android.inputmethod.japanese # Japanese keyboard (Gboard stays the default)+com.google.android.youtube.tvmusic # YouTube Music+com.google.android.backdrop # ambient screensaver+com.google.android.videos # Play Movies+com.google.android.play.games+com.google.android.music # Google Play Music, shut down in 2020; FCM push, runs at boot++# Hotel / professional mode and leftovers (as in examples/sony-kd-55xe8596)+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+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.google.android.apps.mediashell # Chromecast built-in+# 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+# com.google.android.tv.remote.service # Android TV phone-app remote (and Home Assistant's Android TV Remote)+# com.sony.dtv.b2b.vendorprotocol # Node.js SDDP broadcaster for Control4-style automation (owner uses home automation)+# com.amazon.amazonvideo.livingroom # Prime Video+# com.sony.dtv.systemupdate # Sony firmware updates+# com.google.android.partnersetup # RLZ partner pings; untested on these Sony lists