Debloating MIUI without Root Access (Manual Method) - Redmi Note 8 Guides, News, & Discussion

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tired of all the pre-installed applications that come with your new phone. Most of them tend to be useless and some tend to be on annoying side with push notifications and battery drains.
One way to get rid of all these intruders is to root your device and delete them using some application or manual purge. Not everyone is comfortable with rooting and it's risks. Also, rooting is not an option on many phones coz of limited support from the developer community. Does that mean one has to learn to live with the bloat?
Thankfully, No. You can get rid of them with the use of ADB (Android Debugging Bridge). The method is safer than manual purge and would not break any system variables, allowing to keep accepting OTAs w/o any issues.
Let's Debloat your Phone.
Note: This method works on every OEM rom as well as custom rom without root access.
Requirements:
Android Platform Tools
Prerequisites:
Disable "App Vault", "Swipe up for google", "Wallpaper Carousel", "Find Device", "Mi Sync"(Don't confuse Mi Sync and Google Sync though)
Follow the steps carefully :
Initial Setup
1. Go to About Phone in Settings.
2. Tap on MIUI version/Build version until it shows You're now a developer. It might ask for password in some cases.
3. Go to Settings>Additional Settings>Developer Options or Settings>System>Developer Options.
4. Enable USB Debugging, Install via USB, USB Debugging(Security Settings). Accept all the prompts thrown.
Note: Most ROMs will only have USB Debugging toggle.
Note: On MIUI, the above step requires an MI Account.
Main Process
Connect your device to the PC now. Recommend using a good quality USB cable for this.
1. Extract the platform tools zip. Navigate to the folder.
2. Shift+Right click and select open command window here.
3. Type adb devices
4. Grant authorization on your phone.
5. Type adb devices again and ensure that it shows your device as connected and authorized.
Note: If your device doesn't show up, you might need to install latest USB drivers for your phone. It usually happens automatically if you have an updated OS. If that's not the case, use this and install the USB drivers.
6. Type adb shell.
7. Type
Code:
pm list packages | grep 'mi'
Here mi is a keyword. You can replace it with whatever you want. This command would return all packages which have the phrase mi in their name.
Type
Code:
pm list packages
for complete list of installed packages.
8. Type
Code:
pm uninstall -k --user 0 <package-name>
Replace the <package-name> with the package you want to remove. The names can be obtained from the list command in the previous step.
Tip: Package name can be found in app list. Just tap on the small 'i' icon on the top right corner of each app page on MIUI. On custom roms, it's usually given at the bottom.
Tip : If you can't see all apps. Tap on the three dots in the top corner on "Manage Apps" page and tap "Show All Apps". SImilarly on custom roms, it can be achieved by selecting "Show System Apps".
I'm not going to cover all the OEMs or Custom Roms. The process is similar across all OEMs and Custom Roms. Packages that are safe to remove on MIUI are given below:
(Skip to the next step if you're not on MIUI)
- Cleaner
Code:
com.miui.cleanmaster
- Tracking Application
Code:
com.miui.daemon
- Ad Serving Application
Code:
com.miui.msa.global
- Xiaomi System Webview
Code:
com.mi.webkit.core
- Tracking Application
Code:
com.xiaomi.joyose
- Facebook Bloat
Code:
com.facebook.services
- Facebook Bloat
Code:
com.facebook.appmanager
- Facebook Bloat
Code:
com.facebook.system
- Tracking Application
Code:
com.miui.analytics
- Wallpaper Carousel
Code:
com.miui.android.fashiongallery
- ShareMe/Mi Drop
Code:
com.xiaomi.midrop
- Broswer with Ads
Code:
com.android.browser
- Calendar with Ads
Code:
com.android.calendar
- Tracking Application
Code:
com.miui.bugreport
- Tracking Application
Code:
com.xiaomi.glgm
- Tracking Application
Code:
com.miui.yellowpage
- Weather Application
Code:
com.miui.weather2
- Tracking Application
Code:
com.miui.miservice
- Music player with Ads
Code:
com.miui.player
- Mi Pay
Code:
com.mipay.wallet.id
- Mi Pay
Code:
com.mipay.wallet.in
- Mi Pay
Code:
com.xiaomi.payment
- Quick Apps
Code:
com.miui.hybrid
- Quick Apps Addon
Code:
com.miui.hybrid.accessory
- Video Player with Ads
Code:
com.miui.videoplayer
- GetApps
Code:
com.xiaomi.mipicks
- Translation Service
Code:
com.miui.translation.kingsoft
- Translation Service
Code:
com.miui.translation.youdao
- Translation Service
Code:
com.miui.translation.xmcloud
- Translation Service
Code:
com.miui.translationservice
- Mi Doc Viewer (XPS based)
Code:
cn.wps.xiaomi.abroad.lite
- Recycle Service
Code:
com.xiaomi.mirecycle
- Ad based App Installer
Code:
com.miui.global.packageinstaller
- Auto Installs from Play Store
Code:
android.autoinstalls.config.Xiaomi.ginkgo
- App Vault
Code:
com.mi.android.globalminusscreen
- Mi Credit
Code:
com.micredit.in
- Mi Health
Code:
com.mi.health
- Downloads Application with Ads
Code:
com.android.providers.downloads.ui
(make sure you have an alternate file explorer installed before you uninstall the next one)
- Ad based File Explorer
Code:
com.mi.android.globalFileexplorer
Google BloatWare
A few Google Applications that always come pre-installed :
- Youtube
Code:
com.google.android.youtube
- Hangouts
Code:
com.google.android.talk
- Play Movies & TV
Code:
com.google.android.videos
- Google Duo
Code:
com.google.android.apps.tachyon
- Google Chrome
Code:
com.android.chrome
- Google Search Application
Code:
com.google.android.googlequicksearchbox
- Digital Wellbeing
Code:
com.google.android.apps.wellbeing
- Android Feedback
Code:
com.google.android.feedback
- Talkback
Code:
com.google.android.marvin.talkback
Note: Removal of Google Search App will Remove Assistant and Google search.
Conclusion
This is not a complete list. You can remove anything that you find annoying using these commands. Just replace the package name with the package you wish to remove.
However, removing some apps could cause issues. Stay away from MI Account, Security and Google Services related apps. If you accidentally remove something and end up experiencing crashes, please follow the following steps.
Type
Code:
adb shell
.
Type
Code:
cmd package install-existing <name-of-package>
Replace <name-of-package> with the name of the package to be restored.
Note : The method doesn't delete the application. It only changes the permissions of each package and hides it in the system. A Factory Reset, OTA update or a Reinstall would restore the application. Also, if you create a new user, he would have access to the removed applications.
MOD EDIT: Telegram link removed, please read the STICKY!

Reserved

using this much easier and faster https://github.com/Szaki/XiaomiADBFastbootTools

if i remember correctly when i was on miui (ginkgo)
i removed "Find Device" and the phone stay in bootloop
anyway ...
the command : pm uninstall -k --user 0 <package-name>
can remove app for user 0
but what if i want to remove the app for all users ???

nneko904 said:
using this much easier and faster https://github.com/Szaki/XiaomiADBFastbootTools
Click to expand...
Click to collapse
It's personal choice. The tool does the same thing. This is for people who want to do it manually without a tool.
Also that tool is specific to the xiaomi devices to an extent. You can use this on any android smartphone. This doesn't have java dependencies as well.

loopypalm said:
if i remember correctly when i was on miui (ginkgo)
i removed "Find Device" and the phone stay in bootloop
anyway ...
the command : pm uninstall -k --user 0 <package-name>
can remove app for user 0
but what if i want to remove the app for all users ???
Click to expand...
Click to collapse
You can't remove an app completely from the system without root access. If you have a second user, you have to remove it for other users as well.
And I haven't mentioned find find device anywhere.

Great, debloated here. Missed play music only.

uncannyjish said:
And I haven't mentioned find find device anywhere.
Click to expand...
Click to collapse
you mentioned it in prerequisites , i tought u r goin to remov it ...
uncannyjish said:
You can't remove an app completely from the system without root access. If you have a second user, you have to remove it for other users as well..
Click to expand...
Click to collapse
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely

loopypalm said:
you mentioned it in prerequisites , i tought u r goin to remov it ...
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely
Click to expand...
Click to collapse
Well if you're have root, and can mount system as rw. You could use some root explorer and remove the apk's and there folder. But doing this prevents the ability for OTA update because now the system is changed.
The space saved by doing this is so tiny, you will never notice it.
---------- Post added at 05:22 PM ---------- Previous post was at 04:53 PM ----------
uncannyjish said:
Note : The method doesn't delete the application. It only changes the permissions of each package and hides it in the system. A Factory Reset, OTA update or a Reinstall would restore the application. Also, if you create a new user, he would have access to the removed applications.
Click to expand...
Click to collapse
Very nice thread.
FYI, I have been doing this on stock ROMs for long time. It's nice to see a listed description.
FYI, with this adb method , your debloated apps will remain gone after an OTA update. At least for me they do.

mrmazak said:
Well if you're have root, and can mount system as rw. You could use some root explorer and remove the apk's and there folder. But doing this prevents the ability for OTA update because now the system is changed.
The space saved by doing this is so tiny, you will never notice it
Click to expand...
Click to collapse
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder

loopypalm said:
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder
Click to expand...
Click to collapse
Well if you are concerned about the app data being left. Just run the command as in the . OP bit leave the "-k" off. This part of the command is (keep) , it keeps the user data on device. If you run the command without the -k, then it does not keep data.

loopypalm said:
i use custom rom and i don't want OTA
i asked for the command because it remove the app + data
i can delete the app manualy by browsing system/app or priv app but i have to look for eatch app data folder
Click to expand...
Click to collapse
Try running adb root and use the uninstall command on the package without the flags. Since you're rooted, it might just remove app + data.

godoy.rafa said:
Great, debloated here. Missed play music only.
Click to expand...
Click to collapse
Find the package name and remove it. I already explained all command

loopypalm said:
you mentioned it in prerequisites , i tought u r goin to remov it ...
i have root access,and no 2nd user
when i use the comand the app is removed just for user 0 but it stays in the system
thats why i asked for a comand to remove it completely
Click to expand...
Click to collapse
I asked everyone to disable those stuff, so to prevent any app from returning.

mrmazak said:
Well if you are concerned about the app data being left. Just run the command as in the . OP bit leave the "-k" off. This part of the command is (keep) , it keeps the user data on device. If you run the command without the -k, then it does not keep data.
Click to expand...
Click to collapse
i know, i asked for a command that remove the app completly not only for "user 0" and it seems no one knows it

Can i remove gallery? Is it safe? I mean com.miui.gallery .

OliveReeve said:
Can i remove gallery? Is it safe? I mean com.miui.gallery .
Click to expand...
Click to collapse
yes

OliveReeve said:
Can i remove gallery? Is it safe? I mean com.miui.gallery .
Click to expand...
Click to collapse
better not, there's several problems user reported when they remove it
there's many thread over which app you could remove and shouldn't, i recommend you should go search them

nneko904 said:
better not, there's several problems user reported when they remove it
there's many thread over which app you could remove and shouldn't, i recommend you should go search them
Click to expand...
Click to collapse
What problems are related to miui gallery removal? Please tell me I don't want to search over whole xda. It is probably bootloop too but I am not sure (hint from some github page).
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
If I get it it to bootloop by debloating, Can I fix it by adb? I know that I can reinstall app back by adb. I don't have root and twrp so far. Does it respond to adb during this bootloop?

OliveReeve said:
What problems are related to miui gallery removal? Please tell me I don't want to search over whole xda. It is probably bootloop too but I am not sure (hint from some github page).
---------- Post added at 11:27 AM ---------- Previous post was at 11:24 AM ----------
If I get it it to bootloop by debloating, Can I fix it by adb? I know that I can reinstall app back by adb. I don't have root and twrp so far. Does it respond to adb during this bootloop?
Click to expand...
Click to collapse
If you get bootloop from adb app uninstall, you will not get to use adb. Factory reset from recovery will undo the changes.
As for the gallery apk. I had removed it and was no longer able to save any photos, from any camera. I was not able to delete files from device either. The gallery app is somehow forced into needed for /sdcard file permissions. You can set it to "adb hide". If you don't want to see it

Related

Debloating more apps, clean up status bar, & removing pesky permanent notifications

Debloating more apps, clean up status bar, & removing pesky permanent notifications
Hola
For those of us who are using the non-Chinese variant, meaning no bootloader unlock, we are forced to find other ways to accommodate the following:
1. Removing more bloatware / unneeded apps.
2. Be able to remove most system based icons from the status bar to allow other icons to show up given the limited space we have due to the notch.
3. Be able to remove permanent notifications from the notifications panel.
While using adb can accommodate all of the above, being able to control most of these items from an app is much easier to manage. Most, if not all, of the apps I mention below will cost you a few dollars but in my view are worth every penny and can be used on other devices.
Bloatware removal
App needed: App Freezer
Link: https://play.google.com/store/apps/details?id=com.wakasoftware.appfreezer&hl=en
Basic setup (taken almost verbatim from Play Store info):
1. Make sure you know how to use adb clearly! <- If you don't know to use adb, Google it!
2. Go to [Settings], go [Accounts], then remove All Accounts! <- This is a critical part of the setup!
3. Enable Android Debugging mode of your phone.
4. Run command
- adb shell dpm set-device-owner com.wakasoftware.appfreezer/.receiver.DPMReceiver
5. Reboot your phone, now you can add your accounts back and enjoy this app.
(For detailed instructions: http://wakasoftware.com/app-freezer-setup)
6. For general bloatware / unneeded app removal, I have attached an export from my App Freezer installation. OBVIOUSLY there are apps that I froze that I do not need or use, so go through the list and edit as needed. It is very difficult to find proper information on those com.Huawei.* files.
Status bar icon removal
App needed: SystemUI Tuner
Link: https://play.google.com/store/apps/...ystemuituner&rdid=com.zacharee1.systemuituner
Basic setup (taken almost verbatim from Play Store info):
1. Make sure you know how to use adb clearly! <- If you don't know to use adb, Google it!
2. Enable Android Debugging mode of your phone.
3. Run commands
- adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS
- adb shell pm grant com.zacharee1.systemuituner android.permission.PACKAGE_USAGE_STATS
- adb shell pm grant com.zacharee1.systemuituner android.permission.DUMP
4. Launch app and select which icon you want to remove. Note that unfortunately not all icons can be removed, like the unneeded VoLTE / HD system icon that always shows up unless you manually disable this feature.
5. RESTART your phone to make most of the selected icons removed. REMEMBER THAT SOME ICONS CANNOT BE REMOVED BY THIS APP!
Notification panel clean up
App needed: TidyPanel
Link: https://play.google.com/store/apps/details?id=com.dharmapoudel.tidypanel
Basic setup:
1. Install, buy the Pro version (if you think it is worth it), assign needed permissions.
2. Select which permanent notifications you want removed.
3. Restart to ensure it continues to work after a reboot (though I think you may need the Pro version to enable this feature).
4. I found that some permanent notifications take some fine tuning to be removed by this app in terms of using a custom title or custom text. It is finicky indeed but once you get the hang of it, it works well. The app developer has a XDA thread in the main Apps sub-forum.
Yes, yes, three additional PAID applications to be installed to give us other features that we usually would be able to achieve with simple root or otherwise. Hopefully this helps someone else other there.
sad, but when i try to activate with adb always shows " Not allowed to set the device owner because there are already some accounts on the device"
i removed all accounts, even i removed all device administrator programs
Ricardo_G said:
sad, but when i try to activate with adb always shows " Not allowed to set the device owner because there are already some accounts on the device"
i removed all accounts, even i removed all device administrator programs
Click to expand...
Click to collapse
Hola
Hmm, that is indeed weird, I did not have any issues with this part. But just to confirm did you remove ALL Google and non-Google accounts like WhatsApp, email accounts, anything else listed in the Users and Accounts section?
Sent from my LYA-L0C using Tapatalk
when i try to run adb command…
adb shell dpm set-device-owner com.wakasoftware.appfreezer/.receiver.DPMReceiver
java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device
at android.os.Parcel.createException(Parcel.java:1953)
at android.os.Parcel.readException(Parcel.java:1913)
at android.os.Parcel.readException(Parcel.java:1863)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5863)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:176)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:106)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:8067)
at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7352)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:1095)
at com.android.server.devicepolicy.HwDevicePolicyManagerService.onTransact(HwDevicePolicyManagerService.java:769)
at android.os.Binder.execTransact(Binder.java:739)
Hola
Based on the initial response it is still detecting some other account on your device. Long shot but after removing all accounts try rebooting and try again (assuming you didn't do so already).
Sent from my LYA-L0C using Tapatalk
no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)
Ricardo_G said:
no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)
Click to expand...
Click to collapse
Hola
I don't understand, I did not have to remove any apps, just any accounts listed in the Users and Accounts section in Settings. Can you show us a screen capture of your phone of this section?
I don't have any un-needed apps that I can't hide, disable or install, and I don't have any persistent notifications either?
Jonathan-H said:
I don't have any un-needed apps that I can't hide, disable or install, and I don't have any persistent notifications either?
Click to expand...
Click to collapse
Hola
Not sure I understand your comment. If you are simply stating that you have no issues with your Mate 20 Pro, and don't want to remove / disable existing Huawei provided apps then that is absolutely fine, etc. My post is simply to share information on how I was able to get some features that I accustomed to using on other devices. Many us really like the hardware, but man their EMUI skin is a most difficult nut to crack :crying:
Only wish that Substratum can bring support for our device or at least for Android 9 Pie.
QAM said:
Hola
Not sure I understand your comment. If you are simply stating that you have no issues with your Mate 20 Pro, and don't want to remove / disable existing Huawei provided apps then that is absolutely fine, etc. My post is simply to share information on how I was able to get some features that I accustomed to using on other devices. Many us really like the hardware, but man their EMUI skin is a most difficult nut to crack :crying:
Only wish that Substratum can bring support for our device or at least for Android 9 Pie.
Click to expand...
Click to collapse
It´s simple
- i removed all accounts
- I remove all programs grants to accessibility
- I removed all programs grants to device administrator
and doesn´t work neither
Ricardo_G said:
no works
---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------
i can note remove find my device and archives, this can not deleted ( both are system app, non removable)
Click to expand...
Click to collapse
adb shell
pm list packages
pm uninstall -k --user 0 "package name"
find my device is "com.google.android.apps.adm"
cant see the archives? maybe download an app similar to 'package name viewer' which will give you the package name to delete.
Please be cautious, some things should not be deleted and you may need a factory reset to get it back.
---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------
Ricardo_G said:
It´s simple
- i removed all accounts
- I remove all programs grants to accessibility
- I removed all programs grants to device administrator
and doesn´t work neither
Click to expand...
Click to collapse
this doesnt make sense either. Did not in any way have anything to do with what was asked.
All worked great for me, thanks
Any benifit of freezing the bloat wares rather than just uninstalling them completely using adb? Just curious
wpy said:
Any benifit of freezing the bloat wares rather than just uninstalling them completely using adb? Just curious
Click to expand...
Click to collapse
If a package that is uninstalled causes issues, you'll need a factory reset to get it back. Otherwise just unfreeze
Cleanup Statusbar
command to remove statusbar icons:
Code:
adb shell settings put secure icon_blacklist [comma separated codes here] && adb reboot
Icons to disable (config_statusBarIcons from Huawei Mate 20 Pro framework_res.apk):
Code:
<string-array name="config_statusBarIcons">
<item>mute</item>
<item>ime</item>
<item>powersavingmode</item>
<item>speakerphone</item>
<item>wifi</item>
<item>cdma_eri</item>
<item>data_connection</item>
<item>phone_evdo_signal</item>
<item>phone_signal</item>
<item>battery</item>
<item>secure</item>
<item>clock</item>
<item>unicom_call</item>
<item>volte_call</item>
<item>vowifi_call</item>
<item>data_saver</item>
<item>tty</item>
<item>managed_profile</item>
<item>cast</item>
<item>sync_failing</item>
<item>sync_active</item>
<item>vpn</item>
<item>earphone</item>
<item>eyes_protect</item>
<item>nfc</item>
<item>alarm_clock</item>
<item>bluetooth</item>
<item>location</item>
<item>zen</item>
<item>volume</item>
</string-array>
command to re-enable the icons:
Code:
adb shell settings delete secure icon_blacklist && adb reboot
command to show disabled icons:
Code:
adb shell settings get secure icon_blacklist
webpatrick said:
command to remove statusbar icons:
Icons to disable (config_statusBarIcons from Huawei Mate 20 Pro framework_res.apk):
command to re-enable the icons:
command to show disabled icons:
Click to expand...
Click to collapse
Thanks for this info. Can confirm this works. But still cannot remove the stupid volte icon :laugh:
QAM said:
Hola
Hmm, that is indeed weird, I did not have any issues with this part. But just to confirm did you remove ALL Google and non-Google accounts like WhatsApp, email accounts, anything else listed in the Users and Accounts section?
Sent from my LYA-L0C using Tapatalk
Click to expand...
Click to collapse
I am also the same problem:哭::哭:
so after a successful cmd promt i get device is managed by your company why
miffymiffy said:
If a package that is uninstalled causes issues, you'll need a factory reset to get it back.
Click to expand...
Click to collapse
You can actually use the following in adb shell to reinstall a package as it is still in the system:
cmd package install-existing <package name>
dominicstg2 said:
so after a successful cmd promt i get device is managed by your company why
Click to expand...
Click to collapse
same with me, anyone can help or explain about this??

