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 75PUS8505 (PH9M_EA_5599, Android TV 12)
Martin Horský94ba08dde500
diff --git a/README.md b/README.mdindex e302f43f6..f381674a9 100644--- a/README.md+++ b/README.md@@ -165,6 +165,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| Philips 55OLED707/12 (TP Vision, PH1M_EA_9970A, MediaTek MT5895), UK | Android TV 11 || Philips 55PUS7503/12 (TP Vision TPM171E, PH7M_EU_5596, MediaTek MT5891), Europe | Android TV 8.0 || Philips 65PUS8102/12 (TP Vision TPM171E, PH7M_EU_5596, MediaTek MT5891), Europe | Android TV 8.0 |+| Philips 75PUS8505/12 (TP Vision TPM191E, PH9M_EA_5599, MediaTek MT5887), Europe | Android TV 12 || Philips R8G Google TV (MOKA, whitefield, Realtek RTD2851F), US | Google TV 14 || Philips Smart 4K TV (Skyworth, eleonas, MediaTek), India | Google TV 14 || Philips TPM191E (TP Vision, PH9M_EA_5599, MediaTek mt5887), Europe | Android TV 12 |diff --git a/examples/README.md b/examples/README.mdindex da48e71be..58031997a 100644--- a/examples/README.md+++ b/examples/README.md@@ -42,6 +42,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `philips-55oled707/` | Philips 55OLED707/12 (TP Vision, PH1M_EA_9970A, MediaTek MT5895), UK | Android TV 11 | Same board and firmware build as `philips-50pus8517/`, on an OLED panel: DAC analytics, Top Picks, app gallery and its preload installer, Alexa, setupwraith (Ethernet only, Wi-Fi impact unchecked); `nettvbrowser` must stay or ITVX hangs; Play-Fi re-enables itself at every boot, so it is left out; Chromecast and all used streaming apps kept || `philips-55pus7503/` | Philips 55PUS7503/12 (TP Vision TPM171E, PH7M_EU_5596, MediaTek MT5891), Europe | Android TV 8.0 | Conservative older-generation list: Philips demo, Top Picks and usage logging; Google recommendations/tutorials; voice, Chromecast, updates, Ambilight and all streaming apps kept || `philips-65pus8102/` | Philips 65PUS8102/12 (TP Vision TPM171E, PH7M_EU_5596, MediaTek MT5891), Europe | Android TV 8.0 | Extends the 55PUS7503 list on the same firmware: DAC/GEL analytics, Inscape ACR client (its `inscape_fp` daemon needs root), NetTV store and 13 web apps, Assistant and Alexa off by choice; keep `nettvbrowser`, it is the HbbTV handler; RSA prompt needed revoke + mains power cycle |+| `philips-75pus8505/` | Philips 75PUS8505/12 (TP Vision TPM191E, PH9M_EA_5599, MediaTek MT5887), Europe | Android TV 12 | Same board and firmware as `philips-tpm191e/`, the 2020 "The One": DAC/GEL analytics, usage logger, Top Picks, app gallery, retail demo, Alexa, Play-Fi soft AP; Assistant off by choice, Chromecast and DLNA (for Média) kept; keep `fastip`, the SOURCES drawer dies without it; Play-Fi itself re-enables at boot, so it is left out || `philips-r8g-google-tv/` | Philips R8G Google TV (MOKA, whitefield, Realtek RTD2851F), US | Google TV 14 | Anoki ACR, store-demo overlay, Realtek partner customizer, HbbTV (unused with ATSC), Android ad services; voice and ambient mode off by choice; port 5555 opens without pairing; setupwraith owned the Wi-Fi saved at setup and disabling it deleted the network || `philips-smart-4k-google-tv/` | Philips Smart 4K TV (Skyworth, eleonas, MediaTek), India | Google TV 14 | Skyworth recommendations, after-sale/activation trackers, iCast; Chromecast, Assistant off by choice; wireless-debugging pairing, setupwraith || `philips-tpm191e/` | Philips TPM191E (TP Vision, PH9M_EA_5599, MediaTek mt5887), Europe | Android TV 12 | `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` kept, as on the 50PUS8517 |diff --git a/examples/philips-75pus8505/debloat.txt b/examples/philips-75pus8505/debloat.txtnew file mode 100644index 000000000..bc9b01d54--- /dev/null+++ b/examples/philips-75pus8505/debloat.txt@@ -0,0 +1,138 @@+# Philips 75PUS8505/12 (75" 4K UHD LED, 3-sided Ambilight, "The One", 2020 model), Czech Republic+# Android TV 12 (API 31), firmware STT2.230526.001, security patch 2025-11-01+# ro.product.model=TPM191E ro.product.device=PH9M_EA_5599+# Fingerprint: Philips/PH9M_EA_5599/PH9M_EA_5599:12/STT2.230526.001/4215:user/release-keys+# TP Vision build: MediaTek MT5887, 2 GB RAM, armeabi-v7a only. Vendor packages use the org.droidtv+# prefix. The 2020 sets got this Android 12 firmware (211.x) in 2025; nothing here was checked on+# the earlier Android 9/10 firmware.+#+# Same board AND firmware build as examples/philips-tpm191e (identical fingerprint), with another+# owner's choices: DLNA stays here because Média binds it; Alexa, the e-sticker, Fitness Buddy and+# Apple TV are off; and org.droidtv.fastip goes to DO NOT DISABLE, the SOURCES drawer dies without+# it. Every entry was checked on this TV with dumpsys package and dumpsys activity services. The+# org.droidtv layer is also shared with examples/philips-50pus8517 (PH1M_EA_9970A, Android 11).+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-75pus8505/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-75pus8505/debloat.txt com.google.android.tvlauncher+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Stock launcher: com.google.android.tvlauncher+# Live TV app: org.droidtv.playtv+#+# Already disabled out of the box on a Czech unit, so NOT in this list (restore.sh would turn them+# on): Netflix, Prime Video, Play Games, org.droidtv.freeviewplayers and 15 uk.co.freeview.* apps.+#+# Launcher handover, two things that differ from the script's assumptions on this TV:+# 1. The first cold start of the freshly installed, not yet compiled launcher takes longer than the+# 10 s `am start -W` waits on this 32-bit MT5887, so build-and-install.sh stops with+# "Status: timeout" although the launcher came up fine (it was the resumed activity and drew its+# first screen). The remaining steps (pm grant, cmd package compile -m speed, set-home-activity)+# were run by hand. Updating the already installed launcher later started in 2.2 s and the+# script ran through on its own.+# 2. The stock launcher's HOME filter has priority=2, a third-party launcher's always 0, and Android+# picks the higher priority before it looks at the preferred activity. So with the stock launcher+# still enabled, set-home-activity succeeds and the HOME role moves to com.gathin.tvhome, yet the+# Home key still opens com.google.android.tvlauncher. The new launcher only takes over once the+# stock one is disabled, as note 3 in examples/philips-55oled707 found on the Android 11 board.+#+# After each batch: logcat -c, 30 s of an idle TV, logcat -d, then group lines by shape and look+# for anything repeating several times a second (see quirk 5 in examples/philips-50pus8517). The+# only loop on this TV before and after is adbd retrying the USB gadget about once a second while+# USB debugging is on; it is not caused by the debloat.+# A soundbar on HDMI ARC that goes to standby on its own silence timer sends <Set System Audio Mode>+# off and <Terminate ARC>, and the TV shows "TV reproduktory aktivní" (TV speakers active). With+# Home on screen and nothing playing that happens during testing too; it is the soundbar, not the+# debloat.++# TP Vision telemetry. org.droidtv.gel runs inside the candeebug process. 17 TV components bind+# candeebug's CollectionService (channels, playtv, settings, tptvservice, tvpowermanagerservice,+# usbbreakin and others); none of them retried after it was disabled. Idle log unchanged, except+# that the storage monitor's 10-minute pass now logs "TvStorageCULLogger: Binder NOT available"+# once per channel source instead of handing the counts over.+org.droidtv.candeebug # "DAC" analytics uploader, INTERNET, ~40 MB resident+org.droidtv.gel # metrics collector sharing candeebug's process+org.droidtv.usagelogger # "UsageLogger": remote keypress logging (LogKeySvc), INTERNET, ~40 MB++# Philips content promos and the app gallery. Nothing persistent binds these; nettvrecommender is+# only a client of epgdata, not the other way round. Idle log unchanged afterwards.+org.droidtv.nettvrecommender # "Nejlepší tipy" (Top Picks) content promotion row, INTERNET, ~35 MB+org.droidtv.recommendation # its headless backend, ~38 MB; disable the row above first+org.droidtv.nettv.market # "Kolekce Philips TV" (Philips TV Collection) app storefront, ~34 MB+org.droidtv.android.fitness # Fitness Buddy, a /data app; not running, removes the tile++# Retail demo. Both run under org.droidtv.eum.* process names (eum.sticker, eum.demome) but are+# separate packages: org.droidtv.eum itself keeps running and must stay (see below). The persistent+# tptvservice storage monitor asks demome for the size of its clips every 30 s, and did so before+# too; with demome disabled it logs "iDemo null" at the same 30 s pace instead and its 10-minute+# pass still completes. The demo clips (~410 MB) stay on disk, disabling does not delete them.+org.droidtv.sticker # e-sticker and shop banners, reacts to USB and inactivity events, ~32 MB+org.droidtv.demome # "Nabídka Ukázky" (Demo me) shop loop, ~33 MB++# Google telemetry and first-setup leftovers. None was running, so no memory is freed; they just+# stop starting. Nothing binds them. Idle log unchanged.+com.google.android.feedback # Market Feedback Agent: crash and feedback reports to Google+com.google.android.partnersetup # partner referrer / attribution+com.google.android.onetimeinitializer # runs once at first setup, nothing afterwards+com.google.android.syncadapters.calendar # Google Calendar sync; no calendar app on this TV++# Voice assistants this owner does not use. Chromecast (com.google.android.apps.mediashell) is kept:+# katniss only binds into it as a client, mediashell kept running with the same PID afterwards, and+# casting from YouTube and a Chrome tab still worked.+# The default keyboard is Gboard, so typing is unaffected. Idle log unchanged.+# Disabling katniss makes Android clear secure voice_interaction_service and assistant to "", and+# restore.sh does not put them back; after a restore, either pick the Assistant again in Settings or+# settings put secure voice_interaction_service com.google.android.katniss/.search.serviceapi.KatnissVoiceInteractionService+# settings put secure assistant com.google.android.katniss/.search.serviceapi.KatnissVoiceInteractionService+com.google.android.katniss # Google Assistant and voice search, ~110 MB in two processes; kills the remote's mic button and voice search in YouTube and Play Store+org.droidtv.amazonalexa # Alexa bridge, ~33 MB; nothing bound it on this unit++# DTS Play-Fi, wireless multi-room speakers. It holds MODIFY_AUDIO_SETTINGS and may capture audio+# playback, but nothing in the system binds it and dumpsys audio was identical before and after:+# output stayed on HDMI ARC (mMainType=0x8) to a soundbar, and sound and remote volume were checked+# by ear afterwards. Keep both if you own Play-Fi speakers.+# The app itself does not stay disabled: after the next reboot it was back at enabled=1, with+# "AudioOutService: PlayFi Enabled" logged during boot, as examples/philips-tpm191e and+# examples/philips-55oled707 also found. So it is commented out; the soft AP stayed disabled.+# com.phorus.playfi.tv # "play-fi" app and its ProxyService, ~40 MB; re-enabled at boot, see above+com.phorus.playfi.softap # soft access point for setting up Play-Fi speakers, ~25 MB++# Preinstalled streaming apps this owner does not use. Both are system apps (factory copies in+# /system/product/app) with a Play Store update in /data, so Settings only offers "uninstall+# updates" and "disable"; disabling is enough, /data had 2.8 GB free.+com.apple.atve.androidtv.appletv # Apple TV+com.google.android.youtube.tvmusic # YouTube Music++# Stock launcher and its content engine, replaced by launcher/. ORDER MATTERS, as on+# examples/philips-50pus8517: disable the launcher FIRST, it holds a provider reference into+# tvrecommendations. After disabling tvlauncher, run set-home-activity again (Android drops the+# preference when the set of HOME apps changes); Home then resolved to com.gathin.tvhome, and both+# an injected KEYCODE_HOME and the remote's Home key landed there. tvrecommendations also owns the system+# notification panel, which is gone device-wide afterwards.+# com.google.android.tvlauncher # disabled by launcher/build-and-install.sh (or by hand) once the new launcher has started; ~140 MB resident+com.google.android.tvrecommendations # "Android TV Core Services": recommendation rows, notification panel, ~65 MB++# ─────────────────────────────────────────────────────────────────────────────────────────────+# DO NOT DISABLE on this TV, checked on the unit:+#+# USB media org.droidtv.contentexplorer ("Média"), org.droidtv.exoplayerservice+# (its player: contentexplorer drives IExoPlayerService, ~83 MB but+# needed to play files from a USB stick), org.droidtv.usbbreakin+# (USB service), org.droidtv.dlna (contentexplorer binds its UPnP+# services at start; kept, not tested without it)+# Bound by persistent xtv org.droidtv.eum, org.droidtv.ambihuecommon, org.droidtv.settings+# USB / ADB com.mediatek.backgrounddetection (holds USBDebuggingService)+# SOURCES key org.droidtv.fastip (Philips FAST ad-supported channels). It looks+# like a promo add-on and disables cleanly: no retry loop, the FAST+# input leaves dumpsys tv_input. But the remote's SOURCES key opens+# org.droidtv.channels/.sources.SourcesDrawerActivity, which checks+# for FAST channels first; with fastip gone it logs+# "isFastIPChannelsInstalled false", fires+# org.droidtv.fastip.START_INSTALLATION_FAST_PROMO_PAGE instead of+# showing the list, nothing answers, and the drawer vanishes on every+# press. pm enable brought it back at once, no reboot. Test SOURCES+# with the real remote: an injected KEYCODE_TV_INPUT carries no+# scancode (757 here) and Philips ignores it.+# The rest tuner, inputs, HDMI-CEC, power, remote, Ambilight, firmware update+# and the HbbTV browser engine were left alone, as in the DO NOT+# DISABLE block of examples/philips-50pus8517; all of its package+# names are present here except org.droidtv.xtvsystem.