How to reinstall Xiaomi system app

Owning a modern Xiaomi smartphone is often accompanied by pre-installed software that isn’t always helpful. Users are faced with a situation where a standard application stops working correctly, disappears from the menu or, conversely, takes up too much space. MIUI HyperOS is protected from routine removal, requiring specialized interventions.

There are several ways to solve this problem, from simply resetting the settings through the menu to using debugging bridges. The choice of the specific method depends on how deeply the component is integrated into the operating system and whether you have superuser rights. It is critical to know exactly the Package Name you plan to touch, since deleting the system files of the kernel can make it impossible to boot the device.

In this guide, we will discuss the safe algorithms that will allow you to return the functionality of your smartphone or clean it of unnecessary β€œjunk”. We will look at both software methods through the computer and built-in system capabilities. It is important to understand that any interference in the system partition requires care and accurate follow-up of instructions.

Diagnosis and preparation for intervention

Before you start taking drastic measures, you need to make sure that the problem really lies in the corruption of the application files. Often enough to clear the cache or data to make the program work again stably. Go to Settings β†’ Applications β†’ All applications, find the desired component and select β€œClean”.

If a simple cleaning didn't work, you'd need a more serious approach. You'd need to activate the developer mode, because most effective methods require access to debugging over USB. Without this step, the computer wouldn't be able to give commands to the smartphone at a low level.

To activate hidden functions, follow the following steps:

  • πŸ“± Open Settings and go to About Phone section.
  • πŸ”¨ Find the line Version MIUI (or OS) And press it fast. 7-10 successively.
  • πŸ”“ After the message β€œYou became a developer” go back to the main settings menu.
  • πŸ”§ Come to the extra. β†’ For developers and turn on the debugging switch USB.

It's also worth checking for system updates. Sometimes bugs in system applications are fixed with security patches that come in automatically. Make sure your device is at least 50% charged to avoid a sudden shutdown during procedures.

πŸ“Š What is your current status with system applications?
It's working fine.
One app is bugging.
I want to remove all bloatware.
The system is not booting.

Using ADB to remove and restore

The most versatile and secure way to work with system software without obtaining root rights is to use the Android Debug Bridge (ADB) toolkit, which allows you to remove applications for the current user without physically erasing them from the system partition, which means that in case of a mistake, you can always return everything as it was.

To get started, you'll need to download the platform-tools to your computer and connect your smartphone with a cable. When you first connect, you'll see a request for debugging permission on your phone screen -- be sure to tick "Always Allow" and click "OK."

The removal process is as follows:

  1. Open the command line or terminal in the ADB folder.
  2. Enter the adb device command to check the connection.
  3. Use the command adb shell pm uninstall -k --user 0 name.packet to delete.

⚠️ Removal of critical system components, such as Security Center, MIUI Home or Package Installer, can lead to a cyclical reboot or complete inoperability of the interface.

To restore the application deleted in this way, it is enough to execute the command:

adb shell cmd package install-existing name.packet

This command returns the application to a β€œall-user” state, effectively reinstalling it from a hidden system storage.

β˜‘οΈ Check before ADB-team

Done: 0 / 4

Resetting to factory settings as a method of reinstallation

If you don't want to use a computer, the only regular way to reinstall a system application is to completely reset the device, which brings the phone back to the state it left the factory, with all the original versions of the software.

It is important to understand the difference between a simple deletion of data and a complete reset (Wipe): the first option only affects the user data of a particular application, the second one rewrites the entire system partition, this is especially true if system files were damaged as a result of a failed update or failure of the file system.

The procedure is performed through the Recovery menu:

  • πŸ”„ Turn off the smartphone completely.
  • πŸ”˜ Press the Volume Up buttons and Power before the logo appears.
  • πŸ“‹ In the Recovery menu (manage volume buttons, select power button) select Wipe Data.
  • βœ… Confirm the action and wait for the process to be completed.

After the reboot, all system applications will be restored to their original form. However, all your personal data, photos and contacts will be deleted, so be sure to back up important information in advance.

MethodData retentionRisk of errorThe need for a PC
ADB (uninstall user 0)Yes.Low.Yes.
Resetting settings (Wipe)No.Medium.No.
Flashing (Fastboot)No.High-pitchedYes.
What is Wipe All Data?
This is a full formatting command for the internal drive, which deletes not only your files, but also your cache, your Wi-Fi settings, your accounts, and all the apps installed, and then the phone becomes like new out of the box.

Manual reinstallation through APK-file

Some system applications, such as Google Camera, Browser or Theme Store, can be reinstalled manually if you find their installation file.This method does not work for all components, since system applications often have signatures other than the user's.

You need to find APK-file of the desired version corresponding to your version of Android and shell MIUI. Installing an older or newer version can lead to library conflicts, and the source of the files must be verified repositories, such as APKMirror or the official Xiaomi forum.

To install, follow the following steps:

  1. Download. APK-file.
  2. When you try to open a file, the system will request permission to install from unknown sources.
  3. Allow installation for your browser or file manager.
  4. Wait until the installation is completed on top of the existing version.

⚠️ Note: When manually installing system components, make sure you download the file specifically for your CPU architecture (usually arm64-v8a) regional version of the firmware (Global, China, EEA).

If the system says "Application not installed", it means that the signature of the application does not match the one already in the system, in which case only a complete reset or use of ADB with a replacement flag will help.

πŸ’‘

Use the App Inspector or Package Name Viewer app to know exactly the name of the package and the version of the installed system component before searching for the APK.

Problems with system component updates

Often users want to reinstall an app because it has stopped updating or has stalled while downloading. In the Xiaomi ecosystem, System Apps Updater is responsible for updating system components.

If you see bugs when you update, try clearing the updater itself. Go to the application settings, find System Component Update (or Security Center, which often combines these features), and click Clear Data, which will reset the update queue and allow you to download them again.

Sometimes the problem is that you've changed region in your phone settings (e.g., China to Global), some system applications may stop receiving updates, return the region to its original state, or wait for the universal patch to come out.

In cases where the standard app store cannot update the component, you can use the built-in update mechanism via the About Phone menu. Click on the MIUI version several times to open the hidden menu, and select Download the package again.

FAQ: Frequently Asked Questions

Can I remove Xiaomi system applications without root rights?
Yes, this is possible with the ADB pm uninstall -k --user 0 command. The application will disappear from the menu and stop working, but will physically remain in the system partition, making it easy to restore it if necessary.
What if after removing the application, the phone went into a bootloop?
You need to go to Recovery mode (Loudness Up). + Power and do a data reset (Wipe Data). If this does not help, you will need to flash the device through the Fastboot with complete data erasure.
Is it safe to remove Mi Video and Mi Music?
Yes, removing the standard Mi Video and Mi Music players is safe for the system to work, and you can always replace them with third-party counterparts from Google Play or install them again through a reset.
How to find out the exact name of the package for ADB?
Use the adb shell pm list packages to output all packets or the adb shell dumpsys package for details, and third-party identifiers from the Play Market will also help.

πŸ’‘

The safest way to β€œreinstall” is to clean up the data through settings or use ADB to return a packet remote to the user, rather than a complete phone reset.