Skip to content

Instantly share code, notes, and snippets.

@Biswa96
Last active April 7, 2024 15:38
Show Gist options
  • Star 85 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save Biswa96/81fe477079fa5279f7cfd7b98d5519c7 to your computer and use it in GitHub Desktop.
Save Biswa96/81fe477079fa5279f7cfd7b98d5519c7 to your computer and use it in GitHub Desktop.
Remove bloatware applications from MIUI ROM in Xiaomi phones
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
pause
for %%X in (
"com.amazon.appmanager"
"com.android.browser"
"com.android.chrome"
"com.android.email"
"com.android.thememanager"
"com.android.wallpaper.livepicker"
"com.facebook.services"
"com.facebook.system"
"com.facebook.appmanager"
"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"
"com.mfashiongallery.emag"
"com.mi.android.globalpersonalassistant"
"com.mi.dlabs.vr"
"com.mi.globalTrendNews"
"com.mi.global.bbs"
"com.mi.global.shop"
"com.mi.webkit.core"
"com.micredit.in"
"com.milink.service"
"com.mipay.wallet.id"
"com.mipay.wallet.in"
"com.miui.analytics"
"com.miui.android.fashiongallery"
"com.miui.bugreport"
"com.miui.cloudbackup"
"com.miui.cloudservice"
"com.miui.cloudservice.sysbase"
"com.miui.micloudsync"
"com.miui.hybrid"
"com.miui.hybrid.accessory"
"com.miui.klo.bugreport"
"com.miui.miservice"
"com.miui.miwallpaper"
"com.miui.msa.global"
"com.miui.player"
"com.miui.providers.weather"
"com.miui.screenrecorder"
"com.miui.translationservice"
"com.miui.translation.kingsoft"
"com.miui.translation.xmcloud"
"com.miui.translation.youdao"
"com.miui.touchassistant"
"com.miui.userguide"
"com.miui.videoplayer"
"com.miui.virtualsim"
"com.miui.weather2"
"com.miui.yellowpage"
"com.netflix.partner.activation"
"com.swiftkey.languageprovider"
"com.swiftkey.swiftkeyconfigurator"
"com.xiaomi.account"
"com.xiaomi.discover"
"com.xiaomi.glgm"
"com.xiaomi.joyose"
"com.xiaomi.location.fused"
"com.xiaomi.micloud.sdk"
"com.xiaomi.midrop"
"com.xiaomi.mipicks"
"com.xiaomi.miplay_client"
"com.xiaomi.mirecycle"
"com.xiaomi.oversea.ecom"
"com.xiaomi.payment"
"com.xiaomi.providers.appindex"
"com.xiaomi.xmsf" ) do (
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#
@looeee
Copy link

looeee commented Nov 18, 2021

Warning: don't remove com.miui.home without installing another launcher first as your phone won't have a launcher!
I use Niagara launcher so removing this didn't cause any issues.

Doing a bit more research into why the recents screen is not working - it seems like removing the launcher com.miui.home may have removed it.
However, it seems like MIUI doesn't allow third party launchers to control the recents screen so removing the MIUI launcher removes this functionality.

@AliASafdari
Copy link

AliASafdari commented Dec 11, 2021

Hi. Using the listed packages above as a guide, I removed all these packages given below; and now I can no longer change ringtones on my Poco X3 Pro. Which one(s) do I reinstall to be able to do so?

com.android.hotwordenrollment.okgoogle
com.android.hotwordenrollment.xgoogle
com.facebook.appmanager
com.facebook.services
com.facebook.system
com.facemoji.lite.xiaomi
com.google.android.apps.googleassistant
com.google.android.apps.nbu.paisa.user
com.google.android.apps.subscriptions.red
com.google.android.apps.wellbeing
com.google.android.gm
com.google.android.gms.location.history
com.google.android.googlequicksearchbox
com.google.android.marvin.talkback
com.google.android.syncadapters.calendar
com.google.android.syncadapters.contacts
com.google.android.tts
com.google.android.youtube
com.mi.android.globallauncher
com.mipay.wallet.in
com.miui.analytics
com.miui.android.fashiongallery
com.miui.backup
com.miui.bugreport
com.miui.cleanmaster
com.miui.cloudbackup
com.miui.cloudservice
com.miui.cloudservice.sysbase
com.miui.daemon
com.miui.global.packageinstaller
com.miui.hybrid
com.miui.hybrid.accessory
com.miui.micloudsync
com.miui.miservice
com.miui.mishare.connectivity
com.miui.miwallpaper
com.miui.msa.global
com.miui.player
com.miui.weather2
com.miui.yellowpage
com.netflix.partner.activation
com.tencent.soter.soterserver
com.xiaomi.glgm
com.xiaomi.joyose
com.xiaomi.midrop
com.xiaomi.mipicks
com.xiaomi.miplay_client
com.xiaomi.payment

@Cloud-Mak
Copy link

Cloud-Mak commented Dec 11, 2021

@AA-Saf

Have you rebooted ur phone? Is same issue happening after reboot?

I would give packages with name global in them a try to install. All other looks ok to kick out.

@AliASafdari
Copy link

@Cloud-Mak

Yep, did that the first thing.

I re-enabled "com.mi.android.globallauncher" as without it the recent apps drawer wasn't working.

Tried re-enabling other global packages, and it's still not working. 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment