selivan / selivan.github.io

my blog
https://selivan.github.io
12 stars 10 forks source link

2020/02/25/removing-bloatware-from-xiaomi-miui-android #66

Open selivan opened 4 years ago

selivan commented 4 years ago

This is the comment thread for Removing all unnecessary bloatware from Xiaomi MIUI 11 (Android 9) without root.

selivan commented 3 years ago

on the contrary , what i have seen till now is that for most xiaomi devices custom roms are fairly available uwu

@nihalanand697 Let's check: https://wiki.lineageos.org/devices/#xiaomi

So that is possible, if you don't mind using old device and you are willing to invest a lot of your time and effort into that.

nihal697 commented 3 years ago

on the contrary , what i have seen till now is that for most xiaomi devices custom roms are fairly available uwu

@nihalanand697 Let's check: https://wiki.lineageos.org/devices/#xiaomi

  • mostly old devices, you have to wait a year or two before custom rom is available for recent device.
  • unlocking the bootloader requires:

    • registering Xiaomi Account and waiting for up to 30 days to get unlock permission, and you even may not get it
    • MS Windows to run the unlock app
  • high chance to brick your device if something goes wrong
  • you lose device warranty

So that is possible, if you don't mind using old device and you are willing to invest a lot of your time and effort into that.

well, official LOS support isnt a hallmark for custom roms in general. More proper way to check it is to check in xda forum of the device specific or in telegram channels. The facts about bootloader are true, but irrelevant to the topic of availability of custom roms. Chances to brick xiaomi devices by unlocking or flashing roms are as much as other brands too. Xiaomi doesnt void warranty for unlocking or flashing custom roms either.

selivan commented 3 years ago

@nihalanand697

I was wrong about warranty, good to know. Anyway, using custom ROMs, especially from xda forum, is for enthusiasts who can put a lot of time and effort into that. Not an option for a regular user.

Casualnoob commented 3 years ago

Be careful: deleting the wallpaper carrousel (com.miui.android.fashiongallery) disables your ability to change the lockscreen background ever again.

stheni commented 3 years ago

How to remove keyboard for xiaomi? That apps really eating up my memory, even up to 400Mb, even I never used it because I used google keyboard

Bearwet99 commented 3 years ago

Hello! I uninstalled the following apps, but one of them seems causing a Photo Gallery Crash. I cannot view my photos and pics anymore, all I can do is to make them, and then delete them from File Manager. Does anybody know where is the problem ? Many thanks in advance !

