Skip to content

Instantly share code, notes, and snippets.

@amard33p
Last active August 16, 2025 06:35
Show Gist options
  • Select an option

  • Save amard33p/e035c6d465499ff6dc9f0cec7e50593b to your computer and use it in GitHub Desktop.

Select an option

Save amard33p/e035c6d465499ff6dc9f0cec7e50593b to your computer and use it in GitHub Desktop.
Xiaomi Mi TV Debloat
#!/usr/bin/env bash
# Mi TV – Purge Xiaomi & install Projectivy launcher
adb shell pm disable-user --user 0 com.mitv.tvhome.atv # PatchWall launcher
adb shell pm disable-user --user 0 com.xm.webcontent # PatchWall content
adb shell pm disable-user --user 0 com.xiaomi.mitv.mediaexplorer
adb shell pm disable-user --user 0 com.mitv.videoplayer
adb shell pm disable-user --user 0 com.mitv.gallery
adb shell pm disable-user --user 0 com.xiaomi.mimusic2
adb shell pm disable-user --user 0 com.xiaomi.mitv.smartshare
adb shell pm disable-user --user 0 com.mitv.milinkservice # Xiaomi’s Miracast
adb shell pm disable-user --user 0 com.xiaomi.mitv.handbook
adb shell pm disable-user --user 0 com.xiaomi.mitv.tvmanager
adb shell pm disable-user --user 0 com.mitv.dream # Xiaomi screensaver
adb shell pm disable-user --user 0 com.miui.tv.analytics
adb shell pm disable-user --user 0 com.xiaomi.statistic
adb shell pm disable-user --user 0 com.xiaomi.floatingframe # Floating ads/overlays
adb shell pm disable-user --user 0 com.xiaomi.mitv.updateservice
# Disable Google launchers
adb shell pm disable-user --user 0 com.google.android.tvlauncher
adb shell pm disable-user --user 0 com.google.android.leanbacklauncher
# Install Projectivy (assuming APK in current directory)
adb install -r ProjectivyLauncher-4.67-c80-xda-release.apk
adb install LocalSend-1.17.0-android-arm32v7.apk
# Set Projectivy as launcher—Xiaomi doesn’t officially allow it,
# but disabling others often forces the system to default to it
adb shell cmd package set-home-activity com.projectivy.launcher/.MainActivity
echo "Setup complete—reboot your device to test."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment