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: Hisense HiSmart 2K ATV4 (hamamatsucho), with a one-press Set-top box tile
Samarth Jaiswal0678cdcf637a
diff --git a/examples/hisense-hismart-2k-atv4-hamamatsucho/README.md b/examples/hisense-hismart-2k-atv4-hamamatsucho/README.mdnew file mode 100644index 000000000..5e380501f--- /dev/null+++ b/examples/hisense-hismart-2k-atv4-hamamatsucho/README.md@@ -0,0 +1,55 @@+# Hisense HiSmart 2K ATV4 (hamamatsucho), Android TV 11, India++| Field | Value |+|---|---|+| `ro.product.model` / device | `HiSmart 2K ATV4` / `hamamatsucho` (CVTE board) |+| Android / SDK | Android TV 11 / 30 |+| Firmware | `RTO6.250817.001` |+| RAM | 924 MB |+| Live TV app / stock launcher | `com.mediatek.wwtv.tvcenter` / `com.google.android.tvlauncher` |++Same device and firmware as [`docs/devices/hisense-hismart-2k-atv4-hamamatsucho.md`](../../docs/devices/hisense-hismart-2k-atv4-hamamatsucho.md),+which has the Home handover notes. Status and what was checked are in the header of `debloat.txt`.++- `debloat.txt`: telemetry (the ACR tracker), recommendation rows, CVTE partner storefronts, retail demo and+ a few preloads. Streaming apps and Google Assistant are commented out: uncomment the ones you don't use.+- `config.json`: the **Set-top box tile** below, plus the Live TV app for the Inputs menu.++```bash+TV_HOST=<tv ip> tools/disable.sh examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txt+TV_HOST=<tv ip> launcher/build-and-install.sh+TV_HOST=<tv ip> tools/theme.sh examples/hisense-hismart-2k-atv4-hamamatsucho+```++## The Set-top box tile: one press for older parents++*Idea by Samarth Jaiswal.* In India most TVs are watched through a cable or DTH set-top box (Airtel, Tata Play,+Jio and others) on an HDMI port. For many older people the hard part is getting there: switch on, find the+Input button, pick the right HDMI from a list. The same happens with older viewers everywhere a TV sits behind+a box.++`config.json` puts a large **Set-top box** tile first in the dock. Home opens with it already focused, so the+whole routine is: switch on the TV, press **OK**. The tile switches straight to the HDMI port through the TV+input framework, with no menu in between; **Home** brings the apps back.++++It uses keys the launcher already has, so it needs no rebuild:++| Key | Value | What it does |+|---|---|---|+| `dock_apps` | `com.mediatek.wwtv.tvcenter` first | the TV app becomes the first tile |+| `launch_actions` | `com.mediatek.wwtv.tvcenter=input:com.mediatek.tvinput/.hdmi.HDMIInputService/HW6` | the tile tunes HDMI 2 instead of opening Live TV |+| `app_labels` | `com.mediatek.wwtv.tvcenter=Set-top box` | the name under the tile and above the dock |+| `app_banners` | `com.mediatek.wwtv.tvcenter=banner_tv` | the bundled Live TV artwork |+| `hidden_apps` | `[]` | the TV app is hidden by default; this shows it |++**Your box on another port:** `HW6` is HDMI 2 on this set and `HW5` is HDMI 1. Check yours with+`tools/tv.py 'dumpsys tv_input'` (`hdmi_port=N` next to `id=` under `TvInputHardwareInfo`), change the number,+and push the folder again with `tools/theme.sh`. On other TVs the input service has another name; the+`input:` form is described at `launch_actions` in `launcher/app/src/main/res/values/config.xml`.++Checked on this set on 2026-10-30, pushed with `tools/theme.sh`: the tile sent+`content://android.media.tv/passthrough/com.mediatek.tvinput/.hdmi.HDMIInputService/HW6`, the TV tuned+`HDMI20000B` (HDMI 2, CEC physical address 2.0.0.0, where the set-top box answers), and Home came back with the+Home key. The Inputs pill still lists HDMI 1, HDMI 2 and Live TV as before. `tools/theme.sh --reset` removes it.diff --git a/examples/hisense-hismart-2k-atv4-hamamatsucho/config.json b/examples/hisense-hismart-2k-atv4-hamamatsucho/config.jsonnew file mode 100644index 000000000..7acad146a--- /dev/null+++ b/examples/hisense-hismart-2k-atv4-hamamatsucho/config.json@@ -0,0 +1,19 @@+{+ "live_tv_package": "com.mediatek.wwtv.tvcenter",+ "hidden_apps": [],+ "dock_apps": [+ "com.mediatek.wwtv.tvcenter",+ "com.google.android.youtube.tv",+ "com.netflix.ninja",+ "com.amazon.amazonvideo.livingroom"+ ],+ "launch_actions": [+ "com.mediatek.wwtv.tvcenter=input:com.mediatek.tvinput/.hdmi.HDMIInputService/HW6"+ ],+ "app_labels": [+ "com.mediatek.wwtv.tvcenter=Set-top box"+ ],+ "app_banners": [+ "com.mediatek.wwtv.tvcenter=banner_tv"+ ]+}diff --git a/examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txt b/examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txtnew file mode 100644index 000000000..ac8311136--- /dev/null+++ b/examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txt@@ -0,0 +1,63 @@+# Hisense HiSmart 2K ATV4 (ro.product.model "HiSmart 2K ATV4", device hamamatsucho, CVTE board), India.+# Android TV 11 (SDK 30), firmware RTO6.250817.001, 924 MB RAM, ro.adb.secure=1. Same device and firmware as+# docs/devices/hisense-hismart-2k-atv4-hamamatsucho.md; the Android 9 sibling on this board is+# examples/vu-premium-fhd-43-hamamatsucho/.+# Live TV app: com.mediatek.wwtv.tvcenter. Stock launcher: com.google.android.tvlauncher (not in this list:+# launcher/build-and-install.sh disables it after the new launcher is Home). setupwraith does not claim HOME+# on this firmware and the saved Wi-Fi belongs to android.uid.system, so it is left alone.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/hisense-hismart-2k-atv4-hamamatsucho/debloat.txt com.google.android.tvlauncher+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Status: applied 2026-10-30 in five batches with a screenshot after each, then two cold reboots (one before and+# one after the launcher handover). Normal boot (~35 s) every time, nothing re-enabled at boot. Working: Home, the+# Input key's own panel (DTV, ATV, HDMI 1, HDMI 2), all seven TvInputService providers, HDMI-CEC with a Sony+# soundbar on ARC and a set-top box on HDMI 2, YouTube. One session so far, not yet lived with for days; the+# physical remote's app buttons and held volume were not tested.+#+# Note: with com.google.android.leanbacklauncher.partnercustomizer off, the stock launcher loses its Inputs,+# Wi-Fi and notification icons in its top bar. The Input key and Settings > Inputs still work, and the new+# launcher has its own Inputs pill, so this only matters if you keep the stock Home.+# Note: after a reboot the TV can ask the ARC soundbar for System Audio Mode before the soundbar is awake, give+# up, and play through its own speakers (mSystemAudioActivated: false in dumpsys hdmi_control). Settings > Device+# Preferences > Sound > ARC off, then on, brings the sound back to the soundbar. Not caused by this list.+# At boot com.at.factory.factorymanager shows for about a second by itself; that is the firmware. Keep the+# com.at.factory.*, com.cvte.*fac*, mediatek.factorymenu.ui and com.hisensefac.daemon packages, and never open them.+#+# Keep: com.mediatek.* (Live TV, inputs, TV service), com.cvte.autobacklight, com.airoha.android.btd (Bluetooth+# audio), com.google.android.tv.remote.service, Chromecast (com.google.android.apps.mediashell), Play Store and+# Play services, Gboard.+# Already disabled when the set arrived (owner history, not in this list): TalkBack, com.cltv.fast.++# Group 1: telemetry+tv.anoki.acr.controller # ACR viewing-habits tracker (priv-app, boot receiver)+com.google.android.feedback # Google feedback / crash reports++# Group 2: ads, recommendation rows, partner storefronts, retail demo+com.google.android.tvrecommendations # recommendation rows of the stock launcher+com.google.android.leanbacklauncher.partnercustomizer # partner promo rows (see the note above)+android.autoinstalls.config.hisense.laoshan # silent partner-app auto-install configuration+com.cvte.startpartnertv # CVTE partner showcase app+com.cvte.startpartnertvvod # CVTE partner VOD storefront+fusion.android.tv.demo # retail / store demo mode+com.mstar.android.tv.disclaimercustomization # store disclaimer screen++# Group 3: background services+com.android.printspooler # printing framework++# Group 4: preloaded apps, off by the owner's choice: comment out any you use+com.google.android.videos # Google Play Movies & TV (also a TvInputService for previews)+com.google.android.youtube.tvmusic # YouTube Music+com.google.android.play.games # Google Play Games+com.google.android.backdrop # Ambient screensaver (the launcher has a clock screensaver)++# Optional, off on the tested set by the owner's choice; uncomment what you don't use.+# com.google.android.katniss # Google Assistant: the remote's mic button stops working+# com.sonyliv # Sony LIV+# com.viacom18.tv.voot # JioCinema+# com.graymatrix.did # ZEE5 (also a TvInputService for its own channels)+# com.jio.media.stb.ondemand # Jio On Demand+# com.balaji.alt # ALTT+# com.eros.now # Eros Now+# com.hungama.movies.tv # Hungamadiff --git a/examples/hisense-hismart-2k-atv4-hamamatsucho/set-top-box-tile.jpg b/examples/hisense-hismart-2k-atv4-hamamatsucho/set-top-box-tile.jpgnew file mode 100644index 000000000..d5c19f0e5Binary files /dev/null and b/examples/hisense-hismart-2k-atv4-hamamatsucho/set-top-box-tile.jpg differdiff --git a/examples/hisense-hismart-2k-atv4-hamamatsucho/tv.json b/examples/hisense-hismart-2k-atv4-hamamatsucho/tv.jsonnew file mode 100644index 000000000..1d07c8f68--- /dev/null+++ b/examples/hisense-hismart-2k-atv4-hamamatsucho/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Hisense HiSmart 2K ATV4 (hamamatsucho), India",+ "os": "Android TV 11",+ "brand": "Hisense",+ "notes": "ACR tracker, recommendation rows, CVTE partner apps, retail demo; optional one-press Set-top box tile: [notes](hisense-hismart-2k-atv4-hamamatsucho/README.md)"+}