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
Merge PR #1179: Haier MatrixTV GE (HR9216EU): example, launcher handover notes, gear-button scancode
Gathin23f60ff80b0b94
diff --cc examples/README.mdindex 2e5c2e37f,b09eeb1a1..ea72a5dde--- a/examples/README.md+++ b/examples/README.md@@@ -45,7 -44,8 +45,8 @@@ on that firmware, grouped and commented| `grundig-kunyang/` | Grundig Android UHD TV (Arçelik, GxGrNM, kunyang, MediaTek), Turkey | Android TV 14 | First Arçelik list: Grundig Channel (Hoppr ad tiles), HotelService, TV Care Hub, partner auto-installs, Privacy Sandbox, Google feedback; Assistant, AirScreen/AirCast, Kids, Play Movies/Games off by choice, Chromecast kept; `fusion.android.tv.demo` handles the Input key, keep it; setupwraith claims no HOME; launcher works, every remote button works with no key service; AdGuard DNS validates; 1.8 GB, +290 MB available; reboot-checked || `haier-android-tv-dvb2k/` | Haier Android TV DVB2K (broadway, HaierATVT56DVB) | Android TV 11 | Anoki ACR, retail demo, Haier content apps and auto-install; 1 GB, 720p; setupwraith left enabled || `haier-h32s80efx/` | Haier H32S80EFX (MatrixTV CE, HRT56EU, deto, MediaTek), Thailand | Google TV 14 | Haier hOn IoT and smart-device services, Haier tab and Kinopoisk promo, retail demo, cleaner; YouTube Music and Google TV app off by choice; setupwraith must go (RecoveryActivity component refused); Live TV must target the digital tuner, TrueID also claims channel intents |- | `hisense-65d62qh/` | Hisense 65D62QH (VIDAA_TV, MediaTek MT9653), China | Android TV 11 | China JuUI 9.0.10.845, same build as `vidda-mt9653/`: ad SDK/service, home operator rows and weather feed, telemetry, push channel, retail/hotel/demo and preloaded content, the 拍信创意 screensaver, and the AOSP leftovers this build leaves enabled; debloat only, stock Home `com.jamdeo.tv.vod` and Live TV kept, OTA kept; 26 packages; a USB HID freeze seen once with a second accessibility service enabled, fine after a rebuild — see [the device notes](../docs/devices/hisense-65d62qh.md) |-| `haier-hr9216eu/` | Haier MatrixTV GE (HR9216EU, haeundae, MediaTek), EU | Google TV 14 | Haier IoT and content apps, Zeasn launcher, cleaner, e-manual, Anoki ACR opt-in, partner rows, retail demo; YouTube Music and Ambient off by choice; Netflix re-enabled from factory-disabled and docked; setupwraith owns the saved Wi-Fi until forget and re-join, then goes with launcherx; the firmware re-enables oemtabprovider and the Zeasn launcher at every boot; the gear button is KEY_UNKNOWN scancode 240 (config.xml), HOME_KEY_SERVICE trades the volume ramp; wireless debugging can switch itself off at boot; config.json has the dock |++| `haier-hr9216eu/` | Haier MatrixTV GE (HR9216EU, haeundae, MediaTek), EU | Google TV 14 | Haier IoT and content apps, Zeasn launcher, cleaner, e-manual, Anoki ACR opt-in, partner rows, retail demo; YouTube Music and Ambient off by choice; Netflix re-enabled from factory-disabled and docked; setupwraith owns the saved Wi-Fi until forget and re-join, then goes with launcherx; the firmware re-enables oemtabprovider and the Zeasn launcher at every boot; the gear button is KEY_UNKNOWN scancode 240 (add it to config.xml locally), HOME_KEY_SERVICE trades the volume ramp; wireless debugging can switch itself off at boot; config.json has the dock |+ | `hisense-65d62qh/` | Hisense 65D62QH (VIDAA_TV, MediaTek MT9653), China | Android TV 11 | China JuUI 9.0.10.845, same build as `vidda-mt9653/`: ad SDK/service, home operator rows and weather feed, telemetry, push channel, retail/hotel/demo and preloaded content, the 拍信创意 screensaver, and the AOSP leftovers this build leaves enabled; debloat only, stock Home `com.jamdeo.tv.vod` and Live TV kept, OTA kept; 26 packages; a USB HID freeze seen once with a second accessibility service enabled, fine after a rebuild — see `docs/devices/hisense-65d62qh.md` || `hisense-e5q-pro/` | Hisense E5Q Pro (VIDAA_TV, MediaTek MT9653), China | Android TV 11 | China VIDAA firmware, the conservative subset of `vidda-mt9653/` (same build): ad SDK/service, push, telemetry, store/hotel/demo and preloaded content; stock launcher `com.jamdeo.tv.vod` and Live TV `com.jamdeo.tv.livetv` kept, OTA kept; 18 packages || `hisense-fire-tv-aftcibfbd1/` | Hisense Fire TV (AFTCIBFBD1, coyote, MediaTek), US | Fire OS 8.0 / Android 11 | First Fire OS 8 TV: Amazon ACR, ad/recommendation feeders, advertising ID, Shopping, demo, tutorials, telemetry; Alexa, AirPlay, Miracast and preloads (Tubi, Music/Photos, miniTV, Naatyam, games, Ambient) off by choice; Alexa voice (vizzini) is re-enabled at every boot and nothing adb can do sticks; two protected packages noted; HDMI input switching is Amazon-only (TUNE_INPUT is signature-level); AdGuard Private DNS works; Kids, OTA, Live TV, Silk kept; debloat only, see the 2023 stick list for more packages || `hisense-hg9/` | Hisense HG9 (HiSmart 4K A4FFM) | Android TV 9 | ACR collector, Smartsense, log reporter, store mode, B2B; FLauncher used instead of stock |diff --cc examples/haier-hr9216eu/README.mdindex 000000000,e6e69aa3d..4e0c1ece8mode 000000,100644..100644--- a/examples/haier-hr9216eu/README.md+++ b/examples/haier-hr9216eu/README.md@@@ -1,0 -1,65 +1,65 @@@+ # Haier MatrixTV GE / HR9216EU (Google TV 14, haeundae)++ EU set, firmware `UKN6.260116.152` (MediaTek, CVTE-family board), 1080p panel with the UI rendered at+ 1280x720 (`wm size` override is the factory default here). Both halves work on this set: the debloat+ list and the Clean Your TV launcher as Home. Tested on 23 October 2026 on one set, including two+ reboots, with the real remote.++ | File | What it is |+ |---|---|+ | `debloat.txt` | The 14 packages that were disabled, grouped and commented |+ | `config.json` | Dock order (YouTube, Netflix) and 4 columns; push it with `tools/theme.sh` |++ All commands run from the repo root, with the TV's IP in `TV_HOST`. Network ADB must be on while you+ run them (Settings → Device Preferences → About → Build x7 → Developer options). Port 5555 opens with+ `adb tcpip 5555` but does not survive a reboot; Wireless debugging does and re-advertises on mDNS.++ ## Install, from scratch or again++ The order matters: the Wi-Fi note in `debloat.txt` first (forget + re-join the saved network so it no+ longer belongs to setupwraith), then the list while the stock home still owns Home, then the launcher.++ ```bash+ TV_HOST=<tv-ip> tools/disable.sh examples/haier-hr9216eu/debloat.txt+ HOME_KEY_SERVICE=1 TV_HOST=<tv-ip> launcher/build-and-install.sh+ TV_HOST=<tv-ip> tools/theme.sh examples/haier-hr9216eu+ ```++ `HOME_KEY_SERVICE=1` is the owner's choice: it maps the remote's gear button (KEY_UNKNOWN, scancode-240 - already in `launcher/.../values/config.xml`, the only place scancodes can go) to the TV's++240; add it to settings_key_scancodes in `launcher/app/src/main/res/values/config.xml` before building, the only place scancodes can go) to the TV's+ Settings. The price is the volume ramp: while that key-filtering service is bound, volume moves one+ step per press instead of ramping (same trade as+ [docs/devices/tcl-55p71b-g09-key-repeat.md](../../docs/devices/tcl-55p71b-g09-key-repeat.md), third+ set it was seen on, first on Google TV 14). Skip the flag to keep the ramp; the gear button then does+ nothing and Settings opens from the launcher's top-bar pill.++ ## Undo everything++ ```bash+ TV_HOST=<tv-ip> tools/restore.sh examples/haier-hr9216eu/debloat.txt com.google.android.apps.tv.launcherx+ ```++ The launcher stays installed but is no longer Home. Never re-enable just+ `com.google.android.tungsten.setupwraith` on its own while the new launcher is Home; `restore.sh`+ brings Google TV's home back first.++ ## Re-enable one app++ ```bash+ TV_HOST=<tv-ip> tools/venv/bin/python -I tools/tv.py 'pm enable com.google.android.youtube.tvmusic'+ ```++ Comment its line out in `debloat.txt` so the next run leaves it alone. Without a computer: Settings →+ Apps → See all app → pick the app → Enable.++ ## Quirks on this firmware, all checked on the TV++ - Two of the disabled packages, `com.haier.oemtabprovider` and `com.haier.launcher.haiermatrix`, come+ back enabled at every boot. Both are inert once launcherx is disabled; re-disable after a boot or+ leave them.+ - Netflix, Prime, Hotstar, iQiyi, Tencent, WBD and TrueID shipped disabled from the factory. Netflix+ was re-enabled (`pm enable com.netflix.ninja`) and pinned to the dock.+ - With the stock home disabled, the remote's Netflix / YouTube / Input / Live TV / voice buttons keep+ working through Haier's own global-key services; only the gear button needed the launcher's helper.+ - HDMI and Live TV screenshots come out black (protected video layer); `topResumedActivity` shows+ what is really playing.diff --cc examples/haier-hr9216eu/debloat.txtindex 000000000,a7ec9658e..703074633mode 000000,100644..100644--- a/examples/haier-hr9216eu/debloat.txt+++ b/examples/haier-hr9216eu/debloat.txt@@@ -1,0 -1,74 +1,74 @@@+ # Haier MatrixTV GE (ro.product.model "Haier MatrixTV GE", product HR9216EU, device haeundae),+ # Google TV 14 (API 34), firmware UKN6.260116.152, MediaTek (CVTE-family board: com.cvte.tv.at,+ # com.cvte.autobacklight present), 1920x1080 panel, UI rendered at 1280x720 (wm size override), 213 dpi.+ # Tested on 23 October 2026 on one set, including two reboots.+ #+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/haier-hr9216eu/debloat.txt+ # Undo: TV_HOST=<tv ip> tools/restore.sh examples/haier-hr9216eu/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 (.home.HomeActivity).+ # Live TV: com.mediatek.wwtv.tvcenter (.nav.TurnkeyUiMainActivity).+ # Already disabled from the factory on the test set: com.mediatek.wwtv.tvcenter.plus, com.wbd.stream,+ # in.startv.hotstar.dplus.tv, com.iqiyi.i18n.tv, com.truedmp.idtv, com.tencent.qqlivei18n,+ # com.netflix.ninja, com.amazon.amazonvideo.livingroom. Netflix was re-enabled by owner choice; the+ # other streaming apps stayed off.+ #+ # setupwraith owns the saved Wi-Fi on a freshly set-up unit: the network's creator was+ # com.google.android.tungsten.setupwraith (dumpsys wifi cname=), so disabling it deletes the network+ # and takes the TV off Wi-Fi and ADB. Forget and re-join the network first (then cname=android.uid.system);+ # `cmd wifi forget-network 0` from the shell works when the TV's own Forget menu does not take.+ # disable.sh refuses setupwraith until that is done.+ #+ # This firmware re-enables two of its own packages at every boot (seen on two reboots):+ # com.haier.oemtabprovider and com.haier.launcher.haiermatrix. Both are inert with the stock home+ # disabled (the Haier tab they feed is launcherx's), so leave them or disable them again after a boot.+ #+ # The remote's gear button sends KEY_UNKNOWN, scancode 240 on /dev/input/event3 ("HaierTV-RC Keyboard");-# settings_key_scancodes in launcher config.xml carries 240 for it, HOME_KEY_SERVICE=1 on the install++# put 240 in settings_key_scancodes in launcher config.xml before building, HOME_KEY_SERVICE=1 on the install+ # line. That service costs the volume ramp on this set too (one step per press while bound) - the same+ # all-or-nothing key-filter trade as docs/devices/tcl-55p71b-g09-key-repeat.md, here on Google TV 14.+ # Netflix / YouTube / Input / Live TV / voice buttons all work with no helper (Haier's own+ # GlobalKeyReceiver services answer them).+ #+ # Port 5555 opens with `adb tcpip 5555` but does not survive a reboot (setprop persist.adb.tcp.port is+ # refused). Wireless debugging (_adb-tls-connect._tcp) survives and re-advertises on mDNS; reopen 5555+ # through it when the repo's tools (tv.py over 5555) are needed again.+ #+ # KEEP, even though the names look like bloat (components checked with dumpsys package):+ # - com.haier.appmanager.dispatcher, com.haier.hkcfac, com.haier.tv.hmagicboard: global key receivers+ # (remote hot keys; hmagicboard also sound settings).+ # - com.mediatek.autopair, com.haier.bt_pair_tips: Bluetooth remote pairing.+ # - com.google.android.tv.googletvremotepairer (+ its mediatek overlay): remote pairing activities.+ # - com.telink.lt: remote (Telink BLE) firmware, also claims HOME at priority 0.+ # - com.cvte.tv.at, com.cvte.autobacklight, com.at.factory.androidtvaidlservice, mediatek.factorymenu.ui:+ # factory / backlight - never disable, never open.+ # - com.mediatek.wwtv.tvcenter, com.mediatek.tvinput, com.mediatek.tv.service, com.mediatek.wwtv.setupwizard,+ # com.mediatek.wwtv.setup.customization, com.google.android.tv.inputplayer, com.mediatek.wwtv.mediaplayer,+ # com.mediatek.androidbox (HaiCast / Miracast), com.mstar.android.tv.disclaimercustomization.+ # - com.cltv.hybrid: iwedia channel-list UI (claims generic VIEW channel intents alongside tvcenter).+ # - com.google.android.katniss (Assistant), com.google.android.apps.mediashell (Chromecast): kept by+ # owner choice; disable if you use neither.++ # Haier content, ads, IoT, cleaner, e-manual+ com.haierubic.usmartdevice # Haier smart-device / IoT service+ com.haier.oemtabprovider # the "Haier" tab on the Google TV home (re-enabled at boot)+ com.haier.apps # Haier promo content app+ com.haier.launcher.haiermatrix # Zeasn content launcher, not the system Home (re-enabled at boot)+ com.haier.tvhousekeeper # "TV housekeeper" cleaner+ com.haier.emanual9603 # e-manual++ # Telemetry, partner rows, preloads, retail demo+ com.google.android.feedback # Google usage feedback+ tv.anoki.acr.anokiacroptin # Anoki ACR opt-in (content recognition)+ com.mediatek.android.leanbacklauncher.partnercustomizer # partner rows on the stock home+ com.google.android.play.games # preloaded+ fusion.android.tv.demo # retail demo mode++ # By owner choice+ com.google.android.youtube.tvmusic # YouTube Music, not used+ com.google.android.apps.tv.dreamx # Google TV ambient / AI screensaver, not wanted++ # Google TV home handover. setupwraith's RecoveryActivity claims HOME at priority 1 and takes over+ # once launcherx is disabled, so both go - see the Wi-Fi note above before disabling setupwraith.+ com.google.android.tungsten.setupwraith