adb shell pm uninstall -k --user 0 com.android.apps.tag adb shell pm uninstall -k --user 0 com.android.bluetooth adb shell pm uninstall -k --user 0 com.android.bluetoothmidiservice adb shell pm uninstall -k --user 0 com.android.calllogbackup adb shell pm uninstall -k --user 0 com.android.egg adb shell pm uninstall -k --user 0 com.android.nfc adb shell pm uninstall -k --user 0 com.android.providers.userdictionary adb shell pm uninstall -k --user 0 com.android.traceur adb shell pm uninstall -k --user 0 com.facebook.appmanager adb shell pm uninstall -k --user 0 com.facebook.services adb shell pm uninstall -k --user 0 com.facebook.system adb shell pm uninstall -k --user 0 com.google.android.apps.googleassistant adb shell pm uninstall -k --user 0 com.google.android.apps.subscriptions.red adb shell pm uninstall -k --user 0 com.google.android.apps.walletnfcrel adb shell pm uninstall -k --user 0 com.google.android.calendar adb shell pm uninstall -k --user 0 com.google.android.feedback adb shell pm uninstall -k --user 0 com.google.ar.lens adb shell pm uninstall -k --user 0 com.mi.globalbrowser adb shell pm uninstall -k --user 0 com.milink.service adb shell pm uninstall -k --user 0 com.mipay.wallet.in adb shell pm uninstall -k --user 0 com.miui.backup adb shell pm uninstall -k --user 0 com.miui.bugreport adb shell pm uninstall -k --user 0 com.miui.cleanmaster adb shell pm uninstall -k --user 0 com.miui.cloudbackup adb shell pm uninstall -k --user 0 com.miui.cloudservice adb shell pm uninstall -k --user 0 com.miui.freeform adb shell pm uninstall -k --user 0 com.miui.micloudsync adb shell pm uninstall -k --user 0 com.miui.miservice adb shell pm uninstall -k --user 0 com.miui.mishare.connectivity adb shell pm uninstall -k --user 0 com.miui.notification adb shell pm uninstall -k --user 0 com.miui.videoplayer adb shell pm uninstall -k --user 0 com.miui.yellowpage adb shell pm uninstall -k --user 0 com.netflix.partner.activation adb shell pm uninstall -k --user 0 com.wdstechnology.android.kryten adb shell pm uninstall -k --user 0 com.xiaomi.account adb shell pm uninstall -k --user 0 com.xiaomi.bluetooth adb shell pm uninstall -k --user 0 com.xiaomi.bluetooth.overlay adb shell pm uninstall -k --user 0 com.xiaomi.glgm adb shell pm uninstall -k --user 0 com.xiaomi.joyose adb shell pm uninstall -k --user 0 com.xiaomi.location.fused adb shell pm uninstall -k --user 0 com.xiaomi.mi_connect_service adb shell pm uninstall -k --user 0 com.xiaomi.micloud.sdk adb shell pm uninstall -k --user 0 com.xiaomi.midrop adb shell pm uninstall -k --user 0 com.xiaomi.mipicks adb shell pm uninstall -k --user 0 com.xiaomi.miplay_client adb shell pm uninstall -k --user 0 com.xiaomi.payment adb shell pm uninstall -k --user 0 com.xiaomi.providers.appindex

Bearwet99 commented 3 years ago

I found the problem, after some testing.
The post from toast254 has helped a lot, I tested just the different ones, assuming his are fine.

It was caused by

com.xiaomi.micloud.sdk

so I reenabled it and now is working.

juseg commented 3 years ago

Hello, this post was very useful! Thanks a lot! I wonder if anyone has had success removing the Xiaomi keyboard (com.facemoji.lite.xiaomi). Running pm uninstall (with or without -k) seem to freeze the adb shell on this one. Disabling works.

Casualnoob commented 3 years ago

Hello, this post was very useful! Thanks a lot! I wonder if anyone has had success removing the Xiaomi keyboard (com.facemoji.lite.xiaomi). Running pm uninstall (with or without -k) seem to freeze the adb shell on this one. Disabling works.

This is a privileged app, and I ran into the same problem. I managed to delete it, but root is required. You need the terminal app 'Termux' in your phone. Open app, type 'su' and grant root access. Then just type 'pm uninstall --user 0 com.facemoji.lite.xiaomi' and that should succesfully delete it.

juseg commented 3 years ago

Thanks for clarification @Casualnoob! I initially hadn't much success rooting the phone (due to Xiaomi's boot lock). I will live with the heavy keyboard app it for now...

miromeir commented 3 years ago

This is great, Thank you for making this page.

toast254 commented 3 years ago

If anyone want to remove the google keyboard (@juseg)

toast254 commented 3 years ago

Don't disable/uninstall com.android.providers.downloads as it seems to crash the system and system app updates

toast254 commented 3 years ago

And here is a bunch of other package that can be removed as you wish

android auto pm uninstall -k --user 0 com.google.android.projection.gearhead

miui compass pm uninstall -k --user 0 com.miui.compass

