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
Merge PR #518: Adds a debloat list for the Philips Google TV TA7
Gathin2364c37ed19453
diff --cc README.mdindex 85dfba286,4d3f85e10..859a0cf01--- a/README.md+++ b/README.md@@@ -172,11 -136,10 +172,12 @@@ BYINTEK, JMGO, Portronics, Stellamore,| Panasonic TH-40HS550K (Skyworth-built, GS655 shibuya, MediaTek) | Android TV 11 || Philips 50PUS8517/12 (TP Vision, PH1M_EA_9970A, MediaTek MT5895), Europe | Android TV 11 || Philips 55OLED707/12 (TP Vision, PH1M_EA_9970A, MediaTek MT5895), UK | Android TV 11 |+| Philips 55OLED708/12 (TPV, PH1M_WW_9972, MediaTek), Poland | Google TV 12 || 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 65PUS9435/12 (TP Vision TPM191E, PH9M_EA_5599, MediaTek MT5887), Germany | Android TV 12 || Philips 75PUS8505/12 (TP Vision TPM191E, PH9M_EA_5599, MediaTek MT5887), Europe | Android TV 12 |+ | Philips Google TV TA7 (TPV, PH3M_AL_T32, MediaTek), Brazil | Google TV 14 || 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 --cc examples/README.mdindex b298c498d,ac66f51b3..dd1ca7f2e--- a/examples/README.md+++ b/examples/README.md@@@ -67,11 -45,10 +67,12 @@@ on that firmware, grouped and commented| `panasonic-th-40hs550k/` | Panasonic TH-40HS550K (Skyworth-built, GS655 shibuya, MediaTek) | Android TV 11 | Skyworth auto-installs, shop demo and Demo Now, e-manual, MediaTek PQ test tool, Google feedback and smartconnect, recommendation rows and partner customizer; Assistant, USB media player, remote-firmware updater and unused streaming apps off by choice; 0.9 GB; keep `com.mediatek.*` and `com.coocaa.factory` || `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, app gallery; Assistant, DLNA, IP control off by choice; disabling `eum` or `aurora` leaves persistent `xtv` retrying forever, and `eum` also kills the sources drawer -- see quirk 5 || `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-55oled708/` | Philips 55OLED708/12 (TPV, PH1M_WW_9972, MediaTek), Poland | Google TV 12 | Google TV generation, not the 707's board: DAC analytics, frameworklogger, Samba TV ACR, NFT Collection, Play-Fi, Control4, Matter, Mimi, Alexa, Chromecast, setupwraith (Wi-Fi re-joined first) and the Philips launcher tab; `demome` holds TV_INPUT_HARDWARE so it stays; the remote's gear and Apps buttons need HomeKeyService (gear by scancode 141); nothing re-enabled after a reboot || `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-65pus9435/` | Philips 65PUS9435/12 (TP Vision TPM191E, PH9M_EA_5599, MediaTek MT5887), Germany | Android TV 12 | Same board and firmware as `philips-75pus8505/`, 4-sided Ambilight: DAC/GEL analytics, Top Picks, app gallery, Alexa, Play-Fi soft AP, unused streaming apps and five Philips web-app tiles; Assistant off by choice; Ambilight, Chromecast, Apple TV, ARTE and ARD kept; Play-Fi, usage logger and demo mode re-enable at boot, so they are left out; reboot-checked || `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-google-tv-ta7/` | Philips Google TV TA7 (TPV, PH3M_AL_T32, MediaTek), Brazil | Google TV 14 | TP Vision `candeebug`/`gel` analytics, partner attribution and auto-installs, European operator apps, ad-consent and disclaimer popups; Netflix, Prime Video, Google TV app and Chromecast off by choice, Assistant and OTA kept; setupwraith + launcherx off for a custom launcher (setupwraith owned only an unused network); the gear button is KEYCODE_SETTINGS and needs HomeKeyService; has its own install.sh, restore.sh and theme |++| `philips-google-tv-ta7/` | Philips Google TV TA7 (TPV, PH3M_AL_T32, MediaTek), Brazil | Google TV 14 | TP Vision `candeebug`/`gel` analytics, partner attribution and auto-installs, European operator apps, ad-consent and disclaimer popups; Netflix, Prime Video, Google TV app and Chromecast off by choice, Assistant and OTA kept; setupwraith + launcherx off for a custom launcher (setupwraith owned only an unused network); the gear button is KEYCODE_SETTINGS and needs HomeKeyService (`HOME_KEY_SERVICE=1`); theme || `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 --cc examples/philips-google-tv-ta7/README.mdindex 000000000,583b69e12..e2273d716mode 000000,100644..100644--- a/examples/philips-google-tv-ta7/README.md+++ b/examples/philips-google-tv-ta7/README.md@@@ -1,0 -1,109 +1,97 @@@+ # Philips Google TV TA7 (Brazil)++ Philips Google TV TA7 (TPV, PH3M_AL_T32, MediaTek), Google TV 14, build UTT1.250308.001, about 1.9 GB RAM.+ Debloated and given the Clean Your TV launcher on 2026-10-20.++ | File | What it is |+ |---|---|+ | `debloat.txt` | The packages that were disabled, in the batches they were applied, with what each one is and what was kept on purpose |-| `install.sh` | Builds the launcher, installs it as Home (disabling the setup wizard and the stock launcher), turns on the gear-button fix and pushes `theme/` |-| `restore.sh` | Undoes all of it: re-enables every package in `debloat.txt`, gives Home back to the stock Google TV launcher and turns AdGuard DNS off |+ | `theme/config.json` | Dock order, greeting, hidden apps |++ All commands run from the repository root and need the Python client once:+ `python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt`.+ They also need network ADB, which is switched off when you're done (see the last section), so turn it on+ again first: Settings > System > About > press Build 7 times, then Developer options > USB debugging on.+ Accept the "Allow USB debugging?" prompt on the TV the first time a command connects.++ ## What changed++ - **Disabled** (never uninstalled): TP Vision analytics (`candeebug`, `gel`), partner attribution and+ auto-installs, European satellite operator apps, the ad-consent and disclaimer popups, Play Games,+ calendar sync, print spooler, Netflix, Prime Video, the Google TV films app, Chromecast, the setup+ wizard and the stock Google TV launcher.+ - **Re-enabled**: HBO Max (`com.wbd.stream`) and Google Assistant (`com.google.android.katniss`), which+ had been disabled before.+ - **Kept**: everything that plays HDMI and the tuner, the input menu, remote pairing, keyboards, Play+ Store and Play Services, firmware updates, and all the streaming apps you use.+ - **Launcher**: `com.gathin.tvhome` is Home. Dock: YouTube, HBO Max, Crunchyroll, CineVS.+ - **Gear button**: the remote's Settings button only worked through the stock launcher, so the+ launcher's HomeKeyService (an accessibility service) now handles it. If the button stops working,- check Settings > Accessibility > "Botão Home" is on, or run `install.sh` again.-- **Private DNS**: `dns.adguard-dns.com`, which blocks ad and tracker domains for the whole TV. It does- **not** block YouTube ads.++ check Settings > Accessibility > "Botão Home" is on, or reinstall the launcher as below.++ ## Re-enable an app++ On the TV: Settings > Apps > See all apps > Show system apps (or "Disabled apps"), pick the app, Enable.++ Over ADB:++ ```bash+ TV_HOST=192.168.0.10 tools/venv/bin/python -I tools/tv.py 'pm enable --user 0 com.netflix.ninja'+ ```++ Then delete or comment out its line in `debloat.txt`, so a later run doesn't disable it again. The+ package names and what each one does are in `debloat.txt`.++ ## Change the dock order++ Edit `theme/config.json`. `dock_apps` lists the four dock apps from left to right:++ ```json+ "dock_apps": ["com.google.android.youtube.tv", "com.wbd.stream", "com.crunchyroll.crunchyroid", "com.cnvs.apptv"]+ ```++ Other package names: Globoplay `com.globo.globotv`, Disney+ `com.disney.disneyplus`, Spotify+ `com.spotify.tv.android`, YouTube Music `com.google.android.youtube.tvmusic`, Red Bull TV+ `com.nousguide.android.rbtv` (all of them: `tools/tv.py 'pm list packages'`). Then push it; no rebuild:++ ```bash+ TV_HOST=192.168.0.10 tools/theme.sh examples/philips-google-tv-ta7/theme+ ```++ You can also reorder on the TV itself: hold OK on the Settings pill and choose the reorder option.+ `greeting_name` sets the name after the greeting; `hidden_apps` hides tiles.++ ## Change the wallpaper++ Put a dark 1920×1080 JPEG under about 300 KB at `theme/wallpaper.jpg`, set `"wallpaper": true` in+ `theme/config.json`, and push the theme with the command above. For a rotating set, put the pictures in+ `theme/wallpapers/` and add `"wallpaper_rotation_minutes": 30` (and `"wallpaper_dim": 40` to darken them).+ `"background_color"` changes the plain black. To go back to plain black, set `"wallpaper": false` and push+ again. All keys are in [themes/README.md](../../themes/README.md).+-## Turn AdGuard DNS off--```bash-TV_HOST=192.168.0.10 tools/venv/bin/python -I tools/tv.py 'settings put global private_dns_mode opportunistic'-```--Or Settings > Network & Internet > Private DNS > Automatic. Do this first if an app stops loading.-+ ## Undo everything++ ```bash-TV_HOST=192.168.0.10 examples/philips-google-tv-ta7/restore.sh # keep the launcher installed-UNINSTALL_LAUNCHER=1 TV_HOST=192.168.0.10 examples/philips-google-tv-ta7/restore.sh # remove it too++TV_HOST=192.168.0.10 tools/restore.sh examples/philips-google-tv-ta7/debloat.txt com.google.android.apps.tv.launcherx+ ```+-`tools/restore.sh examples/philips-google-tv-ta7/debloat.txt com.google.android.apps.tv.launcherx` does-the same from the state recorded before the first change (`~/.cleanyourtv/`). Either way, the apps that++This works from the state recorded before the first change (`~/.cleanyourtv/`). The apps that+ were already disabled before 2026-10-20 (Aptoide, VS Cine, Viki, the ambient screensaver and the+ others listed at the top of `debloat.txt`) stay disabled. Re-enable them one by one as above.++ ## Reinstall or update the launcher++ ```bash-TV_HOST=192.168.0.10 examples/philips-google-tv-ta7/install.sh++TV_HOST=192.168.0.10 STOCK_LAUNCHER=com.google.android.apps.tv.launcherx HOME_KEY_SERVICE=1 launcher/build-and-install.sh++TV_HOST=192.168.0.10 tools/theme.sh examples/philips-google-tv-ta7/theme+ ```+-Needs JDK 17+ and the Android SDK (platform 34, build-tools 34) in `~/Android/Sdk`. A reinstall switches-accessibility services off, and the script turns the gear-button service back on.++Needs JDK 17+ and the Android SDK (platform 34, build-tools 34). `HOME_KEY_SERVICE=1` keeps the++gear-button fix on after a reinstall. Before the first install, check that the setup wizard++(`com.google.android.tungsten.setupwraith`) doesn't own the Wi-Fi the TV is on (see `debloat.txt`).++ ## Close ADB when you're done++ Port 5555 is plaintext, so leave it off: Settings > System > Developer options > switch off USB debugging+ (and Wireless debugging if it is on), choose "Revoke USB debugging authorisations", then restart the TV.+ From the PC, `nc -vz 192.168.0.10 5555` should then fail.diff --cc examples/philips-google-tv-ta7/debloat.txtindex 000000000,c57d39869..d5202493fmode 000000,100644..100644--- a/examples/philips-google-tv-ta7/debloat.txt+++ b/examples/philips-google-tv-ta7/debloat.txt@@@ -1,0 -1,74 +1,73 @@@+ # Philips Google TV TA7 (TPV, PH3M_LT_T32 / device PH3M_AL_T32, MediaTek), Brazil+ # Google TV 14 (API 34), build UTT1.250308.001. About 1.9 GB RAM, armeabi-v7a, UI 1920x1080 on a 4K panel.+ # Fingerprint: Philips/PH3M_LT_T32/PH3M_AL_T32:14/UTT1.250308.001/101000072000:user/release-keys+ # Vendor packages: TP Vision org.droidtv.* on a MediaTek base (com.mediatek.*, mediatek.factorymenu.ui).+ #+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/philips-google-tv-ta7/debloat.txt+ # Undo: TV_HOST=<tv ip> tools/restore.sh examples/philips-google-tv-ta7/debloat.txt com.google.android.apps.tv.launcherx-# (or examples/philips-google-tv-ta7/restore.sh, which needs no recovery record)-# Launcher: TV_HOST=<tv ip> examples/philips-google-tv-ta7/install.sh++# Launcher: TV_HOST=<tv ip> STOCK_LAUNCHER=com.google.android.apps.tv.launcherx HOME_KEY_SERVICE=1 launcher/build-and-install.sh+ # Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+ #+ # Applied in batches on 2026-10-20 with a screenshot after each, then the custom launcher installed;+ # Home, HDMI 1 and Live TV, YouTube playback, HBO Max, Settings and every remote button were checked,+ # and everything survived a reboot. Not yet lived with for days.+ #+ # Stock launcher: com.google.android.apps.tv.launcherx. Home claimants: launcherx (priority 2),+ # setupwraith RecoveryActivity (1), com.android.tv.settings FallbackHome (-1000). While launcherx is+ # enabled, set-home-activity to another launcher does not stick.+ # Live TV app and HDMI player: com.mediatek.wwtv.tvcenter (TurnkeyUiMainActivity); the launcher's+ # default live_tv_package already matches. HDMI 1-4 are listed by com.mediatek.tvinput.+ #+ # Quirks on this firmware, all checked on the TV:+ # - Port 5555 was already open and the PC already authorised; ro.adb.secure=1.+ # - `screencap -p` prints "Init wrapper sys mutex successful. Pid:..." before the PNG on stdout:+ # strip everything before the \x89PNG signature.+ # - The remote's Settings (gear) button is scancode 357 (KEY_OPTION) -> KEYCODE_SETTINGS (176), a+ # global key routed to com.mediatek.tv.service's HotKey GlobalKeyReceiver, which forwarded it to the+ # stock dashboard. With launcherx disabled it does nothing until HomeKeyService is on+ # (HOME_KEY_SERVICE=1, no config needed for KEYCODE_SETTINGS). Input and app buttons keep working.+ # - KEYCODE_GUIDE and KEYCODE_NOTIFICATION are global keys of launcherx; this remote does not send them.+ # - setupwraith owned one old saved network (not the one in use), and only that entry was deleted.+ #+ # Kept on purpose: org.droidtv (TPVTvService, sees every key press), org.droidtv.icp (persistent+ # sign-on service, purpose unclear), org.droidtv.ambisvc (Ambilight/Lounge), org.droidtv.eum (user+ # manual; hidden in the launcher instead), com.mediatek.tv.service (hot keys, Netflix key, TV agent),+ # com.mediatek.tvinput, com.mediatek.wwtv.tvcenter, com.mediatek.wwtv.setupwizard (channel scan),+ # com.mediatek.wwtv.mediaplayer (USB media), com.mediatek.autopair (remote pairing), com.mediatek.tv.factory+ # and mediatek.factorymenu.ui (factory menus), com.mediatek.android.leanbacklauncher.partnercustomizer+ # (crash-loops tv.service on another MediaTek set), com.android.tv.ota and com.easy.oad (firmware+ # updates), com.google.android.katniss (Assistant), Play Store, Play Services, both keyboards.+ # Disabled by the owner before this list and therefore not in it: cm.aptoide.pt, com.vscine.tv,+ # com.viki.android, fusion.android.tv.demo, com.google.android.apps.tv.dreamx (ambient mode),+ # com.android.adservices.api, com.android.ondevicepersonalization.services,+ # com.android.federatedcompute.services, com.android.tv.feedbackconsent, com.google.android.feedback+ # and the two Health Connect packages.++ # Batch 1: telemetry and attribution+ org.droidtv.candeebug # TP Vision "DAC" analytics: CollectionService, boot receiver, ~55 MB resident+ org.droidtv.gel # TP Vision metrics GatheringService, shares candeebug's cache provider+ com.google.android.partnersetup # partner referrer / RLZ ping+ android.autoinstalls.config.tpv.device # Play auto-install of TPV partner apps++ # Batch 2: manufacturer content and popups+ com.mediatek.opapp # European satellite operator apps (Canal Digitaal, HD+, Skylink...), unused in Brazil+ org.droidtv.consentcmpapp # TP Vision ad-consent (CMP) screen+ com.mstar.android.tv.disclaimercustomization # disclaimer popup++ # Batch 3: background extras+ com.google.android.play.games+ com.google.android.onetimeinitializer # runs once at first setup+ com.google.android.syncadapters.calendar # no calendar app on a TV+ com.android.printspooler++ # Batch 4: by owner's choice (not used)+ com.netflix.ninja+ com.amazon.amazonvideo.livingroom # Prime Video+ com.google.android.videos # Google TV films/shop app+ com.google.android.apps.mediashell # Chromecast built-in, ~75 MB resident+-# Batch 5: stock home. Disable only after the new launcher is installed (install.sh does this).++# Batch 5: stock home. Disable only after the new launcher is installed (build-and-install.sh with STOCK_LAUNCHER does this).+ # setupwraith goes first: its RecoveryActivity (HOME priority 1) otherwise takes Home. Check+ # `dumpsys wifi | grep -o 'cname=[^ ]*'` first; on this TV it owned only an old, unused network.+ com.google.android.tungsten.setupwraith+ com.google.android.apps.tv.launcherx