Skip to content

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

docs: add Xiaomi MiTV-ASTR0 (HyperOS TV 3) debloat list and device notes

HG0539xDC86053900f11e113052
diff --git a/docs/devices/xiaomi-mitv-astr0-blueplanet.md b/docs/devices/xiaomi-mitv-astr0-blueplanet.md
new file mode 100644
index 000000000..f9f000ded
--- /dev/null
+++ b/docs/devices/xiaomi-mitv-astr0-blueplanet.md
@@ -0,0 +1,89 @@
+# Xiaomi MiTV-ASTR0: HyperOS 3 screensaver ads, and Home via the allowlist trampoline
+
+Tested on a Redmi Smart TV A Pro 55" 2025 Energy-saving Edition (MiTV-ASTR0, codename
+`blueplanet`, `ro.miot.model=xiaomi.tv.rmh1`, Amlogic `AMLT963D4`/T5M, 3 GB RAM,
+armeabi-v7a only), Android 14 (SDK 34), CN firmware `OS3.0.106.0.USTAATV` (HyperOS TV 3),
+build `UD2A.240505.001.W1`, security patch 2025-06-05. GITV content partner
+(`ro.mitv.product.customer=gitv`). Bootloader locked, verified boot green, SELinux
+enforcing; everything below is shell-only, no root.
+
+Stock launcher: `com.mitv.tvhome/.MainActivityUserMode` (PatchWall).
+
+## The standby/screensaver ad package on HyperOS TV 3
+
+`com.xiaomi.mitv.hyper.screensaver` — the HyperOS screensaver. It is a **plain Activity**
+(`.MainActivity`), not a DreamService, so `settings put secure screensaver_enabled 0`
+does not affect it; it fires on the idle timeout `settings put system screen_saver_timeout`
+(480000 ms stock). It downloads and caches its own carousel under
+`/storage/emulated/0/Android/data/com.xiaomi.mitv.hyper.screensaver/cache/images/` and
+plays it with an ambient-music SDK — disabling the usual content sources
+(`com.xiaomi.tv.gallery`, `com.xm.webcontent`, `com.duokan.videodaily`) does not stop it.
+
+Evidence technique, useful on any set: while the ad is on screen run
+`dumpsys activity activities | grep ResumedActivity` — it names the culprit directly —
+plus `logcat -d | grep -iE 'screensaver'` for the cache paths. Then
+`pm disable-user --user 0 com.xiaomi.mitv.hyper.screensaver`.
+
+The classic MiTV ad packages `com.mitv.screensaver` and `com.xiaomi.mitv.advertise` do
+not exist on this firmware; boot ad is already off here (`boot_ad=0`).
+
+## Home: the allowlist still works on this HyperOS 3 build (unlike MiTV-MFFU0)
+
+- Ordinary (non-system) apps' HOME activities are dropped from resolution, same as
+ documented for MiTV-MFFU0: with PatchWall disabled, an installed third-party launcher
+ (`com.oversea.aslauncher`, Emotn UI) is never chosen — Home lands on
+ `com.xiaomi.mitv.settings/.entry.FallbackHome` (black).
+- `cmd package set-home-activity --user 0 <ordinary app>` prints `Success` and changes
+ nothing. The preferred-home write itself is refused/overridden.
+- **But the package-name allowlist from the AETP0 findings still gates this build.**
+ A tiny sideloaded app with the allowlisted identity `com.ts.launcher` (a HOME activity
+ whose `onResume` immediately forwards to the launcher the user actually wants) was
+ accepted: with PatchWall disabled, `cmd package resolve-activity -c HOME` returns
+ `com.ts.launcher/.HomeActivity`, and it survives reboots and power cycles. This was
+ verified with a trampoline that forwards to `com.oversea.aslauncher`; the repo's own
+ launcher built with `-PlauncherApplicationId=com.ts.launcher` should behave the same.
+- Procedure: install the allowlist-identity home first, press Home once to confirm it
+ answers, only then `pm disable-user --user 0 com.mitv.tvhome`. Recovery is
+ `pm enable com.mitv.tvhome` plus a reboot. Keep PatchWall enabled if you skip this.
+- MiTV-MFFU0 (OS3.0.115) reported that no sideloaded launcher could own Home on
+ HyperOS 3; on ASTR0 (OS3.0.106) the allowlisted package name does pass. Same
+ generation, different outcome — test instead of assuming.
+
+## Screensaver replacement is not possible on this set (no root)
+
+The AOSP dream pipeline never renders: with `screen_off_timeout` set to 60 s the set
+went straight to hard panel-off/suspend at the timeout (adbd frozen, `mCurrentDream`
+null throughout), which the user experiences as power-off. `screensaver_enabled=1` plus
+`screensaver_components` pointed at a clean DreamService had no trigger path; the
+vendor AOD subsystem (`aod_id`, `mitv.settings.db.aod.settings.state`) is private and
+off. Keep `screen_off_timeout` at 2147483647 (never); any finite value makes the TV
+"shut down" after idle.
+
+## Do not disable these
+
+- `com.xiaomi.mitv.smartpanel` — the Menu-button quick panel (source switcher +
+ wireless tiles). Looks like a Mi Home component but is the menu itself; disabling it
+ kills the Menu key. (Disabled by mistake, re-enabled, listed here so nobody repeats it.)
+- `com.xiaomi.mitv.tvplayer`, `com.xiaomi.mitv.settings`, `com.xiaomi.mitv.systemui`,
+ `mitv.service`, the Sogou IME (`com.sohu.inputmethod.sogou.tv`, the only keyboard) —
+ same as other CN Xiaomi lists.
+- `com.xiaomi.mitv.tvmanager` is disabled in the example list; if XiaoAI's
+ "open <app>" stops answering, re-enable it (see the MFFU0 note about
+ `com.xiaomi.aicr.action.provider`).
+
+## Other firmware notes
+
+- ADB over TCP (`persist.adb.tcp.port=5555`) is closed by the firmware on every boot:
+ re-enable in Settings → 账号与安全 (Account & Security) → ADB 调试. Any real
+ suspend/power cycle also freezes adbd while the set is dark (ICMP answers, port 5555
+ does not) — only a remote key press revives it.
+- `set-home-activity` reporting `Success` while doing nothing is worth knowing when
+ reading back test results on CN firmware: always verify with `resolve-activity`
+ and an actual HOME keypress.
+- Small helper apps that hold icon entry points for hidden system apps (app store,
+ file manager, WPS, settings) work fine as LEANBACK_LAUNCHER activities; on Android 14
+ a boot autostart helper must not use `setExactAndAllowWhileIdle` without the
+ `SCHEDULE_EXACT_ALARM` grant (SecurityException is easy to swallow silently), and
+ needs `appops set <pkg> SYSTEM_ALERT_WINDOW allow` to start activities from
+ background. A hand-built manifest without `<uses-sdk>` fails to install with
+ `INSTALL_FAILED_DEPRECATED_SDK_VERSION`.
diff --git a/examples/README.md b/examples/README.md
index 82d19b3bd..8e622e843 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -170,6 +170,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `xiaomi-mitv-axso0/` | Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 | PatchWall, Glance ads, Mi TV+, Sensara, Mi analytics, MiLink; voice, Chromecast, unused streaming apps off by choice |
| `xiaomi-mitv-axso2/` | Xiaomi MiTV-AXSO2 (dangalUHD, India, 2 GB) | Android TV 9 | PatchWall, Mi TV+, Sensara, Mi analytics, TV Manager, updater, partner auto-installs, old partner app copies; voice, all casting and streaming apps kept; sign-in notice and storage notes |
| `xiaomi-mitv-mffu0/` | Xiaomi TV S Pro 100 Mini LED 2025 (小米电视 S Pro 100, L100MB-SP, MiTV-MFFU0, finch, MediaTek), China firmware OS3.0.115.0.UFFMATV, 4 GB RAM | Android 14 (HyperOS 3, CN build) | First HyperOS 3 Xiaomi: Mi analytics, MiSight log upload, TV QS reporting, cloud control, video-daily promos with the Mi ad SDK, shopping, web promos, Pictorial, AI translate; alarms, health, game SDK off by choice; **keep TV Manager** (XiaoAI's "open an app" voice command runs through its provider) and **keep the stock launcher** (non-system launchers cannot own Home, not even as preferred home); ADB closes on every reboot; CEC set-top-box black-screen note; voice, casting, Mi Home, OTA, Hyper screensaver kept; debloat only |
+| `xiaomi-mitv-astr0/` | Xiaomi Redmi Smart TV A Pro 55" 2025 Energy-saving (MiTV-ASTR0, blueplanet, Amlogic), China firmware OS3.0.106.0.USTAATV, 3 GB RAM | Android 14 (HyperOS 3, CN build) | Second HyperOS 3 Xiaomi: standby ads are the Hyper screensaver Activity itself (`com.xiaomi.mitv.hyper.screensaver`, own downloaded carousel, verified live) — disabling the usual content sources does not stop it; classic `com.mitv.screensaver`/`advertise` don't exist; PatchWall **disabled and replaced via the `com.ts.launcher` allowlist trampoline** (works on this OS3.0.106 build, unlike MFFU0's OS3.0.115 report — same generation, different outcome); keep `com.xiaomi.mitv.smartpanel` (it is the Menu-button panel); no idle clock screensaver possible (idle timeout is a hard panel-off); ADB closes on every reboot; [device notes](../docs/devices/xiaomi-mitv-astr0-blueplanet.md) |
| `xiaomi-mitv-moeu0/` | Xiaomi TV S Mini LED 75 2025 (MiTV-MOEU0, ladybird, MediaTek) | Google TV 14 | Mi TV+ banners and MiChannel rows, Mi analytics, TV Manager cleaner, Play auto-installs; setupwraith off (its Wi-Fi network belonged to the system here); remote's Settings 176, YouTube 190, Apps 284 and Xiaomi TV+ 192 noted |
| `xiaomi-mitv-moor2/` | Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 | Mi ad row and PatchWall, Mi analytics, MiLink, store demo; setup wizard off so a third-party launcher can own Home |
| `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 |
diff --git a/examples/xiaomi-mitv-astr0/debloat.txt b/examples/xiaomi-mitv-astr0/debloat.txt
new file mode 100644
index 000000000..000e63497
--- /dev/null
+++ b/examples/xiaomi-mitv-astr0/debloat.txt
@@ -0,0 +1,62 @@
+# Xiaomi Redmi Smart TV A Pro 55" 2025 Energy-saving (MiTV-ASTR0, blueplanet, Amlogic
+# AMLT963D4/T5M), China firmware OS3.0.106.0.USTAATV (HyperOS TV 3), Android 14 (SDK 34),
+# 3 GB RAM. Stock launcher com.mitv.tvhome (PatchWall) - it is DISABLED at the bottom of
+# this list and replaced by a third-party launcher through the allowlist trampoline;
+# read the PatchWall block there before running the whole list.
+# Disabled and lived with on 2026-10-22; the screensaver-ad package was verified live
+# (resumed activity while the ad showed). See docs/devices/xiaomi-mitv-astr0-blueplanet.md
+# for the ad screensaver, the Home allowlist behavior and what must stay enabled.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/xiaomi-mitv-astr0/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/xiaomi-mitv-astr0/debloat.txt com.mitv.tvhome
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Notes from this firmware:
+# - The standby/screensaver ads come from com.xiaomi.mitv.hyper.screensaver: a plain
+# Activity with its own downloaded carousel, not a DreamService, so screensaver_enabled=0
+# does not touch it. com.mitv.screensaver / com.xiaomi.mitv.advertise do not exist here.
+# - Keep com.xiaomi.mitv.smartpanel enabled (Menu-button panel: source switcher +
+# wireless tiles). Do NOT add it here; disabling it kills the Menu key.
+# - ADB over TCP closes on every boot: Settings -> 账号与安全 -> ADB 调试.
+# - No idle clock screensaver is possible: the idle timeout path is a hard panel-off
+# (suspend), the AOSP dream never renders. Keep screen_off_timeout at 2147483647.
+
+# Xiaomi telemetry / ads / push
+com.miui.tv.analytics # TV usage statistics
+com.xiaomi.tvqs # quality/performance reporting
+com.xiaomi.mitv.tvpush.tvpushservice # push ads/notifications
+com.mitv.overseaservice # overseas service partner helper
+com.miui.hybrid.tv # hybrid runtime container
+com.xm.webcontent # webview container for promotions
+com.mitv.shoplugin # TV Taobao shopping plugin
+com.xiaomi.mitv.shop # Xiaomi store
+com.duokan.videodaily # short-video promos, bundles the Mi ad SDK
+com.xiaomi.gamecenter.sdk.service.mibox # game center SDK
+com.android.adservices.api
+com.android.ext.adservices.api
+com.android.ondevicepersonalization.services
+com.android.federatedcompute.services
+
+# Preloaded apps (WPS cn.wps.moffice_i18n_TV kept at owner request)
+com.xiaomi.mitv.calendar
+com.xiaomi.mitv.health
+com.xiaomi.mitv.healthdiagnosis
+com.xiaomi.mitv.karaoke.service
+com.xiaomi.screenrecorder
+com.xiaomi.tweather # weather provider; also feeds the Hyper screensaver
+com.mitv.gallery
+com.xiaomi.tv.gallery # "Pictorial" wallpaper app
+
+# Mi Home + cleaner (owner confirmed unused; re-enable tvmanager if XiaoAI "open app" goes quiet)
+com.xiaomi.smarthome.tv
+com.xiaomi.mitv.tvmanager # cf. MFFU0: XiaoAI app-opening runs through its provider
+com.mitv.toolhouse
+
+# Screensaver ads (verified: resumed activity while the ad carousel showed, own cache)
+com.xiaomi.mitv.hyper.screensaver # HyperOS screensaver Activity; see device doc
+
+# Stock launcher - ONLY together with the allowlist trampoline (see device doc §Home).
+# disable.sh's Home guard skips this line unless another launcher can answer HOME;
+# with the com.ts.launcher trampoline installed it goes through. Undo path:
+# pm enable com.mitv.tvhome + reboot.
+com.mitv.tvhome