pm uninstall -k --user 0 com.google.android.apps.restore
pm uninstall -k --user 0 com.google.android.apps.turbo
pm uninstall -k --user 0 com.google.android.apps.work.oobconfig
pm uninstall -k --user 0 com.google.android.feedback
pm uninstall -k --user 0 com.miui.touchassistant
pm uninstall -k --user 0 de.telekom.tsc
pm uninstall -k --user 0 com.miui.phrase
pm uninstall -k --user 0 com.example.myapplication
pm uninstall -k --user 0 com.miui.securityadd
pm uninstall -k --user 0 com.xiaomi.powerchecker
pm uninstall -k --user 0 com.mi.health
pm uninstall -k --user 0 com.miui.miwallpaper
pm uninstall -k --user 0 com.google.android.syncadapters.contacts
pm uninstall -k --user 0 com.google.android.printservice.recommendation
pm uninstall -k --user 0 com.android.providers.calendar
pm uninstall -k --user 0 com.android.calllogbackup
pm uninstall -k --user 0 com.android.providers.partnerbookmarks
pm uninstall -k --user 0 com.miui.misound
pm uninstall -k --user 0 com.lbe.security.miui
pm uninstall -k --user 0 com.miui.notification
pm uninstall -k --user 0 com.miui.powerkeeper
pm uninstall -k --user 0 com.miui.qr
pm uninstall -k --user 0 com.miui.cit
pm uninstall -k --user 0 com.xiaomi.upnp
pm uninstall -k --user 0 com.miui.freeform
pm uninstall -k --user 0 com.xiaomi.mi_connect_service
pm uninstall -k --user 0 com.xiaomi.xmsfkeeper
pm uninstall -k --user 0 com.xiaomi.xmsf
pm uninstall -k --user 0 com.miui.wmsvc
toast254 commented 3 years ago

Some additional garbage (games or preinstalled apps) found on a Redmi note 9

pm uninstall --user 0 com.mintgames.triplecrush.tile.fun
pm uninstall --user 0 com.igg.android.lordsmobile
pm uninstall --user 0 com.logame.eliminateintruder3d
pm uninstall --user 0 com.crazy.juicer.xm
pm uninstall --user 0 com.bubble.free.bubblestory
pm uninstall --user 0 com.sukhavati.gotoplaying.bubble.BubbleShooter.mint
pm uninstall --user 0 com.block.puzzle.game.hippo.mi
pm uninstall --user 0 com.opera.preinstall
toast254 commented 3 years ago

Btw. if anyone got trapped in a bootloop : you can spam the adb shell command while the phone is booting to try to re-enable the faulty app. Messy solution but it let you avoid a complete factory reset or a long dirty flash ;)

zdv80 commented 3 years ago

Thanks a lot for the info!! Very useful!! :D

And regarding what says @toast254, is not possible to launch pm from recovery? I installed OrangeFox (a custom TWRP) but only allows some adb commands (not pm)... :S

If something fails and you are in a bootloop, the only method to avoid a complete reinstall is use adb very fast during boot moment?

toast254 commented 3 years ago

@zdv80 Well if the bootloop is during rom loading it work, that's what I've done multiple time while doing brutal debloating. No clear idea if this should work in recovery, but as those are more or less running on the rom kernel you could in theory use the system binaries :thinking:

Right now I'm trying to find what caused my redmi 9 (miui) being unable anymore to send sms (I'm using third party apps ofc.), if anyone have an idea

toast254 commented 3 years ago

Ok found the culprit com.google.android.gms seems to break sms sending

drj3ky11 commented 3 years ago

Hello, thanks you for your article; in my poco m3 I have just delete also:

package:com.google.android.apps.subscriptions.red #Google One package:com.google.android.onetimeinitializer ##It istalls the google apps package:com.google.android.projection.gearhead ##Somethig similar to maps...

b3ncr0w commented 3 years ago

Great! TY

geooxc commented 3 years ago

How to remove GOOGLE ONE? What is the adb command? THANK YOU

toast254 commented 3 years ago

Quick news:

OTA update tfrom miui 11 on my redmi 9 to miui 12 installed me back only one unwanted package : com.miui.yellowpage

dhruvkhaitan commented 3 years ago

Hey, I have a Redmi 9 Prime and I deleted some system and junk apps using ADB yesterday and I don't know what's happening since then my updater is not working, as soon as I go to system update, it crashes, I think I have deleted some necessary package my mistake, can anyone help me.

adigandhi commented 3 years ago

I just got a brand new Poco M2 Pro (Miatoll).

Wondering what I can uninstall right now, so my 168 Hours unlock time is not affected by this.

adigandhi commented 3 years ago

I can confirm removing "com.android.mms", & com.android.contacts", and replacing with google dialer, contacts and messenger work with no issues.

