Skip to content

Instantly share code, notes, and snippets.

@lenosi
Last active May 20, 2023 07:58
Show Gist options
  • Save lenosi/ba8c84da1d507605254b4025cfc219bc to your computer and use it in GitHub Desktop.
Save lenosi/ba8c84da1d507605254b4025cfc219bc to your computer and use it in GitHub Desktop.
MIUI bloatware

Get list of system apps on the device:

adb shell "echo 'apps:' && pm list packages -f | grep /system/app/ | sed 's/.*=/  - /'"

Remove application command

pm uninstall -k --user 0 app

Remove Facebook

You need to remove it in right order.

pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.facebook.services
pm uninstall -k --user 0 com.facebook.katana
pm uninstall -k --user 0 com.facebook.appmanager
info:
phone: Xiaomi MI 9
android: 9 PKQ1.181121.001
miui: Global V10.2.15.0
command: echo 'apps:' && adb shell "pm list packages -f | sed 's/.*=/ - /'" | sort
apps:
- android
- android.autoinstalls.config.Xiaomi.cepheus
- android.overlay.common
- android.telephony.overlay.cmcc
- com.alibaba.aliexpresshd
- com.android.apps.tag
- com.android.backupconfirm
- com.android.bips
- com.android.bluetooth
- com.android.bluetooth.overlay.common
- com.android.bluetoothmidiservice
- com.android.bookmarkprovider
- com.android.browser
- com.android.calendar
- com.android.calllogbackup
- com.android.camera
- com.android.captiveportallogin
- com.android.carrierconfig
- com.android.carrierconfig.overlay.common
- com.android.carrierdefaultapp
- com.android.cellbroadcastreceiver
- com.android.cellbroadcastreceiver.overlay.common
- com.android.certinstaller
- com.android.chrome
- com.android.companiondevicemanager
- com.android.contacts
- com.android.cts.ctsshim
- com.android.cts.priv.ctsshim
- com.android.defcontainer
- com.android.deskclock
- com.android.dialer.overlay.common
- com.android.documentsui
- com.android.dreams.basic
- com.android.egg
- com.android.emergency
- com.android.externalstorage
- com.android.fileexplorer
- com.android.hotwordenrollment.okgoogle
- com.android.hotwordenrollment.xgoogle
- com.android.htmlviewer
- com.android.incallui
- com.android.inputdevices
- com.android.internal.display.cutout.emulation.corner
- com.android.internal.display.cutout.emulation.double
- com.android.internal.display.cutout.emulation.tall
- com.android.keychain
- com.android.location.fused
- com.android.managedprovisioning
- com.android.mms
- com.android.mms.service
- com.android.mtp
- com.android.networksettings.overlay.ct
- com.android.nfc
- com.android.pacprocessor
- com.android.phone
- com.android.phone.overlay.common
- com.android.printspooler
- com.android.providers.blockednumber
- com.android.providers.calendar
- com.android.providers.contacts
- com.android.providers.downloads
- com.android.providers.downloads.ui
- com.android.providers.media
- com.android.providers.partnerbookmarks
- com.android.providers.settings
- com.android.providers.telephony
- com.android.providers.userdictionary
- com.android.provision
- com.android.proxyhandler
- com.android.se
- com.android.server.telecom
- com.android.server.telecom.overlay.common
- com.android.settings
- com.android.settings.intelligence
- com.android.sharedstoragebackup
- com.android.shell
- com.android.simappdialog
- com.android.smspush
- com.android.soundrecorder
- com.android.statementservice
- com.android.stk
- com.android.storagemanager
- com.android.systemui
- com.android.systemui.overlay.common
- com.android.systemui.theme.dark
- com.android.thememanager
- com.android.thememanager.module
- com.android.traceur
- com.android.updater
- com.android.vending
- com.android.vpndialogs
- com.android.wallpaper.livepicker
- com.android.wallpaperbackup
- com.android.wallpapercropper
- com.bsp.catchlog
- com.duokan.phone.remotecontroller
- com.duokan.phone.remotecontroller.peel.plugin
- com.facebook.appmanager
- com.facebook.katana
- com.facebook.services
- com.facebook.system
- com.fido.asm
- com.fido.xiaomi.uafclient
- com.goodix.fingerprint.setting
- com.google.android.apps.docs
- com.google.android.apps.maps
- com.google.android.apps.photos
- com.google.android.apps.restore
- com.google.android.apps.tachyon
- com.google.android.apps.turbo
- com.google.android.backuptransport
- com.google.android.configupdater
- com.google.android.ext.services
- com.google.android.ext.shared
- com.google.android.feedback
- com.google.android.gm
- com.google.android.gms
- com.google.android.gms.policy_sidecar_aps
- com.google.android.googlequicksearchbox
- com.google.android.gsf
- com.google.android.inputmethod.latin
- com.google.android.marvin.talkback
- com.google.android.music
- com.google.android.onetimeinitializer
- com.google.android.packageinstaller
- com.google.android.partnersetup
- com.google.android.printservice.recommendation
- com.google.android.setupwizard
- com.google.android.syncadapters.calendar
- com.google.android.syncadapters.contacts
- com.google.android.tts
- com.google.android.videos
- com.google.android.webview
- com.google.android.youtube
- com.google.ar.lens
- com.lbe.security.miui
- com.mfashiongallery.emag
- com.mi.android.globalFileexplorer
- com.mi.android.globalpersonalassistant
- com.mi.globalTrendNews
- com.mi.globallayout
- com.mi.webkit.core
- com.milink.service
- com.mipay.wallet.id
- com.mipay.wallet.in
- com.miui.analytics
- com.miui.android.fashiongallery
- com.miui.audioeffect
- com.miui.audiomonitor
- com.miui.backup
- com.miui.bugreport
- com.miui.calculator
- com.miui.cit
- com.miui.cleanmaster
- com.miui.cloudbackup
- com.miui.cloudservice
- com.miui.cloudservice.sysbase
- com.miui.compass
- com.miui.core
- com.miui.daemon
- com.miui.enbbs
- com.miui.extraphoto
- com.miui.face
- com.miui.freeform
- com.miui.gallery
- com.miui.global.packageinstaller
- com.miui.guardprovider
- com.miui.home
- com.miui.hybrid
- com.miui.hybrid.accessory
- com.miui.micloudsync
- com.miui.miwallpaper
- com.miui.msa.global
- com.miui.notes
- com.miui.player
- com.miui.powerkeeper
- com.miui.providers.weather
- com.miui.qr
- com.miui.rom
- com.miui.screenrecorder
- com.miui.securityadd
- com.miui.securitycenter
- com.miui.securitycore
- com.miui.smsextra
- com.miui.sysopt
- com.miui.system
- com.miui.touchassistant
- com.miui.translation.kingsoft
- com.miui.translation.xmcloud
- com.miui.translation.youdao
- com.miui.translationservice
- com.miui.videoplayer
- com.miui.virtualsim
- com.miui.vsimcore
- com.miui.weather2
- com.miui.wmsvc
- com.miui.yellowpage
- com.modemdebug
- com.netflix.partner.activation
- com.qti.confuridialer
- com.qti.dpmserviceapp
- com.qti.qualcomm.datastatusnotification
- com.qti.qualcomm.deviceinfo
- com.qti.service.colorservice
- com.qti.snapdragon.qdcm_ff
- com.qti.xdivert
- com.qualcomm.embms
- com.qualcomm.location
- com.qualcomm.qcrilmsgtunnel
- com.qualcomm.qti.callfeaturessetting
- com.qualcomm.qti.confdialer
- com.qualcomm.qti.dynamicddsservice
- com.qualcomm.qti.improvetouch.service
- com.qualcomm.qti.ims
- com.qualcomm.qti.lpa
- com.qualcomm.qti.optinoverlay
- com.qualcomm.qti.perfdump
- com.qualcomm.qti.poweroffalarm
- com.qualcomm.qti.qmmi
- com.qualcomm.qti.qtisystemservice
- com.qualcomm.qti.remoteSimlockAuth
- com.qualcomm.qti.seccamservice
- com.qualcomm.qti.seemp.service
- com.qualcomm.qti.services.secureui
- com.qualcomm.qti.smcinvokepkgmgr
- com.qualcomm.qti.telephonyservice
- com.qualcomm.qti.uceShimService
- com.qualcomm.qti.uim
- com.qualcomm.qti.workloadclassifier
- com.qualcomm.timeservice
- com.qualcomm.uimremoteclient
- com.qualcomm.wfd.service
- com.quicinc.cne.CNEService
- com.tencent.soter.soterserver
- com.wapi.wapicertmanage
- com.wdstechnology.android.kryten
- com.xiaomi.account
- com.xiaomi.bluetooth
- com.xiaomi.bluetooth.overlay
- com.xiaomi.bttester
- com.xiaomi.discover
- com.xiaomi.finddevice
- com.xiaomi.glgm
- com.xiaomi.joyose
- com.xiaomi.location.fused
- com.xiaomi.mbnloader
- com.xiaomi.micloud.sdk
- com.xiaomi.midrop
- com.xiaomi.mipicks
- com.xiaomi.mirecycle
- com.xiaomi.payment
- com.xiaomi.powerchecker
- com.xiaomi.providers.appindex
- com.xiaomi.scanner
- com.xiaomi.simactivate.service
- com.xiaomi.upnp
- com.xiaomi.xmsf
- org.codeaurora.gps.gpslogsave
- org.codeaurora.ims
apps:
  - com.miui.screenrecorder
  - com.qualcomm.qti.auth.sampleextauthservice
  - com.miui.powerkeeper
  - com.miui.fm
  - com.milink.service
  - com.google.android.ext.shared
  - com.xiaomi.powerchecker
  - com.qualcomm.qti.modemtestmode
  - com.xiaomi.account
  - com.qualcomm.shutdownlistner
  - com.android.updater
  - com.qti.storagecleaner
  - com.qualcomm.qti.appnetaccess
  - com.qualcomm.uimremoteclient
  - com.android.htmlviewer
  - com.miui.securityadd
  - com.qualcomm.qti.auth.sampleauthenticatorservice
  - com.android.poweronalert
  - android.autoinstalls.config.Xiaomi.mido
  - com.qualcomm.qti.telephonyservice
  - com.qualcomm.qti.auth.fidocryptoservice
  - com.miui.guardprovider
  - com.android.pacprocessor
  - com.miui.micloudsync
  - com.miui.daemon
  - com.android.certinstaller
  - org.codeaurora.bluetooth
  - com.qti.qualcomm.datastatusnotification
  - com.qualcomm.wfd.service
  - com.miui.vsimcore
  - com.miui.securitycore
  - com.goodix.test
  - com.android.egg
  - com.android.stk
  - com.xiaomi.simactivate.service
  - com.miui.sysopt
  - com.miui.system
  - com.qti.launcherunreadservice
  - com.miui.global.packageinstaller
  - com.miui.translation.kingsoft
  - com.huaqin.factory
  - com.miui.virtualsim
  - com.miui.compass
  - com.qualcomm.qti.auth.secureextauthservice
  - com.xiaomi.location.fused
  - com.android.printspooler
  - com.android.dreams.basic
  - com.qualcomm.qti.qcom_accesslogkit
  - com.fido.xiaomi.uafclient
  - com.android.frameworks.telresources
  - com.fido.asm
  - com.qualcomm.qti.auth.securesampleauthservice
  - com.qualcomm.qti.CdmaCallOptions
  - com.android.fileexplorer
  - com.qti.xdivert
  - com.miui.translation.youdao
  - com.google.android.syncadapters.contacts
  - com.android.keychain
  - com.xiaomi.upnp
  - com.xiaomi.xmsf
  - org.codeaurora.btmultisim
  - com.xiaomi.mipicks
  - com.dsi.ant.server
  - com.xiaomi.joyose
  - com.qualcomm.qti.loadcarrier
  - com.miui.notes
  - com.google.android.printservice.recommendation
  - com.miui.translationservice
  - com.google.android.syncadapters.calendar
  - com.miui.hybrid.accessory
  - com.android.dreams.phototable
  - com.miui.translation.xmcloud
  - com.miui.touchassistant
  - com.xiaomi.providers.appindex
  - com.android.providers.partnerbookmarks
  - com.mi.globalTrendNews
  - com.android.smspush
  - com.android.wallpaper.livepicker
  - com.miui.miwallpaper
  - com.xiaomi.bluetooth
  - com.qualcomm.qti.accesscache
  - com.qualcomm.qti.extsettings
  - com.android.bookmarkprovider
  - com.qualcomm.qti.qs
  - com.android.cts.ctsshim
  - com.huaqin.diaglogger
  - com.miui.antispam
  - com.android.email
  - com.android.wallpaperbackup
  - com.android.providers.userdictionary
  - com.qualcomm.qti.lunarinfo
  - com.android.deskclock
  - com.android.bluetoothmidiservice
  - com.mi.globallayout
  - com.miui.smsextra
  - com.mipay.wallet.id
  - com.qualcomm.fastdormancy
  - com.qualcomm.qti.auth.fidosuiservice
  - com.android.thememanager.module
  - com.android.bluetooth
  - com.qualcomm.timeservice
  - com.qualcomm.embms
  - com.android.captiveportallogin
  - com.miui.core