[SOLVED] FindDevice may cause a boot loop?

Hello.
I uninstalled Find Device (pm uninstall -k --user 0 com.xiaomi.finddevice) to avoid its periodic enabling reminders.
However now sometimes "find device has been destroyed" appears as a toast. Also the Security Status in the Settings now crashes.
After finding this message (despite it is other phone model) I'm frightened about a future reboot of my phone. Can my phone really enter in a boot loop the next time I reboot? I have the miui optimization disabled, though.
I have tried to install it back, downloading the 9.0 apk, but it says INSTALL_FAILED_ALREADY_EXISTS. Using the "-r" switch also doesn't works ("com.xiaomi.finddevice is a persistent app. Persistent apps are not updateable"). I assume that this is due to haven't erased the app data (uninstalled with -k) but "pm clean" doesn't seems to clean it. I also have tried the -p option for partial installation, but returns a null exception.
Ah, my device is not rooted. MIUI Global 10.2 stable.
I managed to restore the application with the following adb command:
Code:
pm install-existing com.xiaomi.finddevice
It also works with applications uninstalled without "-k 0".
By the way, I used to use "pm disable", but now it seems it is called "pm disable-user".
So, next time I'll preferably use it instead of uninstalling, if works as expected.
Note that it doesn't allows to disable finddevice:
Code:
$ pm disable-user com.xiaomi.finddevice
Package com.xiaomi.finddevice new state: default
The package still continues in default state, unlike when it actually works:
Code:
$ pm disable-user com.miui.player
Package com.miui.player new state: disabled-user
Credits for these great discoverings to this blog post (eskerahn.dk/wordpress/?p=2462) [add the https prefix, I can't yet post urls!]
is there a any way to uninstall this application without trouble (without bootloop)?
i have the same question is there a any way to uninstall this application without trouble (without bootloop)?
If it doesn't boot, it's awesome tho.
Without modifying the vendor ROM image there is no way to get rid of it.

Removing Bloatware does not work on MIUI 12

Hello Friends,
When I was on MIUI 11, I had removed Mi apps like Mi pay, Mi video, Poco launcher, Mi browser and Mi music by adb. Now I have updated to latest MIUI 12 but I am not able to remove Mi calendar, Mi browser via adb. I get an error message, "failure [-1000]". Why is it happening and how I can remove the bloatware?
Hi Friends,
I am using MIUI 12.0.2.0 China stable ROM on my K20 Pro & I removed all the bloatwares apps included in this rom. For removings apps I use XiaomiADBFastbootTools.jar .I suggest you download this tool & install JDK (java development kit) for the removal process. I am very haappy with this tool. I also use it on XIAOMI.EU rom.
I hope your problem will be solved with this great tool.
On global rom the tool cannot remove these apps, no idea why not.
boomboomer said:
On global rom the tool cannot remove these apps, no idea why not.
Click to expand...
Click to collapse
You try this tool on global ROM?
i try that tool on global miui 12 and it cant remove that apps.
But on latest beta orange fox recovery exist option to remove system apps. didnt try as i change miui 12 global to Xiaomi.eu weekly and tool can remove that apps.
so global stable cant remove and xiaomi.eu weekly can remove
I tried with both Szaki's tool and OrangeFox Recovery tool, none of them work.
I confirm that following apps can't be removed on Global (12.0.1) MIUI 12
Code:
com.mi.android.globalminusscreen
com.mi.globalbrowser
com.xiaomi.calendar
com.miui.player
com.miui.videoplayer
com.miui.weather2
Following error occurs when I try to uninstall any of these apps:
Code:
pm uninstall --user 0 com.mi.android.globalminusscreen
Failure [-1000]
I removed it
renr29 said:
I removed it
Click to expand...
Click to collapse
This affirmation without an explanation is sh*t
bartito said:
This affirmation without an explanation is sh*t
Click to expand...
Click to collapse
we can remove it on custom miui roms
slavke1976 said:
we can remove it on custom miui roms
Click to expand...
Click to collapse
MIUI custom ROMs are not in question.
You allways can remove these sh*t apps on a custom ROM or, if can't be removed by "pm uninstall" command, you can remove by recovery.
The question is to remove these apps from unrooted and unlocked MIUI 12 global
bartito said:
MIUI custom ROMs are not in question.
You allways can remove these sh*t apps on a custom ROM or, if can't be removed by "pm uninstall" command, you can remove by recovery.
The question is to remove these apps from unrooted and unlocked MIUI 12 global
Click to expand...
Click to collapse
I understand, but the answer is that we cant from miui 12 global. My phone is unlocked and i had magisk. and miui global stable, removing that apps is not possible with that debloater tool or commands. Didnt try other metods. but with debloater tools as sakis, it doesnt work.
bartito said:
I confirm that following apps can't be removed on Global (12.0.1) MIUI 12
Following error occurs when I try to uninstall any of these apps:
Click to expand...
Click to collapse
The smallest ADB package for PC that is enough for ADB is Minimal ADB and Fastboot (find a thread on XDA)
According to your error, it was the following ADB command that failed:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
com.mi.android.globalminusscreen com.mi.globalbrowser
...
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
I'm not using any windows command but the adb shell command to access the device then exec pm uninstall command.
I also confirm that I've tried also pm disable and pm disable-user and both fails to remove/disable the related apps
zgfg said:
Instead of using a jar (not knowing what's inside), you can use ADB commands - simply install Minimal ADB and Fastboot package to PC
According to your error, jar executes the following ADB command:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
Click to expand...
Click to collapse
bartito said:
I'm not using any windows command but the adb shell command to access the device then exec pm uninstall command.
I also confirm that I've tried also pm disable and pm disable-user and both fails to remove/disable the related apps
Click to expand...
Click to collapse
By AppInspector, find the system or data folder and apk name where the corresponding app is installed
By using TWRP (root not required) or e.g. MiXPlorer (root required), go to that folder and rename <app-name>.apk to <app-name>.bak and reboot
If you disabled a critical app causing e.g. a boot failure, use TWRP and rename bak file back to the original apk extension
To use twrp root isn't required but bootloader unlocked.
My bootloader is locked
zgfg said:
By AppInspector, find the system or data folder and apk name where the corresponding app is installed
By using TWRP (root not required) or e.g. MiXPlorer (root required), go to that folder and rename <app-name>.apk to <app-name>.bak and reboot
If you disabled a critical app causing e.g. a boot failure, use TWRP and rename bak file back to the original apk
Click to expand...
Click to collapse
zgfg said:
The smallest ADB package for PC that is enough for ADB is Minimal ADB and Fastboot (find a thread on XDA)
According to your error, it was the following ADB command that failed:
adb shell pm uninstall -k --user 0 <pkg-name>
Try instead the other ADB command:
adb shell pm disable-user <pkg-name>
Where <pkg-name> stands for:
com.mi.android.globalminusscreen com.mi.globalbrowser
...
or package name for any other system app you want to disable - use AppInspector from Playstore to read package names corresponding to the apps
Click to expand...
Click to collapse
Thanks a ton!! The MIUI browser (com.mi.globalbrowser) had been bothering me for quite some time, and because of you I was able to get rid of it! Thanks!
I can also confirm that using the disable function works on both the browser and calender apps, you can't uninstall but it will accept disable - problem solved
boomboomer said:
I can also confirm that using the disable function works on both the browser and calender apps, you can't uninstall but it will accept disable - problem solved
Click to expand...
Click to collapse
Btw, there is not much difference in disabling and 'uninstalling' - i.e., don't think that
adb shell pm uninstall -k --user 0 <pkg-name>
would really remove the package from your system
It only uninstalls for the current user 0 - but the app is still available on the system for user 999
And the opposite command:
adb shell cmd package install-existing <pkg-name>
would reinstall it (for user 0), hence package was not really deleted from the system (to save some MBs or so)
---
The only differences between disabling and uninstalling (both make it for user 0) are
- Disabled apps are still visible in Settings, Apps and some of them can be re-enabled by click from there.
Playstore will show you an update of disabled app and if you want to prevent its automatic update (and re-enabling) you have to disable its auto-update in Playstore.
Similarly for System apps updater from Xiaomi (disable auto-updating and when it offers to update an app you have disabled, click to ignore the update)
- 'Uninstalled' ones are not visible in Settings, Apps. If you want to 're-install' them you have to remember what you have 'uninstalled'' and their package names.
Playstore and System apps updater will not bother you about their updates
Thanks, but this is just with the ADBFastbootTools.jar and the uninstall option failed for the new Mi Browser and Calender, but the disable option worked. Both are annoying bloatware that can't be fully removed without root, so this is the next best option.

Removing BLoatware

I found a nice and easy way to get rid of bloatware, WITHOUT root, and using Rakesh's bloatware list.
How To Remove Bloatware From Any Xiaomi Devices (Without Root): Easiest Way!
Have you just gotten a new phone and is it already filled up with a bunch of spooky apps preinstalled? Have you tried long pressing and dragging them up your screen to uninstall? Alas! There isn’t …
technolobe.com
Xiaomi Bloatware List | Remove Bloatware on MIUI 14/13/12
Find the list of safe-to-remove Xiaomi and MIUI bloatware. Learn how to uninstall system apps on MIUI 14, 13 & 12 via Xiaomi ADB/fastboot tools.
technastic.com
But when I try it, I get stuck after installing Java SE Development Kit–and Xiaomi ADB/Fastboot Tools, when the software will not recognize my phone. (USB debugging was done)
This is new phone. What else do I need to have, before this will work? Some accounts? A simcard??
Thank You
I guess adb drivers are missing. To installing that. And why don't you use simple adb after installing drivers.
Adb shell
Pm uninstall --user 0 <package name>
Pm uninstall -k --user 0 <package name>
Would recommend first one, second retains cache and some data.
Yes it's a less intuitive way, but I prefer this doing everything myself, at least trying to rely on less and less dependencies.
But using adb doesn't free up space, it's more like it just disables app, the only difference is that in both the cases APK is still in system, just don't show up in settings like as it will remain shown when disabled.
Applepear said:
I guess adb drivers are missing. To installing that. And why don't you use simple adb after installing drivers.
Adb shell
Pm uninstall --user 0 <package name>
Pm uninstall -k --user 0 <package name>
Would recommend first one, second retains cache and some data.
Yes it's a less intuitive way, but I prefer this doing everything myself, at least trying to rely on less and less dependencies.
But using adb doesn't free up space, it's more like it just disables app, the only difference is that in both the cases APK is still in system, just don't show up in settings like as it will remain shown when disabled.
Click to expand...
Click to collapse
Of course it uses ADB......
No I meant why use .jar program? Ok some people prefer easiness
I have posted the thread some weeks ago and for me it works without any issues.
Miui system apps which are safe to remove
Hello Found this very great thread here in other Xiaomi device forum,so please dont hit thanx here. Have tested and its working good for me even on Miui 12.Have fun.Cheers...
forum.xda-developers.com
-CALIBAN666- said:
I have posted the thread some weeks ago and for me it works without any issues.
Miui system apps which are safe to remove
Hello Found this very great thread here in other Xiaomi device forum,so please dont hit thanx here. Have tested and its working good for me even on Miui 12.Have fun.Cheers...
forum.xda-developers.com
Click to expand...
Click to collapse
Thank you for that list.
My problem is different..... I already have a list and I will of course compare it with yours. What I do not have is ACCESS.
The "usual" system, which I found here:
Does not recognize my phone. Probably, because I use no google or any other accounts. So I need to know what is needed to to access the bloatware, no matter what list I use...

Question Okay, I'm stupid...

So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
install this apk should solve the problem
If worse comes to worse a factory reset will.
A lot of the bloatware is useful. I prefer to use a package disabler as I can easily toggle them on or off as needed real time.
rtd4 said:
install this apk should solve the problem
Click to expand...
Click to collapse
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Trying install via adb I get: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.samsung.android.providers.contacts attempting to redeclare permission android.permission.SEND_CALL_LOG_CHANGE already owned by com.android.providers.contacts]"
Hmmm, perhaps I should remove Google Contacts first...
Okay, that helped, but now I'm getting: "
Performing Streamed Install
adb: failed to install /home/mhicks/Downloads/SamsungContactsProvider.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]"
I thought deleting the "com.samsung.android.providers.contacts" might solve the problem, but trying gave me: "
./adb -d uninstall com.samsung.android.providers.contacts
Failure [DELETE_FAILED_INTERNAL_ERROR]"
darkfrog26 said:
It sat for a minute trying to install and then came up with, "App not installed" and says that every time I retry.
Click to expand...
Click to collapse
try these commands on pc
adb shell cmd package install-existing com.samsung.android.providers.contacts
adb shell pm install -r --user 0 /system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk
The first command returns: "Package com.samsung.android.providers.contacts installed for user: 0", but the second command returns: "Failure [-3001: INSTALL_FAILED_REJECTED_BY_BUILDTYPE]"
If you have deleted the apk with root you just have to paste it again in the folder /system/priv-app/SamsungContactsProvider
@rtd4, unfortunately, this device isn't rooted.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
It is somewhat complicated to recover the device without wipe in the past I had these problems, it was solved with a higher version of the application
@rtd4, I suppose it's time for a wipe... Thanks for trying to help me.
If you had made a copy of all your apps including system apks with ApkExport you could now use that copy to restore it.
Now before you factory reset make a copy of your installed apps and any system updates then save it on the PC or SD card. After the reload you won't need Playstore. It speeds things up a lot...
APK Export (Backup & Share) - Apps on Google Play
Manage and extract your apps.
play.google.com
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
darkfrog26 said:
@blackhawk, thanks for the tip. Right now, I'm trying to set up a Telegram account so I can root my phone (US version) if I'm going to go through the trouble of wiping. Unfortunately, Telegram's SMS verification appears to be broken or at least doesn't like Mint Mobile... Fun day.
Click to expand...
Click to collapse
You're welcome.
You really don't need to root.
Consider the possible consequences carefully.
Package Disabler will easily block apks you don't want running.
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
darkfrog26 said:
Well, it would appear it's moot anyway since I'm at Baseband v4 and only v1 can be rooted apparently...
Click to expand...
Click to collapse
This is the one I use:
Home - Package Disabler
The only NON-root solution that let’s you disable any unwanted packages that come pre-installed / installed with your phone / tablet.
www.packagedisabler.com
It has an interactive widget that allows you to toggle selected entries on/off. It runs even in Safe mode so be careful what you disable. I've never had to do a factory reset because of it but the potential is there.
Unfortunately it no longer disables Google play Services but will disable all carrier bloatware including OTA updates.
darkfrog26 said:
@rtd4, unfortunately, this device isn't rooted.
Click to expand...
Click to collapse
Then how come you have removed apk from system?
In case you have used command like
pm disable packageName . Then try pm enable packageName
Or
If you have used
pm hide packageName then try
pm unhide packageName
darkfrog26 said:
So, I was going through and removing bloat from my phone and was trying to remove the Samsung Contacts app through `adb`, but apparently I removed the wrong thing and now the Phone, Messages, and Contacts app are crashing every time I try to open them. I removed "package:/system/priv-app/SamsungContactsProvider/SamsungContactsProvider.apk=com.samsung.android.providers.contacts" which is apparently a core service. I'm wondering if anyone might know how I could reinstall that APK?
Click to expand...
Click to collapse
Next time use this, so you don't make mistakes:
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com

Categories

Resources