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.

RanaShiva commented 4 years ago

thnx

SinghRap commented 4 years ago

Can you share steps to disable 'google chrome' ?

SinghRap commented 4 years ago

Can we install Oxygen OS on MI note 8 pro ?

selivan commented 4 years ago

@SinghRap

Google Chrome apk name is com.android.chrome, use steps from the article like for any other app:

pm disable-user com.android.chrome or pm uninstall --user 0 com.android.chrome

Don't know anything about Oxygen OS.

quynguyen2303 commented 4 years ago

Hi, I can't disable GetApps with Mi 10 Lite Zoom, and if I uninstall it, it will go to endless boot. Do you have any ideas to make Google Play is default?

selivan commented 4 years ago

Hi @quynguyen2303

I have a Global MIUI version, for me uninstalling GetApps (com.xiaomi.mipicks) worked fine. If you have a China version, it might work different.

I don't know any other way to make Google Play default.

What is your output of pm disable-user com.xiaomi.mipicks ?

nihal697 commented 4 years ago

Hi, I would like to mention that removing miui gallery isnt safe. Guess how I learned that? :P

IvanSafonov commented 4 years ago

I disabled miui gallery and GetApps and one day later they are enabled again. Didn't check other packages. I will try to remove them. Miui 11. Mi 9 lite global

nihal697 commented 4 years ago

I disabled miui gallery and GetApps and one day later they are enabled again. Didn't check other packages. I will try to remove them. Miui 11. Mi 9 lite global

Hi, if you can unlock and flash a custom recovery, i highly recommend you to go for xiaomi.eu roms if you want to use miui.

fiveingreen commented 4 years ago

Although theses apps are not mentioned here, I thought it might be useful to point out that it's a bad idea to:

rockgird commented 4 years ago

awesome, this really helped :)

jsonpreet commented 3 years ago

uninstall com.miui.securitycenter, because it cannot be disabled, your phone may reboot, but in recovery mode. Very nice!

But i did that

fiveingreen commented 3 years ago

But i did that

What do you mean, harpreet9629? You uninstalled com.miui.securitycenter and had no problems whatsoever?

thevedi commented 3 years ago

Can I remove

  1. Mi Video
  2. Mi pay india com.mipay.wallet.in
  3. Mi message com.android.mms 4/5. And MIUI calendar and contact? Are these safe to remove and your blog is amazing it helped alot thanks. 🙂
nihal697 commented 3 years ago

Can I remove

  1. Mi Video
  2. Mi pay india com.mipay.wallet.in
  3. Mi message com.android.mms 4/5. And MIUI calendar and contact? Are these safe to remove and your blog is amazing it helped alot thanks. slightly_smiling_face

Mi video, Mi pay and Mu calendar can be removed (tested by me). Sms and contacts should be removable but no idea if the dialer will work as intended later. A way to check is to rename the respective apps packages and put a ".bk" in their name and reboot. So in case shit happens, you can just rename the packages and get the apps back without re flashing the whole rom.

thevedi commented 3 years ago

Can I remove

  1. Mi Video
  2. Mi pay india com.mipay.wallet.in
  3. Mi message com.android.mms 4/5. And MIUI calendar and contact? Are these safe to remove and your blog is amazing it helped alot thanks. slightly_smiling_face

Mi video, Mi pay and Mu calendar can be removed (tested by me). Sms and contacts should be removable but no idea if the dialer will work as intended later. A way to check is to rename the respective apps packages and put a ".bk" in their name and reboot. So in case shit happens, you can just rename the packages and get the apps back without re flashing the whole rom.

@fiveingreen already mentioned that Contacts shouldn't be removed and i removed sms (not a single issue till now) I'll remove the other apps mentioned by you, thank you @nihalanand697 .

fiveingreen commented 3 years ago

@fiveingreen already mentioned that Contacts shouldn't be removed and i removed sms (not a single issue till now) I'll remove the other apps mentioned by you, thank you @nihalanand697 .

If in doubt, use pm disable-user your.package.name instead of uninstalling and see what happens. For me (YMMV), If I disable com.android.contacts, I lose the dialer. Easier to re-enable that re-installing...

From selivan's post:


# Disable app
pm disable-user app.package.name
# Re-enable it
pm enable app.package.name

ven-an commented 3 years ago

Appreciate all your effort and sharing your experience. It will be very useful to lot of new bee and non tech savvy Android and who also not aware of many things to fix. It will be great if any one compose step by step instruction till reboot. Like

  1. How to Enabling debugging mode
  2. How to backup ROM
  3. What and how to use for Android platform-tools? 4, How to delete or rename app.
  4. Reboot
  5. Post Reboot Task
  6. Finally how to restore backup ROM incase it needed.

