Skip to content

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

docs: πŸ“ record Mi Box 4S Pro debloat observations

cixiangtao997ca1d2bb5f
diff --git a/docs/devices/xiaomi-mi-box-4s-pro-frozen.md b/docs/devices/xiaomi-mi-box-4s-pro-frozen.md
new file mode 100644
index 000000000..293a4eeee
--- /dev/null
+++ b/docs/devices/xiaomi-mi-box-4s-pro-frozen.md
@@ -0,0 +1,103 @@
+# Xiaomi Mi Box 4S Pro (MiTV-AZFP0, frozen)
+
+China-market streaming box, tested on 2026-10-30. This is a single-session
+device report, not a several-day debloat list. No `examples/` list is provided
+until the new changes have been used for several days.
+
+## Device and scope
+
+| Field | Observed value |
+| --- | --- |
+| Model | `MiTV-AZFP0` |
+| Device / board | `frozen` |
+| Android | 9 / API 28 |
+| Firmware display ID | `23.5.10.1035` |
+| Fingerprint build fields | Android 9, `PPR1.180610.011`, incremental `1035`, `user/release-keys` |
+| Application ABI | `armeabi-v7a,armeabi` |
+| Memory | `MemTotal: 2056184 kB` (about 2 GB) |
+| Network used for testing | Wi-Fi |
+| Stock Home | `com.mitv.tvhome/.MainActivityUserMode` |
+
+This is not `MIBOX3` / `once` or `MIBOX4` / `oneday`. The main reference for
+package selection was the [China-firmware MFTP0 report](../../examples/redmi-mitv-mftp0/debloat.txt),
+with each proposed package checked on this box. No firmware was flashed, no
+system package was uninstalled and no app data was cleared.
+
+## Observed disabled packages
+
+The following states were read back after one full reboot on this firmware.
+The first four packages were already disabled at the start of the session;
+the remaining eight were applied using `tools/disable.sh` in small batches.
+This table records observations, not an instruction to apply another model's list.
+
+| Package | Reason / validation boundary |
+| --- | --- |
+| `com.miui.tv.analytics` | TV analytics; already disabled before this session |
+| `com.miui.analytics` | Analytics host; already disabled before this session |
+| `com.xiaomi.statistic` | Statistics upload; already disabled before this session |
+| `com.xiaomi.mitv.shop` | TV shopping; already disabled before this session |
+| `com.xiaomi.tvqs` | Quality reports: log/upload/DropBox receivers and a resident `performance.MitvPerfService` |
+| `com.mitv.cloudcontrol` | Cloud control: network/boot receivers and a resident `DownloadService` |
+| `com.xm.webcontent` | Promotional web container; its `FetchReceiver` handles screensaver-start and boot events. Not the core Android WebView |
+| `com.mitv.shoplugin` | Taobao shopping plugin, version `6.8.24`; enabled at the start despite an earlier disable on a different version. The cause of that change is unknown |
+| `com.xiaomi.gamecenter.sdk.service.mibox` | Game SDK, unused by this owner |
+| `com.xiaomi.screenrecorder` | Screen recorder, unused by this owner |
+| `com.xiaomi.mitv.calendar` | Calendar, unused by this owner |
+| `com.mitv.gallery` | Xiaomi gallery and its push service, unused by this owner; photo data retained |
+
+Before the first batch, TV QS used about 9.1 MiB PSS and cloud control about
+4.7 MiB PSS. The web container and shopping plugin had no running process in
+that sample. After disabling, the service dump no longer listed TV QS,
+cloud control or gallery services. No repeatable overall latency/CPU benchmark
+was made; these observations do not establish a fixed memory saving or a
+speed-up percentage.
+
+## Kept enabled
+
+- Core vendor service `mitv.service`, stock Home and `com.droidlogic`.
+- Xiaomi settings, Bluetooth, Sogou keyboard, Android WebView, package installer
+ and VPN dialogs.
+- Voice control, TV Manager and TVPush. The MFTP0 report's installer-whitelist
+ and voice dependencies were a reason to leave them alone, not proof that the
+ same dependency was established on this firmware.
+- Xiaomi app store and `com.xiaomi.mitv.upgrade` (firmware updates).
+- Casting: `com.xiaomi.mitv.smartshare`, `com.xiaomi.miplay`,
+ `com.duokan.airkan.tvbox` and `com.xiaomi.wfdsinkhelperservice`.
+- All installed video/streaming apps and Mi Home.
+
+## Checks and remaining work
+
+- Xiaomi settings opened; the owner confirmed Xiao AI voice control worked.
+- One real reboot completed (`sys.boot_completed=1`, uptime reset); all twelve
+ packages above remained disabled and stock Home was the focused window.
+- `tools/check.py` reported no drift for the eight changes made in this session.
+- After reboot, the owner confirmed video picture and audio in a usual streaming
+ app. The Xiaomi app store home page loaded, but installing/downloading an app
+ was not tested.
+- `tools/restore.sh` was exercised on the first batch (TV QS, cloud control,
+ web container and shopping plugin), then that batch was reapplied. Package
+ states were read back; the four previously disabled packages stayed disabled.
+ The later four owner-choice packages were recorded by the same recovery
+ mechanism, but their restoration was not separately exercised.
+- Casting, standby/wake, OTA installation and several-day use remain untested.
+ Keeping a package enabled is not a functional pass for it.
+
+## Home and ADB
+
+Stock Home was never disabled. A pre-existing Aerial 1.30 installation and its
+accessibility/notification services were retained, so this session did not
+measure the reference launcher's performance or establish Home takeover.
+Earlier, `set-home-activity` for Aerial returned `Success` while Home still
+resolved to Xiaomi; the owner also saw the physical Home key return to Xiaomi.
+No allowlisted application-ID build was tested on this box.
+
+The stock Google ADB transport was offline while the box's ADB TCP port was
+reachable; the project's Python client connected successfully. After the full
+reboot it connected again without an on-TV toggle. This is one reboot's
+observation, not a guarantee that debugging remains enabled on every boot.
+The owner explicitly chose to keep debugging enabled for follow-up checks;
+no Aerial KEEP_ADB option was enabled during this session.
+
+Backups and the recovery record are private. Future changes should continue to
+use the same recorded list with `tools/disable.sh` and `tools/restore.sh`, not a
+blanket enable of every package or another model's Home-disable procedure.
diff --git a/examples/README.md b/examples/README.md
index 3f2144dd4..7c2303cc9 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -463,6 +463,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/
- [Xiaomi Laser Cinema 2 4K](../docs/devices/xiaomi-nemo-laser-cinema2.md) (`XMJGYY01FM`, Formovie `nemo`, m7642, Android 9 firmware `2.1.3.4134`, China-market PatchWall): the launcher installs and opens but this firmware's `applyPostResolutionFilter` drops every HOME candidate that is not `FLAG_SYSTEM` while `ro.formovie.launcher_type` is `Patchwall`, so `set-home-activity` is refused with `cannot be home on user 0` and the alternate application ID that the MiTV-AETP0 allowlist accepts does not help either; keep PatchWall enabled (only `FallbackHome` is left otherwise), plus a same-day 20-package debloat set that survived one reboot; no validated debloat list.
- [NetTV SEI700NTV](../docs/devices/nettv-sei700ntv.md) (SEI Robotics `SEI700NTV`, Nepal, Android 14 `UKG3.250826.001.8426`, stock `np.com.geniussystems.android.atv.launcher`): `pm disable*` is refused ("Warning! This command is illegal!"), so background telemetry is restricted via AppOps (`RUN_ANY_IN_BACKGROUND ignore`); Home handover verified via RoleManager and `HomeKeyService` with `stock_home_redirect`, reboot-tested and stable.
- [Hisense VIDAA_TV / NOVA72691 (70V1F-S)](../docs/devices/hisense-70v1f-s-nova72691-android9.md), China, Android 9 `04.02.60.03` (Novatek NT72691, 32-bit): the stock 聚ε₯½ηœ‹ launcher holds both HOME and boot β€” `set-home-activity`, the vendor startup pointer and an accessibility guard all fail on this firmware, and disabling the stock launcher component stops the boot animation from ever exiting.
+- [Xiaomi Mi Box 4S Pro](../docs/devices/xiaomi-mi-box-4s-pro-frozen.md) (`MiTV-AZFP0` / `frozen`, China, Android 9 firmware `23.5.10.1035`): single-session report of twelve disabled packages (four already off, eight applied), one reboot with states retained, owner-confirmed voice and video/audio, and first-batch restore checks; stock Home, casting, OTA and app store kept; casting, standby/wake and several-day use untested, so no tested list yet.
To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is to
run the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.