Fent0 commented 3 years ago

Thanks for this very useful guide AND the comment section!

tuxnal commented 3 years ago

thanks for the guide, i got a mi 10T with miui 12 update which is a pain with the clear cache and app control, anyway I have disabled the following for now:

$ pm disable-user com.xiaomi.mipicks $ pm disable-user com.miui.analytics $ pm disable-user com.miui.msa.global $ pm disable-user com.xiaomi.payment $ pm disable-user com.mipay.wallet.in $ pm disable-user com.tencent.soter.soterserver $ pm disable-user com.xiaomi.joyose $ pm disable-user com.facebook.katana $ pm disable-user com.facebook.services $ pm disable-user com.facebook.system $ pm disable-user com.facebook.appmanager $ pm disable-user com.zhiliaoapp.musically $ pm disable-user com.alibaba.aliexpresshd $ pm disable-user com.google.android.apps.subscriptions.red $ pm disable-user com.my.games.vendorapp

SafaPvP commented 3 years ago

Hello, first I apologize if something I wrote is being difficult to understand. I’m Brazilian, I don’t know how to speak English and I’m using Google Translate for that.

Anyway, I uninstalled some Bloatwares that said in the list above and now the times when I receive messages from WhatsApp, instead of appearing the person's name and message, their phone number appears, but when opening WhatsApp, it is everything normal. Does anyone know which app I uninstalled to make this happen?

toast254 commented 3 years ago

The update MIUI-V12.0.2.0.QJCEUXM brings back cn.wps.xiaomi.abroad.lite
it's safe to remove it after the update

SafaPvP commented 3 years ago

My device version is MIUI 12.0.7.0 (QGGMIXM). I uninstalled it in that version and it happened. Do you know the name of the app so I can install it again and solve it?

DigitalNXZ commented 3 years ago

Disabling Gallery is just safe if you don't need to edit screenshots fast.. by making a screenshot a picture appears in the top right corner.. by clicking it, it sends you to the Editor from the MIUI Gallery apps..

It doesn't work anymopre if you disbale Gallery..

And I'll use it quite often but I don't know hot to change the editor for the quick edits..

DigitalNXZ commented 3 years ago

@SafaPvP I'll think it could be something like the Contacts App.. Whatsapp gets the information like name of the number over the Contacts on your phone in the contacts app.. could be

Bearwet99 commented 3 years ago

@ dhruvkhaitan on 10 Feb 2021

verify these:

com.android.providers.downloads com.android.providers.downloads.ui

if they are uninstalled/disabled, turn them back on.

I always create a list with the uninstalled apps. If something occurs, I know exactly what i've uninstalled, and test them one by one.

HugoGit39 commented 3 years ago

Hi so I removed some bloatware 6 months ago which was great (I can check if you want to know)...however my contacts have never synced correctly with Whatsapp ...I only see like 50 contacts though I have a lot more...is this cause I might deleted the wrong bloatware? I tried syncing a couple of times, delete whatsaap and reinstalled it...nothing works

akbaryahya commented 2 years ago

GetApps on Xiaomi China Beta ROM has changed name packages which were previously com.xiaomi.mipicks now to com.xiaomi.market if you want to delete it, just use adb, you can do it without root pm uninstall --user 0 com.xiaomi.market

great420amit commented 2 years ago

Can I uninstall Mi file manager and mi messaging

gouthamagv commented 2 years ago

Yes, I've removed both mi message & explorer. Some shortcuts from other system apps to these apps will be disturbed but nothing much.

On Mon, Sep 27, 2021, 17:43 great420amit @.***> wrote:

Can I uninstall Mi file manager and mi messaging

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/selivan/selivan.github.io/issues/66#issuecomment-927813771, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHQB3BRSNWLLHSDMFLAKJTUEBNV3ANCNFSM4K3P36PQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

MarcelloDM commented 2 years ago

@Sullivan MIUI Compass is an app that can show your current geographic coordinates. Simply place your smartphone in the position shown to calibrate the compass. Perfectly unuseful and safe to disable.

