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 #806: examples: add Motorola MT4310 (Newsan; Hisense hayward, MediaTek), Android TV 11
Gathin23c6d6f7d41dc0
diff --cc README.mdindex c0b148f59,b8087e0d2..dea1e97b3--- a/README.md+++ b/README.md@@@ -172,7 -156,7 +172,8 @@@ Anker Nebula, BYINTEK, Epson, Formovie| Kalley R10G (device R10G, product ACER_FFM, MOKA, Realtek RTD2875P), Latin America | Google TV 14 || Karbonn SWTV-20AE (Skyworth OEM, SW4H, MediaTek), India | Android TV 10 || Kogan Google TV (Changhong CHiQ AI PONT, GTVU65KG, dangni, MediaTek mt5867), Australia | Google TV 14 |+| Lumio Vision 7 55" (KTC ODM, Realtek, khardi, KTC_LUMIO_4K_EU_23GV1), India | Google TV 14 |+ | Motorola MT4310 (Newsan; Hisense board, hayward, MediaTek), Argentina | Android TV 11 || Motorola SWTV-24AE-FHD (Skyworth OEM, beomil, MediaTek), India/Global | Google TV 14 || MTC UK 2K Android TV (tabata, MediaTek m5621; JVC-family firmware, `android.autoinstalls.config.JVC` present), UK | Android TV 11 || Noblex NoblexTV (Skyworth-built, shinjuku, MediaTek m5621), Argentina | Android TV 11 |diff --cc examples/README.mdindex 88f704e3f,c759b1a2d..11a643408--- a/examples/README.md+++ b/examples/README.md@@@ -62,7 -51,7 +62,8 @@@ on that firmware, grouped and commented| `kalley-r10g/` | Kalley R10G (device R10G, product ACER_FFM, MOKA, Realtek RTD2875P), Latin America | Google TV 14 | Same hardware family as `prismplus-q65-ultra-r10g/` with different preloads: Claro, Kick, JioTV, CBS, Apple TV, Prime Video, karaoke, Play Movies; launcherx + setupwraith off for a custom launcher (Wi-Fi survived; voice untested); Input key is KEYCODE_TV_INPUT (RC860G) and needs InputKeyService; keep Realtek dtv/atv for inputs and OTA || `karbonn-swtv-20ae/` | Karbonn SWTV-20AE (Skyworth OEM, SW4H, MediaTek), India | Android TV 10 | Same SW4H platform as Panasonic 4KTV-0SU; Skyworth ACR, ad-row injector, ePop demo, e-manual, Airtel Xstream, Facebook and India-specific preloads; Google feedback and recommendation rows; 1.68 GB RAM, 32-bit armeabi-v7a; com.sky.market is a protected package (SecurityException); animation scales halved + background_process_limit 2 for extra performance on low RAM; Live TV is com.smartdevice.livetv || `kogan-gtvu65kg/` | Kogan Google TV (Changhong CHiQ AI PONT, GTVU65KG, dangni, MediaTek mt5867), Australia | Google TV 14 | Same board as chiq-gtvu65 on UKN3 firmware; Google ad services and auto-installs, feedback, Homwee store/help; Homwee screenshare packages are the AirPlay receiver (keep for iPhones); Chromecast, voice, OTA kept; AdGuard DNS validates; debloat only; reboot-checked |+| `lumio-vision-7/` | Lumio Vision 7 55" (KTC ODM, Realtek, khardi, KTC_LUMIO_4K_EU_23GV1), India | Google TV 14 | First Lumio list: Anoki ACR + Privacy Sandbox ad services, Realtek store-demo/karaoke, Ginga, Google feedback/partner-setup/calendar-sync/ambient screensaver, Play Games, YouTube Music; voice assistant (katniss) off by choice (~100 MB); setupwraith must go with launcherx (active Wi-Fi was system-owned, so Wi-Fi survived; FORCE_SETUPWRAITH=1) and doing so can break Cast; Live TV is com.realtek.tv; remote app buttons YouTube 190 / Netflix 191 / Prime 195 / TL;DR 200; Netflix shipped disabled; reboot-checked |+ | `motorola-mt4310/` | Motorola MT4310 (Newsan; Hisense board, hayward, MediaTek), Argentina | Android TV 11 | Hisense silent auto-installs, store demo and disclaimer, feedback and partner setup, recommendation rows and MediaTek partnercustomizer, printing and calendar; Play Movies, Play Games and TalkBack/TTS off by choice; the factory manager re-enables katniss and tvrecommendations at every boot, so they stay on; 0.9 GB, 720p UI; tvlauncher off for a custom launcher, setupwraith left on (no HOME claim); remote app and Input keys survive the swap; Live TV is `com.mediatek.wwtv.tvcenter` || `motorola-swtv-24ae-fhd/` | Motorola SWTV-24AE-FHD (Skyworth OEM, beomil, MediaTek), India/Global | Google TV 14 | Skyworth after-sale/activation trackers, recommendation rows and partner customizer, TV Guard (dailymanage), Daily Key (myapp), e-manual; Google Play Games and feedback; launcherx + setupwraith off; setupwraith owned Wi-Fi saved at setup; remote Settings button emits keycode 83 (KEYCODE_NOTIFICATION) on scancode 240, needs HomeKeyService; Live TV is `com.cltv.hybrid` || `mtc-uk-2k-android-tv/` | MTC UK 2K Android TV (tabata, MediaTek m5621; JVC-family firmware, `android.autoinstalls.config.JVC` present), UK | Android TV 11 | Google recommendation rows, partner customizer, feedback, ambient mode (katniss + backdrop), retail demo, MStar disclaimer popups, calendar leftovers; UK Freeview suite ships disabled at the factory (re-disabling throws SecurityException, harmless); dumpsys crippled on this firmware ("hung system process"), verify with `pm list packages -d` and screenshots; stock launcher `com.google.android.tvlauncher`, so `restore.sh` needs no launcher argument || `noblex-shinjuku/` | Noblex NoblexTV (Skyworth-built, shinjuku, MediaTek m5621), Argentina | Android TV 11 | Panasonic TH-40HS550K list on the same Skyworth firmware family: Skyworth auto-installs, shop demo and Demo Now, e-manual, MediaTek PQ test tool, Google feedback and smartconnect, recommendation rows and Skyworth's launcher customizer, Assistant, Backdrop; unused apps off by choice; Chromecast kept; 0.9 GB, streaming apps that start on their own at boot are the real RAM cost (appops note); keep `com.mediatek.*` |diff --cc examples/motorola-mt4310/README.mdindex 000000000,e8283d0ac..addcbf431mode 000000,100644..100644--- a/examples/motorola-mt4310/README.md+++ b/examples/motorola-mt4310/README.md@@@ -1,0 -1,104 +1,100 @@@+ # Motorola MT4310 (43", Newsan / Hisense hayward, Android TV 11)++ What was done on this TV on 2026-10-21, and how to change or undo it. Commands run from the repo root+ on Windows; replace `<tv ip>` with your TV's address.++ ## What changed++ - **Disabled, not uninstalled:** every package in [debloat.txt](debloat.txt) (store demo, Hisense silent+ installs, telemetry, partner promo rows, calendar and printing, Play Movies, Play Games, TalkBack/TTS,+ Arkiv) plus the stock launcher `com.google.android.tvlauncher`.+ - **Not in the list:** voice search `com.google.android.katniss` and `com.google.android.tvrecommendations`.+ The TV's factory manager turns them back on at every boot, so disabling them doesn't stick (see the notes+ below).+ - **New Home:** the launcher in `launcher/` (`com.gathin.tvhome`), with this TV's dock in+ [theme/config.json](theme/config.json): Netflix, YouTube, Disney+, Magis TV.+ - **Left alone:** Netflix, Prime Video, YouTube, YouTube Music, Chromecast built-in, BrowseHere, the+ ambient screensaver, your own apps, and everything the TV needs (Live TV, HDMI, remote keys, Bluetooth,+ keyboard, Play Store, Play services).+-A full backup from before any change (package lists, getprop, all settings) is in-`backup/motorola-mt4310/` (kept out of git).-+ ## Connecting again++ Turn on USB debugging (Settings > Device Preferences > About > press Build 7 times, then Developer+ options). This TV opens network ADB on port 5555 by itself. Then:++ ```powershell+ $env:TV_HOST = '<tv ip>'+ tools\venv\Scripts\python.exe -I tools\tv.py --probe+ ```++ ## Re-enable one app++ ```powershell+ tools\venv\Scripts\python.exe -I tools\tv.py 'pm enable --user 0 com.google.android.videos'+ ```++ Swap in the package name from `debloat.txt`. To keep an app on for good, put `#` in front of its line+ in `debloat.txt`.++ `katniss` is voice search; the mic button also needs the remote paired over Bluetooth (the pairing screen+ the mic button opens).++ ## Undo everything+-```powershell-examples\motorola-mt4310\restore.ps1 -TvHost <tv ip>++```sh++TV_HOST=<tv ip> tools/restore.sh examples/motorola-mt4310/debloat.txt com.google.android.tvlauncher+ ```+-It re-enables everything the list disabled, re-enables the stock launcher and makes it Home again, and-resets the voice search and notification-listener settings changed while testing.--`backup/motorola-mt4310/restore-all.ps1` is a blunter safety net: it enables every package that is-disabled now but wasn't in the backup.++(`tools\restore.ps1` on Windows.) It re-enables everything the list disabled and gives Home back to the++stock launcher.++ ## Change the dock order++ Edit `dock_apps` in [theme/config.json](theme/config.json) (package names, left to right; four fit),+ then push it, no rebuild needed:++ ```powershell+ tools\theme.ps1 -TvHost <tv ip> examples\motorola-mt4310\theme+ ```++ Package names: `tools\venv\Scripts\python.exe -I tools\tv.py 'pm list packages -3'`. Netflix+ `com.netflix.ninja`, YouTube `com.google.android.youtube.tv`, Disney+ `com.disney.disneyplus`, Magis+ TV `com.android.mgstv`, Prime Video `com.amazon.amazonvideo.livingroom`, Spotify+ `com.spotify.tv.android`. Reordering also works on the TV: long-press the Settings pill.++ ## Change the wallpaper++ Put a `wallpaper.jpg` (1280x720 is enough for this TV) next to `theme/config.json`, set+ `"wallpaper": true` there, and push the theme with the command above. `"wallpaper_dim": 40` darkens+ it so the tiles stay readable. Back to plain black: `"wallpaper": false` and push again. All theme+ keys: [themes/README.md](../../themes/README.md).++ ## Rebuild / reinstall the launcher+-```powershell-examples\motorola-mt4310\install-launcher.ps1 -TvHost <tv ip>++```sh++TV_HOST=<tv ip> launcher/build-and-install.sh++TV_HOST=<tv ip> tools/theme.sh examples/motorola-mt4310/theme+ ```+-It builds the APK (JDK 17 and the Android SDK, with `JAVA_HOME` and `ANDROID_HOME` set), installs it-as Home, disables the stock launcher and pushes the dock theme.++The first builds the APK (JDK 17 and the Android SDK), installs it as Home and disables the stock++launcher; the second pushes the dock theme. On Windows: `launcher\build-and-install.ps1` and++`tools\theme.ps1`.++ ## Notes from this TV++ - At every boot `com.at.factory.factorymanager` re-enables `katniss` and `tvrecommendations` (and TalkBack+ comes back too, but never runs). Disabling them, clearing the voice and notification-listener settings+ and background restrictions were all undone at boot, so the list leaves both on. Together they take+ about 63 MB of RAM (about 315 MB available after a reboot with them running, about 349 MB without, of+ 934 MB). Never open or disable the factory manager itself.+ - The screen goes to sleep after 5 minutes without a key press (the factory setting) and Wi-Fi drops+ with it. If the TV is unreachable a few minutes after a reboot, it is asleep: press Power.++ - The remote's Input, Netflix, YouTube, Prime Video and Disney+ buttons are handled by the TV's own+ MediaTek/CVTE key services, not by the stock launcher, so they keep working with the new Home.+ - The Inputs menu lists HDMI 1, HDMI 2 and Live TV. The TV registers no composite (AV) input.+ - The mic button opens Bluetooth pairing: the remote talks IR until it is paired, and voice search is off.+ - Disabling `partnercustomizer` removes the Inputs and Wi-Fi icons from the *stock* launcher's top bar,+ which only matters if you go back to it.+ - `com.google.android.tungsten.setupwraith` is left on: it doesn't claim Home on this firmware, and it+ owned a Wi-Fi network saved during setup, which Android would delete if it were disabled.diff --cc examples/motorola-mt4310/debloat.txtindex 000000000,c7ea2129e..1ca66a2cemode 000000,100644..100644--- a/examples/motorola-mt4310/debloat.txt+++ b/examples/motorola-mt4310/debloat.txt@@@ -1,0 -1,60 +1,60 @@@+ # Motorola MT4310 (Newsan, Argentina; model MotorolaTV, manufacturer Hisense, device hayward, MediaTek), 43",+ # Android TV 11 (API 30), build RTM7.230903.035. About 0.9 GB of RAM, ro.config.low_ram=true, 1280x720 UI.+ # Same platform as examples/polytron-2k-hayward. Classic Android TV home: com.google.android.tvlauncher.+ #+ # Apply: TV_HOST=<tv ip> tools/disable.sh examples/motorola-mt4310/debloat.txt-# Undo: TV_HOST=<tv ip> examples/motorola-mt4310/restore.sh (also re-enables tvlauncher)-# Launcher: TV_HOST=<tv ip> examples/motorola-mt4310/install-launcher.sh (dock theme in theme/config.json)++# Undo: TV_HOST=<tv ip> tools/restore.sh examples/motorola-mt4310/debloat.txt com.google.android.tvlauncher++# Launcher: TV_HOST=<tv ip> launcher/build-and-install.sh, then tools/theme.sh examples/motorola-mt4310/theme+ # Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+ #+ # Status: disabled in batches on one TV on 2026-10-21 with a Home screenshot after each, then launcher/ installed+ # as Home, a reboot, Live TV/HDMI switching and the real remote's buttons checked. Still working after a day of use, not days yet.+ #+ # RE-ENABLED AT EVERY BOOT: com.at.factory.factorymanager (CommonManager.enableApp, on BOOT_COMPLETED) turns+ # com.google.android.katniss and com.google.android.tvrecommendations back on, and Android then rebinds katniss+ # as the voice interaction service and tvrecommendations as a notification listener (~63 MB PSS together).+ # Cleared voice settings, a revoked listener, RUN_ANY_IN_BACKGROUND ignore and the restricted bucket are all+ # reset at boot, and shell may not disable single components on Android 11, so both stay commented out below.+ # Without them MemAvailable after boot would be ~349 MB instead of ~315 MB.+ # com.google.android.marvin.talkback also comes back enabled after a reboot but never runs.+ # The screen sleeps after 5 minutes idle (screen_off_timeout=300000, factory value) and Wi-Fi drops with it:+ # a TV that "vanishes" a few minutes after a reboot is asleep, not broken; press Power.+ #+ # ADB: USB debugging opens network ADB on port 5555 directly; ro.adb.secure=1, so the TV asks+ # "Allow USB debugging?" on first connect. Sideloading works (pm install over the shell).+ #+ # Do NOT disable: com.mediatek.* (wwtv.tvcenter is Live TV, HDMI and the Input key's own input panel;+ # tv.service dispatches the YouTube/Prime keys; tvinput is the HDMI/tuner inputs), com.cvte.hotkey.receiver+ # (Disney+ key), com.cvte.tv.infoprovider (device serial), com.cvte.autobacklight, com.airoha.android.btd+ # (Bluetooth). Never open com.cvte.tv.fac.*, com.cvte.tv.hisensefac, com.cvte.tv.at, com.at.factory.* or+ # mediatek.factorymenu.ui, even to look: on Hisense/CVTE boards that flips a factory-mode flag.+ #+ # Remote: Input, Netflix, YouTube, Prime Video and Disney+ buttons are handled by the TV's own key services,+ # not the stock launcher, so they keep working with launcher/ as Home; no InputKeyService needed. The remote+ # has no Settings button. The mic button (KEY_F13) opens Bluetooth pairing until the remote is paired.+ # setupwraith does not claim HOME here and is left on; on the tested set it owned one saved Wi-Fi network.+ # Inputs: HDMI 1, HDMI 2, two tuner inputs; no composite AV is registered.++ # --- Batch 1: silent installs, store demo, setup leftovers, telemetry+ android.autoinstalls.config.hisense.hayward # silently installs promoted apps+ fusion.android.tv.demo # store demo mode, starts at boot+ com.mstar.android.tv.disclaimercustomization # store-mode disclaimer from first setup+ com.google.android.feedback+ com.google.android.partnersetup # partner referral tracking (RLZ ping)++ # --- Batch 2: recommendation and promo rows+ # com.google.android.tvrecommendations # re-enabled at every boot (header); fed the stock rows+ com.mediatek.android.leanbacklauncher.partnercustomizer # partner promo rows (and the stock top-bar icons)++ # --- Batch 3: unused system services+ com.android.printspooler # printing+ com.android.providers.calendar+ com.google.android.syncadapters.calendar++ # --- Batch 4: off by choice on the tested set (keep what you use)+ # com.google.android.katniss # re-enabled at every boot (header); voice search / Assistant+ com.google.android.videos # Google TV / Play Movies+ com.google.android.play.games+ com.google.android.marvin.talkback # screen reader+ com.google.android.tts # Google text-to-speech (only needed for screen reading)-com.arkiv.player.light # user-installed player the owner did not recognise++# com.arkiv.player.light # user-installed player the owner did not recognise; not bloat for everyone