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 Philips 49PUS6561/12 (QM163E, QM16XE_U, MediaTek MT5890), Android TV 8.0
Martin6a9c7d10f2a7
diff --git a/examples/philips-49pus6561/README.md b/examples/philips-49pus6561/README.mdnew file mode 100644index 000000000..9b7e95806--- /dev/null+++ b/examples/philips-49pus6561/README.md@@ -0,0 +1,41 @@+# Philips 49PUS6561/12 (QM16XE_U, Android TV 8.0)++Notes from one set, on build `OPR5.170623.014` (incremental 026701). The list and its header are in+[`debloat.txt`](debloat.txt). This is the 2016 TP Vision platform (model `QM163E`, device `QM16XE_U`), not the+TPM171E board of the [55PUS7503](../philips-55pus7503/debloat.txt): the Live TV app is `org.droidtv.zapster` and+the NetTV preloads differ.++## Connecting++USB debugging alone opens ADB on TCP 5555. The "Allow USB debugging?" prompt appeared at the first connection.++## Launcher++The stock Home is `com.google.android.tvlauncher`; `com.google.android.leanbacklauncher` is also installed but+claims no HOME intent, so it was left alone. `launcher/build-and-install.sh` disabled the stock launcher after+the new Home was confirmed, and Home resolved to `com.gathin.tvhome/.MainActivity` across three reboots.++The Inputs pill lists HDMI 1-4, SCART, Y Pb Pr and Live TV. [`config.json`](config.json) sets the Live TV package and+hides three tiles: Live TV (the Inputs menu covers it), `org.droidtv.eum` (the "How to..." videos) and+`org.droidtv.nettvbrowser` (the "Internet" tile). Both are kept enabled: `eum` is what the Sources menu on the+50PUS7303 needed, and `nettvbrowser` is the HbbTV handler.++## Power-on and the remote++The TV powers on to the last used source (Live TV), not to Home, as Philips sets do. The owner kept it that way, so+`power_on_home` was not tried.++On the real remote with the list applied: Home opens the new launcher, Sources opens the Philips source menu,+Settings opens the Philips quick settings, Ambilight opens the Ambilight menu. The Netflix button does nothing+with Netflix disabled; the [55POS9002 note](../philips-55pos9002/README.md) describes the scancode 632 remap, which was+not tried here.++## The two input-permission packages++`org.droidtv.usagelogger` and `org.droidtv.demome` declare `TV_INPUT_HARDWARE`, so `tools/disable.sh` skips them+without `TVINPUT_ALLOW=1`. Neither is a TV input service. They were disabled last, after a reboot and a Live TV+check; Live TV started and the TV came back on Live TV after the next reboot.++## Undo++ TV_HOST=<tv ip> tools/restore.sh examples/philips-49pus6561/debloat.txt com.google.android.tvlauncherdiff --git a/examples/philips-49pus6561/config.json b/examples/philips-49pus6561/config.jsonnew file mode 100644index 000000000..4ce69b246--- /dev/null+++ b/examples/philips-49pus6561/config.json@@ -0,0 +1,4 @@+{+ "live_tv_package": "org.droidtv.zapster",+ "hidden_apps": ["org.droidtv.zapster", "org.droidtv.eum", "org.droidtv.nettvbrowser"]+}diff --git a/examples/philips-49pus6561/debloat.txt b/examples/philips-49pus6561/debloat.txtnew file mode 100644index 000000000..bd3af5a1c--- /dev/null+++ b/examples/philips-49pus6561/debloat.txt@@ -0,0 +1,103 @@+# Philips 49PUS6561/12 (TP Vision 2016 platform, model QM163E, device QM16XE_U, MediaTek MT5890), Europe+# Android TV 8.0.0 (API 26), build OPR5.170623.014 incremental 026701, security patch 2019-09-01.+# Fingerprint: PHILIPS/QM16XE_U/QM16XE_U:8.0.0/OPR5.170623.014/026701:user/release-keys+# 1.3 GB RAM, armeabi-v7a, 1920x1080 UI. Not the TPM171E board of examples/philips-55pus7503 (PH7M_EU_5596):+# same org.droidtv vendor prefix, different Live TV app and different NetTV preloads. Entries shared with the+# TPM171E lists were checked against this TV's own `pm list packages`.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-49pus6561/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-49pus6561/debloat.txt com.google.android.tvlauncher+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# TVINPUT_ALLOW=1: without it disable.sh skips org.droidtv.usagelogger and org.droidtv.demome (both ask for+# TV_INPUT_HARDWARE). Neither serves an input: `cmd package query-services -a android.media.tv.TvInputService`+# lists org.droidtv.tunerservice, hdmiService, scartService, componentService and Play Movies only. They were+# disabled last, after a reboot and a Live TV check, and Live TV was checked again. Apply the list without the+# override first, reboot, check your inputs, then run it again with TVINPUT_ALLOW=1.+#+# Stock launcher: com.google.android.tvlauncher (not in this list; launcher/build-and-install.sh disables it+# after the new Home is running). com.google.android.leanbacklauncher is also installed but+# claims no HOME intent here; left alone.+# Live TV app: org.droidtv.zapster (not org.droidtv.playtv as on the 2017/2018 sets)+# Launcher config: config.json in this folder (live_tv_package, hidden_apps).+#+# ADB: USB debugging alone opens TCP 5555; the RSA prompt appeared at the first connection.+# The TV powers on to the last used source (Live TV), not to Home, as Philips sets do.+#+# Kept on purpose, do NOT disable: org.droidtv.zapster, org.droidtv.tunerservice, org.droidtv.hdmiService,+# org.droidtv.scartService, org.droidtv.componentService, org.droidtv.xtv, org.droidtv.tvserver,+# org.droidtv.GlobalKey (remote buttons), org.droidtv.settings, org.droidtv.tvsystemui, org.droidtv.nettvbrowser+# (HbbTV red button; hidden from the grid instead), org.droidtv.eum (help; hidden instead, the Sources menu on+# the 50PUS7303 needed it), org.droidtv.contentexplorer (USB media player), org.droidtv.oad (firmware updates),+# org.droidtv.alhuewizard and org.droidtv.ambihuecommon (Ambilight+Hue), com.google.android.apps.mediashell+# (Chromecast), com.google.android.katniss (Assistant), org.droidtv.dlna, Play Store and Play Services,+# com.google.android.tv.remote.service. org.droidtv.homeintentresolver, org.droidtv.virtualassistant,+# org.droidtv.devicesetup and org.droidtv.tv.packageinfo run as the system UID and were left alone.+#+# Status: 2026-11-01, applied in one session with three reboots; every entry stayed disabled across them, none+# came back by itself. Verified on the real TV: replacement Home, Live TV at power-on and from the Inputs menu,+# the Inputs menu listing HDMI 1-4, SCART, YPbPr; Home, Sources, Settings and Ambilight buttons on the real+# remote (Sources opens the Philips source menu, Settings opens the Philips quick settings). Not yet a several-day+# soak test at the time of writing; the owner reports daily use since without issues.+# Not checked: HDMI playback with a source attached, HbbTV, USB playback after the list.++# Telemetry and analytics+org.droidtv.candeebug # "DAC" analytics uploader+org.droidtv.gel # "GEL" metrics collector, same process as candeebug; disable both+org.droidtv.usagelogger # boot stats, keypress counts, panel telemetry (needs TVINPUT_ALLOW=1)+org.droidtv.tv.frameworklogger # reboot reasons and firmware-install records to the Philips logger+com.google.android.feedback # Market Feedback Agent++# Promotion and recommendation rows+org.droidtv.demome # retail demo mode (needs TVINPUT_ALLOW=1)+org.droidtv.nettvrecommender # "Top Picks" content row+org.droidtv.sticker # e-sticker and shop banners+com.google.android.tvrecommendations # Android TV recommendation rows+com.google.android.tvtutorials # first-run tutorials ("How to..." row on the stock Home)++# Philips NetTV app store (pre-Android web-app platform), social and cloud extras, phone setup+org.droidtv.nettv.market # NetTV app gallery (the "Shop" tab on the stock Home)+org.droidtv.nettvapps # NetTvApps manager+org.droidtv.nettv_launcherapp # NetTV app launcher entry+org.droidtv.smarttvhome # "Philips TV Collection"+org.droidtv.nettvregistration # Philips account registration for NetTV+org.droidtv.twittershare # Twitter share sheet+org.droidtv.dropboxprovider # Dropbox source in Media+com.google.android.sss # Second Screen Setup (set up from phone)+com.google.android.sss.authbridge # Second Screen Setup auth bridge+com.google.android.partnersetup # Google partner setup++# Preinstalled NetTV web apps (labels read from the APKs with aapt; comment out any you use)+org.droidtv.nettvapp1984 # Dailymotion+org.droidtv.nettvapp3134 # iConcerts+org.droidtv.nettvapp3358 # Euronews+org.droidtv.nettvapp3783 # MeteoNews.TV+org.droidtv.nettvapp3814 # TV5Monde+org.droidtv.nettvapp3903 # VOYO+org.droidtv.nettvapp4023 # Siol.net+org.droidtv.nettvapp4024 # RTV SLO (web app)+org.droidtv.nettvapp4165 # Vreme+org.droidtv.nettvapp4533 # Kulinarika.net+org.droidtv.nettvapp4535 # Radio 1+org.droidtv.nettvapp4768 # France24+org.droidtv.nettvapp4835 # Cloud Explorer+org.droidtv.nettvapp4836 # Social TV+org.droidtv.nettvapp4932 # Free Games by PlayWorks++# Preloaded apps, off by choice on this unit (comment out any you use)+com.netflix.ninja # Netflix (the remote's Netflix button then does nothing; see README.md)+com.amazon.amazonvideo.livingroom # Prime Video+com.amazon.aiv.eu # Prime Video (EU component)+com.google.android.youtube.tv # YouTube+com.google.android.videos # Google Play Movies & TV+com.google.android.music # Google Play Music (service discontinued)+com.google.android.play.games # Google Play Games+bbc.iplayer.android # BBC iPlayer+com.plexapp.android # Plex+tv.twitch.android.app # Twitch+com.cloudmosa.puffinTV # Puffin TV browser+com.pokemontv # Pokémon TV+eu.bandainamcoent.pacman256 # PAC-MAN 256+com.expressvpn.vpn # ExpressVPN+com.privateinternetaccess.android # Private Internet Access+com.simplexsolutionsinc.vpn_unlimited # VPN Unlimiteddiff --git a/examples/philips-49pus6561/tv.json b/examples/philips-49pus6561/tv.jsonnew file mode 100644index 000000000..637f2a97c--- /dev/null+++ b/examples/philips-49pus6561/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Philips 49PUS6561/12 (TP Vision QM163E, QM16XE_U, MediaTek MT5890), Europe",+ "os": "Android TV 8.0",+ "brand": "Philips",+ "notes": "2016 platform, not the TPM171E board: Live TV is `org.droidtv.zapster`; DAC/GEL analytics, usage and framework loggers, demo, Top Picks, stickers, NetTV store and 15 web apps, phone setup; preloads off by choice; voice, Chromecast, updates, Ambilight, DLNA kept; two packages need `TVINPUT_ALLOW=1`; the TV powers on to the last source"+}