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
examples: Xiaomi MiTV-AESP0, keep partnercustomizer for remote pairing and clarify setupwraith and casting
Claudeaac630ed053a
diff --git a/examples/xiaomi-mitv-aesp0/debloat.txt b/examples/xiaomi-mitv-aesp0/debloat.txtindex 35c30f0b6..69dbc22ae 100644--- a/examples/xiaomi-mitv-aesp0/debloat.txt+++ b/examples/xiaomi-mitv-aesp0/debloat.txt@@ -6,6 +6,12 @@# Undo: TV_HOST=<tv ip> tools/restore.sh examples/xiaomi-mitv-aesp0/debloat.txt# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.#+# Before applying:+# - com.xiaomi.android.tvsetup.partnercustomizer is commented out: on many Xiaomi sets it handles Bluetooth+# remote pairing and the remote's shortcut buttons. Uncomment it only if you never re-pair the remote.+# - com.google.android.tungsten.setupwraith stays in the list, but tools/disable.sh skips it while it owns the+# saved Wi-Fi network (see the fourth set). Disabling it costs casting, so comment it out to keep Chromecast.+## Notes from this firmware:# - Default IME is already Gboard, so the Mi TV 4A missing-keyboard quirk doesn't apply.# - The remote's Home button sends KEYCODE_ALL_APPS (284), not HOME. Android 9 sends that key only@@ -15,12 +21,16 @@# so always pass HOME_KEY_SERVICE=1.# `input keyevent 284` over adb skips the accessibility filter; test with the real remote.# - No HDMI/AV inputs: the launcher hides its Inputs pill by itself on this stick.-# - Kept on this set: voice assistant (katniss/pumpkin), Chromecast (mediashell),+# - Kept on this set: voice assistant (katniss/pumpkin), Chromecast (mediashell; casting also needs+# setupwraith, which the list disables),# Mi Cast (com.mitv.milinkservice) and firmware updates (com.xiaomi.mitv.updateservice).+# - After the last batch, wait about 40 s before rebooting (see the fourth set): with a shorter wait the+# last packages disabled can come back enabled after the reboot. Check with `adb shell pm list packages -d`.## Second verified set (Indonesia-region unit, same firmware PI.2055, in daily use since# 21 Oct 2026 with Netflix / Jellyfin / SmartTube / Vidio): the groups marked-# "second set" below are disabled on that stick on top of the original list.+# "second set" below are disabled on that stick on top of the original list, including+# partnercustomizer (now commented out by default, see above).# Region note: the ID unit has only the misspelled autoinstalls package below, and# none of the preloaded apps in the original list (DAZN, Red Bull TV, Duo, TCL browser).#@@ -37,12 +47,13 @@# - Free memory: about 150 MB stock, about 265 MB right after a reboot with the list and the launcher.## Fourth verified set (Peru unit, older firmware PI.1241, debloated 29 Oct 2026 with the launcher, HOME_KEY_SERVICE=1-# and a dock of Netflix / YouTube / Disney+ / Prime Video). Every uncommented line below that this firmware has was-# disabled, except setupwraith; the commented-out ones (voice, Mi Cast, the updater) stayed enabled, and so did-# Chromecast. Notes from that unit:+# and a dock of Netflix / YouTube / Disney+ / Prime Video). Every line below that was uncommented at the time and that+# this firmware has was disabled (partnercustomizer included), except setupwraith; voice, Mi Cast and the updater+# stayed enabled, and so did Chromecast. Notes from that unit:# - setupwraith owned the saved Wi-Fi network (`dumpsys wifi | grep -o 'cname=[^ ]*'` showed# cname=com.google.android.tungsten.setupwraith), so it stayed enabled: disabling it would have taken the stick off-# Wi-Fi and ADB. Check this before applying the list as it is.+# Wi-Fi and ADB. tools/disable.sh checks this and skips setupwraith by itself. Keeping it is also why+# casting kept working on that unit.# - Not installed on PI.1241: android.autoinstalls.config.xiaomi.mibox3 (only the "xioami" one is), com.dazn, Red Bull TV,# Duo, the TCL browser, com.mitv.tvhome.atv, com.mitv.download.service, com.mitv.videoplayer, com.xm.webcontent and# Alphonso. tools/disable.sh reports those lines and goes on.@@ -78,17 +89,18 @@ com.xiaomo.tv.milegal # Xiaomi privacy-policy screen (sic,# Xiaomi services (second set)# mitv.service registers the TvService system service that Xiaomi's own settings app reads the hardware-# configuration from. Disabled on a China-market set whose settings app is com.xiaomi.mitv.settings it-# freezes Settings for 20-30 s and then crashes it (#1310); the second set has run with the line below+# configuration from. On a China-market set whose settings app is com.xiaomi.mitv.settings, disabling it+# freezes Settings for 20-30 s and then crashes it (#1310). The second set has run with the line below# disabled in daily use since 21 Oct 2026. Why, and how to put the service back without a reboot:# docs/TROUBLESHOOTING.md#xiaomi-cn-firmware-settings-freezes-or-crashes-after-the-debloatmitv.service # MiTV service framework for the rows removed abovecom.mitv.download.service # PatchWall download servicecom.mitv.videoplayer # stock Mi video player; comment out if you use it-# partnercustomizer answers the remote's shortcut buttons (Netflix, Prime Video, Input) and, on many Xiaomi-# sets, Bluetooth remote pairing: a MiTV-MSSP3 owner got those buttons back by enabling it again (Discussion-# #1411). Comment the next line out if you use them.-com.xiaomi.android.tvsetup.partnercustomizer # partner customisation that seeds partner apps at setup+# partnercustomizer handles Bluetooth remote pairing on many Xiaomi sets and answers the remote's shortcut+# buttons (Netflix, Prime Video, Input): a MiTV-MSSP3 owner got those buttons back by enabling it again+# (Discussion #1411). Commented out by default so a remote that needs re-pairing still can; the second and+# fourth sets disable it. Uncomment only if you never re-pair the remote and don't use those buttons.+# com.xiaomi.android.tvsetup.partnercustomizer # partner customisation that seeds partner apps at setup# Xiaomi services (second set, optional — the original set keeps these)# com.xiaomi.mitv.updateservice # firmware updates; the original set keeps it, uncomment to stop OTAs@@ -98,8 +110,9 @@ com.xiaomi.android.tvsetup.partnercustomizer # partner customisation that seedscom.google.android.tv # Live Channels; the stick has no tuner or HDMI input# (com.android.providers.tv, the TV content provider, stays enabled: the repo never disables it)com.google.android.videos # Google Play Movies & TV-com.google.android.youtube.tvmusic # YouTube Music TV-com.google.android.tungsten.setupwraith # setup wizard: gives Home back, costs casting (comment out to keep casting); keep it if it owns the saved Wi-Fi (fourth set)+com.google.android.youtube.tvmusic # YouTube Music TV+# setupwraith: tools/disable.sh skips it while it owns the saved Wi-Fi network (the fourth set kept it for that).+com.google.android.tungsten.setupwraith # setup wizard: gives Home back, costs casting (comment out to keep casting)com.google.android.partnersetupcom.google.android.onetimeinitializercom.android.onetimeinitializer@@ -125,10 +138,13 @@ com.google.android.backdropcom.android.dreams.basiccom.mitv.dream+# Casting (kept by the original, second and fourth sets; the third set disabled it)+# com.google.android.apps.mediashell # Chromecast receiver; uncomment if you never cast+# Voice, accessibility, phone remote (second set, optional; the original set keeps voice, so these stay# commented out here: uncomment the ones you don't use)# com.google.android.katniss # voice search; the voice stack barely works on this firmware# com.google.android.speech.pumpkin# com.google.android.tts # text-to-speech; keep it if anything reads text aloud# com.google.android.marvin.talkback # accessibility; only disable if nobody uses TalkBack-# com.google.android.tv.remote.service # kept enabled: phone-as-remote and the remote's mic bridge+# com.google.android.tv.remote.service # phone-as-remote and the remote's mic bridge; the third set disabled it