Cache Cleanup on Xiaomi Mi 9 Pro: A Complete User Guide

Xiaomi Mi 9 Pro is the flagship smartphone with a powerful Snapdragon 855+ processor and 8/12 GB of RAM, but even it eventually begins to โ€œbrakeโ€. One of the main reasons is the crowded cache of applications and systems. Unlike the new models with MIUI 14+, on the Mi 9 Pro (released in 2019), cache cleaning has nuances: for example, there is no built-in โ€œDeep Cleanโ€ feature in the latest versions of firmware.

In this article, you will find 5 proven ways to clean the cache, from basic (through settings) to advanced (using ADB and Recovery), we will also discuss which cache can be removed without risk and which should not be touched so as not to break the application, and we will focus on the hidden cache of system services, which takes up to 1-2 GB of memory and is not cleaned by standard methods.

Why Xiaomi Mi 9 Pro cache should be cleaned regularly

Cache is a temporary file that creates applications and a system to speed up work. On the Mi 9 Pro, the cache is divided into three types:

  • ๐Ÿ“ฑ App cache โ€“ data from games, social networks, instant messengers (for example, Instagram or Telegram cache can weigh up to 500 MB).
  • โš™๏ธ System cache - files MIUI, Android kernels and Google services (takes from 500 MB to 1.5 GB).
  • ๐Ÿ—ƒ๏ธ Dalvik cache โ€“ optimized files for fast application loading (located in the folder) /data/dalvik-cache).

On the Mi 9 Pro with 128/256GB of storage, the cache can take up to 5-8GB if left uncleaned for years.

  • โณ Slowing down the opening of apps (especially noticeable on WhatsApp, Facebook, TikTok).
  • ๐Ÿ”‹ Increased battery consumption (processor spends resources on processing unnecessary files).
  • ๐Ÿ“‰ ยซLahame when scrolling menus and switching between tasks.
  • ๐Ÿšจ Camera errors (e.g., โ€œCanโ€™t connect to the cameraยป).

โš ๏ธ Warning: Donโ€™t confuse cache with user data! Deleting cache wonโ€™t delete your photos, messages or accounts. However, after cleaning up some apps (like Spotify or YouTube) may take longer to load when you first run.

The Mi 9 Pro cache accumulates faster than the new models because of:

  • ๐Ÿ”„ An outdated version MIUI 11/12 (in newer firmware optimized work with cache).
  • ๐ŸŽฎ Powerful Snapdragon 855 processor+, Actively caching data to speed up games.
  • ๐Ÿ“ก Frequent mobile internet usage (Chromium or Opera cache can inflate to 1 GB).
๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a month
Every 3-6 months
Only when the phone starts to brake
Never cleaned.

Method 1: Clearing the cache of individual applications through settings

The safest method is to remove cache for specific applications, which is suitable if you notice that only one application is slowing down (for example, VK or Google Maps).

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select the appropriate app (such as Facebook).
  3. Press Warehouse. โ†’ Clear the cache.

For convenience, sort the applications by cache size:

  1. In the Application Management section, click on the three dots in the upper right corner.
  2. Select Sort. โ†’ By size.
  3. Clear the cache from applications that are larger than 100MB.
AnnexTypical cache sizeCan we clean it?
Google Play Services200-500 MBโœ… Yes (but it could temporarily slow down Googleโ€™s services)
Telegram100-800 MBโœ… Yes (no chats, only media files deleted)
MIUI System300-1 GBโš ๏ธ Only if there are lags in the system
Chrome50โ€“300 MBโœ… Yes (deleted viewing history in offline mode)
Camera50โ€“200 MBโœ… Yes (no photos deleted, only temporary files)

โš ๏ธ Note: Do not clear the cache of the system applications com.android.phone, com.miui.securitycenter and com.lbe.security.miui โ€“ this can lead to malfunctions in the mobile network and security.

Close all background applications

Connect your phone to charge (if your battery level is below 30%)

Backup important data (in case of failure)

Check the space in the memory (should be at least 1 GB)-->

Method 2: Automatically clean the cache through โ€œSecurityโ€

MIUI has a built-in optimization tool called Security, which allows you to clear the cache of all applications in one tap, but it doesn't always work correctly on the Mi 9 Pro with custom firmware.

How to use:

  1. Open the Security app (if not, download it from Google Play).
  2. Go to Clean Up (or Accelerate in New Versions)
  3. Press Deep Cleanup and select Cash.
  4. Confirm the action and wait until it is completed (may take 1-3 minutes).

Advantages of the method:

  • โœ… Clears the cache of all applications at a time.
  • โœ… Remove system debris (remains of remote applications, temporary files).
  • โœ… It shows how much memory is freed up.

