How to install a system application on Xiaomi: 5 proven ways

Installing system applications on Xiaomi smartphones is a challenge faced by users who want to expand the functionality of the device or restore services deleted by mistake. APK-Files, system applications are integrated into firmware MIUI At the core level, which requires special installation techniques, without the right approach, such manipulations can cause phone malfunctions, load cycles, or even a "brick" (complete inoperability).

In this article, we will discuss 5 working methods of installing system applications - from simple (through the ADB) advanced (using custom recavator) TWRP). Particular attention will be paid to device preparation, data backup and solving typical errors, such as: INSTALL_FAILED_INVALID_APK or INSTALL_PARSE_FAILED_MANIFEST_MALFORMED. The instructions are relevant for all modern models Xiaomi, Redmi and POCO base MIUI 12–14 HyperOS.

1. Preparation of Xiaomi smartphone for installation of system applications

Before you start manipulating system files, you need to follow a few critical steps, and neglecting them can lead to data loss or inability to boot the device.

First, unlock the bootloader if it is blocked. On new Xiaomi devices, this feature is disabled by default to protect against unauthorized changes. Unlocking takes up to 7 days (due to Xiaomi's security policy) and requires you to link your Mi Account to the device. Detailed instructions are available at en.miui.com/unlock.

  • πŸ”§ Put the debugging on. USB: Go to Settings. β†’ The phone. β†’ Version. MIUI (Press 7 times to activate Developer Mode, then in Settings β†’ Additionally. β†’ For developers β†’ Debugging by USB.
  • πŸ“± Activate. OEM-Unlock: in the same menu "For developers" find the item Unlock OEM and turn it on.
  • πŸ”„ Create a backup: Use the built-in tool MIUI (Settings β†’ System system β†’ Backups or third-party utilities like Titanium Backup (requires root).
  • πŸ’Ύ Check the free space: to install the system APK will be required 500 MB of free space in the section /system.

If you plan to use TWRP or fastboot, download the official Xiaomi drivers for your model in advance from MIUI Downloads. To work with ADB, install Google’s Platform Tools (available at developer.android.com).

⚠️ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi Note 13 Pro)+) Some system applications may depend on new libraries. APK older versions MIUI It's going to crash services. Always check file compatibility!

Method 1: Installation via ADB (without root)

The most secure method that does not require superuser rights is to install the system APK via ADB (Android Debug Bridge), which is suitable for restoring remote applications (for example, Mi Video, Mi Browser) or adding modified versions (for example, Google Camera for Xiaomi).

For this:

  1. Connect your smartphone to your PC via USB (select File Transfer mode).
  2. Open the command line in the folder with platform-tools and execute: adb devices Make sure that the device is determined (should appear its serial number).
  3. Download the system APK (for example, from the APKMirror site) and place it in the folder with the platform-tools.
  4. Follow the installation command: adb install -r -t --fastdeploy name file.apk Flag -r replaces an existing application, -t allows you to test without a signature.

If there is a mistake INSTALL_FAILED_INVALID_APK, check:

  • πŸ“Œ Compatibility APK with the Android version (for example, the Android 12 app will not install on Android 13).
  • πŸ” File integrity (damaged) APK never set).
  • πŸ”’ Availability of a signature (systemic) APK Must be signed with the Xiaomi key).

πŸ’‘

If ADB doesn’t see the device, try reinstalling drivers manually through Windows Device Manager (select β€œUpdate Driver” β†’ β€œFollow Driver Search on This Computer” β†’ specify the folder with the platform-tools).

Method 2: Installation via TWRP (requires an unlocked bootloader)

TWRP Castom Recovery allows you to install system applications directly into the /system partition, which ensures that they are safe after resetting. This method is suitable for advanced users, as it requires unlocking the bootloader and potentially risks system stability.

Step-by-step:

  1. Install TWRP for your model via fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
  2. In TWRP, go to Mount β†’ System and connect your smartphone to your PC.
  3. Copy. APK-file /system/priv-app (for system applications) or /system/app (user-friendly).
  4. Set the correct permissions for the file: chmod 644 /system/priv-app/folder name/name.apk
  5. Reset the device.
Folder in /systemType of applicationExamples
/system/priv-appPrivileged System Applications (have extended rights)MiuiSystemUI, Settings, PhoneServices
/system/appConventional system applicationsMiBrowser, MiVideo, Calendar
/system/product/appApplications dependent on the manufacturerGoogle Play Services (on some firmware)

⚠️ Note: Incorrect file permissions in /system This will cause a Parse error when you start the application. TWRP or -l into ADB Shell.

Download TWRP forecast|Unlock the loader|Make a Nandroid backup|Check compatibility APK version MIUI|Establish the correct permissions (644) APK, 755 for folders)-->

Method 3: Using Magisk (for root users)

If your Xiaomi has Magisk installed, you can install system applications through modules, a method safer than direct intervention in /system, as changes are applied in a separate layer (overlay) and easily rolled back.

Algorithm of action:

  1. Download the Magisk Module template from GitHub.
  2. Place it. APK-file system/app or system/priv-app inside the module archive.
  3. Create a module.prop file with the following parameters: id=custom_app_install name=Installation of the system application version=1.0 versionCode=1 author=Your name is description=Installation module [application name]
  4. Go to Magisk, select Modules. β†’ Install from the storage and download the created ZIP-file.
  5. Reset the device.

