Last active
November 5, 2023 13:14
-
-
Save davydes/3a23d5ccafec425f6b6821c6ee235db1 to your computer and use it in GitHub Desktop.
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 | |
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 | |
# 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 | |
# System bloatware | |
echo -n "SIM Menu..." | |
adb shell pm uninstall --user 0 com.android.stk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment