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
adds 65PUS8204/12 (UK) as an eighth unit
Andrei Karpilin47a54d61520f
diff --git a/examples/philips-tpm191e/README.md b/examples/philips-tpm191e/README.mdindex 6ed629055..c33bf7d6d 100644--- a/examples/philips-tpm191e/README.md+++ b/examples/philips-tpm191e/README.md@@ -129,3 +129,33 @@ unit" note; this section covers the launcher side. One session with two restarts- The remote's Rakuten TV and Netflix buttons, read with `getevent -lt`: 779 (`030b`) and 632(`KEY_ONSCREEN_KEYBOARD`), the same scancodes as the 50PUS7354. `app_keys` `scan:779:<package>` and`scan:632:com.google.android.youtube.tv` opened the chosen apps from the real remote.++## Philips 65PUS8204/12: single-session notes++Checked on a Philips 65PUS8204/12 (LED, 2019, UK, on Ethernet), same TP Vision TPM191E board and firmware as the+lead unit (`STT2.230526.001`), with its original Philips remote. Package details are in `debloat.txt`'s "Eighth+unit" note; this section covers the launcher side. One session with three restarts, not a several-day test.++- The launcher was built with `tools/docker-build.sh` and installed with `SKIP_BUILD=1 launcher/build-and-install.sh`,+ which ran through on its own: cold start in 2.0 s, and Home moved to `com.gathin.tvhome/.MainActivity` once the+ stock launcher was disabled (`mFocusedApp`).+- config.xml: `live_tv_package` `org.droidtv.playtv`; `hidden_apps` `org.droidtv.playtv`, `org.droidtv.eum`;+ `columns` 6; `home_long_press_home` and `power_on_home_always` true, installed with `HOME_KEY_SERVICE=1`.+- The Inputs menu listed HDMI 1 / MHL, HDMI 2 to 4 (HDMI 3 marked connected), YPbPr and Live TV. HDMI 3 opened+ `org.droidtv.playtv` on the `hdmi_port=3` input (the capture is empty, as on every HDMI input), and Home came+ back opaque over the picture. An injected `KEYCODE_TV_INPUT` did nothing, as an injected `KEYCODE_TV` on the fifth+ unit; the real SOURCES button opened `org.droidtv.channels`' sources drawer.+- SOURCES, the Settings button (`org.droidtv.philipstvdrawer`) and Netflix (kept installed) kept working on the+ real remote with the stock launcher disabled. A held Home press did nothing until `home_long_press_home`, as on+ the fifth to seventh units, and with `HomeKeyService` bound a held Volume Up moved one step per press.+- The firmware opens `org.droidtv.playtv` at every boot (`wm_set_resumed_activity`: FallbackHome, then+ PlayTvActivity). With `power_on_home_always` the owner confirmed a standby and power-on from the remote lands on+ Home, and after a restart `mFocusedApp` was the launcher.+- The remote's Rakuten TV button is 779 (`030b` in `getevent -lt`), as on the sixth and seventh units. The button+ with a butterfly icon is new here: it sends `02b7`, scancode 695, which `GlobalKeyRcv` logs as+ `key=326,scan=695` and `App Gallery: 326`, then sends `org.droidtv.ACTION.LAUNCH_APP_GALLERY`. Only+ `org.droidtv.nettv.market` declares that action (its MarketMainActivity), and batch 2 of `debloat.txt` disables+ it, so after the list the button does nothing (`cmd package query-activities -a+ org.droidtv.ACTION.LAUNCH_APP_GALLERY` answers "No activities found"). `app_keys` `scan:779:<package>` and+ `scan:695:<package>`, installed with `HOME_KEY_SERVICE=1`, opened the chosen apps from the real remote (Apple TV+ and Disney+ here; `ActivityTaskManager` logged both starts).diff --git a/examples/philips-tpm191e/debloat.txt b/examples/philips-tpm191e/debloat.txtindex 48bb02a5b..db50c506b 100644--- a/examples/philips-tpm191e/debloat.txt+++ b/examples/philips-tpm191e/debloat.txt@@ -6,6 +6,9 @@# Not the same board as examples/philips-50pus8517 (PH1M_EA_9970A, Android 11) or# examples/philips-55pus7503 (TPM171E, Android 8); entries shared with those lists were checked# against this TV's own `pm list packages`.+# Same board AND firmware build (identical fingerprint), each with another owner's choices:+# examples/philips-75pus8505 (keeps org.droidtv.fastip, the SOURCES drawer dies without it) and+# examples/philips-65pus9435 (usagelogger and demome came back at every boot there; two extra batches).## Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-tpm191e/debloat.txt# Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-tpm191e/debloat.txt com.google.android.tvlauncher@@ -170,6 +173,32 @@# 2 GB of app data (`dumpsys diskstats`), the largest by far; it was not cleared, as that holds the channel list# and favourites. `pm clear` on the disabled streaming apps and com.google.android.tts, plus `pm trim-caches`,# freed about 450 MB.+#+# Eighth unit: Philips 65PUS8204/12 (LED, 2019 model; it shipped with Android 9, ro.product.first_api_level 28), UK,+# on Ethernet. Same firmware as the lead unit: STT2.230526.001, security patch 2025-11-01, fingerprint+# Philips/PH9M_EA_5599/PH9M_EA_5599:12/STT2.230526.001/4215:user/release-keys. One session on 29 Oct 2026 with three+# restarts, not a several-day test. Launcher notes, and the remote's App Gallery button, are in README.md.+# - Not a factory starting state: an earlier ADB AppControl session (its helper com.cybercat.adbappcontrol.tv was+# installed) had left org.droidtv.nettvrecommender disabled, and org.droidtv.amazonalexa, org.droidtv.demome,+# org.droidtv.freeviewplayers and 12 uk.co.freeview.* players uninstalled for user 0 (`pm list packages -u`). So+# what a UK unit ships with enabled was not seen here. uk.co.freeview.fvpconfigauth, .mdsclient and .tifbridge+# were enabled and were left alone.+# - From the list below: all of batches 1 and 2 (demome and nettvrecommender were already off, as above); from+# batch 3 play.games, talkback, dlna and playfi.softap, with Prime Video, YouTube Music and katniss (Assistant)+# kept by choice; videos and music are not installed on this unit; batch 4 after the launcher took Home.+# - usagelogger: the TV_INPUT_HARDWARE false positive again (the same three TvInputService packages as on the+# seventh unit), disabled with TVINPUT_ALLOW=1. `dumpsys tv_input` listed the same eight inputs after batches 1+# to 3 and after the first restart.+# - Also disabled, as on the sixth and seventh units: org.droidtv.tv.frameworklogger, org.droidtv.nettvapps,+# org.droidtv.nettv_launcherapp, org.droidtv.sticker, org.droidtv.dropboxprovider; plus com.vewd.core.browserui,+# the Vewd "Internet Browser" tile (the HbbTV red button is org.droidtv.nettvbrowser, kept). Kept: Netflix,+# YouTube, Apple TV, Chromecast, both firmware updaters, com.phorus.playfi.tv.+# - All 21 packages disabled in this session, the stock launcher and tvrecommendations included, stayed disabled+# through the three restarts; tools/check.py reported no drift. The 30 s idle log after batch 3 (the+# philips-50pus8517 quirk 5 method) had nothing tied to a disabled package; most of it was xtv's JointSpace+# REST server answering a client on the LAN, as on the fifth unit.+# - The remote's App Gallery button (a butterfly icon) opens org.droidtv.nettv.market (batch 2) and nothing else,+# so it does nothing once this list is applied; README.md has its scancode and the remap.# Batch 1: telemetry and retail demoorg.droidtv.candeebug # "DAC" analytics uploader@@ -185,6 +214,8 @@ com.google.android.syncadapters.calendar # Google Calendar sync; no calendar aporg.droidtv.nettvrecommender # "Top Picks" content promotion roworg.droidtv.recommendation # its headless backend; listed after the row on purposeorg.droidtv.nettv.market # "Smart TV Collection" app storefront; the Play Store stays+# # the remote's App Gallery button (scancode 695) opens only this one, so+# # it goes dead too: remap it with app_keys (README.md, 65PUS8204)# Batch 3: apps this owner does not usecom.google.android.katniss # Assistant and voice search; the remote's mic button and "Hey Google" stop. Alexa is separatediff --git a/examples/philips-tpm191e/tv.json b/examples/philips-tpm191e/tv.jsonindex 4c3969ece..4b44021cc 100644--- a/examples/philips-tpm191e/tv.json+++ b/examples/philips-tpm191e/tv.json@@ -1,6 +1,6 @@{- "tv": "Philips TPM191E / 50PUS8505 / 55OLED854 / 65OLED804 / 50PUS7354 / 43PUS7304 (TP Vision, PH9M_EA_5599, MediaTek MT5887), Europe",+ "tv": "Philips TPM191E / 50PUS8505 / 55OLED854 / 65OLED804 / 50PUS7354 / 43PUS7304 / 65PUS8204 (TP Vision, PH9M_EA_5599, MediaTek MT5887), Europe","os": "Android TV 12","brand": "Philips",- "notes": "`org.droidtv` TP Vision list on Android 12: DAC analytics uploader, usage logging, demo mode, Top Picks, app gallery; voice, Prime Video, DLNA off by choice; Alexa, Chromecast and updates kept; DTS Play-Fi is re-enabled at every boot by the audio service, so it is left on; `eum`, `nettvbrowser`, `menudataapp` and `nettvregistration` kept, as on the 50PUS8517; for the 50PUS8505 and the 55OLED854, only an owner-selected subset and launcher handover were checked in one session, not the full list; the 55OLED854 found its remote's Settings button (scancode 357) and the OLED screensaver logo also seen on a different board; on one 65OLED804 tvrecommendations stayed off through restarts, and a held Home press needs `home_long_press_home`; another 65OLED804/12-reported unit had stock Home at observation and was not subjected to this list ([notes](philips-tpm191e/README.md)); a 50PUS7354 with the original remote needed `home_long_press_home` too, and had its Netflix (632) and Rakuten (779) keys remapped by scancode; a 43PUS7304 on Wi-Fi opened port 5555 with USB debugging alone (no Network debugging entry), kept Ambilight working, mapped the same 632/779 keys, and got a channel-list tile from `launch_actions` `org.droidtv.intent.action.CHANLIST`"+ "notes": "`org.droidtv` TP Vision list on Android 12: DAC analytics uploader, usage logging, demo mode, Top Picks, app gallery; voice, Prime Video, DLNA off by choice; Alexa, Chromecast and updates kept; DTS Play-Fi is re-enabled at every boot by the audio service, so it is left on; `eum`, `nettvbrowser`, `menudataapp` and `nettvregistration` kept, as on the 50PUS8517; for the 50PUS8505 and the 55OLED854, only an owner-selected subset and launcher handover were checked in one session, not the full list; the 55OLED854 found its remote's Settings button (scancode 357) and the OLED screensaver logo also seen on a different board; on one 65OLED804 tvrecommendations stayed off through restarts, and a held Home press needs `home_long_press_home`; another 65OLED804/12-reported unit had stock Home at observation and was not subjected to this list ([notes](philips-tpm191e/README.md)); a 50PUS7354 with the original remote needed `home_long_press_home` too, and had its Netflix (632) and Rakuten (779) keys remapped by scancode; a 43PUS7304 on Wi-Fi opened port 5555 with USB debugging alone (no Network debugging entry), kept Ambilight working, mapped the same 632/779 keys, and got a channel-list tile from `launch_actions` `org.droidtv.intent.action.CHANLIST`; a 65PUS8204 in the UK found that the remote's App Gallery (butterfly) button, scancode 695, does nothing once `org.droidtv.nettv.market` is disabled, and remapped it with `app_keys`"}