Disadvantages:

  • โŒ Does not clean Dalvik cache (recovery required).
  • โŒ Can remove the cache of system applications, which will cause short-term lags.
  • โŒ On some firmware MIUI cleaning is not working properly.

๐Ÿ’ก

If the phone brakes more after cleaning through Security, reboot it. This is due to a restructuring of the system services cache.

Method 3: Cleaning the cache through Recovery (for power users)

The method is suitable if standard methods did not help, and the phone is severely slow. Recovery is an engineering menu that allows you to clear Dalvik cache and system cache that are not available through settings. On the Mi 9 Pro there are two types of Recovery:

  • ๐Ÿ”ง Stock (from Xiaomi) โ€“ limited features.
  • ๐Ÿ› ๏ธ Castomy (TWRP) โ€” empowerment.

Instructions for stock recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up until the Mi logo appears.
  3. Choose your language (if required).
  4. Go to Wipe & Reset โ†’ Wipe Cache.
  5. Confirm the action and wait for the completion.
  6. Reboot your phone (Reboot โ†’ System)

If you have a TWRP installed, follow these steps:

  1. Go to TWRP (similar to drain recovery).
  2. Select Wipe โ†’ Advanced Wipe.
  3. Check the boxes Cache and Dalvik/ART Cache.
  4. Swipe to Wipe (Swipe to Wipe) with your finger.
  5. Reboot to the system.

โš ๏ธ Note: Do not select Data or System TWRP โ€” If you're randomly selected, reboot your phone immediately without confirming the action.

What if after cleaning the cache in Recovery the phone does not turn on?
If after the procedure, the Mi 9 Pro is getting stuck on the Mi logo or rebooting in a cycle: 1. Go back to Recovery. 2. Select Wipe โ†’ Format Data (this will delete all data, but restore efficiency). 3. Refuse the phone via Fastboot using the Mi Flash Tool. If you are not sure about your actions, contact the service center.

Method 4: Cleaning the cache through ADB (for developers)

The method is for advanced users who want to clear the cache selectively or automate the process. ADB (Android Debug Bridge) allows you to control the phone through a computer.

What you need:

  • ๐Ÿ’ป Computer with Windows/macOS/Linux.
  • ๐Ÿ”Œ Cable USB Type-C (original so that there are no connection problems).
  • ๐Ÿ“ฆ Installed drivers Xiaomi and ADB (download).

Step-by-step:

  1. Turn on Developer Mode on your phone: Go to Settings โ†’ About Phone. Tap 7 times on MIUI Version. Go back to Settings โ†’ Additional โ†’ Developer. Activate USB Debugging.

Connect your phone to your computer and confirm your trust in the device.

cmd

adb devices

The name of your device should appear (e.g., cmi for Mi 9 Pro).

adb shell pm trim-caches 1000000000

(where 1000,000,000 is the size in bytes, approximately 1 GB).

Facebook

adb shell pm clear com.facebook.katana

Useful teams ADB For the Mi 9 Pro:

