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: Philips Google TV TA5 as a second set of the TA1 list (PH1M_WW_9972)
roelvveen-alt5100c2a1de2f
diff --git a/examples/philips-google-tv-ta1/README.md b/examples/philips-google-tv-ta1/README.mdindex 9ea6d1f38..7d033348c 100644--- a/examples/philips-google-tv-ta1/README.md+++ b/examples/philips-google-tv-ta1/README.md@@ -30,6 +30,54 @@ USB debugging on, and accept the "Allow USB debugging?" prompt the first time aA cold reboot after the list brings the TV back to Home with ADB and Wi-Fi, no crashes in the crash log.HDMI and Live TV were not exercised on this unit.+## Second set: Philips Google TV TA5++Same device (`PH1M_WW_9972`) and build (`UKN2.241117.001/3000669`, patch 2026-07-05), Netherlands, sound over+HDMI eARC to a soundbar, no tuner in use. Batch 3 of `debloat.txt` is this set's; its header says what was kept.+Free memory on Home went from about 0.71 GB to 0.98 GB after a reboot (`MemAvailable`).++### Remote buttons with launcherx disabled++`org.droidtv.GlobalKey` routes the remote. Logged on this set with the stock launcher disabled:++| Button | Scancode / keycode | What GlobalKey does | Without launcherx |+|---|---|---|---|+| Gear | 141 / `KEYCODE_GLOBAL_FUNCTION` | starts `launcherx/.dashboard.DashboardActivity` by component | nothing (result code -92) |+| Apps (3x3 grid) | 801 / `KEYCODE_LOCAL_OTT1` | starts `android.intent.action.ALL_APPS` | nothing (-91: no handler) |+| Netflix, YouTube, Prime Video | - | starts the app itself | works |+| Volume | - | - | works, and keeps repeating when held |++`HomeKeyService` or `InputKeyService` bound with key filtering on cost the volume ramp here (one step per press),+as on the other sets in `docs/devices/tcl-55p71b-g09-key-repeat.md`.++### All buttons and the volume ramp together++The owner wanted every button and the ramp, which took the Sony VU3 setup from `docs/TROUBLESHOOTING.md`:++1. `pm enable com.google.android.apps.tv.launcherx`, and in the theme's `config.json`+ `"stock_home_redirect": "com.google.android.apps.tv.launcherx"` and `"key_filter": false`.+2. `HomeKeyService` enabled (`HOME_KEY_SERVICE=1`). Home now opens launcherx for a moment and lands on this+ launcher; the gear opens the Google TV dashboard again; holding volume still ramps.+3. With launcherx enabled, GlobalKey hands the Netflix, YouTube and Prime Video launches to launcherx, and+ Android blocks them as background starts (`BAL_BLOCK`, result code 102) while this launcher is in front.+ `appops set com.google.android.apps.tv.launcherx SYSTEM_ALERT_WINDOW allow` brought all three back.+4. The apps button sends `ALL_APPS`, which launcherx now answers too, so Android showed a chooser on the first+ press; choosing this launcher and "Always" once settled it.++### "Switching to audio system" at every power-on++With a soundbar on eARC, every power-on showed a two-second toast from `org.droidtv.tv.tpvaudiomanager`:+"Switching to audio system. We recommend using an Ultra High Speed HDMI cable." The cable was fine. The+package's notification importance is fixed, Do Not Disturb does not stop it, and taking launcherx out of+`android.app.role.SYSTEM_TELEVISION_NOTIFICATION_HANDLER` (`cmd role remove-role-holder`) only lasts until+the next boot. What stayed off across reboots is launcherx's notification listener, which draws these toasts:++```bash+TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'cmd notification disallow_listener com.google.android.apps.tv.launcherx/com.google.android.apps.tv.launcherx.coreservices.notificationlistener.TvNotificationListenerService'+```++No other notification pops up on screen after that. Undo with `allow_listener` and the same component.+## Re-enable an appOn the TV: Settings > Apps > See all apps > Show system apps (or "Disabled apps"), pick the app, Enable.diff --git a/examples/philips-google-tv-ta1/debloat.txt b/examples/philips-google-tv-ta1/debloat.txtindex cf5e06a4c..8aebe178b 100644--- a/examples/philips-google-tv-ta1/debloat.txt+++ b/examples/philips-google-tv-ta1/debloat.txt@@ -11,6 +11,21 @@# Kept on purpose: org.droidtv core, com.mediatek TV services, Play Store and Play Services, Assistant,# Chromecast (casting may stop after a reboot with setupwraith off), firmware updates, keyboards.#+# Second set: Philips Google TV TA5 (same device PH1M_WW_9972, build UKN2.241117.001/3000669, security patch+# 2026-07-05), Netherlands, sound over HDMI eARC to a soundbar, no antenna/cable/satellite (TV through an+# operator app). Debloated on 2026-10-27/28 with batches 1, 2 and 3 below in small groups with a screenshot after+# each, then the launcher; rebooted cold several times, back to Home with Wi-Fi each time, no crash-log entries,+# HDMI inputs listed and selectable from the launcher's Inputs menu. Lived with for two days. On that set:+# - The tuner input (com.mediatek.dtv.tvinput.dvbtuner) and org.droidtv.m7opapp and org.droidtv.demome are+# skipped by tools/disable.sh's input-driver check; they went with TVINPUT_ALLOW=1 after a reboot showed every+# HDMI input still working. Leave the whole broadcast group (batch 3, second part) alone if you watch TV+# through the tuner.+# - Kept on purpose there: org.droidtv.playtv (it plays the HDMI inputs, not only the tuner), org.droidtv.channels+# (it answers com.android.tv.action.VIEW_INPUTS, the Source button's list), org.droidtv.hdmiservice,+# com.mediatek.tis, the Ambilight packages (ambisvc, ambiair, aurora), org.droidtv.icp (sign-on and mandatory+# upgrade), org.droidtv.xtv (purpose unclear), org.droidtv.sam (service mode: not touched).+# - Remote buttons and the eARC "Switching to audio system" toast: see README.md in this folder.+## Batch 1: vendor analytics, retail demo, auto-installs and apps the owner does not use.org.droidtv.candeebugorg.droidtv.gel@@ -43,6 +58,41 @@ org.droidtv.hbbtvopapp # HbbTV for broadcast TVcom.google.android.tts # Google text-to-speechorg.droidtv.customautologservice # TP Vision log collector#+# Batch 3, from the second set (TA5). That owner kept Netflix and Prime Video from batch 1 (comment them out+# above if you use them) and dropped Chromecast and the Assistant. Checked with dumpsys package first.+com.android.adservices.api # Android ad services+com.android.ondevicepersonalization.services+com.android.federatedcompute.services+com.android.tv.feedbackconsent+com.google.android.apps.mediashell # Chromecast built-in, by choice+com.google.android.katniss # Google Assistant and voice search, by choice (~230 MB resident)+com.mediatek.dialservice # DIAL, casting from phone apps+com.mediatek.AirplayAPK # AirPlay TV input, with the two AirPlay packages above+org.droidtv.matter # Matter smart-home+com.tpv.screenshotshare+com.android.printspooler+com.google.android.apps.tv.dreamx # ambient mode / smart-home dashboard (~190 MB)+org.droidtv.contentexplorer # USB media player, by choice+org.droidtv.dlna # DLNA / UPnP, by choice+org.droidtv.multiview # Multi View (~80 MB)+org.droidtv.hidwizard # keyboard/mouse setup wizard (~75 MB)+org.droidtv.sunrise # wake-up light alarm+org.droidtv.calmancalibrator # Calman calibration service+org.droidtv.personalisedsound # Mimi personalised sound (~73 MB)+io.mimi.sdk.service+# Broadcast TV, only on a set that never uses the tuner. The last three need TVINPUT_ALLOW=1 (see the header).+com.mediatek.browservice # HbbTV and operator-app browser (~100 MB)+org.droidtv.astrahdplus # HD+ satellite operator app+org.obs.mhegservice # UK MHEG interactive TV+tv.mopa.ginga # Brazilian interactive TV+org.droidtv.teletext+org.droidtv.epgdata # EPG / Freeview Play+org.droidtv.ci # CI+ module+org.droidtv.euinstallersat # satellite channel installer (~77 MB)+org.droidtv.euinstallertc # cable/antenna channel installer+com.mediatek.dtv.tvinput.dvbtuner # the DVB tuner input itself (~82 MB)+org.droidtv.m7opapp # Canal Digitaal / M7 operator app+## Stock home last, after the new launcher is installed. The Wi-Fi network was forgotten and added again first,# so setupwraith no longer owns it (disabling it while it did would have taken the TV off Wi-Fi and ADB).com.google.android.tungsten.setupwraith # phone casting may stop after a reboot (the Cast receiver reads its credentials from setupwraith)diff --git a/examples/philips-google-tv-ta1/tv.json b/examples/philips-google-tv-ta1/tv.jsonindex 08367ede9..82955bd7d 100644--- a/examples/philips-google-tv-ta1/tv.json+++ b/examples/philips-google-tv-ta1/tv.json@@ -2,5 +2,5 @@"tv": "Philips 65PUS8729/60 (TPV, PH1M_WW_9972, MediaTek), Russia","os": "Google TV 14","brand": "Philips",- "notes": "TP Vision candeebug/gel analytics, partner attribution and auto-installs, retail demo, Samba TV, Control4, AirPlay, HbbTV and Google TTS off; Netflix, Prime Video, the Google TV films app, YouTube Music, ivi, the built-in browser and the Philips PlayFi and NFT gallery apps off by choice; Assistant, Chromecast and OTA kept; setupwraith + launcherx off for a custom launcher after the saved Wi-Fi network was forgotten and re-added (setupwraith owned it); cold reboot returns to Home with ADB and Wi-Fi, HDMI and Live TV not exercised"+ "notes": "TP Vision candeebug/gel analytics, partner attribution and auto-installs, retail demo, Samba TV, Control4, AirPlay, HbbTV and Google TTS off; Netflix, Prime Video, the Google TV films app, YouTube Music, ivi, the built-in browser and the Philips PlayFi and NFT gallery apps off by choice; Assistant, Chromecast and OTA kept; setupwraith + launcherx off for a custom launcher after the saved Wi-Fi network was forgotten and re-added (setupwraith owned it); cold reboot returns to Home with ADB and Wi-Fi, HDMI and Live TV not exercised; second set Philips Google TV TA5 (Netherlands): also ad services, Chromecast, Assistant, AirPlay input, Matter, ambient mode, Multi View, Mimi and the broadcast-TV packages off, all remote buttons kept with launcherx redirected, eARC toast silenced (README)"}