You delete photos regularly, you clean up your app cache, and Xiaomi still runs out of memory? It's not just your files. Modern smartphones hide tens of gigabytes of system data that you don't see in a standard file manager. It's backups, log files, updates, cache. MIUI And even the garbage from remote applications that stays on the system for years.
In this article, we will take a closer look at all types of hidden files that occupy memory in Xiaomi, from obvious (cache and updates) to non-obvious (data). MIUI Cloud, temporary recovery files, even firmware residues, and you'll learn which ones you can safely remove and which you shouldn't touch to keep the system from breaking. ADB power-user.
Spoiler: In some cases, you can free up to 10 to 15 GB of memory in 5 minutes, without root rights and complex manipulations, and let's start with the most innocuous, but voluminous.
1. Application cache and system cache MIUI: Why is it not visible in the settings?
Cache is a temporary file that creates applications and the system itself to speed up work. At Xiaomi, cache is divided into two types:
- π± Custom cache β application data (for example, uploaded pictures in Telegram or videos in TikTok) can be manually cleared in Settings β Annexes β Application management β Warehouse.
- π οΈ System cache MIUI β Hidden shell files that are not displayed in the standard manager can take anywhere from 500 MB to 3-4 GB, depending on the firmware version.
The problem is that even after cleaning the cache through the settings, some files remain in folders. /data/dalvik-cache and /cache. These folders are not available without root rights, but they can be cleared through recovery mode:
- Turn off your smartphone.
- Press Power + Volume Up to Enter Recovery Mode.
- Choose Wipe & Reset β Wipe Cache (not to be confused with Wipe Data) is a factory reset!).
- Reset the device.
π‘
If the applications are slower after cleaning the cache, it is normal, and the system will restore the necessary files in 1-2 days of use.
For advanced users, there is a way to clean through ADB (data-free):
adb shell
su
rm -rf /data/dalvik-cache/*
rm -rf /cache/*β οΈ Note: Do not manually delete files from the folder /system β This can lead to a "brick" of the device (completely inoperable). /cache and /data/dalvik-cache safe to clean.
2. Updates MIUI: Why do they take up space even after installation?
Every firmware update MIUI It weighs between 1.5GB and 3GB. Once installed, the system must remove the installation package, but often it doesn't:
- π /data/ota_package β Updates that are downloaded but not installed.
- π /cache/ota β temporary files of the update process.
How to check and clean:
- Open Explorer (or any file manager with access to root folders, for example) FX File Explorer).
- Move to the /data/ota_package β If you have files with the.zip extension, you can delete them.
- In a file. /cache/ota Delete all contents (if the folder exists).
If the update is βhangingβ during the booting phase, try:
adb shell pm clear com.android.updaterThis command will reset System Update settings and delete downloaded but not installed files.
| Type of update files | Size (example) | Can I remove it? |
|---|---|---|
| Installation package (.zip) | 1.5-3 GB | Yes, after installation. |
| Temporary files (/cache/ota) | 200-500 MB | Yeah, anytime. |
| Log files updates | 10β50 MB | Yeah, not critical. |
| Backup before updating | up to 1GB | No, it's for a kickback. |
Backup copies MIUI Cloud and Local Backups: Where They Hide
Xiaomi automatically backs up data, even if you didn't manually enable it, which can take up to 5 to 10 GB and is stored in three locations:
- βοΈ MIUI Cloud - Cloud copies (photos, contacts, notes) can be deleted through Settings β Xiaomi account β MI Cloud β Storage management.
- π± Local backups -- folder /MIUI/backup/AllBackup. Here are stored copies of applications, SMS and call logs.
- π Backups before reset - folder /data/miui/backup (hidden, available only through root or ADB).
To clean up local backups:
- Open the Explorer and go to /MIUI/backup/AllBackup.
- Delete the date folders (for example, 2023-10-15).
- If the AllBackup folder is missing, check it out. /MIUI/backup β Sometimes backups are there.
To remove hidden backups through ADB:
adb shell
su
rm -rf /data/miui/backup/*β οΈ Warning: If you plan to reset your smartphone to factory settings, donβt remove backups in the last 7 days β the system can use them to recover from a reset.
What happens if you remove all the backups?
4 Log files and error dumps: why they can not be deleted
Xiaomi maintains detailed logs that help developers debug errors, and these files are stored in:
- π /data/log β basic MIUI (size 1 GB).
- π /data/anr β application error dump (ANR β Application Not Responding).
- π /data/tombstones β Logic of critical failures (required for the diagnosis of "outages" of the system).
You can remove logs, but with caution:
- β Safe: Files are older 30 day-to-day /data/log.
- β οΈ Careful: dumps in /data/tombstones β It is better not to touch them if the smartphone is unstable.
- β Cannot: delete files in /data/anr, If you are waiting for a response from Xiaomi support for a bug.
For cleaning through ADB:
adb shell
su
Delete logs older than 30 days
find /data/log -type f -mtime +30 -delete
Clearing the log cache (safe)
rm -rf /data/log/*.log.bakIf you notice that the smartphone has become more often overheated or βlay downβ, check the folder size. /data/log. Sometimes, due to errors in the firmware, logs grow to 5β7 GB for a few days.
βοΈ How to Safely Clean Logs
5 Remnants of Remote Applications: Why They Stay in the System
When you delete an app on Xiaomi, the system doesn't always clean all the files associated with it.
- ποΈ Cache and folder data /data/data/[package_name] and /data/app-lib/[package_name].
- π Settings files in /data/system/package_cache.
- π Symbolic references to /data/app (Sometimes there are βbrokenβ links).
To find and remove the remains:
- Install the App Inspector (a package analysis app) and find the name of the remote application package (e.g. com.facebook.katana for Facebook).
- Through a root access guide or ADB check the folders: /data/data/[package_name] /data/app-lib/[package_name] /data/system/package_cache
- Delete the found folders and files.
For automation, you can use the command:
adb shell pm uninstall -k [package_name]Flag. -k It saves cache and data, but if it is removed (adb shell pm uninstall) [package_name]), The system will delete everything, including residual files.
β οΈ Note: Do not delete folders called com.android., com.xiaomi. or com.google.* are system applications without which to use. MIUI won't work.
6.Temporary recovery and firmware files: where to look for "junk" after updates
When you update your firmware or reset it through Recovery, the system creates temporary files that are often not automatically deleted, which can take up to 2-3 GB and are stored in:
- π§ /cache/recovery β Logs and temporary files Recovery Mode.
- π¦ /data/lineageos_updates (in some firmware) - the remains of custom firmware.
- ποΈ /data/media/0/MIUI/extra β Additional firmware files (e.g. localization).
How to clean:
- Go to Recovery Mode (Power buttons) + Loudness up).
- Choose Advanced β File Manager (if your recovery supports file manager, for example) TWRP).
- Delete the contents of the folders /cache/recovery and /data/lineageos_updates (if there are).
For users with ADB:
adb shell
su
rm -rf /cache/recovery/*
rm -rf /data/lineageos_updates/*If youβve ever installed custom firmware (like LineageOS or Pixel Experience), check the folder. /data/media/0/MIUI/extra. This may contain outdated localization files or Magisk modules that are no longer in use.
π‘
Temporary recovery files are only safe to delete unless you plan to roll back firmware or restore data through TWRP.
7 System applications and their data: what can be turned off without root
MIUI It defaults to install dozens of system applications that many users don't use, and they take up space not only by themselves, but also by their data:
- π΅ Mi Music and Mi Video β weigh 50β100MB, plus cash.
- π° Mi Browser β can accumulate up to 500 MB of cache.
- π‘ Mi Remote β if you donβt use the remote, you can turn it off.
How to disable (do not delete!) unnecessary system applications:
- Go to Settings β Applications β Application Management.
- Select an unneeded app (such as Mi Browser).
- Click Disable (not βDeleteβ as it is system software).
- Confirm the action. The app will disappear from the menu and stop updating.
To completely remove system applications, root rights or ADB:
adb shell
pm uninstall -k --user 0 [package_name]Replace. [package_name] to the package name (e.g. com.miui.videoplayer for Mi Video). --user 0 removes the application only for the current user without affecting the system.
| Annex | Packet name | Can I turn it off? | Saving memory |
|---|---|---|---|
| Mi Browser | com.android.browser | Yes. | up to 500MB |
| Mi Music | com.miui.player | Yes. | up to 200 MB |
| Mi Remote | com.duokan.phone.remotecontroller | Yes. | up to 100MB |
| GetApps (Xiaomi store) | com.xiaomi.mipicks | No (critical for updates) | β |