Xiaomi ADB Fastboot: What You Can Remove to Speed Up Your Work

Owners of Xiaomi, Redmi and POCO smartphones often face intrusive advertising, pre-installed garbage and system processes that consume battery life. Using ADB and Fastboot tools allows you to interfere with the operating system at a deep level. This is not just removing icons, but full optimization, not available through the standard settings menu.

Before taking drastic action, you need to understand the difference between user data and system components. Incorrect removal of critical packets can lead to bootloop (cyclic reboot) or complete device failure. In this article, we will discuss which com.android and com.miui packages are safe candidates for removal, and which ones are categorically not to be touched.

To start, you will need a computer with installed ADB Driver, USB-cable and on-line debugging USB It's only going to take 15 minutes, but the result is a clean system and no advertising, and we've put together a detailed command list and compatibility table for different versions. MIUI HyperOS.

Environment preparation and debugging activation

The first step is to properly configure the smartphone. Without activating the hidden developer capabilities, accessing system files via ADB will be impossible. You need to click on the build number several times in the About Phone section to unlock the developer menu.

Then, in the advanced settings, find the USB debugging option and activate it. The system can warn you of the risks several times, agree. It's also important to allow your computer to access debugging when you first connect the cable by confirming the action on your smartphone screen.

โš ๏ธ Note: When connecting to your computer in debugging mode, do not select the "Charge Only" option, otherwise the computer will not see the deviceยป (MTP).

To check the connection, open the command line or terminal on your PC and type in the command adb devices. If a device with a serial number and device status appears on the list, then the connection is established correctly. If the status is unauthorized, look at the phone screen and confirm the fingerprint of the RSA key.

โ˜‘๏ธ Checking readiness for work

Done: 0 / 4

Secure list of packets to remove (Bloatware)

MIUI and HyperOS have a lot of applications that the average user never uses, called bloatware, which frees up RAM and reduces the load on the processor in the background.