toast254 commented 2 years ago

Updating to Miui 12.5.1, I had to remove again some packages, and new ones too :

pm uninstall --user 0 com.miui.screenshot
pm uninstall --user 0 com.miui.misound
pm uninstall --user 0 com.miui.hybrid.accessory
pm uninstall --user 0 com.miui.extraphoto
pm uninstall --user 0 com.miui.cleaner
pm uninstall --user 0 com.miui.audiomonitor
pm uninstall --user 0 com.miui.android.fashiongallery

pm uninstall --user 0 com.google.mainline.telemetry   # telemetry ?
pm uninstall --user 0 com.google.android.setupwizard   # google setup wizard
pm uninstall --user 0 com.google.android.overlay.setupwizard  # google setup wizard
pm uninstall --user 0 com.google.android.onetimeinitializer   # google setup wizard ?

pm uninstall --user 0 miui.systemui.plugin  
pm uninstall --user 0 android.autoinstalls.config.Xiaomi.lancelot   # script that may install all the additional apps for the device ?
pm uninstall --user 0 com.android.browser  # default browser
pm uninstall --user 0 com.android.dreams.basic  # dynamic idle screen
pm uninstall --user 0 com.android.managedprovisioning
pm uninstall --user 0 com.android.wallpaperbackup
pm uninstall --user 0 com.android.wallpapercropper
pm uninstall --user 0 com.debug.loggerui   # debug log functionality
pm uninstall --user 0 com.milink.service     # wifi screen cast ?
pm uninstall --user 0 com.miui.screenrecorder   # record screen as movie
morfikov commented 2 years ago

One thing to note -- you should not remove com.android.thememanager since it's responsible for setting custom notification sounds, and bunch of other things related to sound/audio in general.

toast254 commented 2 years ago

pm uninstall --user 0 com.miui.guardprovider block installation process. If you remove it you can not install apk anymore (eg. from Fdroid or storage ...).

@morfikov exact ! Not a big deal for me, I choose my background before disabling the thememanager ;)

japnimedev commented 2 years ago

Hello! tried this today, somehow the uninstall feature (from the phone, Apps -> Manage Apps -> Uninstall) doesn't work/respond, what package name supported for that feature?

morfikov commented 2 years ago

Be careful when you remove com.miui.gallery . When this app is removed, you won't be able to set a local image as screen wallpaper.

ghost commented 2 years ago

Accidently uninstalled com.android.providers.downloads. Anywhere I can find it and install it again? Also what is com.google.android.gms? Safe to remove?

ghost commented 2 years ago

No worries. I got it. @nihalanand697 many thanks for refering the app - 'App Manager'. Reinstalled it from there! Thanks!

Player005 commented 2 years ago

Hello! I just accidentally uninstalled com.miui.securitycenter (before reading this guide) and now my smartphone is in an endless boot loop. Already tried spamming the adb shell command. Is there any other way to reinstall the app without resetting the phone?

toast254 commented 2 years ago

@Player005 Well... When I was testing and I deactivated a bunch of :hankey: stuff (security-center included) and got a bootloop too. Since the factory reset was a long process, I tried my luck to just spam the adb shell command to reinstall faulty packages. There is a short timeframe where the system is booted right before it crash, ~ It's occurring during the boot-logo animation.

So you can write a shell loop that retry the adb command forever until you got it fixed / kill it manually (CTRL+C) while true; do adb shell -c 'pm install-existing com.miui.securitycenter'; done That's how I managed to do it. I've no idea if you can do anything else (unless you got a custom recovery) :crossed_fingers:

toast254 commented 2 years ago

Accidently uninstalled com.android.providers.downloads. Anywhere I can find it and install it again? Also what is com.google.android.gms? Safe to remove?

check my previous comment : https://github.com/selivan/selivan.github.io/issues/66#issuecomment-768522547

com.google.android.gms broke sms for me :/

JBirth commented 2 years ago

Hi Maam/Sir,

I cannot change the message and alarm sound notification. I probably deleted the bloatware on this.

Can anyone help me what is the app name on this so that I can install again..Please help..

Thank You