Team team.Action.
adb shell df -h /cacheShows the size of the cache partition.
adb shell rm -rf /data/dalvik-cache/*Clears Dalvik cache (requires root).
adb shell pm list packages -fShows a list of all installed applications.
adb shell dumpsys meminfoIt provides information about memory usage.

โš ๏ธ Attention: Rm teams -rf They can permanently delete data if you enter the wrong path. -rf /data/* delete all user files! Use only the commands above.

๐Ÿ’ก

Cleaning the cache through ADB is the most flexible method, but it requires caution.It is useful if you want to remove the cache of system applications that are not cleared through settings (for example, com.miui.home for launcher).

Method 5: Use third-party apps (with caution!)

There are hundreds of cache-cleaning apps on Google Play, but most are either useless or harmful. On the Mi 9 Pro, we only recommend proven tools:

Top.-3 cache-cleaning:

  • ๐Ÿงน SD Maid removes cache, duplicate files and remnants of deleted applications. CorpseFinder is a feature for finding dead files.
  • ๐Ÿ—‘๏ธ Files by Google โ€“ Googleโ€™s official Cleanup app that securely removes unnecessary files.
  • ๐Ÿ” CCleaner is a classic cleaner, but on MIUI It can work unstablely (sometimes it does not see the system cache).

How to use SD Maid:

  1. Install the app from Google Play.
  2. Start and provide root access (if any).
  3. Go to CorpseFinder or SystemCleaner.
  4. Select files to delete (note the Cache section).
  5. Press Run and wait until it is completed.

Risks of using third-party cleaners:

  • โŒ You can delete the necessary system files, which will lead to failures.
  • โŒ Some apps (like Clean Master) display false threats to scare the user.
  • โŒ Data can be stolen (especially little-known Chinese cleaners).

๐Ÿ’ก

Before using a third-party cleaner, check its Google Play ranking and reviews. If the app has less than 4 stars or few reviews, it is better not to take risks.

Frequent errors when cleaning the cache on Xiaomi Mi 9 Pro

Many users make mistakes that, instead of speeding up the phone, have the opposite effect.

  • ๐Ÿ”„ Frequently clearing cache โ€“ if you do this once a day, apps will constantly rebuild the cache, which will increase battery consumption.
  • ๐Ÿ—‘๏ธ Removing the cache of system applications (e.g. com.android.systemui) โ€“ this leads to interface crashes and reboots.
  • ๐Ÿ”ง Using root-access cleaners without understanding โ€“ you can accidentally delete critical files.
  • ๐Ÿ“‰ Cleaning the cache without checking the free space โ€“ if the phone is less than 1 GB of memory, after cleaning the system can begin to lay even harder.
  • ๐Ÿ”‹ Cleaning the cache at low battery power โ€“ if the phone turns off during the process, it can damage the file system.

How to avoid problems:

  • ๐Ÿ“… Clean the cache no more than 1 time in 1-2 months (or with noticeable brakes).
  • ๐Ÿ” Before cleaning, check which application takes up the most space (via Settings) โ†’ Warehouse).
  • ๐Ÿ”‹ Make sure the battery is over 50%.
  • ๐Ÿ“ฑ After cleaning, restart the phone so that the system rearranges the cache.
What if, after cleaning the cache, the applications began to work slower?
This is OK! When you first run after cleaning the cache, applications take time to re-upload the necessary data. Usually, the speed is restored after 1-2 uses. If the lags are left, check if you have deleted the cache of system services (for example, Google Play Services).

FAQ: Answers to Frequent Questions

Can I clear the cache without losing data?
Yes, cache cleaning doesnโ€™t delete your photos, videos, messages, or accounts; it only deletes temporary files that apps create to speed up work; however, once cleaned, some apps (like Spotify or Netflix) can take longer to load on their first run, as they will have to cache data again.
How much memory will be freed up after cleaning the cache?
On the Xiaomi Mi 9 Pro, after complete cleaning (including Dalvik cache), usually 1 to 3 GB of memory is freed. The exact amount depends on: Number of installed applications. Phone usage frequency (the more you use it, the more cache accumulates); MIUI versions (on new firmwares, the cache is optimized better). To find out how much space the cache takes up, go to Settings โ†’ Storage โ†’ Cache Data.
Do I need to clear the cache before selling the phone?
Clearing the cache before selling is not necessary, since when resetting to factory settings (Wipe Data in Recovery), the cache is deleted automatically. But if you want to just refresh your phone before you transfer it, you can manually clean the cache, which will speed it up and show the customer that the device is optimized well, but remember, cleaning the cache doesn't delete personal data! For complete security, make sure to run Wipe Data in Recovery before selling or reset your settings through Settings. โ†’ Additionally. โ†’ Resetting settings.
Why did the phone slow down even more after cleaning the cache?
This can happen for several reasons: ๐Ÿ”„ The system rebuilds the cache - after cleaning MIUI And applications take time to recreate temporary files, and usually the lags go away in 10 to 15 minutes of active use. ๐Ÿ—‘๏ธ Removed the cache of critical system services (e.g. com.miui.home or com.android.systemui) in which case the reboot will help. ๐Ÿ“‰ Lack of free memory - if the phone has less than 1GB of free space, the system starts to slow down. โš™๏ธ Failure to work MIUI โ€” If the lags do not go more than an hour, try to clear the cache through Recovery (method 3).If the problem does not go away, check the phone for viruses or perform a factory reset.
Can cache cleaning be automated?
There are several ways to automate the process: ๐Ÿค– Tasker is an action automation app, and you can set up a task that will clear the cache once a week on a schedule. ๐Ÿ“ฑ MacroDroid is a simpler analogue of Tasker with ready-made templates for cleaning the cache. ๐Ÿ’ป ADB-Scripts โ€” if you know the command line, you can write a script that will clear the cache on command from the computer. MacroDroid macro example: Create a new macro. Select Time/Date as the trigger (e.g., every Saturday at 3:00). Add the action to Run shell command. Enter the command: pm trim-caches 1000000000. Save macros. โš ๏ธ Warning: Automatic cache cleaning can increase battery consumption, as applications will have to constantly restore it. Optimal frequency is 1 time every 2-4 weeks.