The first candidates for removal are analytics and advertising services, and the com.miui.misys and com.miui.analytics package collect data about your smartphone usage, which does not disrupt the core functions, but completely removes personalized ads in system applications.

  • ๐Ÿ—‘๏ธ MSA (MIUI System Ads: the main source of advertising in the system, requires forced removal.
  • ๐Ÿ“Š Analytics: A statistics collection service that can be safely disabled or removed.
  • ๐ŸŽฎ Game Center: If you donโ€™t use Xiaomiโ€™s built-in gaming launcher, you can remove it.
  • ๐Ÿ“ฐ Mi News / Mi Video: Content aggregators that often duplicate browser or third-party apps.

You also need to look at duplicate apps, because if you're used to Google Chrome, you don't need the built-in Mi Browser, and you can also look at the gallery, the voice recorder, the calculator, and you can replace them with lighter ones from the Play Market.

๐Ÿ’ก

Before removing any system package, back it up with the pm dump command. package_name > backup.txt, so that you know the exact name for recovery.

Removal of system advertising and Mi services

Advertising in Xiaomi is built deep into the system, and simply turning off settings is not always effective.Using ADB allows you to completely cut out ad modules.The key component here is com.miui.msa.global (or without the global suffix for Chinese versions).

In addition, many users prefer to abandon the Mi Account ecosystem entirely using only a Google account, in which case you can remove Xiaomi cloud storage services, Mi Cloud synchronization and associated frameworks, which will significantly speed up the system, as constant attempts to sync will stop.

adb shell pm uninstall -k --user 0 com.miui.msa.global


adb shell pm uninstall -k --user 0 com.miui.analytics




adb shell pm uninstall -k --user 0 com.miui.personalassistant

It is important to understand that the command pm uninstall -k --user 0 It doesn't remove the application physically from the recovery partition, it just hides it for the current user, which means you can always return it back with the cmd package install-existing command. package_name, if something goes wrong.

โš ๏ธ Note: Removing the com.miui.securitycore package may cause virus scanners and some security features to fail, but will not break the system completely.

Optimizing Google and Third Party Services

Xiaomi smartphones come with a pre-installed set of Google apps. If you're actively using the Google ecosystem, you can't touch the core services (Play Services, Play Store) but you can remove unnecessary add-ons.

Often there are Google TV, Google Play Movies or Google Music on the system, which in our regions may be useless, their removal does not affect the operation of the app store or map, and it is worth checking the presence of LinkedIn, Facebook and Microsoft Office, which are often embedded in global firmware.

For users who use alternative launchers, it may be interesting to remove the standard launcher com.miui.home.Do this with caution, pre-installing and activating the alternative, otherwise after the reboot you may see a black screen.

  • ๐ŸŽฌ Google TV/Movies: streaming services that are not required for Android.
  • ๐Ÿ“š Google Play Books/Magazines: Specific applications that are easily replaced by web versions.
  • ๐Ÿ“ฑ Carrier Services: If your carrier does not support you RCS through this application, it can be removed.
๐Ÿ“Š Which component do you plan to remove first?
MIUI Advertising Services
Google apps
Gambling services
Chinese software

Table of compatibility and removal risks

Not all packages behave the same on different firmware versions, and here is a table that will help you navigate the risk of removing specific MIUI and HyperOS components.

Package Name (Package Name)FunctionRisk of removalRecommendation
com.miui.analyticsAnalytics gatheringLow.Delete
com.miui.msa.globalAdvertising systemLow.
com.miui.weather2Standard weatherMedium.Remove if there is a replacement
com.android.browserSystem browserMedium.Remove if not used
com.miui.securitycenterSafety and clean-upHigh-pitchedLeave or disable

Note that the โ€œmediumโ€ risk means that the system will work, but you will lose a specific feature (such as a desktop weather widget).The โ€œhighโ€ risk warns of possible failures in the work of adjacent modules, although a critical system failure will not occur.

The com.miui.daemon label is often found on process lists, and is responsible for the background work of many system services. Deleting or stopping it can lead to unpredictable smartphone behavior, so itโ€™s best to simply limit its background activity through battery settings.

Recovery of Remote Components and Resetting

If you notice a problem after cleaning the system or if you lose important functions, don't panic. Since we used the uninstall method for user 0, all files are still in the system. You can return them with one command.

To recover a specific package, use the CMD package install-existing command. package_name. If you've removed a lot of components and don't remember their names, the easiest way to do that is to reset your phone to the factory settings.

adb shell cmd package install-existing com.miui.analytics

There is also the option of recovering through Recovery mode if the smartphone stopped loading normally. Entering Recovery mode is done by pressing the volume button up and the power button. There you can select the Wipe Data item, but remember that this will delete all your personal files.

What to do if the phone goes to the bootloop?
If the phone reboots cyclically after removing the system packs, try booting into Safe Mode (clutching the off button on the logo).If this doesn't help, you'll need to flash the device through the Mi Flash Tool with data storage (if possible) or a full wipe.

Frequently Asked Questions (FAQ)

Can I delete Google Play Services through ADB?
Technically possible, but highly discouraged: Deleting Google Play Services will render most applications, including maps, navigation, banking apps and notifications, inoperable.
Will the warranty fly off after using ADB?
Using USB debugging and uninstalling applications via ADB is not a breach of warranty, as you do not hack the Unlock Bootloader or gain root rights. However, if you damage the system, the service center may refuse free repairs, citing software interference.
Do I need to unlock the bootloader to work with ADB?
No, pm uninstall commands don't require unlocking the bootloader. It's enough to enable debugging over USB. Unlocking is only needed to install custom recavators or flash the device at a low level.
Will the system be updated after the system applications are removed?
When you update your firmware over the air (OTA), remote system applications can return as the system partition is updated, but the settings and user data will be saved, and after a major update, you should check the package list again.

๐Ÿ’ก

Using ADB is a powerful customization tool that allows you to remove ads and debris without obtaining Root rights and violating the integrity of the system partition.