Skip to content

Instantly share code, notes, and snippets.

@jasimancas
Last active October 20, 2025 16:21
Show Gist options
  • Save jasimancas/53341f47f0a844bf09837f88ad8977f9 to your computer and use it in GitHub Desktop.
Save jasimancas/53341f47f0a844bf09837f88ad8977f9 to your computer and use it in GitHub Desktop.
Xiaomi Mi Box / Mi Box S / Mi TV Stick hacks
Modifications for Xiaomi's Android TV devices
In device:
Settings > Device Preferences > About then tap several times on the Build to unlock the Developer options.
Settings > Developer options > USB Debugging (Activate)
In computer:
Download: https://androiddatahost.com/uq6us
Install "Minimal ADB and Fastboot"
Open CMD and go to "C:\Program Files (x86)\Minimal ADB and Fastboot"
In CMD "adb connect DEVICEIP"
Download https://bit.ly/SWLMA104
Copy LM.apk to adb path (C:\Program Files (x86)\Minimal ADB and Fastboot)
adb install LM.apk
Check "Always allow from this computer" and OK
adb install LM.apk (again)
adb reboot
In device:
Google Play Store -> Install FLauncher (or another ATV Launcher)
Open Launcher Manager
Enable Custom Launcher
Check "Always allow from this computer" and OK
Wait to "Current Launcher" change to FLauncher, f it fails or does not change press Enable Custom Launcher again
press Home key in remote control to check the new launcher
Reboot device.
# Open CMD and go to "C:\Program Files (x86)\Minimal ADB and Fastboot"
# In CMD "adb connect DEVICEIP"
# in CMD "adb shell"
# In CMD (shell aquaman:/ $)
pm disable-user com.android.printspooler
pm disable-user com.android.providers.calendar
pm disable-user com.android.providers.contacts
pm disable-user com.google.android.syncadapters.calendar
pm disable-user com.google.android.syncadapters.contacts
pm disable-user com.mitv.tvhome.atv
pm disable-user tv.alphonso.alphonso_eula
pm uninstall --user 0 android.autoinstalls.config.xioami.mibox3
pm uninstall --user 0 com.miui.tv.analytics
pm uninstall --user 0 com.google.android.tvrecommendations
pm uninstall --user 0 com.xiaomi.android.tvsetup.partnercustomizer
pm uninstall --user 0 com.google.android.feedback
pm uninstall --user 0 com.google.android.tv.bugreportsender
# If we do not use the official launcher:
pm uninstall --user 0 com.google.android.tv
pm uninstall --user 0 com.mitv.milinkservice
pm uninstall --user 0 com.mitv.tvhome.michannel
pm uninstall --user 0 com.google.android.tvlauncher
# Clearing data and cache of removed/disabled applications:
for p in `pm list packages -d -u` ; do am force-stop ${p/package:/} ; done
for p in `pm list packages -d -u` ; do pm clear ${p/package:/} ; done
pm trim-caches 4096G
# Save and reboot:
cmd shortcut reset-all-throttling
cmd stats write-to-disk
sm fstrim
sync
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment