Skip to content

Instantly share code, notes, and snippets.

@ostanislaw
Last active August 27, 2025 05:07
Show Gist options
  • Save ostanislaw/98620e024fdbbeb1402963c1d4c47281 to your computer and use it in GitHub Desktop.
Save ostanislaw/98620e024fdbbeb1402963c1d4c47281 to your computer and use it in GitHub Desktop.
Debloat tvbox xiaomi mibox Mi Box S 2nd gen

Developer options

system -> info -> compilation -> clicking : to enable programming mode

  • disable keep app activity
  • limit number of processes to 3
  • enable usb debugging
  • change usb to media transfer (instead of charging)

Connect to adb

adb connect Xiaomi-TV-Box.lan:5555

Install downloader, button mapper and keyboard

https://play.google.com/store/apps/details?id=com.esaba.downloader https://play.google.com/store/apps/details?id=flar2.homebutton https://play.google.com/store/apps/details?id=org.liskovsoft.androidtv.rukeyboard

Download and install launcher

https://github.com/osrosal/flauncher/releases

  • Disable com.google.android.apps.tv.launcherx which is the default launcher
adb shell pm disable-user --user 0 com.google.android.apps.tv.launcherx
adb shell pm disable-user --user 0 com.google.android.tungsten.setupwraith
adb reboot

Debloat uninstall

Based on: https://www.reddit.com/r/MiBox/comments/185xsd5/mi_box_s_2nd_gen_debloat_list/

Reboot after uninstalling.

pm uninstall --user 0 -k com.miui.tv.analytics
pm uninstall --user 0 -k com.android.providers.calendar
pm uninstall --user 0 -k android.autoinstalls.config.xioami.mibox3
pm uninstall --user 0 -k com.mitv.gallery
pm uninstall --user 0 -k com.google.android.katniss
pm uninstall --user 0 -k com.google.android.syncadapters.calendar
pm uninstall --user 0 -k com.google.android.play.games
pm uninstall --user 0 -k com.google.android.videos
pm uninstall --user 0 -k com.google.android.feedback
pm uninstall --user 0 -k com.xiaomi.mitv.mediaexplorer
pm uninstall --user 0 -k com.mitv.tvhome.michannel
pm uninstall --user 0 -k com.mitv.videoplayer
pm uninstall --user 0 -k com.xiaomi.mimusic2
pm uninstall --user 0 -k com.mitv.tvhome.atv
pm uninstall --user 0 -k com.android.printspooler
pm uninstall --user 0 -k com.xiaomi.android.tvsetup.partnercustomizer
pm uninstall --user 0 -k com.google.android.tts
pm uninstall --user 0 -k com.mitv.tvhome.mitvplus
pm uninstall --user 0 -k com.google.android.youtube.tv
pm uninstall --user 0 -k com.google.android.youtube.tvmusic
pm uninstall --user 0 -k com.android.providers.contacts.auto_generated_rro_product__

check and restore uninstalled app

pm list packages -u
adb shell cmd package install-existing <PACKAGE>

check and restore disabled app

pm list packages -d
adb shell pm enable <PACKAGE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment