Cache Clearing on Xiaomi Mi 9: A Complete Guide for All Versions of MIUI

Xiaomi Mi 9 smartphone eventually starts to slow down, warm up or discharge quickly? 80% of cases to blame overcrowded cache - temporary files that the system and applications accumulate in the background. Cleaning the cache not only frees up to 1-3 GB of memory, but also solves problems with lags, overheating and even accidental reboots.

In this article, 5 proven ways to clean up the cache on Mi 9 (including hidden system folders), compare methods on efficiency and answer frequent questions. The instructions are relevant for all versions of MIUI - from MIUI 10 to MIUI 14 (including HyperOS).

โš ๏ธ Important: Don't confuse cache with user data!Cache clearing doesn't delete photos, messages or app settings, but can reset temporary data (such as a browser history or a map cache in Google Maps).

1. Clear cache through MIUI settings (the safest method)

This method is suitable for beginners โ€“ it does not require superuser rights and works on any version of the Mi 9. The system automatically detects unnecessary files, but only clears part of the cache (usually ~30-50% of the total volume).

How to do this:

  • ๐Ÿ“ฑ Open the Settings. โ†’ The phone. โ†’ Memory (or Settings) โ†’ Memory in new versions MIUI).
  • ๐Ÿงน Click โ€œCleanโ€ in the โ€œJunkโ€ section (the system will scan the device). 10-30 seconds).
  • โœ… Confirm the cleaning by selecting โ€œCleanโ€ XXX MBโ€ (number depends on fullness).
  • ๐Ÿ”„ For deep cleaning, tap "Deep cleaning" (not available in all regions).

๐Ÿ“Œ What is cleaned: cache of system applications (com.android.systemui, com.miui.home), temporary files MIUI, Residual data from remote programs, not cleared: cache of user applications (for example, Instagram or Telegram) and Dalvik cache.

๐Ÿ’ก

If the Clean button is inactive, restart your smartphone โ€“ sometimes MIUI blocks the cleanup due to background synchronization.

MethodPurified volumeRequired. ROOT-rights?Implementation time
Through MIUI settings300MB - 1.5GBโŒ No.1-2 minutes
Manual cleaning in applications500MB - 3GBโŒ No.5-10 minutes
Cache reset in Recovery1 GB - 5 GBโŒ No.3-5 minutes
Through ADB2 GB+โŒ No.10 minutes.
Deletion of Dalvik cache (ROOT)500MB - 2GBโœ… Yes.5 minutes.

2. Manual cache cleaning for individual applications

If a smartphone is slowing down because of a particular app (like Facebook or TikTok), clearing its cache can bring smoothness back to the table.

Instructions:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Select an app (e.g. com.facebook.katana for Facebook).
  3. Slip "Storage" โ†’ "Clear the cache."
  4. For a complete reset, click โ€œClear Dataยป (โš ๏ธ This will remove logins, settings and saves!).

๐Ÿ” What apps most often clog up the cache:

  • ๐Ÿ“ท Social media: Facebook, Instagram, VK (cash 1-2 GB).
  • ๐ŸŽฎ Games: PUBG Mobile, Genshin Impact, Call of Duty (cache to) 3-5 GB).
  • ๐Ÿ—บ๏ธ Maps: Google Maps, Yandex.Maps, 2GIS (cache up to 500 MB-1 GB).
  • ๐Ÿ“บ Streaming: YouTube, Twitch, Netflix (cache up to 500 MB).

Facebook|Instagram|Google Chrome|YouTube|Twitter (X)|Messengers (Telegram, WhatsApp)|Games with online cache-->

โš ๏ธ Warning: Clearing the cache of com.google.android.gms (Google Play Services) can lead to errors in syncing your Google account.If notifications stop coming after cleaning, restart your smartphone.

3.Cache reset via Recovery Mode (for experienced)

This method cleans all temporary system files, including Dalvik cache (which is not deleted through standard settings) Suitable if the Mi 9 is severely slowing down or not updated, does not delete user data, but requires a reboot.

Step-by-step:

  1. Turn off your smartphone.
  2. Press the Power button + Volume up 5-10 seconds until the Mi logo appears.
  3. In the Recovery menu, select the language and tap Wipe & Reset โ†’ Wipe Cache.
  4. Confirm the action with the swipe or the Yes button.
  5. After cleaning, select Reboot โ†’ Reboot to System.

๐Ÿ› ๏ธ What does this method do:

  • ๐Ÿงน Removes the cache of all applications and systems.
  • ๐Ÿ”„ Resets Dalvik cache (accelerates application launches).
  • ๐Ÿšซ Does not affect photos, contacts or messages.
What is Dalvik Cache and Why Should It Be Cleaned?
Dalvik cache is an optimized version of the applications that the system creates to speed up their work. Over time, this cache fragments and can take up to 1-2 GB of memory, without being cleared through standard settings, and its reset is useful after updating MIUI or if applications are slow to open.

