Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wridhdhi/09fa49cde50bf174e174f39d5fe9fcc5 to your computer and use it in GitHub Desktop.
Save wridhdhi/09fa49cde50bf174e174f39d5fe9fcc5 to your computer and use it in GitHub Desktop.
Remove bloatware applications from MIUI ROM in Xiaomi phones
:: Tested on brand new POCOX2
:: Keeps minimal services but removes most junk
:: TESTED AGAINST SOFT-BRICK, all safe to remove
:: The apps arrive with software update, so run it after each update
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
pause
for %%X in (
"com.amazon.appmanager"
"com.facebook.services"
"com.facebook.system"
"com.facebook.appmanager"
"com.mipay.wallet.id"
"com.mipay.wallet.in"
"com.miui.hybrid"
"com.miui.hybrid.accessory"
"com.xiaomi.payment"
"com.miui.miservice"
"com.xiaomi.mipicks"
"com.xiaomi.miplay_client"
"com.miui.msa.global"
"com.miui.translationservice"
"com.miui.translation.kingsoft"
"com.miui.translation.xmcloud"
"com.miui.translation.youdao"
"com.netflix.partner.activation"
"com.swiftkey.languageprovider"
"com.swiftkey.swiftkeyconfigurator"
"com.xiaomi.glgm"
"com.xiaomi.joyose"
"com.miui.klo.bugreport"
"com.miui.analytics"
"com.mi.globalTrendNews"
"com.mi.global.bbs"
"com.mi.global.shop"
"com.mi.webkit.core"
"com.micredit.in"
"com.xiaomi.discover"
"com.xiaomi.midrop"
) do (
REM adb shell pm disable-user %%X
adb shell pm uninstall %%X
adb shell pm uninstall --user 0 %%X
)
pause
::Optional
::Play Store ==> "com.android.vending"
::Play Store Service ==> "com.google.android.gms"
::Gboard ==> "com.google.android.inputmethod.latin"
::Google Login Service ==> "com.google.android.gsf.login"
::Android System WebView ==> "com.google.android.webview"
::Explorer ==> "com.mi.android.globalFileexplorer"
::Find device ==> "com.xiaomi.finddevice"
::END-100#
:: "com.google.android.apps.docs"
:: "com.google.android.apps.maps"
:: "com.google.android.apps.photos"
:: "com.google.android.apps.tachyon"
:: "com.google.android.feedback"
:: "com.google.android.gm"
:: "com.google.android.googlequicksearchbox"
:: "com.google.android.marvin.talkback"
:: "com.google.android.music"
:: "com.google.android.syncadapters.calendar"
:: "com.google.android.syncadapters.contacts"
:: "com.google.android.talk"
:: "com.google.android.tts"
:: "com.google.android.videos"
:: "com.google.android.youtube"
REM "com.android.browser"
REM "com.android.chrome"
REM "com.android.email"
REM "com.android.thememanager"
REM "com.android.wallpaper.livepicker"
REM "com.mfashiongallery.emag"
REM "com.mi.android.globalpersonalassistant"
REM "com.mi.dlabs.vr"
REM "com.milink.service"
REM "com.miui.android.fashiongallery"
REM "com.miui.bugreport"
REM "com.miui.cloudbackup"
REM "com.miui.cloudservice"
REM "com.miui.cloudservice.sysbase"
REM "com.miui.micloudsync"
REM "com.miui.miwallpaper"
REM "com.miui.player"
REM "com.miui.providers.weather"
REM "com.miui.screenrecorder"
REM "com.miui.touchassistant"
REM "com.miui.userguide"
REM "com.miui.videoplayer"
REM "com.miui.virtualsim"
REM "com.miui.weather2"
REM "com.miui.yellowpage"
REM "com.xiaomi.account"
REM "com.xiaomi.location.fused"
REM "com.xiaomi.micloud.sdk"
REM "com.xiaomi.mirecycle"
REM "com.xiaomi.oversea.ecom"
REM "com.xiaomi.providers.appindex"
REM "com.xiaomi.xmsf"
:: tested on Redmi3S , Redmi Note 4 , Redmi 6 Pro
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
pause
for %%X in (
"com.amazon.appmanager"
"com.facebook.services"
"com.facebook.system"
"com.facebook.appmanager"
"com.mipay.wallet.id"
"com.mipay.wallet.in"
"com.miui.hybrid"
"com.miui.hybrid.accessory"
"com.xiaomi.payment"
"com.miui.miservice"
"com.xiaomi.mipicks"
"com.xiaomi.miplay_client"
"com.miui.msa.global"
"com.miui.translationservice"
"com.miui.translation.kingsoft"
"com.miui.translation.xmcloud"
"com.miui.translation.youdao"
"com.netflix.partner.activation"
"com.swiftkey.languageprovider"
"com.swiftkey.swiftkeyconfigurator"
"com.xiaomi.glgm"
"com.xiaomi.joyose"
"com.miui.klo.bugreport"
"com.miui.analytics"
"com.mi.globalTrendNews"
"com.mi.global.bbs"
"com.mi.global.shop"
"com.mi.webkit.core"
"com.micredit.in"
"com.xiaomi.discover"
"com.xiaomi.midrop"
"com.miui.android.fashiongallery"
"com.miui.bugreport"
"com.miui.cloudbackup"
"com.miui.cloudservice"
"com.miui.cloudservice.sysbase"
"com.miui.micloudsync"
"com.xiaomi.micloud.sdk"
"com.miui.player"
"com.milink.service"
"com.mi.android.globalpersonalassistant"
"com.android.browser"
) do (
REM adb shell pm disable-user %%X
adb shell pm uninstall %%X
adb shell pm uninstall --user 0 %%X
)
pause
::Optional
::Play Store ==> "com.android.vending"
::Play Store Service ==> "com.google.android.gms"
::Gboard ==> "com.google.android.inputmethod.latin"
::Google Login Service ==> "com.google.android.gsf.login"
::Android System WebView ==> "com.google.android.webview"
::Explorer ==> "com.mi.android.globalFileexplorer"
::Find device ==> "com.xiaomi.finddevice"
::END-100#
:: "com.google.android.apps.docs"
:: "com.google.android.apps.maps"
:: "com.google.android.apps.photos"
:: "com.google.android.apps.tachyon"
:: "com.google.android.feedback"
:: "com.google.android.gm"
:: "com.google.android.googlequicksearchbox"
:: "com.google.android.marvin.talkback"
:: "com.google.android.music"
:: "com.google.android.syncadapters.calendar"
:: "com.google.android.syncadapters.contacts"
:: "com.google.android.talk"
:: "com.google.android.tts"
:: "com.google.android.videos"
:: "com.google.android.youtube"
REM "com.android.chrome"
REM "com.android.email"
REM "com.android.thememanager"
REM "com.android.wallpaper.livepicker"
REM "com.mfashiongallery.emag"
REM "com.mi.dlabs.vr"
REM "com.miui.miwallpaper"
REM "com.miui.providers.weather"
REM "com.miui.screenrecorder"
REM "com.miui.touchassistant"
REM "com.miui.userguide"
REM "com.miui.videoplayer"
REM "com.miui.virtualsim"
REM "com.miui.weather2"
REM "com.miui.yellowpage"
REM "com.xiaomi.account"
REM "com.xiaomi.location.fused"
REM "com.xiaomi.mirecycle"
REM "com.xiaomi.oversea.ecom"
REM "com.xiaomi.providers.appindex"
REM "com.xiaomi.xmsf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment