Skip to content

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

examples: Xiaomi MiTV-AXSO2 (dangalUHD, Android TV 9, PI.6432)

Alaf Azam Khana25ecca33642
diff --git a/README.md b/README.md
index 9d1105bfc..cc080e28b 100644
--- a/README.md
+++ b/README.md
@@ -162,6 +162,7 @@ Stellamore and XGIMI projectors
| Xiaomi MiTV-ASTP1 (maverick), China firmware 2.40.641.0514.cn, 1 GB RAM, 720p | Android TV 9 (CN build) |
| Xiaomi MiTV-AXFR1 (rango, Amlogic, 1 GB), India | Android TV 11 |
| Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 |
+| Xiaomi MiTV-AXSO2 (dangalUHD, India, 2 GB) | Android TV 9 |
| Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 |
| Xiaomi MiTV-MOSR4 (irobot, MediaTek) | Google TV 11 |
| Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 |
diff --git a/examples/README.md b/examples/README.md
index d92532661..e0dd81680 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -65,6 +65,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `xiaomi-mitv-astp1/` | Xiaomi MiTV-ASTP1 (maverick), China firmware 2.40.641.0514.cn, 1 GB RAM, 720p | Android TV 9 (CN build) | First CN-firmware Xiaomi: no Google apps; stock launcher `com.mitv.tvhome` (pass `STOCK_LAUNCHER`); ADB closes on every reboot; Mi analytics/push/ads, shop plugin, TV Manager, updater off; casting and app store kept |
| `xiaomi-mitv-axfr1/` | Xiaomi MiTV-AXFR1 (rango, Amlogic, 1 GB), India | Android TV 11 | PatchWall, Mi analytics, sponsored rows, partner auto-installs, TV Manager; mirroring, OTA and unused streaming apps off by choice; Chromecast and voice kept; PatchWall's input popup is unused (input picker is Live TV's); custom HOME accepted, setupwraith does not claim HOME |
| `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-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 |
| `xiaomi-mitv-mssp3/` | Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 | PatchWall, Mi analytics, Netflix observer; Chromecast, screensavers, unused streaming apps off by choice |
diff --git a/examples/xiaomi-mitv-axso2/debloat.txt b/examples/xiaomi-mitv-axso2/debloat.txt
new file mode 100644
index 000000000..29a6534b2
--- /dev/null
+++ b/examples/xiaomi-mitv-axso2/debloat.txt
@@ -0,0 +1,71 @@
+# Xiaomi MiTV-AXSO2 (codename dangalUHD, Amlogic/droidlogic, 2 GB RAM), Android TV 9 (SDK 28), firmware PI.6432.
+# Same "dangal" board family as examples/xiaomi-mitv-axso0. India unit.
+# Live TV app: com.android.tv (set it as live_tv_package and hide it in launcher config.xml).
+# Stock launcher: com.google.android.tvlauncher (the default, disabled by build-and-install.sh).
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/xiaomi-mitv-axso2/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/xiaomi-mitv-axso2/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Notes from this firmware:
+# - USB debugging alone opens network ADB on port 5555; the stock adb binary worked from macOS here.
+# - Default IME is already Gboard, so the Mi TV 4A missing-keyboard quirk doesn't apply.
+# - Everything below stays disabled after `adb reboot`.
+# - The remote's PatchWall button does nothing once com.mitv.tvhome.atv is disabled.
+# - Google sign-in: tvlauncher's notification panel gets its list from com.google.android.tvrecommendations.
+# With both disabled, Play Services' "Sign-in required" notice has nowhere to show, and Play Store only says
+# "Authentication is required". To sign in again: `pm enable` both, open
+# com.google.android.tvlauncher/.notifications.NotificationsSidePanelActivity, select the notice, enter the
+# password, then disable both again. If the password page comes back after OK, press Back: the sign-in has
+# usually worked already.
+# - Storage is tight: 4.4 GB /data with about 600 MB free. A Play Services update took about 300 MB right after
+# sign-in and Play installs then failed with error 1008; `pm trim-caches 64G` freed about 400 MB.
+# - com.xiaomitv.sonyliv and com.zee5.xiaomiTV are old partner copies (2021-2023) with no launcher entry;
+# the Play Store apps com.sonyliv and com.graymatrix.did stay.
+
+# Xiaomi + Google telemetry
+com.miui.tv.analytics
+com.xiaomi.statistic
+com.google.android.feedback
+com.google.android.tv.bugreportsender
+
+# PatchWall, content rows, sponsored rows, partner auto-installs
+com.mitv.tvhome.atv
+com.xm.webcontent
+com.xiaomi.floatingframe
+com.google.android.tvrecommendations # also feeds the notification panel, see the sign-in note
+com.google.android.leanbacklauncher.recommendations
+android.autoinstalls.config.xiaomi.amelie # Play auto-install of partner apps
+android.autoinstalls.config.xioami.dangal # Play auto-install of partner apps (sic, "xioami")
+com.mitv.tvhome.mitvplus # Mi TV+ sponsored live channels
+co.sensara.tv.mitv # Sensara partner TV guide (sponsored show recommendations)
+
+# Xiaomi background services
+com.xiaomi.mitv.tvmanager # "TV Manager" cleaner
+com.xiaomi.mitv.handbook
+com.xiaomi.mitv.updateservice # firmware updates: re-enable to check for one
+com.xiaomo.tv.milegal # static legal / privacy text screens
+
+# Preloaded apps
+com.xiaomi.mimusic2
+com.mitv.gallery # Mi Gallery; Media Player still opens USB photos
+com.google.android.music # Google Play Music, service shut down
+com.google.android.videos # Play Movies & TV
+com.google.android.play.games
+com.google.android.youtube.tvmusic
+com.tcl.browser
+
+# Personal choice: old partner copies of streaming apps (see notes)
+com.xiaomitv.sonyliv
+com.zee5.xiaomiTV
+
+# Android extras a TV without camera, printer or SIM doesn't use
+com.android.camera2
+com.android.gallery3d
+com.android.printspooler
+com.google.android.marvin.talkback # screen reader: keep it if anyone in the house uses it
+com.android.smspush
+com.android.dreams.basic # basic screensaver; Ambient mode (backdrop) stays
+
+# Kept on purpose on this TV: Google Assistant (katniss, pumpkin), Chromecast (mediashell), Mi Cast and
+# Mi Share (milinkservice, smartshare), Miracast (wfdsinkhelperservice) and every streaming app.