Once again appreciate your efforts

selivan commented 3 years ago

@ven-an

  1. In the article already
  2. ( and 6) I don't think you can do that for a phone without wiring custom recovery like TWRP. Not sure if it exists for latest Xiaomi devices, and anyway that is dangerous operation(high risk to brick phone) and out of the article scope.
  3. I am not Android developer, for disabling or deleting apps just adb from platform-tools enough. Usage is pretty straightforward, download, extract the archive and run the executable in console.
  4. Deleting app is in the article. I don't know if you can rename existing app, may be that's possible by unpacking apk file, changing contents and packing it back. But that app probably will lose ability to update. No reason to do that.
  5. Reboot is not necessary for disabling or deleting apps.
nihal697 commented 3 years ago

Appreciate all your effort and sharing your experience. It will be very useful to lot of new bee and non tech savvy Android and who also not aware of many things to fix. It will be great if any one compose step by step instruction till reboot. Like

  1. How to Enabling debugging mode
  2. How to backup ROM
  3. What and how to use for Android platform-tools? 4, How to delete or rename app.
  4. Reboot
  5. Post Reboot Task
  6. Finally how to restore backup ROM incase it needed.

Once again appreciate your efforts

I appreciate your opinion regarding this, and trust me I also used to be of the same opinion when I used to follow tutorials. But then when I started to create my own I realized that going to in depth is really unnecessary in tutorials when the things are pretty much easily available online by just searching for how-to-do-X and I have a very strong opinion that it should remain this way to an extent. Because when a newbie is faced with something he does not know how to do in a tutorial, he makes a choice of either searching online about it, or just leave it. When that person is of the latter kind, it is very important to make sure that he doesnt do it by reading an easy tutorial cuz sooner or later he will face something and it will be next to impossible for a person to know how to fix it when he is of attitude that doesnt allow him to do efforts and search. k xD

ven-an commented 3 years ago

Thanks for the quick reply . It’s not about attitude, we do have some priorities and challenges in life. Don’t want to make things complicated and seek help after that . Getting things clear before stepping in and finding easy workable ways always wise.

Again thanks for all your replies. Definitely I will try this in my free time and will post on this .

With Regards, Ven

On Aug 6, 2020, at 2:54 PM, Nihal Anand notifications@github.com wrote:

 Appreciate all your effort and sharing your experience. It will be very useful to lot of new bee and non tech savvy Android and who also not aware of many things to fix. It will be great if any one compose step by step instruction till reboot. Like

How to Enabling debugging mode How to backup ROM What and how to use for Android platform-tools? 4, How to delete or rename app. Reboot Post Reboot Task Finally how to restore backup ROM incase it needed. Once again appreciate your efforts

I appreciate your opinion regarding this, and trust me I also used to be of the same opinion when I used to follow tutorials. But then when I started to create my own I realized that going to in depth is really unnecessary in tutorials when the things are pretty much easily available online by just searching for how-to-do-X and I have a very strong opinion that it should remain this way to an extent. Because when a newbie is faced with something he does not know how to do in a tutorial, he makes a choice of either searching online about it, or just leave it. When that person is of the latter kind, it is very important to make sure that he doesnt do it by reading an easy tutorial cuz sooner or later he will face something and it will be next to impossible for a person to know how to fix it when he is of attitude that doesnt allow him to do efforts and search. k xD

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kalyan312 commented 3 years ago

Well after doing it my phone is not starting. I am not sure how I restore everything.

selivan commented 3 years ago

@kalyan312 What phone model do you have and what applications did you disable or uninstall? Did you disable com.xiaomi.finddevice? Is the phone in a boot loop(trying to start again and again) or not turning on at all?

nihal697 commented 3 years ago

@kalyan312 to restore everything back all you need to do is dirty flash the rom again. (Without wiping anything)

sblayush commented 3 years ago

Awesome!! Thanks a ton.. :)

selivan commented 3 years ago

@sblayush You are welcome :)

TheKingFireS commented 3 years ago

i use xiaomi.eu version, but what is "Mi yellow pages"?

selivan commented 3 years ago

@TheKingFireS Google search shows this: https://c.mi.com/thread-2112434-1-0.html Some kind of caller id app. Also this: https://xiaomi.eu/community/threads/yellow-pages-in-dialer.21979/ - it can show suggestions when using a dialer.

