Cache Clearing on Xiaomi Mi 7: All the Ways for MIUI 12/14

Xiaomi Mi 7 is the legendary smartphone of 2018, which still remains relevant thanks to the powerful hardware and support for updates. However, over time, even this flagship begins to โ€œbrakeโ€ and the reason for this is a crowded cache. Unlike the new models, cleaning the cache on the Mi 7 requires a special approach: standard methods may not work due to the specifics of the MIUI firmware and the outdated version of Android.

In this article you will find 4 Proven methods of cleaning cache โ€“ from basic to advanced, including hidden settings MIUI We'll also look at why Mi is a team. 7 You can't clean the cache of the Security app through the standard menu (this causes sensor malfunctions), and we'll show you how to get around the restrictions without root rights. MIUI 12/14 Android-based 10/11.

Why Mi 7 is slowing down: cache vs junk files

Before cleaning the cache, itโ€™s important to understand what exactly slows down your Xiaomi Mi 7. Cache are temporary files that speed up apps, but over time they:

  • ๐Ÿ“ฑ Fragmentation โ€“ Takes up more space than you need.
  • ๐Ÿ”„ Conflicts โ€“ Older versions of cache interfere with new ones.
  • ๐Ÿšซ Block updates โ€“ some apps refuse to work without cleaning.

On the Mi 7, the problem is compounded by the system backing up to 1.5GB for the MIUI cache, which is not cleared by standard methods. For example, after updating the firmware through O TA, backups of up to 500MB are left in the /cache folder, which can only be removed manually.

The difference between cache and garbage:

Type of fileWhere it's storedCan I remove it?Effects of cleaning
Cash app./data/data/<package>/cacheYes.Applications will be loaded longer on the first run
Cash MIUI/cache, /system/cachePartially.Theme and font settings may be reset
Dalvik cache/data/dalvik-cacheOnly through TWRP.Requires restart, speeds up the system
Garbage files/download, /DCIM/.thumbnailsYes.Makes room for no consequences

โš ๏ธ Attention: On Mi 7s MIUI 12+ Cleaning the com.miui.securitycenter cache through Settings โ†’ The application causes the msa (Mi Service Framework) service to crash, which disables push notifications and synchronize your Xiaomi account. Use alternative methods from Section 3.

Method 1: Standard cleaning through MIUI settings

The safest method, but it only clears the cache of user applications without affecting system files.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Slip on the three dots in the upper right corner and select Sort by size.
  3. Select an app (such as Facebook or Google Play Store) โ†’ Storage โ†’ Clear cache.
  4. For mass cleaning: Settings โ†’ Memory โ†’ Cleanup โ†’ tick off unnecessary files.

Limitations of the method:

  • ๐Ÿšซ Does not clear the cache of system applications (e.g. com.android.systemui).
  • ๐Ÿšซ Does not remove Dalvik cache that takes up to 1GB on the Mi 7.
  • ๐Ÿšซ It doesn't touch the folder. /cache backup.

Clear the cache of user applications (YouTube, Chrome, etc.)

Delete downloaded files from the Download folder

Clean up your photo and video thumbnails (.thumbnails)

Delete temporary files from the folder /Android/data (like game cache)-->

Method 2: Hidden Menu of Engineering Settings (for MIUI 12/14)

The Xiaomi Mi 7 has a hidden deep cleaning menu that is not advertised in the official documentation, which allows you to remove the MIUI cache without root rights, but requires care.

How to open it:

1. Open the phone app.


2 Enter the code ##4636##




3. Select "Storage" (Storage).




4. Tap "Clear Cache" - this will delete temporary files of the system.

To clean the Dalvik cache (reboot required):

1 Enter the code ##7780##


2. Confirm the reset (this is NOT a factory reset, but only a Dalvik cache cleaner!).




3. After restarting the first 2-3 minutes of the phone will "brake" - this is normal (the system restores cache).

โš ๏ธ Note: ##7780### on some firmware MIUI 14 can cause Wi-Fi and Bluetooth settings to reset. Before using, save the network passwords in a text file.

What is Dalvik Cache and Why Should It Be Cleaned?
Dalvik cache is an optimized version of the apps created by the Android Virtual Machine (ART/Dalvik). On the Xiaomi Mi 7, because of the Snapdragon 845 processor, this cache fragments over time, causing delays in launching applications. Cleaning the Dalvik cache causes the system to reassemble it, which speeds up the phone by 15-20%.

Method 3: Cleaning through ADB (for advanced users)

