Xiaomi, Redmi and Poco smartphone owners often notice that the device’s memory is gradually filled with system debris. One source of such debris is the update log, which stores information about all previously installed versions of MIUI or HyperOS. This log can take from a few megabytes to hundreds of megabytes, especially if you have often updated through Recovery or installed different versions of the firmware manually.
Deleting this data does not affect the stability of the operating system, but it requires caution when performing operations with system files. In this article, we will discuss safe ways to clean up update history without losing personal data. You will learn to use built-in cleaning tools and advanced methods through the computer.
Before you start taking action, it is important to understand the difference between the firmware installation file itself and the history log. Update log is a database that contains entries about versions, dates, and installation statuses. Cleaning this database is useful in preparing a device for sale or in fixing the display errors of the current version of software.
Important: cleaning the log does not roll back the system to the previous version, but only deletes the record of actions taken. If your goal is to make space, first of all, you should check the download folder, where often there are heavy archives with firmware. Next, we will consider a step-by-step algorithm for actions for different use cases.
Space analysis and preparation
The first step is always to diagnose, and you don't have to blindly delete files without knowing what's taking up space. MIUI-based Android stores logs in secure partitions that are restricted by user rights, but you can estimate the amount of data through the standard settings menu.
Go to Settings → Memory and analyze the usage schedule. If the category “Other” or “System files” takes up an abnormally large amount of space, this may be a sign of a sprawling log, and it is worth checking for files with the.zip extension at the root of internal memory that may have been left over from previous updates.
For accurate assessment, you can use third-party disk space analyzers such as DiskUsage or Files by Google. These applications visualize the structure of folders and help find hidden caches. Before starting any manipulation, be sure to back up important contacts and photos.
⚠️ Note: Do not delete files with names that contain "updater" or "miui" unless you are sure of their origin.
Preparation of the device also involves charging the battery to a minimum of 60%. The process of cleaning the system cache can be resource-intensive, and a sudden power outage while working with system databases can be fraught with software failures.
- 📱 Charge your smartphone to level 60-80%.
- 💾 Backup important data to the cloud or PC.
- 📶 Turn off Wi-Fi and mobile data transmission.
- 🔍 Install a file manager with access to system folders (if necessary).
Cleaning through built-in system settings
The safest and easiest way to remove some of the temporary files associated with updates is to use regular cleanups. The MIUI and HyperOS shells have a built-in Security app that can clean the cache of system components. This won't delete the log itself completely, but will free up space from temporary files.
Open the Security → Cleanup app. The system will scan and suggest removing debris. Click on the Cleanup button. Then go to Settings → Apps → All apps, find the listing “Component Update” or “System Update.”
From the app menu, select Memory and click Clear Cache. Don't confuse it with Clear Everything, as the latter may reset the updater itself, sometimes resulting in rechecking and downloading the updates already installed.
💡
If the Clear Cache button is inactive, try first clicking Stop in the app menu and then re-entering the memory section.
This method is effective for removing temporary archives and installation logs, but does not affect the deep version history stored in the system database. For deeper cleaning, you will need debugging rights or root access, which we will talk about in the next sections.
Use of engineering menus and codes
Some versions of Xiaomi firmware have hidden menus available through a set of special codes in the Phone app, which allow you to access hardware testing and reset some meters. However, the functionality of the code ##6484## (CIT) or #4636## varies from model to model.
Try entering ##64663## (if supported by your model) to enter the extended menu, and you can find Version Information or something similar here, and there are rare cases where you can reset your update counters, but most of the time it's just a viewing menu.
A more effective method is to reset the update application settings via ADB (Android Debug Bridge), which requires a computer connection, which allows you to execute a command that is not available through the interface:
adb shell pm clear com.android.updaterThis command completely cleans the system update data, including history logs and temporary files. The device must be connected via USB, and the smartphone screen must confirm the debugging permission. Once the command is completed, the update log will be empty, like on a new device.
- 💻 Install the drivers. ADB computer.
- 🔌 Turn on "Debugging by" USB» menu "For developers».
- 🖥️ Execute the cleaning command through the console.
- ✅ Reboot your smartphone to apply changes.
Delete History through File Manager
For users who don’t want to connect their smartphone to a PC, there is a method of cleaning through file managers with access to root folders (root required) or through dedicated explorers who can work with system directories to bypass restrictions (for example, by backing up an application and editing it, but it’s difficult).
Use a file manager, such as MT Manager or a standard explorer with hidden file display enabled. Go to /data/data/com.android.updater/. Access is only possible with superuser rights (Root).
Inside the folder, look for files with the.db or.sqlite extension that may contain a history database. /download/rom/ It's at the root of the internal memory. downloaded_rom.zip, which occupy gigabytes of space and are part of the "magazine" in a broad sense.
⚠️ Attention: Directly delete files from the folder /data/ You can't get around this through vulnerabilities, you can lock the bootloader or you can lose your warranty.
If you find firmware files in the download pack, you can delete them after a successful installation. They are no longer needed by the system. To delete system logs without root rights, sometimes cleaning the cache through Recovery Mode helps.
Cleaning through Recovery Mode
Recovery is a powerful tool built into every Xiaomi smartphone that allows you to clean partitions without loading the main operating system, a method that is safe for personal data, unless you choose the option of a full reset (Wipe All Data).
To enter Recovery mode, turn off your smartphone completely. Then press the Up Volume and Power buttons simultaneously. Hold them until the Mi logo or Recovery menu appears. From the menu that appears, select a language (usually English or Chinese) and find Wipe Data.
It's important to choose Wipe Cache, not Wipe All Data. Cache cleaning will delete temporary system files, including remnants from the update process, but save your photos, contacts and applications. Confirm the action and wait for the process to be completed.
☑️ Recovery login algorithm
Once the cache is cleared, the system will suggest restarting. The first run may take longer than usual, as Android will recreate the cache of applications. This is normal behavior that requires no intervention.
Working with logs through ADB for advanced
For those who want to have complete control of the process, there is a method of clearing specific log files through the ADB command line. This method requires minimal technical knowledge but provides guaranteed results. It allows you to delete the text logs of updates without touching the installer database.
Connect your phone to your PC, open the command line in the ADB folder, and enter a command to view the logo:
adb logcat | grep updaterThis will show the active processes. You can use the counter reset command to clean up the history if it is supported by a specific version of MIUI:
adb shell settings put global otas_over_ride_count 0It is also useful to clear the package manager logs that fixes the installation of applications and updates:
adb shell pm trim-caches 999999999This command forcibly removes the cache of all applications, freeing up significant space, and be careful that once it is executed, applications can run a little longer on the first start.
- 🔍 Use the Grep filter to find specific errors.
- 🗑️ Trim-caches command is secure for user data.
- ⚙️ Requires the included debugging on USB.
- 📉 Effectively frees up space in the "System" section».
Comparison of cleaning methods
To make it easier for you to choose the right way, we have organized the information in a table, each method has its advantages and risks, and for the average user, the best combination would be a regular cleaning and manual removal of files from the download folder.
| Method | Difficulty | Efficiency | Risk of data loss |
|---|---|---|---|
| Settings (Cash) | Low. | Medium | No. |
| Delete ZIP files | Low. | High (in place) | No. |
| Recovery (Wipe Cache) | Medium | Tall. | No (unless you get it wrong) |
| ADB (Data Cleanup) | Tall. | Maximum | Low. |
| Root + File Manager | Maximum | Maximum | High-pitched |
As you can see from the table, using ADB or Recovery is the best thing, but it requires more care. If you're not confident, just stick to the first two methods. They solve 90 percent of the space shortage problems caused by upgrades.
Why is the update journal growing?
Frequently Asked Questions (FAQ)
Is it safe to delete the file? downloaded_rom.zip?
Will the warranty be reset after cleaning the journal through ADB?
Will my apps be gone after Wipe Cache?
Why do you even need an update log?
💡
Regularly cleaning up the download folder from old firmware is the most effective way to keep order in Xiaomi memory without risking the system.