For me google contacts caller id(detects spam calls) works fine with Mi Yellow Pages disabled.

TheKingFireS commented 3 years ago

@selivan okay, thank you

toast254 commented 3 years ago

I first started uninstalling as possible from the phone all app that i wanted then I followed this good page recommendations (thanks you all !) and finally removed even more things... here is what I disabled on my redmi 9 (miui 11.0.8) : pm uninstall -k --user 0 com.xiaomi.mipicks pm uninstall -k --user 0 com.miui.msa.global pm uninstall -k --user 0 com.miui.cloudservice pm uninstall -k --user 0 com.miui.cloudbackup pm uninstall -k --user 0 com.xiaomi.glgm pm uninstall -k --user 0 com.xiaomi.payment pm uninstall -k --user 0 cn.wps.xiaomi.abroad.lite pm uninstall -k --user 0 com.xiaomi.midrop pm uninstall -k --user 0 com.miui.yellowpage pm uninstall -k --user 0 com.miui.android.fashiongallery pm uninstall -k --user 0 com.miui.miservice pm uninstall -k --user 0 com.miui.bugreport pm uninstall -k --user 0 com.google.android.youtube pm uninstall -k --user 0 com.google.ar.lens pm uninstall -k --user 0 com.google.android.googlequicksearchbox pm uninstall -k --user 0 com.google.android.apps.wellbeing pm uninstall -k --user 0 com.facebook.services pm uninstall -k --user 0 com.facebook.system pm uninstall -k --user 0 com.facebook.appmanager pm uninstall -k --user 0 com.android.wallpaper.livepicker pm uninstall -k --user 0 com.android.stk pm uninstall -k --user 0 com.google.android.apps.googleassistant pm uninstall -k --user 0 com.miui.hybrid pm uninstall -k --user 0 com.android.chrome pm uninstall -k --user 0 com.google.android.gm pm uninstall -k --user 0 com.google.android.apps.subscriptions.red pm uninstall -k --user 0 com.google.android.apps.walletnfcrel pm uninstall -k --user 0 com.google.android.gms.location.history pm uninstall -k --user 0 com.google.android.apps.maps pm uninstall -k --user 0 com.miui.videoplayer pm uninstall -k --user 0 com.miui.mishare.connectivity pm uninstall -k --user 0 com.miui.analytics pm uninstall -k --user 0 com.google.android.apps.setupwizard.searchselector < pm uninstall -k --user 0 com.netflix.partner.activation pm uninstall -k --user 0 com.ebay.carrier pm uninstall -k --user 0 com.android.vending pm uninstall -k --user 0 com.miui.micloudsync pm uninstall -k --user 0 com.miui.newmidrive pm uninstall -k --user 0 com.miui.player pm uninstall -k --user 0 com.mi.globalbrowser pm uninstall -k --user 0 com.miui.cleanmaster pm uninstall -k --user 0 com.miui.notes pm uninstall -k --user 0 com.google.android.calendar pm uninstall -k --user 0 com.google.android.apps.messaging pm uninstall -k --user 0 com.micredit.in pm uninstall -k --user 0 com.mipay.wallet.in pm uninstall -k --user 0 com.xiaomi.scanner

gouthamagv commented 3 years ago

Does anyone have any idea about Xiaomi Games or com.xiaomi.glgm? Is it a game store? As I see, it can be uninstalled but is it bloatware?

satnited commented 3 years ago

Hi, thank you for making an awesome blog.

I would like to ask, is it safe to remove Xiaomi's App Vault?

swiesmann commented 3 years ago

Hi, thanks for all the instructions.

I was annoyed by the ads in the "package installer". MIUI uses the "Play Store" app only to download apps and then switches over to it's own "package installer" to install apps. Turns out you can remove it the same way as the other apps above.

After removal android will simply use the "Play Store" app to install the app after downloading. This is the command:

pm uninstall -k --user 0 com.miui.global.packageinstaller

MarcelloDM commented 3 years ago

Thanx for your work. SoterService (com.tencent.soter.soterserver) can be classifible as usless package for users don't live in China. Soter is kinda like Google pay but used in China to authorize payment inside WeChat and other Chinese services.

selivan commented 3 years ago

@toast254, @swiesmann, @MarcelloDM Thanks for the comments, updated the article.

selivan commented 3 years ago

@satnited I doubt that. You can make an experiment and write here about results.

satnited commented 3 years ago

@selivan I remove it, there is no issue at all except that if you try to enable it from "Settings > Home Screen" it will force closed the Settings app, just that.