Important: Magisk modules do not replace the original system files, but are superimposed on top of them, which means that when you remove the module, the application will disappear, but the original firmware files will remain intact.

ADB|TWRP|Magisk|Manual root-wire replacement |I do not install system APK-->

5. Method 4: Manual replacement through root conductor

For root-right users, the most straightforward way to replace files manually through a root-enabled explorer (such as Root Explorer or Solid Explorer) is to be careful, as a bug in the path or access rights can cause the system to fail.

Instructions:

  1. Open the root explorer and go to /system/priv-app or /system/app.
  2. Find the folder with the application you want to replace (e.g. MiBrowser).
  3. Remove the old APK (pre-replicate it!).
  4. Insert the new APK into the same folder.
  5. Set resolutions 644 for APK and 755 for folder.
  6. Reset the device.

Example of folder structure for system applications:

/system/priv-app/MiBrowser/




β”œβ”€β”€ MiBrowser.apk (644)




β”œβ”€β”€ oat/




β”‚   β”œβ”€β”€ arm/




β”‚   └── base.odex (644)




└── lib/




└── arm/




└── libmiui_browser.so (644)

⚠️ Attention: On some firmware MIUI folder /system mounted in read-only mode (ro). To change files, run in ADB Shell: su mount -o rw,remount /system After completion, return the ro mode with the mount command. -o ro,remount /system.

Method 5: Recovery via MIUI Fastboot (for "Bricks")

If the smartphone stopped booting after a failed installation of the system application (hang on the MI logo or went to bootloop), you can restore it through the MIUI Fastboot. This method reflashes the device without losing data (in most cases).

Procedure:

  1. Download the official firmware for your model from MIUI Downloads (select the Fastboot version).
  2. Unpack the archive in a folder with platform-tools.
  3. Transfer the smartphone to Fastboot mode (clip Volume down + Power).
  4. Connect the device to your PC and execute the command: fastboot flashall or (for new devices): fastboot update name firmware.zip

If flashall doesn’t work, manually run the sections:

fastboot flash boot boot.img


fastboot flash system system.img




fastboot flash vendor vendor.img




fastboot reboot

What if the fastboot can’t see the device?
1. Check the cable and USB port (try the USB 2.0 port on the back of your PC). 2. Install the drivers manually through Device Manager (select "Update Driver" β†’ "Select from List" β†’ "Android Bootloader Interface") 3. Disable the driver signature in Windows (click Win+X β†’ "Command Line (Administrator)" β†’ perform bcdedit /set nointegritychecks on and restart your PC). 4. Try another computer or OS (e. Linux).

7.Typical errors and their solutions

When installing system applications, users often encounter errors related to file incompatibility, access rights, or firmware corruption. Let’s consider the most common problems and how to fix them.

Mistake.Reason.Decision
INSTALL_FAILED_INVALID_APKDamaged or inappropriate APK-fileDownload the file again from a trusted source (e.g. APKMirror) and check compatibility with the Android version.
INSTALL_PARSE_FAILED_MANIFEST_MALFORMEDError in APK manifesto (e.g., incorrect signature)Use system APKs only from your Xiaomi model. For modified APKs (like Google Camera), look for versions with the correct signature.
Only system apps can be installed to /systemAttempt to install a user application in the system sectionUse adb install without the -s flag or put APK in /data/app.
Cyclical reboot (bootloop)Damage to system files when replacingLog in to TWRP, restore the backup or flash boot.img through fastboot.

If the application is installed but not running, check:

  • πŸ“‹ Logs of errors through ADB Logcat: adb logcat | grep -i "packet"
  • πŸ”§ Dependencies: Some Systematic APK Additional libraries are required in /system/lib.
  • πŸ”„ Cash Dalvik: Clean it up in TWRP (Wipe β†’ Advanced Wipe β†’ Dalvik Cache).

πŸ’‘

Before installing a system APK, always check its hash (MD5/SHA-1) for compliance with the original, which will protect you from corrupted or modified files that may contain malicious code.

8. Frequently Asked Questions (FAQ)

❓ Can I install a system application without unlocking the bootloader?
No, installing the /system partition requires an unlocked bootloader, but some applications (such as Google Services) can be installed as custom APKs with rights via Magisk or ADB.
❓ Why After Installation of Systems APK It disappears after the update. MIUI?
Primary OTA-Firmware update section /system To save the app, either disable automatic updates or use the Magisk module, which restores files after the update.
❓ How to know which system application can be safely removed?
The list of safe to remove system APKs depends on the model and version of MIUI. For example, on most devices you can remove MiBrowser, MiVideo, MiMusic, but it is strongly recommended not to touch MiuiSystemUI or PhoneServices.
❓ Can I return a remote system application without firmware?
Yes, if you have a backup (e.g., created via Titanium Backup or TWRP), you can also extract APK from the official firmware (system.img) using tools like MIUI System Extractor.
❓ Why the system application is not updated through Google Play?
The system APKs installed in /system are blocked by default for updates. To allow updates, move the application to /data/app or use the Magisk App Systemizer module, which creates symbolic links.