apps:
- com.xiaomi.mipicks
- com.android.browser
- com.miui.calculator
- com.android.calendar
- com.miui.compass
- com.android.email
- com.miui.bugreport
- com.mi.android.globalFileexplorer
- com.miui.fm
- com.miui.gallery
- com.xiaomi.glgm
- com.xiaomi.account
- com.miui.micloudsync
- com.miui.cloudbackup
- com.miui.cloudservice
- com.xiaomi.midrop
- com.mipay.wallet.id
- com.mipay.wallet.in
- com.xiaomi.payment
- com.xiaomi.mirecycle
- com.miui.virtualsim
- com.miui.videoplayer
- com.miui.player
- com.miui.notes
- com.android.soundrecorder
- com.xiaomi.scanner
- com.miui.screenrecorder
- com.miui.cleanmaster
- com.miui.securitycenter
- com.miui.securityadd
- com.xiaomi.discover
- com.miui.miwallpaper
- com.miui.weather2
- com.miui.providers.weather
- com.miui.yellowpage
- com.miui.antispam
- com.xiaomi.simactivate.service
- com.miui.msa.global
- com.google.android.apps.docs
- com.google.android.gm
- com.google.android.music
- com.google.android.videos
- com.google.android.apps.photos
- com.google.android.marvin.talkback
- com.facebook.appmanager
- com.facebook.services
- com.facebook.system
@kming2019
Copy link

