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
Keep mediashell on MiTV-MZTU0: Stremio plays through it
indrampdd3f4e234724a
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex b7ae0541a..9e2c8afbe 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -86,6 +86,20 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/Press the real Input button afterwards and check the packages are back:`tools/tv.py 'pm list packages -e | grep -E "gms|netflix|mediashell|katniss"'`. More on the unit inthe [device notes](devices/durabrand-durat32isdb.md).+- **Stremio looks like its server died after the debloat**, seen on a Xiaomi MiTV-MZTU0 (`river`,+ Google TV 14, [list](../examples/xiaomi-tv-a-pro-2026/debloat.txt)). The app opens, the add-ons+ load, and nothing ever plays, which reads like a local server fault. It is not: with+ `com.google.android.apps.mediashell` disabled, Stremio's own `stremio_server_process` is still+ running, still listening on 11470/12470, still holds ESTABLISHED connections to `api.strem.io`,+ and `logcat -b crash` is clean. Stremio's Android TV build plays through mediashell, so the server+ is healthy and the playback path is gone. `pm enable --user 0 com.google.android.apps.mediashell`+ fixed it on that set with no reboot and no reinstall. Check this before blaming your add-ons or+ the network:+ ```sh+ tools/tv.py 'pm list packages -d | grep mediashell' # output here = this is the cause+ tools/tv.py 'pm enable --user 0 com.google.android.apps.mediashell'+ ```+ Keep the package out of your list if you use Stremio on the TV, or cast from a phone.- **`adb exec-out screencap -p` gives a broken PNG** on some MediaTek sets (Xiaomi, and Amazon'sown Fire TV smart TVs): the binary prints `Init wrapper sys mutex successful` on stdout first.Save on the TV and pull the file instead: `screencap -p /data/local/tmp/s.png`, or cutdiff --git a/examples/README.md b/examples/README.mdindex 88e0942b6..468ddf6a3 100644--- a/examples/README.md+++ b/examples/README.md@@ -161,7 +161,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `xiaomi-mitv-mosr4/` | Xiaomi MiTV-MOSR4 (irobot, MediaTek) | Google TV 11 | Mi ad rows and PatchWall, Mi analytics, TV Manager, Miracast sink, OTA off by choice; setup wizard off so a third-party launcher can own Home; `overseaservice` hosts the Netflix key and must stay || `xiaomi-mitv-mssp3/` | Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 | PatchWall, Mi analytics, Netflix observer; Chromecast, screensavers, unused streaming apps off by choice || `xiaomi-mitv-mssp3-android9/` | Xiaomi MiTV-MSSP3 (machuca, MediaTek), Android 9 firmware PI.7524 | Android TV 9 | Same model before its Android 11 update: PatchWall, Mi analytics, TV Manager, OTA; voice assistant re-enables itself at every boot (updated system app rescan); screensaver, preloaded apps off; 1.8 GB, swap full before; notes for the older PI.4663 build (two packages absent, old leanback home to disable) |-| `xiaomi-tv-a-pro-2026/` | Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 | PatchWall/Mi Home tab, Mi analytics, TV Manager, updaters; setup wizard off, launcherx crash-loop notes |+| `xiaomi-tv-a-pro-2026/` | Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 | PatchWall/Mi Home tab, Mi analytics, TV Manager, updaters; setup wizard off, launcherx crash-loop notes; mediashell kept for Stremio playback || `xiaomi-mitv-afmu0/` | Xiaomi TV Box S 3rd gen (MiTV-AFMU0, twilight, Amlogic), streaming box | Google TV 14 | Mi analytics, PatchWall/Mi Home tab, Mi connect/SmartShare; voice and phone remote off by choice; setup wizard off so launcherx can go |Notes for models that have no tested list yet live in [`docs/devices/`](../docs/devices/):diff --git a/examples/xiaomi-tv-a-pro-2026/debloat.txt b/examples/xiaomi-tv-a-pro-2026/debloat.txtindex d1e37b9fb..b465f2591 100644--- a/examples/xiaomi-tv-a-pro-2026/debloat.txt+++ b/examples/xiaomi-tv-a-pro-2026/debloat.txt@@ -11,6 +11,8 @@# Keep (TV needs them): mitv.service and com.mitv.overseaservice (remote keys, Netflix button, BT remote),# com.mediatek.* (extservice, tv.agent, tis, tuners, airplay), com.mitv.livetv, com.mi.bluetooth,# com.mitv.setup, com.xiaomi.android.tvsetup.partnercustomizer, com.xiaomi.mitv.scenemode (game mode).+# Keep (apps, on this model): com.google.android.apps.mediashell. Stremio on Android TV plays+# through it; disabling it leaves the Stremio server "online" but no video ever plays.# Already disabled at the factory: com.xiaomi.floatingframe, com.iwedia.tvinput, atsc/isdb tuners.# Default IME is Gboard, no keyboard quirk. 1.8 GB RAM.#@@ -46,8 +48,14 @@ com.mediatek.tv.systemupdater# Disable it before build-and-install.sh, or Home may crash-loop when launcherx goes away.com.google.android.tungsten.setupwraith-# Personal choice: Chromecast built-in (AirPlay, Miracast and Mi Cast kept)-com.google.android.apps.mediashell+# Chromecast built-in (AirPlay, Miracast and Mi Cast are left enabled).+# Kept in the list, commented out: the Stremio Android TV app plays through this package.+# With it disabled, `pm list packages` still shows the app and its stremio_server_process+# still listens on 11470/12470 and stays connected outbound, but nothing plays - which+# reads like a Stremio server fault and is not one. `pm enable --user 0+# com.google.android.apps.mediashell` fixed it on MiTV-MZTU0 without a reboot.+# Uncomment to save the memory at the cost of Stremio playback and phone casting.+# com.google.android.apps.mediashell# Preloaded appscom.google.android.play.games