Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Merge PR #178: Philips 50PUS8517/12 (TP Vision, org.droidtv, Android 11)

Gathin23bb7de10a0d7d
diff --cc examples/README.md
index 8c5316365,3b0caa369..fcf67484f
--- a/examples/README.md
+++ b/examples/README.md
@@@ -14,7 -12,7 +14,8 @@@ on that firmware, grouped and commented
| `insignia-ns55f301na25/` | Insignia 55" F30 4K Fire TV (NS-55F301NA25, AFTDCT31, duckie) | Fire OS 7 / Android 9 | Amazon ACR telemetry, Fire TV ads/shopping, Alexa, OTA updates; AirPlay and TIF HDMI inputs kept |
| `nvidia-shield-tv-pro-2019/` | NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 | NVIDIA telemetry, GameStream leftovers, sponsored rows, partner auto-installs |
| `oneplus-tv-dubai/` | OnePlus TV (D00, Dubai) | Google TV 14 | HeyTap/OnePlus extras, OnePlus Connect, Smart Home |
+| `panasonic-4ktv-jup/` | Panasonic 4KTV-JUP (Jupiter_PA, MediaTek) | Android TV 11 | Google recommendation rows and screensaver, Panasonic demo/hotel/help apps, calendar/print/backup leftovers; streaming apps off by choice; keep `com.mediatek.*` |
+ | `philips-50pus8517/` | Philips 50PUS8517/12 (TP Vision, PH1M_EA_9970A, MediaTek MT5895), Europe | Android TV 11 | First `org.droidtv` TP Vision list: DAC analytics uploader (AWS Firehose), Top Picks, Smart TV Collection; Assistant, DLNA, IP control off by choice; `disable-user` persists ~10 s late; Chromecast re-enables every boot |
| `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 |
| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch) | Android 14 | Homwee store and installers, Anoki ACR, FAST channels; 1 GB |
| `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA |
diff --cc examples/philips-50pus8517/debloat.txt
index 000000000,caa1b2009..7d4f64a90
mode 000000,100644..100644
--- a/examples/philips-50pus8517/debloat.txt
+++ b/examples/philips-50pus8517/debloat.txt
@@@ -1,0 -1,151 +1,151 @@@
+ # Philips 50PUS8517/12 (50" 4K UHD LED, 3-sided Ambilight, P5 Picture Engine, 2022 model)
+ # Android TV 11 (ro.build.version.release=11), firmware RTT2.211108.001, board PH1M_EA_9970A
+ # ro.product.model=2021_22_Philips_UHD_Android_TV ro.product.device=PH1M_EA_9970A
+ # Fingerprint: Philips/PH1M_EA_9970A/PH1M_EA_9970A:11/RTT2.211108.001/21029:user/release-keys
+ # TP Vision build: MediaTek MT5895, 2.67 GB RAM, armeabi-v7a userspace. Vendor packages use the
+ # org.droidtv prefix.
+ #
+ # Match on the BOARD and firmware, not on the model number. Philips/TP Vision ships one
+ # org.droidtv layer across a whole generation, so the x PUS85xx / PUS88xx sets of 2021-2022 on
+ # board PH1M_EA_9970A should carry the same package set; a different board or a Google TV
+ # (Android 12+) Philips will not. Check your own `pm list packages` against this file first —
+ # `tools/tv.py --probe` prints model, Android version and build.
+ #
+ # NOT the same platform as examples/philips-smart-4k-google-tv, which is a Skyworth-built
+ # India-market set on Google TV 14 with com.smartdevice/com.sky/com.tianci packages and no
+ # org.droidtv at all. Nothing from that file applies here and nothing here applies there.
+ #
+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-50pus8517/debloat.txt
+ # Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-50pus8517/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 (pass it to restore.sh, as above).
+ # Live TV app: org.droidtv.playtv
+ # App labels below were resolved by pulling each APK and reading it with `aapt dump badging`,
+ # not guessed from the package name. That matters on this firmware: org.droidtv.nettvapp4546 is
+ # MEGOGO, nettvapp4655 is Deezer, nettvapp5512 is Fishing TV, and org.droidtv.candeebug is
+ # labelled "DAC" and is the analytics uploader, not a debug tool.
+ #
+ # QUIRKS ON THIS FIRMWARE, in the order they will bite you:
+ #
+ # 1. pm disable-user persists to /data/system/users/0/package-restrictions.xml with a delay
+ # (~10 s on AOSP). If you run disable.sh and power-cycle the TV straight away, the changes
+ # are silently lost: packages come back as enabled=0 (DEFAULT). Wait, or run
+ # `pm list packages -d` and confirm your packages are listed before pulling the plug.
+ # 2. `adb reboot` over TCP hangs holding the dropped connection. Kill the adb server right
+ # after sending it and wait on port 5555 coming back instead of on the adb command.
+ # 3. The Android 11 shell cannot disable individual components of another app
+ # ("SecurityException: Shell cannot change component state") and cannot `pm hide`
+ # ("Neither user 2000 nor current process has android.permission.MANAGE_USERS"). So if a
+ # package refuses to stay disabled, the shell has no second lever. `pm suspend` does work
+ # and survives a reboot, but it does not stop services: an app that starts itself from its
+ # own boot receiver keeps running with suspended=true.
+ # 4. com.google.android.apps.mediashell (Chromecast built-in) could NOT be kept disabled on this
+ # firmware and is deliberately absent from the list below. It returns to enabled=1 about 35 s
+ # after every boot, reproducibly. pm disable-user, pm suspend, per-component disable and
+ # pm hide were all tried; the first is undone, the second does not stop it, the last two are
+ # refused by the platform. Left enabled, at a cost of about 37 MB.
+ # 5. The replacement launcher takes over on its own. Projectivy declares
+ # android.intent.category.HOME, so the moment com.google.android.tvlauncher is disabled the
+ # system resolves HOME to it — immediately, without a reboot and without enabling any
+ # accessibility service. Check with
+ # `cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME`
+ # BEFORE disabling the stock launcher, and make sure your replacement is listed by
+ # `cmd package query-activities` for that intent. If it is not, you will be left without a
+ # home screen (see issue #90).
+
+ # TP Vision telemetry. org.droidtv.gel runs inside the candeebug process
+ # (android:process="org.droidtv.candeebug"), so disabling candeebug alone leaves a process with
+ # that name still running and looks like a failure. Disable both.
+ org.droidtv.candeebug # "DAC" analytics uploader: channel watched, resolution, HDMI-CEC devices, viewing times, Ambilight config; uploads to AWS Firehose/S3 and geolocates the public IP via ipinfo.io
+ org.droidtv.gel # metrics collector sharing candeebug's process; no INTERNET permission of its own
+ org.droidtv.usagelogger # boot stats, remote keypress counts, panel/eMMC telemetry forwarded to the above
+
+ # Philips content promos and the app gallery
+ org.droidtv.nettvrecommender # "Top Picks" content promotion row
+ org.droidtv.recommendation # its headless backend; disable the row above first or you get a live tile with no data source
+ org.droidtv.nettv.market # "Smart TV Collection" app storefront
+ org.droidtv.nettvapp1814 # ARTE
+ org.droidtv.nettvapp4546 # MEGOGO
+ org.droidtv.nettvapp4633 # alacarta RTVE
+ org.droidtv.nettvapp4655 # Deezer
+ org.droidtv.nettvapp4932 # Free Games by PlayWorks
+ org.droidtv.nettvapp5326 # Toon Goggles
+ org.droidtv.nettvapp5512 # Fishing TV
+ org.droidtv.nettvapp20004410 # Couchplay Games
+ org.droidtv.android.fitness # Fitness Buddy
+
+ # Philips features this owner does not use. Check each against your own setup.
+ org.droidtv.amazonalexa # Alexa bridge; live TV holds a binding into it, so test channel zapping and the EPG after disabling -- NOT exercised on this unit
+ org.droidtv.eum # "How to…" e-manual plus the Check TV / Check picture / Check network / Remote control test wizards; four services, bound by settings, playtv, channels and persistent xtv -- the Help key and the Settings tree were NOT exercised on this unit
+ org.droidtv.aurora # Philips Aurora ambient artwork screen; also answers the /6/aurora/settings JointSpace endpoints
+ org.droidtv.dlna # DLNA/UPnP server and renderer; persistent + coreApp, yet disables cleanly and contentexplorer ("Media") still starts and keeps its PID. Its DLNA init is gated behind a broadcast dlna itself sends, so the USB source should be unaffected -- reasoned from the code, not tested here
+ org.droidtv.ipcontrol # LAN control of volume, audio output, Ambilight on/off and ShopMode. NOTE: this is NOT the JointSpace API on ports 1925/1926 — that is served by org.droidtv.xtv, which must stay. Keep this if you drive the TV from Home Assistant
+ org.droidtv.demome # "Demo me" retail demo mode, e-sticker and shop loop; bound at boot by org.droidtv.settings to clear demo clips before a firmware update, null-guarded
+ org.droidtv.m7opapp # M7 satellite operator promo (Canal Digitaal, TV Vlaanderen, Skylink, HD Austria); keep if you use one of those
+
+ # Google telemetry and first-setup leftovers
+ com.google.android.feedback # Market Feedback Agent
+ com.google.android.partnersetup # partner referrer / attribution
+ com.google.android.onetimeinitializer # runs once at first setup, nothing afterwards
+ com.google.android.sss.authbridge # Second Screen Setup Auth Bridge (set-up-from-phone helper)
+ com.google.android.syncadapters.calendar # Google Calendar sync; no calendar app is installed on this TV
+
+ # Google apps this owner does not use
+ com.google.android.katniss # Assistant and voice search, ~101 MB across two processes. Kills the remote's mic button, "Hey Google", on-screen voice search and the mic icon inside YouTube and Play Store search. Settings and tvsystemui guard their calls into it, so nothing crashes
+ com.google.android.play.games
+ com.google.android.videos # Google TV / Play Movies
+ com.google.android.youtube.tvmusic # YouTube Music
+ com.google.android.marvin.talkback # TalkBack screen reader; keep if anyone needs it
+
+ # Preinstalled streaming apps. All of these sit in /data/app rather than on the system
+ # partition, so unlike the vendor packages above they are ordinary user-installed apps.
+ com.netflix.ninja
+ com.amazon.amazonvideo.livingroom # Prime Video
+ com.apple.atve.androidtv.appletv
+ com.disney.disneyplus
+ com.zeasn.whalelive # WhaleLive (Zeasn) ad-supported FAST channels
+ com.boosteroidtv.streaming # Boosteroid cloud gaming
+ com.witsoftware.ir.vodafonetv # Vodafone TV; runs headless, no icon
+ tv.sweet.tvplayer # Sweet TV (Ukrainian IPTV)
+ tv.wuaki.apptv # Rakuten TV
+
+ # Stock launcher and its content engine, replaced by launcher/ (or Projectivy).
+ # ORDER MATTERS: disable the launcher FIRST. com.google.android.tvlauncher holds a stable
+ # ContentProvider reference on tvrecommendations/.NotificationContentProvider, and
+ # ActivityManagerService kills a client holding a stable ref when the provider's process dies —
+ # so disabling tvrecommendations first force-stops the live 190 MB launcher process.
+ # tvrecommendations is also the only resolver for the system notification panel
+ # (OPEN_NOTIFICATIONS_PANEL and friends), so that panel is gone device-wide, not just from the
+ # stock home screen. That is a conscious trade, not a side effect.
-com.google.android.tvlauncher # 190 MB resident, the single heaviest process on this TV
++# com.google.android.tvlauncher # launcher/build-and-install.sh disables the stock launcher itself, after Home has moved # 190 MB resident, the single heaviest process on this TV
+ com.google.android.tvrecommendations # "Android TV Core Services" despite the name: recommendation rows, channels, notification panel
+
+ # Stock YouTube, replaced by SmartTube (ads and sponsor segments). 119 MB resident vs ~35 MB.
+ # Philips remotes of this generation often carry a dedicated YouTube key, which is bound to this
+ # package and will stop doing anything. The remote on this particular unit has no such key, so
+ # that was not a factor here -- check your own before you decide this matters.
+ com.google.android.youtube.tv
+
+ # ─────────────────────────────────────────────────────────────────────────────────────────────
+ # DO NOT DISABLE on this platform. Checked by walking every intent resolver table and every
+ # service binding, not by reading package names:
+ #
+ # Ambilight and calibration org.droidtv.ambiair, ambihuecommon, alhuewizard, audiocalibration,
+ # calmancalibrator, bluetoothaudiosink
+ # Tuner, channels, inputs org.droidtv.xtv, xtvsystem, playtv, channels, epgdata, dvbi,
+ # teletext, ci, hdmiservice, euinstallertc, euinstallersat,
+ # hbbtvopapp, tv.tptvservice, icp, sunrise,
+ # com.mediatek.tvinput, tvinputservice.arbitratorservice,
+ # tv.agent, com.android.providers.tv
+ # Shell, power, remote, keys org.droidtv.tvsystemui, tvpowermanagerservice, GlobalKey,
+ # lkb (front-panel keypad), settings, menudataapp,
+ # homeintentresolver, com.google.android.tv.remote.service
+ # Firmware update org.droidtv.oad, com.easy.oad ("RC FW Update", remote firmware),
+ # devicesetup, networkwizard, nettvregistration
+ # Browser engine com.vewd.core.browserui plus org.droidtv.nettvbrowser — HbbTV and
+ # the app gallery run on it
+ # USB media org.droidtv.contentexplorer ("Media")
+ #
+ # org.droidtv.philipstvdrawer is safe to disable but was kept on purpose: it is the Philips side
+ # menu with shortcuts to the TV guide, channel list, sources, Media and quick settings — not ads.