Also, those of you who never touch Mi Account (com.xiaomi.account) you can safely remove it (or disable). BEWARE that you may need to logged out first in case you already using it for no reason, because if you remove Mi Account while you still login the phone will get locked with a notification "This device is locked", and the only way (also the easiest way) to unlock it is to bring your phone to Xiaomi Services Center.

selivan commented 3 years ago

@satnited Updated the article, thanks.

HugoGit39 commented 3 years ago

Hi Great info here. So I have a Poco F2 Pro with MIUI 12.0.3 Global and removing blaotware went well..however there is still the annoying MI Account app installed. Which one is it? Cause I would like to have it removed too as I saw it updates automatically though Im not logged in. See the screenshot of apps which are still installed: https://ibb.co/fFQKDKF

selivan commented 3 years ago

@HugoGit39 I suppose that is com.xiaomi.account, but I doubt you can remove that from MIUI without breaking it. App on your screenshot does not show it, but you touch it with pm command in USB Debugging mode.

I do not advice to try that, but if you do, please write here about results.

nihal697 commented 3 years ago

Hi Great info here. So I have a Poco F2 Pro with MIUI 12.0.3 Global and removing blaotware went well..however there is still the annoying MI Account app installed. Which one is it? Cause I would like to have it removed too as I saw it updates automatically though Im not logged in. See the screenshot of apps which are still installed: https://ibb.co/fFQKDKF

That tool doesnt show all the system apps, but only that are tested to be completely safe to remove. You can use any app manager like this one https://f-droid.org/en/packages/io.github.muntashirakon.AppManager And search mi account in it to see its package name and add that package name manually in the tool and then remove it. An unasked personal advice : try to ditch miui if possible.

selivan commented 3 years ago

@nihalanand697

Thanks for the app, looks promising.

An unasked personal advice : try to ditch miui if possible.

Xiaomi has best price/quality ratio. You get a decent phone, with regular security updates(unlike other cheap vendors), acceptable performance, large battery and a nice screen for a reasonable money. The only downside is MIUI bloatware, but you can disable most part of that.

HugoGit39 commented 3 years ago

@nihalanand697 @nihalanand697 So with the ADB tool I can delete all apps which are shown (https://ibb.co/fFQKDKF) without breaking my phone? So all the com.xiaomi and com.iui? (Btw fashionlauncher I can only disable as it gives an error while uninstalling)

caneserr commented 3 years ago

You can also remove themes app if you dont use it. I did.

pm uninstall -k --user 0 com.android.thememanager

HugoGit39 commented 3 years ago

Hi @nihalanand697 @nihalanand697 can you still let me know regarding my last message? So if I can delete all the com.xiaomi and com.iui? https://ibb.co/fFQKDKF - so powerkeeper, discover, powerchecker, aimactivate.service, xmsf, xmsfkeeper?

nihal697 commented 3 years ago

Hi @nihalanand697 @nihalanand697 can you still let me know regarding my last message? So if I can delete all the com.xiaomi and com.iui? https://ibb.co/fFQKDKF - so powerkeeper, discover, powerchecker, aimactivate.service, xmsf, xmsfkeeper?

Yes all of them are safe to be uninstalled. Cross check the names from this list here https://github.com/Szaki/XiaomiADBFastbootTools/blob/master/src/main/resources/apps.yml

HugoGit39 commented 3 years ago

com.xiaomi.account is safe to remove when not logged in, just did it on a new POCO F2 Pro according to the inctructions of @nihalanand697 https://ibb.co/SvFMgRn

nihal697 commented 3 years ago

@nihalanand697

Thanks for the app, looks promising.

An unasked personal advice : try to ditch miui if possible.

Xiaomi has best price/quality ratio. You get a decent phone, with regular security updates(unlike other cheap vendors), acceptable performance, large battery and a nice screen for a reasonable money. The only downside is MIUI bloatware, but you can disable most part of that.

I didnt mean xiaomi, but miui - the OS exclusively. Even without the bloatware the perfomance is very visibly better with AOSP roms, not to mention the freedom that comes with it. :D But yea at the end of the day it is personal preference I understand.

selivan commented 3 years ago

@nihalanand697

Even without the bloatware the perfomance is very visibly better with AOSP roms, not to mention the freedom that comes with it. :D

No doubt, but for most of Xiaomi devices MIUI is the only available option.

nihal697 commented 3 years ago

@nihalanand697

Even without the bloatware the perfomance is very visibly better with AOSP roms, not to mention the freedom that comes with it. :D

No doubt, but for most of Xiaomi devices MIUI is the only available option.

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