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
docs: MiTV-MFTR0 on HyperOS TV 3, what changed for Home (#1355)
Gathin23dca4413dde7a
diff --git a/docs/devices/xiaomi-mitv-mftr0-hyperos3.md b/docs/devices/xiaomi-mitv-mftr0-hyperos3.mdnew file mode 100644index 000000000..732f7439d--- /dev/null+++ b/docs/devices/xiaomi-mitv-mftr0-hyperos3.md@@ -0,0 +1,74 @@+# Xiaomi MiTV-MFTR0 on HyperOS TV 3 (OS3.0.28, Android 14): what changed++From @sxp01001's report in #1355. The [`xiaomi-mitv-mftr0`](../../examples/xiaomi-mitv-mftr0/debloat.txt) list and+[its Home notes](xiaomi-mitv-mftr0-debloat-home.md) were made on HyperOS TV 2 (`OS2.0.23.0.RFTMATV`, Android 11).+This set took a silent OTA to HyperOS TV 3 (`persist.os2.upgraded=true`, boot reason `reboot,ota`), and Home+behaves differently there. Debloating still works; the Home handover below did not.++| Field | Observed value |+|---|---|+| Retail model | Xiaomi TV S55 Mini LED |+| System model / codename | `MiTV-MFTR0` / `freeguy`, product_id `dl4c` |+| SoC | MediaTek `mt9653`, `armeabi-v7a`, 4 GB |+| Android / API | Android 14 / 34 |+| Build | `OS3.0.28.0.UFTMATV` (HyperOS TV 3, China) |++The reporter tested with a third-party launcher (Aerial, `app.orchard.tv`, a valid `MAIN`/`HOME`/`DEFAULT` app),+not this repo's launcher, to isolate the Home question.++## Home stays on PatchWall++`cmd role add-role-holder --user 0 android.app.role.HOME <pkg>` took (`get-role-holders` lists it) and+`cmd package set-home-activity` printed `Success`, yet `resolve-activity` for `MAIN`/`HOME` still answered+`com.mitv.tvhome/.MainActivityUserMode`, and every Home press over 8 seconds landed there.++`dumpsys package com.mitv.tvhome` shows why: a persistent preferred activity for `MAIN` + `HOME` with+`mAlways=true`, chosen from PatchWall and `com.xiaomi.mitv.settings/.entry.FallbackHome`. It outranks the HOME role+and `set-home-activity`, and `query-activities` for HOME did not list the third-party launcher at all, only+PatchWall (priority 0) and FallbackHome (priority -1000). `clear-package-preferred-activities` is gone on+Android 14 (`Unknown command`).++The stock Home activity is also protected: starting the HOME intent from the shell fails with+`Permission Denial ... requires com.mitv.tvhome.permission.HOME_STATE`, a vendor permission the shell and+third-party apps do not hold.++## Do not disable PatchWall with an ordinary launcher++`pm disable-user --user 0 com.mitv.tvhome` is accepted, but the `mAlways` preference is not cleaned up: Home then+left the TV with `mCurrentFocus=null` and no usable window until PatchWall was re-enabled:++```bash+"$PY" -I tools/tv.py 'pm enable --user 0 com.mitv.tvhome'+"$PY" -I tools/tv.py 'cmd package set-home-activity --user 0 com.mitv.tvhome/.MainActivityUserMode'+```++On HyperOS TV 2 and on other HyperOS TV 3 sets (MiTV-ASTR0, MiTV-MFFU0) the route that worked is the+allowlist identity, `-PlauncherApplicationId=com.ts.launcher`, installed **before** PatchWall is disabled+([`xiaomi-mitv-astr0-blueplanet.md`](xiaomi-mitv-astr0-blueplanet.md),+[`xiaomi-mitv-mftr0-debloat-home.md`](xiaomi-mitv-mftr0-debloat-home.md)). It was not tried on this OS3.0.28 set,+so whether it gets past the `mAlways` preference and the `HOME_STATE` permission is open. Try it with ADB open+and the two recovery lines above at hand.++## Other OS3.0 limits++- **No Accessibility entry.** 设置 > 通用设置 > 系统 has only 语言, 输入法, 位置信息, 通知管理, 快应用服务框架,+ 恢复默认出厂设置 and 无操作自动关机. `android.settings.ACCESSIBILITY_SETTINGS` and the+ `com.android.tv.settings/.oemlink.Accessibility*` activities are intercepted; Xiaomi's settings stay in front.+- **Accessibility does not survive a reboot.** Values written over ADB come back as+ `enabled_accessibility_services=null` and `accessibility_enabled=0` after a cold start, so `HomeKeyService` and+ `InputKeyService` would need re-enabling after every boot.+- **`WRITE_SECURE_SETTINGS` is revoked at reboot.** A `pm grant` reads back `granted=false` after a restart.+- **Locked verified boot.** `/proc/cmdline` has `androidboot.vbmeta.device_state=locked` and+ `androidboot.veritymode=enforcing`; there are A/B boot slots but no `bootctl` and no fastboot, so going back to+ OS2.0 is not possible from the shell.++## A second set on the same build++From @csloz's comment in #1355: an L55MA-SPL (4 GB, 64 GB, 4K panel, `mt9653`, `OS3.0.28.0.UFTMATV`). On a second+attempt Projectivy stayed Home across a power cycle after the owner's agent disabled Xiaomi TV Home, the Google TV+launcher and Xiaomi Settings' FallbackHome; the same session's own summary still reported TV Home as the current+Home, and the steps were not recorded closely enough to repeat. If that meant disabling+`com.xiaomi.mitv.settings` (FallbackHome's package), do not copy it: the MFTR0 list keeps it untouched. That session also+disabled `com.sohu.inputmethod.sogou.tv`, the only keyboard here, and `com.xiaomi.mitv.upgrade`; the+[`xiaomi-mitv-mftr0`](../../examples/xiaomi-mitv-mftr0/debloat.txt) list keeps the first and this repo keeps+firmware updaters on by default.diff --git a/examples/README.md b/examples/README.mdindex e952d51a3..766584049 100644--- a/examples/README.md+++ b/examples/README.md@@ -349,6 +349,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [TCL Smart TV Pro, UK Freeview Play](../docs/devices/tcl-beyondtv4-uk-ar05.md) (`BeyondTV4` / `BeyondTV6`, `rtd288o`, Android TV 11 `RP1A.200622.001` / `AR05`): one-session report next to the AR10 `tcl-50c725k` list; on AR05 the TCL media apps request `TV_INPUT_HARDWARE`, `com.tcl.system.server` re-enables seven packages at every boot (background-restricted instead), and revoking `RECORD_AUDIO` from katniss stopped a hotword capture costing 28% of a core.- [iFFALCON 32S45 QLED (2025)](../docs/devices/iffalcon-32s45-c06.md) (TCL `C06` / `C06_2K_GB`, `mt5867`, Android TV 11 `V8-T221T05-LF1V363`): one session, two packages disabled; the stock launcher keeps Home at priority 2, and the report's Home redirect came from a locally modified launcher.- [Redmi TV L65R6-A](../docs/devices/redmi-l65r6-a-mttp0.md) (`MiTV-MTTP0` / `hugo`, China, Android 9 `21.4.9.2585`): a same-day six-package set; the `com.ts.launcher` identity took Home with PatchWall still enabled, and `boot_ad_switch 0` removed the boot ad.+- [Xiaomi MiTV-MFTR0 on HyperOS TV 3](../docs/devices/xiaomi-mitv-mftr0-hyperos3.md) (`freeguy`, China, Android 14 `OS3.0.28.0.UFTMATV`): after the OTA from OS2.0, a `mAlways=true` preferred activity keeps Home on PatchWall over the HOME role and `set-home-activity`, disabling PatchWall with an ordinary launcher leaves Home with no window, accessibility and `WRITE_SECURE_SETTINGS` reset at every boot; the `com.ts.launcher` route is untried there.To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.