If standard methods donโ€™t work, you can use Android Debug Bridge (ADB), a debugging tool that allows you to remove the cache of system applications without root. This is especially true for the Mi 7, where many features are blocked.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with Windows/Linux/macOS.
  • ๐Ÿ”Œ USB-cable (preferably original from Xiaomi).
  • ๐Ÿ“ฅ [ADB Tools](https://developer.android.com/studio/releases/platform-tools) (download and unpack).

Step-by-step:

  1. Turn on Settings โ†’ About Phone โ†’ MIUI version (tap 7 times to turn on the developer mode).
  2. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  3. Connect your phone to your PC and type in the command line (from the folder with ADB):
adb devices


adb shell pm list packages -f | grep cache

This command will show all applications with a large cache. To clear the cache of a particular application (for example, com.google.android.gms), type:

adb shell pm clear com.google.android.gms

For mass cleaning of cache of all applications (except system):

adb shell "su -c 'find /data/data -name 'cache' -exec rm -rf {} +'"

1. Reinstall Xiaomi drivers (download from [official website](https://new.c.mi.com/global/miuidownload/index)).

2. Use a USB 2.0 port (USB 3.0 is sometimes in conflict with ADB).

3. Enable the option "Cancel debugging authorization" in the developer settings USB" reconnect the cable.-->

Method 4: Manually clean through file manager (with root rights)

If you have Magisk or another root manager installed, you can manually remove the cache that is not cleaned by standard methods, which is risky, but it has the maximum effect.

What folders can be cleaned:

folderWhat it keeps.Can I remove it?
/cacheCache of MIUI updates, backupsYes (releases up to 1GB)
/data/dalvik-cacheOptimized application codeYeah (reboots required)
/data/system/package_cacheCash installed by APKYes (accelerates the installation of updates)
/data/logLogs of the system (can weigh up to 500 MB)Yes (but there may be missing error logs for diagnosis)

How to clean:

  1. Install a file manager with root support (such as Solid Explorer or FX File Explorer).
  2. Go to the root directory (/) and find the folders from the table above.
  3. Delete the contents of the folders (not the folders themselves!).
  4. Reboot the phone.

โš ๏ธ Note: Removing files from /data/dalvik-cache on Mi 7 s MIUI 14 This can lead to a reboot cycle if modified Magisk modules are installed in the system.

๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when the phone starts to brake
Never cleaned.
I don't know what cache is.

What if the Mi 7 cache is cleaned and it gets worse?

In rare cases, deep cache cleaning can cause the system to malfunction, and here are the typical problems and solutions:

Problem 1: Applications are constantly being rebooted.

  • ๐Ÿ”„ Restart your phone โ€“ the system will recover critical cache files.
  • ๐Ÿ“ฅ Reinstall problem applications.

Problem 2: The theme or fonts are missing.

  • ๐ŸŽจ Go to Settings. โ†’ Topics and Apply Themes Again.
  • ๐Ÿ” If the themes are not loaded, clear the cache of the com.android.thememanager app through ADB.

Problem 3: Notifications from Xiaomi (Mi Push) are not working.

  • ๐Ÿ”” Go to Settings. โ†’ Notifications โ†’ Notification settings and enable Mi Push Service.
  • ๐Ÿ“ฑ If it doesn't help, do it in ADB:
adb shell pm clear com.xiaomi.xmsf


adb shell pm clear com.miui.securitycenter

๐Ÿ’ก

If after cleaning the cache, the phone began to warm or discharge quickly, check the activity of processes through the application "Battery and Performance" in MIUI. Perhaps the system restores the cache in the background - this is normal in the first hours after cleaning.

FAQ: Frequent questions about cleaning cache on Xiaomi Mi 7

Can I clear the Security app cache on Mi 7?
No! On MIUI 12/14, this causes a crash of the msa service, which is responsible for push notifications and synchronizing Xiaomi account. Instead: Clear the cache via ADB: adb shell pm clear com.miui.securitycenter --user 0. Or use the engineering menu (#4636##).
How much space should be freed up after cleaning the cache?
Depends on the degree of pollution: ๐Ÿ“ฑ User cache (applications): 500 MB โ€” 2 GB. ๐Ÿ”ง System cache MIUI: before 1.5 GB (daddy) /cache). ๐Ÿ—‘๏ธ Dalvik cache: 800 MB โ€” 1.2 GB, if less is available. 300 MB โ€“ the cache was clean or you missed the system folders.
Do I need to clear the cache before selling the phone?
You have to! But it's not enough to just clear the cache, complete the reset: Settings โ†’ About Phone โ†’ Settings Reset. Choose Clear Everything (including internal memory). After the reset, go to Settings โ†’ Accounts and delete your Xiaomi account. This will delete all data, including cache, accounts and files.
Why do games (PUBG, Genshin Impact) take a long time to load after cleaning the cache?
Games are stored in cache: ๐ŸŽฎ Downloaded maps and textures (up to 5GB in Genshin Impact). ๐Ÿ”Š Sound files and shaders. Once you clean the games, you'll have to download them again. To avoid that, don't clear the game cache through Settings. โ†’ Memory: Use the game's built-in cache cleaning function (usually in graphics settings).
How to check how much cache accumulates in a week?
Install Storage Analyzer or Files by Google: Open the app and select Storage Analysis. See the App Cache section, which shows the increase over the selected period. ADB-Command: Adb shell du -sh /cache Compare values before and after cleaning.