Skip to content

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

examples: add Xiaomi MiTV-AXFR1 (rango, Android TV 11)

Tanay Patwa9d845a8bfe1a
diff --git a/README.md b/README.md
index 6d01fbc8c..57bd0eeb7 100644
--- a/README.md
+++ b/README.md
@@ -149,6 +149,7 @@ SANYO · Skyworth · Thomson · Toshiba Fire TV · Vu · Stellamore and XGIMI pr
| Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 |
| Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 |
| 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-MOOR2 (venom, MediaTek) | Google TV 11 |
| Xiaomi MiTV-MOSR4 (irobot, MediaTek) | Google TV 11 |
diff --git a/examples/README.md b/examples/README.md
index c1e920395..b5e971091 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -53,6 +53,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `xiaomi-mi-tv-4a/` | Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 | PatchWall, Mi analytics, SmartShare, MiLink |
| `xiaomi-mitv-aesp0/` | Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 | No inputs; Home key sends ALL_APPS, needs `HOME_KEY_SERVICE=1`; Chromecast kept |
| `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-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-axfr1/debloat.txt b/examples/xiaomi-mitv-axfr1/debloat.txt
new file mode 100644
index 000000000..8fb51d8d6
--- /dev/null
+++ b/examples/xiaomi-mitv-axfr1/debloat.txt
@@ -0,0 +1,70 @@
+# Xiaomi MiTV-AXFR1 (codename rango, product dune; Amlogic/droidlogic, 1 GB RAM, India), Android TV 11 (SDK 30),
+# firmware RTT0.210630.002.485 (Xiaomi/dune/rango:11/RTT0.210630.002/485), security patch 1 November 2025.
+# Same firmware family as xiaomi-mitv-axso0 (ships android.autoinstalls.config.xioami.dangal).
+# Live TV app: com.android.tv (also owns the input picker, .input.SelectInputActivity).
+# 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-axfr1/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/xiaomi-mitv-axfr1/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Notes from this firmware:
+# - USB debugging alone opens port 5555; no wireless-debugging pairing needed.
+# - Sideloading works (pm install over the shell), and a third-party HOME app is accepted without a
+# Xiaomi signature. setupwraith is installed but does not claim HOME here, so it can stay enabled.
+# - PatchWall (com.mitv.tvhome.atv) also contains an InputSourcePopupActivity, but the Settings key opens
+# stock TV Settings and the Inputs panel is com.android.tv's, so PatchWall is safe to disable.
+# Settings, the Inputs panel (HDMI 1, HDMI 2, AV, TV) and HDMI switching were checked after each batch.
+# - An injected KEYCODE_TV_INPUT is unhandled on this firmware; inputs are reached from Settings or the launcher.
+# - Live TV with no channels tuned goes straight to a channel scan when opened (stock behaviour too).
+# - Disabled state, the Home default and Private DNS all survive a reboot. The TV can come back on a
+# different IP after a reboot (DHCP), so re-check TV_HOST.
+# - Default IME is already Gboard; the Baidu-keyboard quirk from the Mi TV 4A doesn't apply.
+
+# Xiaomi + Google telemetry
+com.miui.tv.analytics
+com.xiaomi.statistic # log upload receiver
+com.google.android.feedback
+
+# PatchWall, content rows, sponsored rows
+com.mitv.tvhome.atv # PatchWall
+com.xm.webcontent
+com.google.android.tvrecommendations # sponsored rows in the stock launcher
+android.autoinstalls.config.xioami.dangal # Play auto-install of partner apps (sic, "xioami")
+com.mitv.tvhome.mitvplus # Mi TV+ sponsored live channels
+
+# Xiaomi background services
+com.xiaomi.mitv.tvmanager # "TV Manager" cleaner
+com.xiaomi.mitv.handbook
+com.xiaomo.tv.milegal # static legal / privacy text screens
+
+# Personal choice: screen mirroring (Chromecast built-in kept)
+com.xiaomi.mitv.smartshare # Miracast + MiPlay receiver
+com.xiaomi.wfdsinkhelperservice # Miracast sink
+com.mitv.milinkservice # Mi Cast discovery
+
+# Personal choice: firmware updates (re-enable to check for one)
+com.xiaomi.mitv.updateservice
+
+# Preloaded apps
+com.xiaomi.mimusic2
+com.google.android.play.games
+com.google.android.videos # Play Movies & TV
+com.mitv.dream # Mi screensaver; Google Ambient mode (backdrop) kept
+
+# Personal choice: preloaded streaming apps not used
+com.jio.media.stb.ondemand # JioCinema / JioTV
+com.sonyliv
+com.graymatrix.did # ZEE5
+com.google.android.youtube.tvmusic
+com.mxtech.videoplayer.television # MX Player
+com.formulaone.production # F1 TV
+
+# Kept on purpose (checked with dumpsys package):
+# com.droidlogic.tvinput HDMI 1-4, AV, ATV/DTV/ADTV TvInputServices
+# com.droidlogic, com.droidlogic.droidlivetvsettings platform services, Live TV settings
+# mitv.service persistent Mi TV server (system uid)
+# com.mi.bluetooth remote control service (RcService)
+# com.xiaomi.android.tvsetup.partnercustomizer BLE remote pairing + GLOBAL_BUTTON receiver
+# com.xiaomi.mitv.mediaexplorer, com.mitv.videoplayer, com.mitv.gallery USB media playback
+# com.mitv.bspfactoryservice factory info screen, harmless