Modern Xiaomi smartphones running MIUI or HyperOS shells are often overflowing with pre-installed software that cannot be removed by standard methods. Users are faced with intrusive advertising, background processes and useless software taking up precious space. The only reliable way to clean up a device from system debris is using a computer and ADB debugging protocol.
This method does not require obtaining superuser rights (Root), which preserves the guarantee of the device and integrity of banking applications. However, interfering with the system partition /system requires extreme caution and following the instructions accurately. Any error can lead to malfunctioning of the operating system or even a bootloop (cyclical restart).
In this article, we will discuss the process of preparing, configuring and safely removing unnecessary components, you will learn to distinguish between critical services and harmless software that can be painlessly deactivated to speed up the gadget.
Necessary tools and smartphone preparation
Before you start, you'll need a computer running Windows, macOS or Linux, and you'll need to install ADB drivers on your device, which are often bundled with Google's platform tools, without which your computer won't be able to recognize your smartphone in debugging mode.
On the Xiaomi smartphone itself, you need to activate the hidden developer menu. To do this, go to Settings β About the phone and quickly click 7-10 times on the MIUI Version (or OS Version). Once the notification βYou became a developerβ appears, you will access the desired settings.
Next, go to Settings. β Advanced settings β For developers, you need to turn on the debugging switch here. USB. It is also important to activate the item. USB-Debugging (Security settings) that allows the computer to control the device without constant screen confirmation.
β οΈ Warning: When you connect your smartphone to your PC for the first time, you will see a request for debugging permission on the screen. Be sure to select "Always Allow from this computer" and press OK, otherwise the commands will not be executed.
βοΈ Preparing for removal of system applications
Installation and Configuration of the ADB Environment on the Computer
You'll need Platform Tools to work with. Download it from the official Android Developers website. Once you unpack your archive, open the Command Prompt (CMD) or PowerShell in the tool folder. In Windows, you can do this by clamping down Shift and right-clicking in the folder, selecting "Open PowerShell window here."
Check the device's connection by entering the adb device command. If a device with a serial number and device status appears on the list, the connection is established. Unauthorized status means that you have not confirmed access on the phone screen.
For convenience, many users use graphical shells such as Xiaomi ADB/Fastboot Tools or ADB AppControl. They automatically define the model and offer a list of applications to remove, marking dangerous system processes in red.
adb shell pm list packagesThis command will display a complete list of all installed packages, and in GUIs, this list is already filtered and structured, making it much easier to find unnecessary software.
Package analysis: what can be removed and what can not be removed
The most critical stage is packet identification. Xiaomi system applications have the prefix com.miui. or com.android.... Removing components responsible for calls, messages or interface operation will cause the phone to malfunction.
Analytics, ads and rarely used apps like Mi Video, Mi Music or Mi Browser can be safely removed if you donβt use them, and com.facebook.katana and other Google services are often removed if they arenβt in use.
List of safe packet removal
Pay special attention to packages called daemon or service, often responsible for background synchronization or sensors, and before removing such a component, you'd better find a description of it online by the exact name of the package.
| Package name | Description | Risk of removal |
|---|---|---|
| com.miui.analytics | Statistics and advertising | Low (recommended) |
| com.miui.msa | Advertising Services System (MSA) | Low (recommended) |
| com.android.phone | Telephony system | Critical (do not touch) |
| com.miui.securitycenter | Security centre | High (will disrupt the antivirus) |
| com.google.android.gms | Google Play Services | High (the cards, the store will stop working) |
Removal process through the command line
If you're using a console, the command to remove the app is as follows. It doesn't erase. APK-The file is physically hidden by the current user (user 0), which is equivalent to deleting the file.
adb shell pm uninstall -k --user 0 <name packet>For example, to remove the MSA ad service, type: adb shell pm uninstall -k --user 0 com.miui.msa. Once the command is completed, the system will give a message Success.
It's important to understand the difference between deleting for the user and completely uninstalling. The --user 0 command is safe, because when you reset to Factory Reset, all the applications that are removed in this way will return to their places.
β οΈ Warning: Do not use the flag -k without need, if you want to free up space completely, but for system applications the standard command pm uninstall --user 0 is a safety standard.
π‘
Keep a list of deleted packets in a text file. If the phone starts to behave strangely after cleaning, you can quickly restore the deleted install command.
Recovery of Remote System Components
If the phone is not working properly, contacts are gone or the sound is no longer working, remote applications can be returned using the cmd package install-existing command (for Android 11+) or the standard pm install-existing.
The complete recovery team looks like this:
adb shell cmd package install-existing <name packet>An alternative and simpler way is to perform a complete data reset. Since deletion was only for the user profile 0, when you return to the factory settings (Settings β About Phone β Resetting), the original firmware will be restored to its full extent.
If you remove a critical component, such as SystemUI or launcher, the phone can go into eternal restart, in which case only reflashing the device through Fastboot mode using the Mi Flash Tool utility will help.
Alternative methods and automation
For those who donβt want to work with code, there are scripts and utilities with a graphical interface. Xiaomi ADB/Fastboot Tools (the developer of Szaki) automatically analyzes the device and suggests removing only those components that are verified by the community.
Universal Android Debloater is also popular, an open-source cross-platform app that has a database of secure packages for thousands of devices including Xiaomi, Samsung and OnePlus. It flags packages with colors: green is safe, yellow is cautious, red is dangerous.
π‘
Using graphical shells (GUIs) reduces the risk of error by 90%, as they hide complex commands and warn you of deleting critical system files.
Some users try to remove system debris by installing modified themes or using root-enabled cleaners, which are ineffective because they donβt allow access to the system partition /system/app or /system/priv-app.