Xiaomiβs MIUI-based smartphones automatically download firmware updates in the background, even if you donβt install them. Over time, these files take up gigabytes of memory, slow down the device and can cause errors when installing new versions. Unlike iOS, where the system cleans the update cache itself, Android requires manual intervention for Redmi, POCO or Mi.
The problem is that the folder with updates (/cache or /data/ota_package) It is often hidden from the user, and standard cleaning tools (such as the built-in Optimizer) do not affect it. In this article, current ways to delete old update files without root rights and with them, including hidden methods for power users. We will also discuss why a simple deletion through a file manager can cause the next update to fail and how to avoid it.
Why Old Updates Take Place and How to Check
Every downloaded MIUI update is stored in the deviceβs memory as a backup. Even after installing the new version, files are not deleted automatically β the system stores them in case of rollback or re-installation. For example, the firmware for Xiaomi 12T weighs ~2.5 GB, and for POCO F5 up to 3 GB. If you havenβt cleaned the cache in years, 10+ GB of unnecessary files can accumulate in memory.
Check the occupied space can be as follows:
- π± Open the Settings. β Memory and see the "System" or "Other Files" section".
- π Use a file manager (such as Mi File Manager or Solid Explorer) and go to the folder. /data/ota_package (rooting).
- π οΈ Enter in. ADB Command: Adb shell du -sh /data/ota_package It will show the exact size of the folder with updates.
If the folder ota_package weighs more 1 GB, it's definitely worth cleaning. But be careful: deleting the active update file (with the.zip extension and current date) can interrupt the installation of the new firmware.
Method 1: Remove via built-in Optimizer (without root)
The safest, but least effective method is to use standard MIUI tools, which are suitable for beginners and do not require additional programs.
- π§ Open the Security app (shield icon).
- ποΈ Go to the Optimizer section β Cleaning up garbage.
- π Press Deep Cleanup and wait for analysis.
- β Select Update Files (if it is in the list) and confirm deletion.
The downside is that it only removes the bootloader cache, but not the firmware files themselves. Other methods will be needed to clean it completely.
π‘
If the Optimizer does not have Update Files, try updating the Security app first via Google Play. In newer versions of MIUI 14+, this section may be called System Garbage.
Method 2: Manually clean through file manager (with root rights)
To completely remove old updates, you need access to system folders. If you have root permissions (for example, through Magisk), follow this instruction:
Back up important data | Make sure the battery is charged >50% | Install a root-enabled file manager (e.g., Root Explorer) | Check if there is an active download of the update (Settings β About Phone β MIUI Update)
-->
Next:
- π Open the file manager and go to the root directory (/).
- π Find the folders: /data/ota_package β firmware-storage; /cache β loader; /sdcard/Download/rom β Backups of firmware (if you downloaded them manually).
.zip
.pkg
π Reset the device.
β οΈ Note: If you delete an active update file (for example, miui_HM2013011_23.4.12.zip), The system may give an error "Can't check the service pack" on the next install attempt. To avoid this, cancel downloading the current update to Settings before cleaning. β The phone. β Update MIUI.
Method 3: Cleaning through ADB (without root but with PC)
If you donβt have root rights, but you have a computer, you can use Android Debug Bridge (ADB), which works on all Xiaomi models, including the Redmi Note 12, POCO X5 and Mi 11.
You'll need:
- π» Computer with installed ADB Tools;
- π± Included debugging by USB (Settings β The phone. β Version. MIUI (press 7 times) β Additionally. β For developers β Debugging by USB);
- π Cable USB (preferably original).
Steps:
- Connect your smartphone to your PC and confirm access via USB.
- Open the command prompt (cmd) in the ADB folder and type: adb devices Make sure the device is defined.
- Follow the commands in turn: adb shell su (if there is root) rm -rf /data/ota_package/* rm -rf /cache/ota/* Without root, the second and third commands may not work β in this case, use the alternative: adb shell pm clear com.android.updater (this will clear the cache of the System Update application").
- Reboot your phone: adb reboot
What if the ADB canβt see the device?
Method 4: Resetting cache in Recovery Mode (for all models)
If previous methods didnβt work, try clearing the cache through Recovery mode.This wonβt delete personal data, but will reset temporary system files, including the update cache.
Instructions:
- π Turn off the phone.
- π Press the power button. + Volume upwards before the appearance of the Mi logo (on some models, for example) POCO F4, You need to keep the volume up. + Loudness down + Nutrition).
- π± In the Recovery menu (manage volume keys, select the power button) select Wipe & Reset β Wipe Cache.
- β Confirm the action and wait for the completion.
- π Restart the device (Reboot) β System).
β οΈ Note: On some firmware (for example, MIUI Global Stable) Wipe Cache may not be available. In this case, select Advanced β Wipe Dalvik Cache, but it's less effective at cleaning updates.
| Xiaomi model | Combination of buttons for Recovery | Notes |
|---|---|---|
| Redmi Note 10/11/12 | Food + Volume up | MIUI 13+ may require confirmation via Mi Account. |
| POCO X3/X4/X5 | Food + Volume up | English is available in Recovery (Language button). |
| Mi 11/12/13 | Food + Volume up | On flagships, resetting the cache can take up to 5 minutes. |
| Redmi 9/9A/9C | Food + Volume up + Volume down | On budget models, Recovery can be in Chinese. |
Method 5: Disabling Automatic Update Download
To prevent the problem from recurring, you can disable the background download of updates, which will not delete files that have already been downloaded, but will prevent them from accumulating in the future.
How to turn it off:
- π± Go to Settings. β The phone. β Update MIUI.
- π§ Click on the three dots in the upper right corner and select Settings.
- π« Disable options: Automatic download over Wi-Fi; Automatic installation; Roaming boot (if any).
β Save the changes.
Now, updates will only be downloaded after your explicit confirmation. To completely disable update checks, you can turn off the Internet for the com.android.updater app via Settings β Apps β Permissions Management β Data and Wi-Fi.
π‘
Disabling automatic updates does not block critical security patches. They will be installed manually through Settings β Update MIUI, but without background boot.
What to do if no updates are installed after cleaning
Sometimes, after you delete the old firmware files, the system will produce errors like "Can't check the service pack" or "Signature error" because of the corrupt metadata of the bootloader.
- π Reboot the device β often helps to reset the bootloader state.
- π₯ Download the firmware manually from the official Xiaomi website and install through Settings β Update MIUI β Three points. β Select a firmware file.
- π οΈ Reset the loader settings through ADB: adb shell cmd package bg-dexopt-job (requires reboot after execution).
- π§ Install custom Recovery (for example, TWRP), If the error is repeated, it will allow you to manually flash updates without checking the signature.
If none of the methods worked, the /cache system folder may be damaged, in which case only a complete reset (with loss of data) or flashing through Fastboot will help.