โš ๏ธ If after resetting the cache in Recovery, the smartphone got stuck on the boot longer 10 Just a minute, don't panic, that's okay. 15-20 minutes or perform a forced reboot (squeeze the power supply) + Loudness down on 15 seconds).

๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when it's slowing down.
Never cleaned.
I don't know what it is.

4.Cache clearing via ADB (for advanced users)

The method for those who are willing to connect the Mi 9 to a computer, allows you to delete the cache of all applications at once, including system applications that are not available through the standard interface. ADB (Android Debug Bridge).

Instructions:

  1. Turn on USB debugging on your smartphone: Go to Settings โ†’ About Phone. Tap 7 times on MIUI Version to activate Developer Mode. Return to Settings โ†’ Additional โ†’ For Developers and enable USB Debugging.

Mi 9

adb devices

If the device appears in the list, do:

adb shell pm trim-caches 256m

(where 256m is the maximum cache size in megabytes; 1g for 1GB can be specified).

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

(demand ROOT-rights).

โšก Advantages of the method:

  • ๐ŸŽฏ Spot cleaning (specific packages can be specified, for example, com.android.chrome).
  • ๐Ÿš€ Remove cache that is not available through settings (e.g. cache android.process.media).
  • ๐Ÿ”ง Suitable for automation (you can create a script).

โš ๏ธ Note: Adb shell pm clear command with packet indication (e.g, com.android.gallery3d) It will delete all the data in the application, not just the cache! Use it only if you're willing to lose settings and save.

5. Dalvik cache and system debris (ROOT) removal

If you have ROOT-You can clear all types of cache, including Dalvik, ART And it's the most radical method, and it frees up the updates. 3-5 GB of memory, but requires caution.

Cleaning methods:

  • ๐Ÿ“ฑ Through the app: Install SD Maid or Root Cleaner from Google Play. ROOT-Select "Dalvik Cache" and "System Cacheยป โ†’ press "Cleanยป.

Through TWRP Recovery:

  1. Install the custom TWRP recavator.
  2. Go to Advanced. โ†’ Wipe Dalvik/ART Cache.
  3. Confirm the swipe.
  4. ๐Ÿ–ฅ๏ธ Through Terminal Emulator: su rm -r /data/dalvik-cache/* rm -r /cache/* reboot

๐Ÿ’ก

Cleaning Dalvik cache speeds up the launch of applications by 20-30%, but requires a reboot. After the procedure, the first turn on the smartphone can take 3-5 minutes - this is normal!

6.Automatic Cache Cleanup: Configure MIUI

To avoid manually cleaning the cache, set up MIUI to auto-optimize.The system will remove unnecessary files in the background, but this is less efficient than manually cleaning.

How to turn on:

  1. Go to Settings โ†’ Battery and Performance โ†’ Optimization.
  2. Activate the Auto Clean switch.
  3. Slip "Autocleaning Settings" and select: ๐Ÿ•’ Frequency: Daily/weekly. ๐Ÿ—‘๏ธ File types: Cache, temporary files, empty folders. ๐Ÿ”‹ Condition: When the battery is low or when connecting to Wi-Fi.

โš ๏ธ Limitations of automatic cleaning:

  • ๐Ÿšซ Does not remove the cache of games and heavy apps (e.g. Google Maps).
  • ๐Ÿ“‰ Can slow down your smartphone during cleaning (if โ€œClean when locking screenโ€ is enabledยป).
  • ๐Ÿ”„ Does not clear Dalvik cache.

๐Ÿ’ก Tip: For the best result, combine automatic cleaning with manual (once in a day). 1-2 For example, set up auto-cleaning for weekly garbage collection, and manually clean the cache of heavy applications through Settings once a month. โ†’ Memory.

Frequent Questions (FAQ)

โ“ Why After Cleaning the Cache, Applications Boot Longer?
Cache speeds up the application by storing the data that is used frequently, and after cleaning, the system creates a new cache, which can take 1-2 starts, and that's OK, in a few minutes, the speed will return.
โ“ Can I clean the cache daily?
Frequent cleaning of the cache increases the load on the flash memory (especially on the Mi 9 with UFS 2.1 memory) and can lead to wear and tear. The optimal frequency is once every 1-2 months or with noticeable brakes.
โ“ Cache Clearing Removes Passwords from Wi-Fi?
โŒ No, the Wi-Fi passwords are stored in the /data/misc/wifi/WifiConfigStore.xml But resetting the settings (Wipe Data in Recovery) will delete them.
โ“ Why there is not enough space left after cleaning the cache?
You probably only cleared the app cache, not the system cache. Try: Cache reset via Recovery (section 3). Clean /cache folder through ADB (section 4). Check the occupied space through Storage Analyzer (app from Google Play).
โ“ How to Clean Google Play Cache and Speed Up App Downloads?
Clearing the com.android.vending cache (Google Play Market) can help if apps are downloading for a long time or give an error of 924. Instruction: Go to Settings โ†’ Apps โ†’ App Management โ†’ Google Play Market. Click Storage โ†’ Clear Cache. Reboot your smartphone. If it doesnโ€™t help, clear the data (remove download history!).