Have you ever looked into your Xiaomi storage settings and noticed strange files with extensions like.apk,.zip, or folders called downloaded_rom? These are the very install packages β the invisible but critical components that are responsible for updating firmware, installing apps, and even restoring your system after a crash. Without them, your smartphone wouldn't be able to get fresh features. MIUI Or return to work after a failed experiment with custom firmware.
In this article, we will understand what is the installation packages in Xiaomi in practice: from standard APK-application files before the brand OTA-You will learn where they are stored, whether they can be removed (and when it is dangerous), how to manually update the system through such a package, and why sometimes the smartphone refuses to "see" it. /cache and /data/ota_package, which MIUI creates updates for temporary files β their content often causes errors when installing firmware.
What are installation packages and why do they need them
An installation package is a data archive that contains everything you need to add new software to your device. In the context of Xiaomi, it could be:
- π¦ APK-File β installation package for Android application (for example, com.xiaomi.miui.gallery_12.5.3.apk).
- π OTA-Update β archive with incremental changes to transition to the new version MIUI (for example, miui_HMNote10Pro_V13.0.4.0.SKFMIXM_...zip).
- π οΈ Fastboot firmware β a complete system image for recovery or manual firmware via PC (extension.tgz or.zip).
- π§ Recovery firmware β a package for installation through stock or custom recovery (for example, miui_LMI_V14.0.1.0.TJKMIXM_...zip).
Each package type has a different purpose, such as APKs used to install applications from third-party sources (bypassing Google Play), and OTAs for βupdating over the airβ without losing data, and Fastboot firmware is useful if the smartphone stopped loading or needs to roll back on the previous version of MIUI.
It is important to understand that Xiaomi is actively using install packages not only for system updates, but also for modular components. For example, files with the.mpk extension can contain regional settings (languages, fonts), and.skr - data for the operation of Mi Cloud or Mi Pay services.
Where to store installation packages in Xiaomi
The installation package files are scattered across different folders of internal memory and system partition, and their location depends on the type of package and the way they are downloaded:
| Package type | Storage folder | Examples of files |
|---|---|---|
| APK-file | /storage/emulated/0/Download//data/app/ (system) | com.tencent.mm_8.0.30.apkmiui_calculator_latest.apk |
| OTA-update | /cache//data/ota_package/ | update.zipmiui_OTA_V13.0.5.0_... |
| Fastboot firmware | /storage/emulated/0/downloaded_rom/ | lmi_global_images_V14.0.1.0_... |
| Temporary files | /data/local/tmp/ | temp_ota_update.zip |
The most problematic folder is /cache. It clears when you reboot, but if the update is interrupted, there may be incomplete files that block subsequent installation attempts. For example, if you see a bug called "Cannot verify update" in MIUI Updater, check the contents of this folder through Root Explorer or ADB.
β οΈ Attention: Folder /data/ota_package/ It is created automatically by the system when downloaded OTA-You don't recommend manually removing it, it can cause the update process to fail. If the folder takes up a lot of space, wait until the installation is complete or cancel the update via Settings. β The phone. β Updating the system.
To access hidden folders (for example, /cache) You will need root rights or commands ADB. Without them, you will only see custom directories like Download or downloaded_rom. The latter, by the way, appears only after manual loading of the firmware through MIUI bootloader or official Xiaomi website.
π‘
If you downloaded firmware through the browser, but the smartphone does not βseeβ it in MIUI Updater, move the file to the folder downloaded_rom and rename it in update.zip. This often solves the problem of packet recognition.
Can installation packages be removed?
The answer depends on the type of package and its status:
- β APK-Download files can be deleted without consequences β they are just downloaded installation files.
- β οΈ OTA-update /cache or /data/ota_package It's best not to touch them if the update hasn't been installed yet.
- β Fastboot firmware in downloaded_rom You should not remove them if you're planning to stitch the device, they weigh a few gigabytes, but they're critical for recovery.
- π Temporary files in /data/local/tmp They can be cleaned β they are created for one-time operations.
You should be especially careful with /system/priv-app, which stores system APKs (e.g. MiuiSystemUI.apk) and remove them without root and knowing the consequences will lead to MIUI failure. Even if you use ADB for cleaning, always backup:
adb backup -apk -shared -all -f backup.abIf you have deleted an important package (for example, OTA-Update during installation, the smartphone can:
- Hang on to the MI logo when rebooting.
- I have a "Installation failed" error in MIUI Updater.
- Automatically download the package again, consuming traffic.
What if the smartphone does not turn on after removing the package?
How to manually install the update package on Xiaomi
If you automatically update via Settings β About Phone β System Update doesnβt work, you can install firmware manually.
- Download the right package for your model (check in Settings β About Phone β MIUI version).
- Move the file to the root memory folder or to downloaded_rom.
- Use one of the installation methods:
Download the firmware from the official Xiaomi website
Verify version compatibility (e.g. V13.0.5.0.SKFMIXM for Redmi Note 10 Pro)
Charge your phone at least 50%
Backup data (via Settings β Additional β Backup)
-->
Method 1: MIUI Updater (for OTA)
If you have a zip file OTA-update:
- Rename the file to update.zip.
- Move it to the folder. downloaded_rom.
- Open Settings β About the phone β System update.
- Click on the three dots in the upper right corner β Select the update file.
- Confirm the installation and wait for the reboot.
Method 2: Through Recovery (for custom or stock firmware)
If the package is intended to be installed through recovery:
- Turn off the phone.
- Press Volume Up + Power to enter Recovery Mode.
- Choose a language (if required).
- Go to Install update.zip to System.
- Confirm the installation and wait for completion.
β οΈ Note: If you install custom firmware (e.g. Pixel Experience or LineageOS), pre-unlock the bootloader via fastboot oem unlock. Without this, the phone will refuse to be flashed, giving an error "Device is locked".
Fastboot firmware requires a PC with Mi Flash Tool drivers installed. The process is more complex and risky - if you make a mistake, the device can turn into a "brick." For detailed instructions for your model, look for the XDA Developers or 4PDA forums.
Errors in working with installation packages and their solutions
Even with official packages, Xiaomi users often encounter errors, and here are the most common ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Cannot verify update | A damaged file or model mismatch | Download the package again, check the model name in Settings β About the phone |
| Installation failed | Not enough space in /cache or /data | Clear cache with Recovery (Wipe β Cache) |
| Device is locked | The bootloader is not unlocked for custom firmware | Unlock via fastboot oem unlock (Mi Account required) |
| Update.zip not found | The file is in the wrong folder or the wrong name | Move to downloaded_rom and rename update.zip |
If an error occurs during installation OTA-Update, try it out:
- Clear /cache folder through Recovery.
- Disable VPN or proxy (they can block the check of the signature of the package).
- Install the update via Fastboot if the OTA persists.
For errors with Fastboot firmware, check:
- π Cable connection (it is better to use the original cable) USB Type-C).
- π₯οΈ Mi Flash Tool (new models require the latest version).
- π The path to the firmware folder (there should be no Cyrillic symbols).
π‘
If the smartphone after a failed firmware does not turn on, but reacts to charging (the indicator burns), try to log into Fastboot Mode (Loudness down). + Power, and rewire the device, which is 90 percent effective.
How to Back Up Installation Packages
Backing up installation packages is useful if you:
- π You often experiment with firmware.
- π± Keep the rare versions MIUI (for example).
- π§ Supports several Xiaomi devices.
Backup methods:
Method 1: Copying on a PC
Just connect your phone to your computer and copy the folders:
- /storage/emulated/0/downloaded_rom/ (firmware).
- /storage/emulated/0/Download/ (APK and OTA).
Method 2: Through ADB
To copy system packages (e.g. from /cache):
adb pull /cache/update.zip C:\Backup\Method 3: Using TWRP
If you have a custom recovery TWRP installed:
- Go to TWRP (Loudness Up + Nutrition).
- Choose Backup β Select Storage.
- Tag System Image and Boot to save critical sections.
β οΈ Attention: Backup through TWRP It doesn't save the service packs as they originally were. It creates a partition image that can only be restored through the same recovery. Use the first or second method to store the original firmware zip files.
Store backups in the cloud (like Google Drive or Mi Cloud) or on an external drive, which will save you from losing data when you reset your phone to factory settings.