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 #2435: examples: TCL G03 third unit, Latin America firmware and TCL_RC902V_M2 remote
Gathin23005bc08c9b5b
diff --cc examples/tcl-g03-google-tv/debloat.txtindex 4df21ce1b,c04c4b442..19f3833a1--- a/examples/tcl-g03-google-tv/debloat.txt+++ b/examples/tcl-g03-google-tv/debloat.txt@@@ -68,33 -68,27 +68,54 @@@# launcher with stock_home_redirect (docs/TROUBLESHOOTING.md, #1653).# - Apps only mode (Settings > Accounts & Sign In > account) also hides the Google Home panel on this firmware.#-# Third unit, Latin America firmware, 2026-10-28: same G03_4K_GB / AR09 / V8-R51MT05-LF1V620 build, client+# TCL 50C641, EU firmware unit, 2026-10-28: Smart TV Pro G03_4K_GB (BeyondTV4, Realtek rtd288o / R51MT05,+# software V8-R51MT05-LF1V652, client TCL-EU-RTD51M-S1), Google TV 11, build RP1A.200622.001 AR11, security patch+# 2024-12-05. Groups 1-3, part of 4 (YouTube Music, Google TV, USB media player, gallery, game bar, TCL Live) and+# part of 5 (katniss, tv.assistant, com.tcl.assistant, micmanager, miracast) were disabled one per shell call in+# five batches with a screenshot after each, then group 6 after the Wi-Fi re-join (setupwraith owned it here too),+# then launcherx via build-and-install.sh, then dreamx; rebooted twice. Every package stayed disabled, Home came+# up on the new launcher with no RecoveryActivity, Wi-Fi stayed up, the tuner, AV and HDMI 1-4 still enumerated+# in `dumpsys tv_input` and Live TV opened from the launcher's Inputs menu. Tested the same day, not yet lived with+# for days. Differences on this unit:+# - com.tcl.partnercustomizer was left enabled: besides its promo receivers it holds TKey activities (TCL's remote+# shortcut key), and nothing on this unit showed whether the remote needs them.+# - android.autoinstalls.config.google.gtvpai was skipped by tools/disable.sh (no permission block in dumpsys).+# - com.tcl.gallery and com.tcl.ui_mediaCenter do not request TV_INPUT_HARDWARE on AR11 (only com.tcl.tv does), and+# HDMI kept working with both off.+# - dreamx was re-enabled afterwards by the owner: Google Photos ambient mode (Settings > System > Ambient mode)+# loaded the account and the album with launcherx still disabled, unlike the Google Home panel above.+# - The remote is infrared, read as /dev/input/event0 with Generic.kl (no Bluetooth remote in `dumpsys input`).+# `getevent -lt` scancodes, decimal: Netflix 758 (0x2f6, in no key layout, so Android sees KEY_UNKNOWN),+# YouTube 569 (KEY_YOUTUBE), Prime Video 752 (KEY_PRIMEVIDEO), BrowseHere/Web 651, TCL Home 204 (KEY_DASHBOARD),+# TCL Channel 456 (KEY_QUICK_MENU, opens a TCL "coming soon" page with com.tcl.channelplus off). With launcherx off+# none of the app buttons did anything; HOME_KEY_SERVICE=1 with "scan:758:com.netflix.ninja",+# "scan:569:com.google.android.youtube.tv", "scan:752:com.amazon.amazonvideo.livingroom",+# "scan:651:com.tcl.browser" and "scan:456:ignore" in app_keys brought them back (verified with the real remote).+# These are not in this folder's config.json, whose keycode entries are for the Bluetooth remotes above.+# - With HomeKeyService bound, one tap of volume moved two steps (#1100); consume_volume_keys true made it one step,+# and a held button kept ramping, a little slower than without the helper.+#++# Latin America firmware unit, 2026-10-28: same G03_4K_GB / AR09 / V8-R51MT05-LF1V620 build, client+ # TCL-LA-RTD51M-S1, security patch 2024-03-05. Applied groups 1-3, group 4 minus Netflix, Prime Video and+ # com.google.android.videos, group 5 minus voice (katniss, tv.assistant, tcl.assistant, smartalexa, micmanager) and+ # Chromecast, then groups 6 and 7 and launcherx, in batches with a screenshot after each and three reboots: every+ # package stayed disabled, Wi-Fi stayed up, the TV powered on to the new Home (FallbackHome, then the launcher; no+ # Live TV, no RecoveryActivity), and HDMI 1 opened from the launcher's Inputs menu. One day so far.+ # - tools/disable.sh skipped android.autoinstalls.config.google.gtvpai in group 2: its dumpsys has no permission+ # block. After a reboot with all five com.tcl.tvinput inputs still listed it was disabled with TVINPUT_ALLOW=1+ # (the package is a stub with one DummyReceiver).+ # - setupwraith owned an older saved network, not the one in use. Forgetting that one let disable.sh through.+ # - Remote: Bluetooth "TCL_RC902V_M2", with the same HID usages as the M1 above: Netflix 0x0c0051, YouTube+ # 0x0c0057, Prime Video 0x0c005f, gear 0x0c0055 (keycode 4077), Home 0x0c0223. Input is 0x0c0049 (KEY_GAMES,+ # keycode 178) and opens com.tcl.suspension's source panel with no helper. HOME_KEY_SERVICE=1 with the app_keys+ # and settings_key_keycodes of config.json brought back the gear and the three app buttons (real remote).+ # - With HomeKeyService bound, a held Volume Up stepped once per press instead of ramping, the trade described in+ # docs/devices/tcl-55p71b-g09-key-repeat.md. "consume_volume_keys": true (config.xml or a theme) brought the+ # ramp back with one step per tap, checked on the real remote, and the helper rebound by itself after a reboot.+ # It is not in this folder's config.json because the other two units were not measured.+ # - Voice stayed on with launcherx disabled. The first mic press afterwards answered that the Assistant had trouble+ # processing; later presses, and presses after a reboot, worked.+ ## DO NOT DISABLE: com.tcl.tv, com.tcl.tvinput (Live TV, tuner, HDMI/AV), com.tcl.suspension (Quick panel and the# Input key's source panel), com.tcl.settings, com.tcl.system.server, com.tcl.providers.config, com.tcl.initsetup,# com.tcl.factory.view, com.tcl.tcl_bt_rcu_service, com.tcl.autopair (remote), com.tcl.inputmethod.internationaldiff --cc examples/tcl-g03-google-tv/tv.jsonindex 5c16d1d44,cc0abeb50..f37cd3c3d--- a/examples/tcl-g03-google-tv/tv.json+++ b/examples/tcl-g03-google-tv/tv.json@@@ -1,6 -1,6 +1,6 @@@{- "tv": "TCL Smart TV Pro (G03, G03_4K_GB / G03_4K_US, BeyondTV4, Realtek R51MT05, V8-R51MT05-LF1V620 / LF1V652 / LF1V813), Middle East, EU (TCL 50C641) and US firmware",- "tv": "TCL Smart TV Pro (G03, G03_4K_GB / G03_4K_US, BeyondTV4, Realtek R51MT05, V8-R51MT05-LF1V620 / LF1V813), Middle East and US firmware",++ "tv": "TCL Smart TV Pro (G03, G03_4K_GB / G03_4K_US, BeyondTV4, Realtek R51MT05, V8-R51MT05-LF1V620 / LF1V652 / LF1V813), Middle East, EU (TCL 50C641), US and Latin America firmware","os": "Google TV 11","brand": "TCL",- "notes": "Same platform as tcl-43c645: TCL BI analytics and logkit, promo rows (TCL Channel, BrowseHere), dashboard, messages, partner auto-installs; streaming apps, voice, Chromecast, Miracast/T-Cast, USB player, game bar, TCL Live off by choice, firmware updates kept; launcherx, setupwraith and dreamx off (setupwraith owned the Wi-Fi: forget and re-join first), reboot-checked; Input key works without InputKeyService, gear is keycode 4077 (`settings_key_keycodes`), config.json sets Live TV to com.tcl.tv; a second unit on the same build ships a Bluetooth TCL_RC902V_M1 remote whose Netflix/YouTube/Prime buttons die with launcherx and come back from `app_keys` (in config.json, verified with the real remote); a US unit (GTV93) shows dreamx also hosts the Google Home panel and TCL's updater needs StartandroidService for its device number, so it stays on; a TCL 50C641 on EU firmware AR11 has an infrared remote whose Netflix (scancode 758, unmapped), YouTube, Prime Video and Web buttons come back from `scan:` entries in `app_keys`, needs `consume_volume_keys` against the double volume step, and keeps Google Photos ambient mode working with dreamx re-enabled and launcherx off"- "notes": "Same platform as tcl-43c645: TCL BI analytics and logkit, promo rows (TCL Channel, BrowseHere), dashboard, messages, partner auto-installs; streaming apps, voice, Chromecast, Miracast/T-Cast, USB player, game bar, TCL Live off by choice, firmware updates kept; launcherx, setupwraith and dreamx off (setupwraith owned the Wi-Fi: forget and re-join first), reboot-checked; Input key works without InputKeyService, gear is keycode 4077 (`settings_key_keycodes`), config.json sets Live TV to com.tcl.tv; a second unit on the same build ships a Bluetooth TCL_RC902V_M1 remote whose Netflix/YouTube/Prime buttons die with launcherx and come back from `app_keys` (in config.json, verified with the real remote); a US unit (GTV93) shows dreamx also hosts the Google Home panel and TCL's updater needs StartandroidService for its device number, so it stays on; a third unit (Latin America firmware, TCL_RC902V_M2 remote) needed `consume_volume_keys` to keep a held volume ramping with the key helper on"++ "notes": "Same platform as tcl-43c645: TCL BI analytics and logkit, promo rows (TCL Channel, BrowseHere), dashboard, messages, partner auto-installs; streaming apps, voice, Chromecast, Miracast/T-Cast, USB player, game bar, TCL Live off by choice, firmware updates kept; launcherx, setupwraith and dreamx off (setupwraith owned the Wi-Fi: forget and re-join first), reboot-checked; Input key works without InputKeyService, gear is keycode 4077 (`settings_key_keycodes`), config.json sets Live TV to com.tcl.tv; a second unit on the same build ships a Bluetooth TCL_RC902V_M1 remote whose Netflix/YouTube/Prime buttons die with launcherx and come back from `app_keys` (in config.json, verified with the real remote); a US unit (GTV93) shows dreamx also hosts the Google Home panel and TCL's updater needs StartandroidService for its device number, so it stays on; a TCL 50C641 on EU firmware AR11 has an infrared remote whose Netflix (scancode 758, unmapped), YouTube, Prime Video and Web buttons come back from `scan:` entries in `app_keys`, needs `consume_volume_keys` against the double volume step, and keeps Google Photos ambient mode working with dreamx re-enabled and launcherx off; a Latin America firmware unit (TCL_RC902V_M2 remote) needed `consume_volume_keys` to keep a held volume ramping with the key helper on"}