Forked from davydes/clean-up-xiaomi-bloatware.sh
Last active
November 14, 2024 09:46
-
-
Save danpawlik/b803aa2ce8b057a45ddade77d936b0c1 to your computer and use it in GitHub Desktop.
Cleanup apps installed in MIUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Clean-up Xiaomi smartphone without rooting: | |
# | |
# 1) You have to install adb tool from android sdk | |
# 2) You have to activate developer options, next activate usb debugging | |
# 3) Comment out or delete lines with packages, if you really need them | |
# 4) Optional: I hightly recommed to activate OEM unlocking feature in developer options. | |
# It doesn't unlock you device immediately, but in case of breaking you phone | |
# you will have opportunity to unlock you phone and reflash it via MiFlash. | |
# After successfull clean-up and rebooting your phone you should deactivate | |
# unloking feature to protect you device. | |
# 5) Connect your phone, open shell and type 'adb devices' to check you phone connection via adb. | |
# If you see your device in the list then go to the next step. | |
# 6) Run the script | |
# 7) Reboot phone | |
# 8) Disable developer options if you don't need it | |
# Google bloatware | |
#echo -n "Google... " | |
#adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox | |
## NOTE: YES, remove the android auto that is comming in MIUI and | |
## install Android Auto from Google Play | |
echo -n "Google Android Auto... " | |
adb shell pm uninstall --user 0 com.google.android.projection.gearhead | |
#echo -n "Goole Mail... " | |
#adb shell pm uninstall --user 0 com.google.android.gm | |
echo -n "Google Music... " | |
adb shell pm uninstall --user 0 com.google.android.music | |
echo -n "Google Play Movies... " | |
adb shell pm uninstall --user 0 com.google.android.videos | |
#echo -n "Google YouTube... " | |
#adb shell pm uninstall --user 0 com.google.android.youtube | |
echo -n "Google Duo... " | |
adb shell pm uninstall --user 0 com.google.android.apps.tachyon | |
#echo -n "Google Maps... " | |
#adb shell pm uninstall --user 0 com.google.android.apps.maps | |
echo -n "Google Docs... " | |
adb shell pm uninstall --user 0 com.google.android.apps.docs | |
#echo -n "Google Photos... " | |
#adb shell pm uninstall --user 0 com.google.android.apps.photos | |
echo -n "Google AR Core Library... " | |
adb shell pm uninstall --user 0 com.google.ar.core | |
#echo -n "Google Lens... " | |
#adb shell pm uninstall --user 0 com.google.ar.lens | |
#echo -n "Google Chrome... " | |
#adb shell pm uninstall --user 0 com.android.chrome | |
echo -n "Google Hangouts... " | |
adb shell pm uninstall --user 0 com.google.android.talk | |
echo -n "Google One... " | |
adb shell pm uninstall --user 0 com.google.android.apps.subscriptions.red | |
echo -n "Google Wallet... " | |
adb shell pm uninstall --user 0 com.google.android.apps.walletnfcrel | |
echo -n "Google Podcasts... " | |
adb shell pm uninstall --user 0 com.google.android.apps.podcasts | |
echo -n "Google News... " | |
adb shell pm uninstall --user 0 com.google.android.apps.magazines | |
echo -n "Google One... " | |
adb shell pm uninstall --user 0 com.google.android.apps.chromecast.app | |
# Mi bloatware | |
echo -n "Mi Browser... " | |
adb shell pm uninstall --user 0 com.android.browser | |
#echo -n "Mi Gallery... " | |
#adb shell pm uninstall --user 0 com.miui.gallery | |
echo -n "Mi Feedback... " | |
adb shell pm uninstall --user 0 com.miui.miservice | |
echo -n "MIUI Forum... " | |
adb shell pm uninstall --user 0 com.miui.enbbs | |
echo -n "Mi Feedback... " | |
adb shell pm uninstall --user 0 com.miui.bugreport | |
echo -n "Mi Compass... " | |
adb shell pm uninstall --user 0 com.miui.compass | |
echo -n "Mi Notes... " | |
adb shell pm uninstall --user 0 com.miui.notes | |
#echo -n "Mi Screen Recorder... " | |
#adb shell pm uninstall --user 0 com.miui.screenrecorder | |
echo -n "Mi Video... " | |
adb shell pm uninstall --user 0 com.miui.videoplayer | |
echo -n "Mi Music... " | |
adb shell pm uninstall --user 0 com.miui.player | |
echo -n "Mi Yellow Pages... " | |
adb shell pm uninstall --user 0 com.miui.yellowpage | |
echo -n "Mi Wallpaper Carousel... " | |
adb shell pm uninstall --user 0 com.miui.android.fashion.gallery | |
echo -n "Mi Health... " | |
adb shell pm uninstall --user 0 com.mi.health | |
echo -n "App Vault/Minus Screen... " | |
adb shell pm uninstall --user 0 com.mi.android.globalminusscreen | |
echo -n "Mi Games... " | |
adb shell pm uninstall --user 0 com.xiaomi.glgm | |
echo -n "Mi Drop... " | |
adb shell pm uninstall --user 0 com.xiaomi.midrop | |
echo -n "Mi Apps... " | |
adb shell pm uninstall --user 0 com.xiaomi.mipicks | |
echo -n "Mi Scanner... " | |
adb shell pm uninstall --user 0 com.xiaomi.scanner | |
#echo -n "Mi Remote Peel Plugin... " | |
#adb shell pm uninstall --user 0 com.duokan.phone.remotecontroller.peel.plugin | |
#echo -n "Mi Remote... " | |
#adb shell pm uninstall --user 0 com.duokan.phone.remotecontroller | |
#echo -n "Mi Doc Viewer... " | |
#adb shell pm uninstall --user 0 cn.wps.xiaomi.abroad.lite | |
echo -n "Mi funmax... " | |
adb shell pm uninstall --user 0 com.xiaomi.glgm | |
echo -n "Mi Calculator... " | |
adb shell pm uninstall --user 0 com.miui.calculator | |
echo -n "Mi Coin... " | |
adb shell pm uninstall --user 0 com.xiaomi.payment | |
echo -n "MIUI Community... " | |
adb shell pm uninstall --user 0 com.mi.global.bbs | |
adb shell pm uninstall --user 0 com.mi.globalminusscreen | |
adb shell pm uninstall --user 0 com.xiaomi.mipicks | |
adb shell pm uninstall --user 0 com.xiaomi.glgm | |
# System bloatware | |
#echo -n "SIM Menu..." | |
#adb shell pm uninstall --user 0 com.android.stk | |
# | |
# other apps | |
for app in com.alibaba.aliexpresshd com.amazon.appmanager \ | |
com.amazon.mShop.android.shopping \ | |
com.booking com.ebay.carrier com.ebay.mobile \ | |
com.facebook.appmanager com.facebook.katana \ | |
com.facebook.services com.facebook.system \ | |
com.linkedin.android com.netflix.mediaclient \ | |
com.opera.browser com.opera.preinstall \ | |
com.spotify.music com.zhiliaoapp.musically \ | |
cn.wps.moffice_eng cn.wps.xiaomi.abroad.lite; | |
do | |
echo "Removing ${app}" | |
adb shell pm uninstall --user 0 "${app}" | |
done | |
# other miui apps - just disable | |
for app in com.miui.analytics com.android.providers.downloads.ui \ | |
com.miui.phrase com.miui.msa.global \ | |
com.mi.globalbrowser com.xiaomi.payment \ | |
com.xiaomi.midrop com.miui.mishare.connectivity \ | |
com.miui.videoplayer com.xiaomi.miplay_client com.miui.player \ | |
com.miui.notes com.miui.global.packageinstaller \ | |
com.android.providers.partnerbookmarks com.xiaomi.scanner \ | |
com.tencent.soter.soterserver com.miui.yellowpage com.android.soundrecorder \ | |
com.android.wallpaper.livepicker; | |
do | |
echo "Disabling ${app}" | |
adb shell pm disable-user --user 0 "${app}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment