Skip to content

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

examples: Redmi TV MiTV-MFTP0 (alita), China firmware 23.2.10.6129

shaoxyz97ab8a9b64fe
diff --git a/README.md b/README.md
index c9aafb767..c5dd2d515 100644
--- a/README.md
+++ b/README.md
@@ -161,6 +161,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors
| PRISM+ Q65 Ultra 2026 QLED 4K AI Google TV (R10G, PRISMPLUS_FFM, MOKA, Realtek RTD2875 SoC, RTD6748 platform) | Google TV 14 |
| RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch) | Android 14 |
| Redmi TV (MiTV-ANTL0, starwars) | Android 5.1.1 (not Android TV) |
+| Redmi TV (MiTV-MFTP0, alita), China firmware 23.2.10.6129 | Android TV 9 (CN build) |
| SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 |
| SHARP AQUOS TVE21F (AQUOS-TVE21F, banqiao, CVTE/MediaTek), UK | Android TV 14 |
| Skyworth SWTV-21AE (sunnyvale, MediaTek) | Android TV 14 |
diff --git a/examples/README.md b/examples/README.md
index efc67da78..2efdb5175 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -66,6 +66,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `prismplus-q65-ultra-r10g/` | PRISM+ Q65 Ultra 2026 QLED 4K AI Google TV (R10G, PRISMPLUS_FFM, MOKA, Realtek RTD2875 SoC, RTD6748 platform) | Google TV 14 | Realtek partner customizer, Google partner setup and auto-installs, ambient mode, unused DTMB/ISDB/ATSC tuners, karaoke, preloaded apps; Max off by choice; keep com.realtek.dtv and com.realtek.tv.atv for inputs |
| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch) | Android 14 | Homwee store and installers, Anoki ACR, FAST channels; 1 GB |
| `redmi-mitv-antl0/` | Redmi TV (MiTV-ANTL0, starwars) | Android 5.1.1 (not Android TV) | Mi push/web-content/cloud-control ads, TV Taobao, stock screensaver, OTA; needs `pm hide` instead of `pm disable-user`; startup-ad method depends on firmware and stock-launcher version, see the [L43M7-EA settings-only case](../docs/devices/xiaomi-l43m7-ea-antl0.md) |
+| `redmi-mitv-mftp0/` | Redmi TV (MiTV-MFTP0, alita), China firmware 23.2.10.6129 | Android TV 9 (CN build) | CN-firmware Redmi, no Google apps: Mi analytics, tvqs, after-sales survey upload, cloud control, promo web container, shop plugin and store, preloaded apps, Mi Home off; `pm disable-user` works; **keep PatchWall enabled**: Home is a package-name allowlist like MiTV-AETP0, the `com.ts.launcher` application-ID build became Home and survived a reboot, do not run `build-and-install.sh` with defaults; startup ad off with `boot_ad_switch 0` on launcher 3.49.1601; `com.gitvdemo.video` is 银河奇异果 (iQIYI), kept; push service (installer whitelist), voice, casting, OTA, payments kept |
| `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA |
| `sharp-aquos-tve21f/` | SHARP AQUOS TVE21F (AQUOS-TVE21F, banqiao, CVTE/MediaTek), UK | Android TV 14 | Anoki ACR, retail demo, factory/test apps, PAI auto-installs; Google recommendations and setup wizard (Wi-Fi owned by system); Assistant, Chromecast and phone remote off by choice; unused streaming off by choice; 1.8 GB; YouTube button stays with the vendor `com.cvte.hotkey.dispatcher` |
| `skyworth-swtv-21ae/` | Skyworth SWTV-21AE (sunnyvale, MediaTek) | Android TV 14 | Skyworth home-row customizer, shop demo, e-manual; Google feedback; FAST channels, YouTube, ambient mode off by choice; port 5555 opens without pairing; 1 GB |
diff --git a/examples/redmi-mitv-mftp0/debloat.txt b/examples/redmi-mitv-mftp0/debloat.txt
new file mode 100644
index 000000000..b12bfb018
--- /dev/null
+++ b/examples/redmi-mitv-mftp0/debloat.txt
@@ -0,0 +1,91 @@
+# Redmi TV (MiTV-MFTP0, codename alita; China-market firmware), Android 9 (SDK 28),
+# firmware 23.2.10.6129, MediaTek/MStar m7642, MemTotal 2.6 GB, 1080p UI (320 dpi).
+# Stock launcher: com.mitv.tvhome 3.49.1601 (HOME activity .MainActivityUserMode) - KEEP IT ENABLED,
+# see "Home" below.
+# Disabled on 2026-10-21 in two batches; the owner checked Home and the voice remote after each batch,
+# and Xiaomi settings and a streaming app after the first. Package states were read back after a
+# standby cycle (all still disabled). After a full reboot (not standby) the owner reported the
+# replacement launcher still Home and no startup ad; ADB closes at reboot, so package states were not
+# read again after it. Not yet lived with for several days.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/redmi-mitv-mftp0/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/redmi-mitv-mftp0/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Notes from this firmware:
+# - ADB: Settings -> About -> press OK on 产品型号 (product model) 7 times to unlock developer mode,
+# then Settings -> 账号与安全 (Account & Security) -> ADB 调试 -> 允许. Network ADB (port 5555) closes
+# on every reboot; turn it on again there after each power cycle. Standby is not a reboot.
+# - `pm disable-user --user 0` is accepted for the shell user (unlike MiTV-ANTL0, which needs `pm hide`).
+# - Home: the framework filters third-party HOME candidates by a package-name allowlist, the same
+# mechanism as MiTV-AETP0 (services.vdex has isThirdpartyHomeAllowed and
+# APP_WHITELIST_ALLOW_THIRDPARTY_HOME; the list is /data/system/mitv_security_center.xml, not readable
+# from the shell). The standard com.gathin.tvhome build installed and opened, and
+# `cmd package set-home-activity` printed Success, but HOME still resolved to com.mitv.tvhome.
+# The opt-in application-ID build from docs/devices/xiaomi-mitv-aetp0-dofus.md
+# (`./gradlew assembleRelease -PlauncherApplicationId=com.ts.launcher`) became Home with
+# com.mitv.tvhome still enabled, and stayed Home after a full reboot. Do not run
+# launcher/build-and-install.sh with its defaults here: it would disable com.mitv.tvhome, and
+# disabling the stock launcher leaves no allowed Home. Use the manual commands in that doc.
+# - Settings: android.settings.SETTINGS and android.settings.WIFI_SETTINGS resolve to nothing; the
+# launcher's Settings pill falls back to com.xiaomi.mitv.settings/.entry.MainActivity, which opened.
+# - App grid: the streaming apps declare LEANBACK_LAUNCHER and show up; Xiaomi settings, weather and
+# TV Manager are LAUNCHER-only. com.mitv.alarmcenter declares LEANBACK_LAUNCHER (hide it with
+# hidden_apps if you don't want a 定时提醒 tile).
+# - Inputs: com.mediatek.tvinput registers HDMI HW5-HW8, AV HW2, component HW3, VGA HW4 and tuners
+# HW0/HW1. Nothing was plugged in, so switching from the launcher's Inputs menu was not tested.
+# - Startup ad: `settings put system boot_ad_switch 0` (it was null before) removed it, checked after
+# a full reboot with stock launcher 3.49.1601. boot_ad, boot_ad_sound_enable and boot_ad_switch_show
+# were already 0 and did not stop the ad. Undo: `settings delete system boot_ad_switch`.
+# See docs/devices/xiaomi-l43m7-ea-antl0.md for the same key on an older launcher.
+# - Screenshots: `screencap` exits 1 with a 0-byte file while PatchWall's home is on screen (it shows a
+# sideband video layer); it works over the replacement launcher, settings and the screensaver.
+# - com.gitvdemo.video is 银河奇异果 (GITV's licensed iQIYI app, label checked with aapt), a streaming
+# app, not a promo reel. Kept here.
+# - com.mitv.care ("adcare") is disabled by the factory already.
+#
+# Deliberately NOT disabled:
+# - mitv.service, com.xiaomi.mitv.tvplayer, com.mediatek.* (inputs, tuner), com.xiaomi.mitv.settings,
+# com.xiaomi.mitv.systemui, com.sohu.inputmethod.sogou.tv (the only keyboard), com.android.bluetooth,
+# com.xiaomi.account, com.xiaomi.mitv.appstore, com.xiaomi.mitv.mediaexplorer, com.mitv.mivideoplayer,
+# com.mitv.videoplayer, com.mitv.codec.update, com.xiaomi.mitv.debug (purpose unclear).
+# - mediatek.factorymenu.ui and com.mstar.android.media.tests are factory tools: never start them.
+# - com.mitv.screensaver: the stock flip-clock screensaver stays until another one is selected.
+# - com.xiaomi.mitv.tvpush.tvpushservice: besides push it carries
+# com.xiaomi.mitv.getwhitelist.GetInstallerWhiteList, and this firmware has an install blacklist
+# (pi_config in Settings.System). Not disabled, so app installs were not put at risk.
+# - com.xiaomi.mitv.smartpanel: MiTV-ANSP0 disabled it, MiTV-MFFU0 says it is the Menu-button panel. Kept.
+# - Kept by this owner's choice: voice remote (com.xiaomi.voicecontrol, com.xiaomi.wakeupservice,
+# com.xiaomi.mitv.tvmanager, com.mitv.alarmcenter), casting (com.xiaomi.miplay,
+# com.xiaomi.mitv.smartshare, com.duokan.airkan.tvbox, com.xiaomi.wfdsinkhelperservice,
+# com.xiaomi.mi_connect_service), firmware updates (com.xiaomi.mitv.upgrade, ~47 MB resident),
+# payments (com.xiaomi.mitv.pay, com.xiaomi.mitv.payment), karaoke (com.xiaomi.mitv.karaoke.service),
+# the business-TV apps (com.xiaomi.eetv.exhibition, com.xiaomi.eetv.tvmeetingmanager), all streaming apps.
+#
+# Resident memory of the processes this list stops, measured before the change (dumpsys meminfo PSS):
+# shoplugin 45 MB + 19 MB, Mi Home 18 MB, TV analytics 13 MB, tvqs 12 MB, statistic 8 MB,
+# gallery 8 MB, cloud control 7 MB; about 130 MB together. PatchWall itself (~250 MB) keeps running.
+
+# Xiaomi telemetry / quality reports / cloud control
+com.miui.analytics # OneTrack analytics SDK host
+com.miui.tv.analytics # TV usage statistics
+com.xiaomi.statistic # statistics upload
+com.xiaomi.tvqs # quality system: crash/perf uploads
+com.xiaomi.mitv.csi # 售后辅助 "after-sales assistant": satisfaction survey upload
+com.mitv.cloudcontrol # cloud control: remote configuration, pushes apps
+
+# Ads / promoted content / shopping
+com.xm.webcontent # 电视活动中心: promo web container, also fetches screensaver ads
+com.mitv.shoplugin # TV Taobao shopping plugin, two resident processes
+com.xiaomi.mitv.shop # 电视商城 Xiaomi TV store
+
+# Xiaomi background services and preloaded apps (most are in Settings.System can_be_deleted)
+com.xiaomi.mitv.handbook # user handbook
+com.xiaomi.gamecenter.sdk.service.mibox # game centre SDK
+com.xiaomi.screenrecorder # screen recorder
+com.xiaomi.mitv.calendar # calendar
+com.xiaomi.mimusic2 # Mi Music
+com.mitv.gallery # 相册 photo album; USB media still opens in the media explorer
+
+# Off by choice: re-enable if an external Xiao Ai speaker should control the TV (see MiTV-ANSP0)
+com.xiaomi.smarthome.tv # Mi Home; the remote's voice button still worked without it