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: add AQUA MatrixTV EE 50" 4K (Haier AQ9676EU, MediaTek), Google TV 14
Randhi Pratama Putra5b93f64c6d2b
diff --git a/examples/aqua-matrixtv-ee-50/README.md b/examples/aqua-matrixtv-ee-50/README.mdnew file mode 100644index 000000000..71ac8dc08--- /dev/null+++ b/examples/aqua-matrixtv-ee-50/README.md@@ -0,0 +1,77 @@+# AQUA MatrixTV EE 50" 4K (Google TV 14, omonia)++Indonesian set sold under Haier's AQUA brand, product `AQ9676EU`, firmware `UKN7.260716.049` (MediaTek,+CVTE-family board). 4K panel with the UI rendered at 1920x1080 (`wm size` override is the factory default).+Both halves work on this set: the debloat list and the Clean Your TV launcher as Home. Tested on+24 October 2026 on one set, including two reboots, with the real remote. Same-day test, not a multi-day soak.+A close sibling of [`haier-hr9216eu`](../haier-hr9216eu/) (MatrixTV GE, EU).++| File | What it is |+|---|---|+| `debloat.txt` | The 20 packages that were disabled, grouped and commented |+| `config.json` | Dock (Netflix, YouTube, Vidio, Spotify), 6 columns, Live TV app and the gear button; 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 → System → About → Android TV OS build x7 → Developer options → USB debugging). On the+test set port 5555 answered straight away and survived reboots.++## Install, from scratch or again++The order matters: check the Wi-Fi note in `debloat.txt` first, then the list while Google TV's home still+owns Home (setupwraith goes with it), then the launcher.++```bash+TV_HOST=<tv-ip> tools/disable.sh examples/aqua-matrixtv-ee-50/debloat.txt+HOME_KEY_SERVICE=1 TV_HOST=<tv-ip> launcher/build-and-install.sh+TV_HOST=<tv-ip> tools/theme.sh examples/aqua-matrixtv-ee-50+```++`HOME_KEY_SERVICE=1` is the owner's choice: with `settings_key_keycodes` `[83]` and `settings_key_panel` from+`config.json`, the remote's gear button opens the launcher's quick panel (TV settings, Picture, Network, Apps),+as it opened Google TV's dashboard before. The price is the volume ramp: while that key-filtering service is+bound, holding Volume Up moves one step per press (same trade as+[docs/devices/tcl-55p71b-g09-key-repeat.md](../../docs/devices/tcl-55p71b-g09-key-repeat.md) and+`haier-hr9216eu`). Skip the flag to keep the ramp; the gear then does nothing and Settings opens from the+launcher's top-bar pill.++## Undo everything++```bash+TV_HOST=<tv-ip> tools/restore.sh examples/aqua-matrixtv-ee-50/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.amazon.amazonvideo.livingroom'+```++Comment its line out in `debloat.txt` so the next run leaves it alone. Without a computer: Settings →+Apps → See all apps → pick the app → Enable.++## Quirks on this firmware, all checked on the TV++- setupwraith owned a saved Wi-Fi network from first setup that was not the one in use+ (`dumpsys wifi`, `cname=com.google.android.tungsten.setupwraith`). `tools/disable.sh` refuses setupwraith+ while it owns any network, so it was forgotten first (`cmd wifi forget-network <id>`). If it owns the network+ the TV is on, forget and re-join that network in Settings instead.+- `com.haier.gamingbar` comes back enabled at every boot, so it is commented out in the list. The Haier tab+ provider and Zeasn launcher, which come back on the MatrixTV GE, stayed disabled here.+- Live TV is `com.cltv.hybrid` (Anoki "LiveTV"), not `com.mediatek.wwtv.tvcenter`; `config.json` points the+ Inputs menu's Live TV row at it. `com.mediatek.tv.oneworld.tvcenter` ships disabled. HDMI 1-4 open in+ `com.google.android.tv.inputplayer` from the Inputs menu.+- With Google TV's home disabled, the remote's Netflix, YouTube, Input and voice buttons keep working through+ `com.mediatek.tv.agent` and Haier's global-key receivers. The YouTube Music button opens YouTube Music, which+ on this build forwards into YouTube; the Prime Video button only works while Prime Video is enabled.+- The gear, YouTube Music and Prime Video buttons all arrive as `KEY_UNKNOWN` (scancode 240) on+ "SmartTV-RC Consumer Control", told apart only by HID usage (0x0c009f, 0x0c00cb, 0x0c00a6). The gear maps to+ `KEYCODE_NOTIFICATION` (83), which `dumpsys window policy` lists as a global key for launcherx. Use the keycode:+ scancode 240 in `settings_key_scancodes` would catch the other two buttons too.+- Android 14 archives apps that were never opened: iQIYI shows up as a reactivate stub and downloads itself again+ on first launch.+- HDMI and Live TV screenshots come out empty (protected video layer); `topResumedActivity` shows+ what is really playing.diff --git a/examples/aqua-matrixtv-ee-50/config.json b/examples/aqua-matrixtv-ee-50/config.jsonnew file mode 100644index 000000000..5ee2e1e3f--- /dev/null+++ b/examples/aqua-matrixtv-ee-50/config.json@@ -0,0 +1,12 @@+{+ "dock_apps": [+ "com.netflix.ninja",+ "com.google.android.youtube.tv",+ "com.vidio.android.tv",+ "com.spotify.tv.android"+ ],+ "columns": 6,+ "live_tv_package": "com.cltv.hybrid",+ "settings_key_keycodes": [83],+ "settings_key_panel": true+}diff --git a/examples/aqua-matrixtv-ee-50/debloat.txt b/examples/aqua-matrixtv-ee-50/debloat.txtnew file mode 100644index 000000000..0dc0ead1e--- /dev/null+++ b/examples/aqua-matrixtv-ee-50/debloat.txt@@ -0,0 +1,74 @@+# AQUA MatrixTV EE 50" 4K (Haier, ro.product.model "AQUA MatrixTV EE", product AQ9676EU, device omonia),+# Google TV 14 (API 34), firmware UKN7.260716.049, MediaTek (CVTE-family board: com.cvte.tv.at,+# com.cvte.autobacklight present), Indonesia. 3840x2160 panel, UI at 1920x1080 (wm size override, factory), 320 dpi.+# Close sibling of examples/haier-hr9216eu (MatrixTV GE).+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/aqua-matrixtv-ee-50/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/aqua-matrixtv-ee-50/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); the install script disables it.+# Live TV: com.cltv.hybrid (Anoki "LiveTV", AnokiTvInputService). HDMI 1-4 = com.mediatek.tis/.HdmiInputService/HW2-HW5,+# AV = com.mediatek.tis/.CompositeInputService/HW6, DVB tuner = com.mediatek.dtv.tvinput.dvbtuner/.DvbTvInputService/HW0.+# Already disabled from the factory: com.mediatek.dtv.tvinput.isdbtuner, com.mediatek.dtv.tvinput.atsctuner,+# ru.haier.evo, com.haier.apps.evoSmart, com.mediatek.tv.oneworld.tvcenter, it.hon.onboarding.+#+# setupwraith owned one saved Wi-Fi network that was not the one in use; it was forgotten+# (cmd wifi forget-network) before setupwraith was disabled. The network in use belonged to android.uid.system.+#+# Tested on 24 October 2026 on one set, including two reboots, with the real remote. Same-day test, not a+# multi-day soak. Order used: this whole list (setupwraith included) while launcherx still owned Home, then+# launcher/build-and-install.sh, which disables launcherx once the new launcher is running.+# The home screen was launcher/ from this repo; config.json beside this list has its dock and the gear key.+# Network ADB on 5555 survived a reboot on this set (service.adb.tcp.port=5555), Wireless debugging was on too.+# com.haier.gamingbar comes back enabled at every boot (seen on the first reboot), so it is commented out below.+#+# Remote ("SmartTV-RC Consumer Control", BLE HID): Netflix, YouTube, Input and Mic keep working with no helper+# (com.mediatek.tv.agent and Haier global-key receivers). The YouTube Music button opens YouTube Music, which+# forwards into YouTube on this build. The Prime Video button goes to Prime Video (disabled here, so nothing).+# The gear button is KEY_UNKNOWN (scancode 240, HID usage 0x0c009f) as KEYCODE_NOTIFICATION (83), a global key+# for launcherx's GlobalKeyListener: settings_key_keycodes 83 + settings_key_panel true + HOME_KEY_SERVICE=1.+# Do not use scancode 240: the YouTube Music (0x0c00cb) and Prime Video (0x0c00a6) buttons share it.+# HomeKeyService costs the volume ramp (one step per press while held), the trade in+# docs/devices/tcl-55p71b-g09-key-repeat.md; the owner of the test set kept the gear.+#+# 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.+# - com.mediatek.autopair, com.haier.bt_pair_tips, com.google.android.tv.googletvremotepairer: remote pairing.+# - 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 - never open.+# - com.mediatek.tis, com.mediatek.dtv.tvinput.dvbtuner, com.cltv.hybrid, com.cltv.mal, com.mediatek.tv.agent,+# com.mediatek.extservice (CEC), com.mediatek.tv.settings, com.google.android.tv.inputplayer, com.mediatek.wwtv.mediaplayer,+# com.mediatek.tv.oneworld.wizardkt (channel scan), tv.mopa.ginga.+# - By owner choice on the test set: Assistant (katniss), Chromecast (mediashell), Miracast, system updater, Ambient (dreamx),+# Netflix, YouTube, YouTube Music, YouTube Kids, Vidio, iQIYI, Bstation.++# Haier content, IoT, cleaner, e-manual+com.haierubic.usmartdevice # Haier smart-device / IoT service+it.hon.service # Haier hOn IoT service+com.haier.apps # Haier promo content app (Kinopoisk)+com.haier.tvhousekeeper # "TV housekeeper" cleaner+com.haier.emanual9603 # e-manual+com.haier.oemtabprovider # the "Haier" tab on the Google TV home+com.haier.launcher.haiermatrix # Zeasn content launcher, not the system Home++# Telemetry, partner rows, retail demo, preloads+com.google.android.feedback # Google usage feedback+tv.anoki.acr.anokiacroptin # Anoki ACR opt-in (content recognition)+com.mediatek.tv.launcher.partner # partner rows on the stock home+com.mediatek.tv.retaildemo # retail demo mode+com.google.android.play.games # preloaded++# By owner choice: apps the test household did not use+com.amazon.amazonvideo.livingroom # Prime Video, not used+in.startv.hotstar.dplus.tv # Disney+ Hotstar, not used+id.visionplus.android.atv # Vision+, not used+com.tencent.qqlivei18n # WeTV, not used+com.apple.atve.androidtv.appletv # Apple TV, not used+# com.haier.gamingbar # Haier game-mode overlay, not wanted; firmware re-enables it at boot+com.haier.overseastv.bluetoothspeaker # TV as Bluetooth speaker, not wanted+com.google.android.marvin.talkback # TalkBack, not used++# Google TV home handover. setupwraith's RecoveryActivity claims HOME at priority 1 and takes over once launcherx+# is disabled, so it goes first, while launcherx still owns Home. Check the Wi-Fi note above before disabling it.+com.google.android.tungsten.setupwraithdiff --git a/examples/aqua-matrixtv-ee-50/tv.json b/examples/aqua-matrixtv-ee-50/tv.jsonnew file mode 100644index 000000000..1bfae3a31--- /dev/null+++ b/examples/aqua-matrixtv-ee-50/tv.json@@ -0,0 +1,6 @@+{+ "tv": "AQUA MatrixTV EE 50\" 4K (Haier, AQ9676EU, omonia, MediaTek), Indonesia",+ "os": "Google TV 14",+ "brand": "AQUA",+ "notes": "Haier IoT and content apps, Zeasn launcher, cleaner, e-manual, Anoki ACR opt-in, partner rows, retail demo; unused streaming apps off by choice; setupwraith owned a second, unused saved network (forgotten first); gaming bar re-enabled at boot; the gear button is keycode 83 (`settings_key_keycodes`, HOME_KEY_SERVICE trades the volume ramp); config.json has the dock"+}