What about this..👇

com.miui.xman
com.miui.yman

@Rockfella27
Copy link

So you mean it is okay to remove all these apps in your list?

@lenosi
Copy link
Author

lenosi commented Nov 11, 2020

@Rockfella27

So you mean it is okay to remove all these apps in your list?

It's safe to remove these ones from miui_bloatware_list.yml if you don't want to use any Xiaomi integration. But if you want to use google, maybe it's a good idea to not include com.google.android.* com.android.* but I don't use these apps. Trying to keep my smartphone as clean as possible.

In other lists, {fido,cephus} I included the results from the phones which I own.

My goal with this gist was to create a simple python script that removes it automatically from the YAML list. But I didn't found a time to do it yet.

@lenosi
Copy link
Author

lenosi commented Nov 11, 2020

@kming2019

What about this..

com.miui.xman
com.miui.yman

Hey! Could you please upload these apk's somewhere? I never saw it.
adb shell pm path com.miui.xman
The output will be something like..
package:/data/app/com.miui.xman-***.apk

So now copy the string after the 'path:' and do this:
adb pull /data/app/com.miui.xman-***

I will try to disassemble it and look at what is inside.

@TencentSZ
Copy link

@kming2019

What about this..
com.miui.xman
com.miui.yman

Hey! Could you please upload these apk's somewhere? I never saw it.
adb shell pm path com.miui.xman
The output will be something like..
package:/data/app/com.miui.xman-***.apk

So now copy the string after the 'path:' and do this:
adb pull /data/app/com.miui.xman-***

I will try to disassemble it and look at what is inside.

Where should I upload these two files to?
Or should I email you directly ?

@zalhakim07
Copy link

@TencentSZ

There is the problem..my com.xiaomi.upnp
Is using 50gb of my storage.....but i have only 16 gb storage on phone..

@shdbwa
Copy link

shdbwa commented May 20, 2021

Wikipedia :: Upnp
Conceptually, UPnP extends plug and play—a technology for dynamically attaching devices directly to a computer
You may have a usb hard drive plugged in your internet box, which shares this drive over LAN.
A game console or a media player on a computer (WMP, foobar2000 etc) with this kind of option enabled. It advertises sometimes under exotic names.

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