Cache Cleanup on Xiaomi Mi 5: A Complete Guide with 5 Proven Methods

The Xiaomi Mi 5, released in 2016, is still popular with users thanks to its powerful hardware and custom firmware installation, but over time, even this flagship begins to slow down, due to clogged applications and system temporary files. Clearing the cache helps not only free up space on the internal drive, but also eliminate lags, accidental reboots and errors in MIUI.

In this article, you will find 5 current ways to clean up the cache on the Mi 5 โ€“ from standard system tools to advanced methods through Recovery and ADB. We will also discuss which files can be deleted without risk and which should not be touched so as not to disrupt the smartphone. If your device has become slower after updating or installing new applications โ€“ this guide is for you.

โš ๏ธ Important: Xiaomi Mi 5 with firmware older MIUI 10 some menu items may be different. If you use custom firmware (like LineageOS or Pixel Experience), the paths to settings will be different - focus on the logic of the interface.

Before you start cleaning, check the available space in memory: go to Settings โ†’ About Phone โ†’ Memory. If the Other or Cache section is more than 1-1.5 GB occupied, this is a direct signal to action.

1. Clearing the application cache through MIUI settings

The easiest and safest way is to use the built-in MIUI tools. It is suitable for deleting temporary files of individual applications without losing personal data (photos, messages, accounts).

How to do this:

  1. Open the Settings โ†’ Applications.
  2. Slip on the three dots in the upper right corner and select Sort by size, so you will see the most โ€œgluttonousโ€ programs.
  3. Select an app (like Facebook or Google Play Services) and click Clear Cache.

๐Ÿ”น Which apps to clean first?

  • ๐Ÿ“ฑ Social media (VK, Instagram, TikTok โ€“ accumulate up to 500-800 MB of cache per month of active use.
  • ๐ŸŽฎ Games (PUBG Mobile, Genshin Impact โ€“ Texture and Update Cache can take up to 1-2 GB.
  • ๐ŸŒ Maps and navigators (Google Maps, Yandex.Maps) โ€“ store offline data and logs.
  • ๐Ÿ“บ Media Players (YouTube, MX Player โ€“ caching videos and thumbnails.

โš ๏ธ Note: Do not clear the cache of system applications named com.android. or com.miui. โ€“ this can lead to malfunctions MIUI. Exceptions: com.miui.gallery (Gallery) and com.android.vending (Google Play Store).

๐Ÿ“Š How often do you clean the cache on your smartphone?
Once a week.
Once a month
Only when the phone starts to brake
Never cleaned.

2. Automatic cleaning through "Optimization"

MIUI has a built-in tool for automatic garbage cleaning called Optimization (formerly called Security), which removes not only the cache of applications, but also temporary system files, remnants of deleted programs and duplicates.

Step-by-step:

  1. Launch the Optimization app (the icon with the shield on the desktop).
  2. Click Clean (or Garbage in older versions).
  3. Wait for the scan to be completed and tap Clean.
  4. For deep cleaning, go to the Deep Clean tab and select the App Cash.

๐Ÿ“Š What removes the โ€œOptimizationโ€ on Xiaomi Mi 5:

Type of fileApproximate volumeIs it safe to remove?
Cash app.200 MB - 1.5 GBโœ… Yes.
Temporary APK files50โ€“300 MBโœ… Yes.
Logs of the system10โ€“50 MBโœ… Yes.
Duplicate photo/videoDepends on the user.โš ๏ธ Check it manually.
Dalvik-cache files100-400 MBโŒ No (only through Recovery)

โš ๏ธ Note: If after cleaning through Optimization, some applications start to work incorrectly (for example, the Google Play Store does not update programs), restart the phone. MIUI Sometimes deletes critical temporary files that are only restored after a reboot.

๐Ÿ’ก

After cleaning the cache through Optimization, run Settings โ†’ Additional โ†’ Battery and Performance โ†’ Performance Mode and select Balanced. This will help the smartphone recover faster.

3.Cache clearing via Recovery Mode

If the Xiaomi Mi 5 is slowing down or not loading into the system, cleaning the cache through Recovery mode will help.This method removes Dalvik-cache and other system temporary files that are not available through standard settings.

๐Ÿ”ง How to get Recovery on Xiaomi Mi 5:

  1. Turn off the phone.
  2. Press the Power + Volume buttons up at the same time and hold for 5-7 seconds until the Mi logo appears.
  3. Release the buttons and you will be taken to the Recovery menu (in English or Chinese).

๐Ÿ“ Cleaning instructions:

  1. Use volume buttons for navigation and power button for selection.
  2. Select Wipe & Reset (or Chinese firmware).
  3. Then, select the Wipe Cache Partition.
  4. Confirm the action (Yes) and wait until it is completed.
  5. Go back to the main menu and select Reboot to reboot.

โš ๏ธ Please note: Do not choose Wipe under any circumstances. Data/Factory Reset โ€“ This will result in a complete phone reset and deletion of all data! Wipe Cache Partition is secure and does not affect your files.

Charge your phone at least 50 times%|Make a backup copy of important data|Make sure there is no lock on the phone MI-account (if the firmware is official)|Remember the button combination to enter Recovery-->

4. Manually clear cache through file manager

For power users, there is a way to manually remove cache through a root file manager (such as Root Explorer or Solid Explorer), a method that allows you to pinpoint unnecessary files, but requires caution.

๐Ÿ“‚ Where is the cache stored on Xiaomi Mi 5:

  • /data/data/ โ€“ cache of all installed applications (folders with the names com.android., com.miui., etc.).
  • /cache/ โ€“ System cache (includes Dalvik-cache and temporary update files).
  • /sdcard/Android/data/ โ€“ Cache of user applications (can be cleaned without root).

๐Ÿ› ๏ธ How to clean manually:

  1. Open a file manager with root support.
  2. Go to /data/data/ and find the app folder (e.g. com.facebook.katana for Facebook).
  3. Delete the cache folder inside it.
  4. To clear the system cache, go to /cache/ and delete all files (except for the lost+found and recovery folders).

โš ๏ธ Note: Delete files in /system/ or changing access rights (chmod) without knowing the consequences can lead to a "brick" of the phone.

What is Dalvik-cache and can it be removed?
Dalvik-cache is an optimized version of the Dalvik virtual machine applications (used on Android before version 5.0). On Xiaomi Mi 5 with MIUI 7-9, this cache is stored in /data/dalvik-cache/. It can be deleted, but only through Recovery - you manually risk disrupting the system. After cleaning, Dalvik-cache will recover automatically the next application launch, but the first start may take longer.

5.Cache clearing via ADB (for advanced users)

If you have access to ADB (Android Debug Bridge), you can clear the cache with the command line.This method is useful if the phone is non-responsive to touch or hovers on the Mi logo.

๐Ÿ’ป What's the matter:

  • A computer with Xiaomi and ADB drivers installed.
  • USB-cable (preferably original).
  • USB debugging enabled on your phone (Settings โ†’ About Phone โ†’ MIUI version (shoot 7 times) โ†’ Additional โ†’ For developers โ†’ USB debugging).

๐Ÿ“‹ Cleanup commands:

adb shell


su




pm clear --all # Clears the cache of all user applications




rm -rf /cache/* # Removes the system cache (requires root)




exit




exit

๐Ÿ”น Alternative teams:

  • Clearing the cache of a particular application (e.g. Google Chrome): pm clear com.android.chrome
  • View a list of all packets with cache size: pm list packages -f | grep -i cache

โš ๏ธ Note: The pm clear command removes not only the cache, but also the application data (for example, saved passwords in the browser or game settings:

adb shell pm trim-caches <size>

where <size> is the desired cache limit in bytes (e.g., 100MB).

๐Ÿ’ก

Cleaning through ADB is the most powerful method, but requires technical knowledge. If you are not sure about the commands, use the standard methods through settings or Recovery.

What if after cleaning the cache, the phone becomes worse?

In rare cases, after cleaning the cache, users face new problems: applications load for a long time, errors appear, or the phone begins to warm up, this is due to the fact that the system has to reassemble the cache from scratch.

๐Ÿ”ง How to fix it:

  • ๐Ÿ”„ Restart the phone โ€“ this will start the cache recovery process.
  • ๐Ÿ“ฑ Disable unnecessary applications in Settings โ†’ Applications (especially those that work in the background).
  • โšก Enable Performance Mode in Settings โ†’ Battery โ†’ Performance mode.
  • ๐Ÿ”ง Update the firmware if you are using an outdated version MIUI.

๐Ÿ“Š Comparison of cache cleaning methods:

MethodDifficultyEfficiencyRisks.
Through MIUI settingsโญ (simple)Removes ~30-50% of garbageNo.
Optimization (Security)โญโญ (middle-of-the-road)Removes ~60-70% of garbageSome applications may be reset by settings
Recovery Modeโญโญโญ (difficult)Removes ~80% of garbage (including Dalvik)Risk of resetting when choosing the wrong item
Manual cleaning (root)โญโญโญโญ (difficult)Delete 100% of selected filesHigh risk of system damage
ADBโญโญโญโญ (advanced)Removes ~90% of garbageApplication data may be reset

FAQ: Frequent questions about cleaning the cache on Xiaomi Mi 5

โ“ Do I need to clean the cache if the phone is working properly?
If the Xiaomi Mi 5 is not slowing down and you have enough free memory (more than 2-3 GB), cleaning the cache is not necessary. The system cache speeds up the launch of commonly used applications. However, every 1-2 months it is recommended to clean the cache of social networks and messengers, as they accumulate the most garbage.
โ“ Why do applications load for a long time after cleaning the cache?
This is normal: applications take time to recover temporary files (image cache, databases, etc.) Usually the delays disappear after 1-2 starts. If the brakes persist, check if the power saving mode for this application is turned on in Settings โ†’ Battery.
โ“ Can I clear the cache without losing data?
Yes, all of the methods described (except Factory Reset in Recovery) store your personal data, but if you use ADB or manual root cleaning, be careful: some commands (such as pm clear) delete not only the cache, but also the application settings (such as saved games in Google Play Games).
โ“ How much space will be freed up after cleaning the cache?
It depends on how long you last cleaned your phone. On average: Application cache: 300 MB โ€“ 1.5 GB. System cache (/cache/): 100-400 MB. Dalvik-cache: 200-500 MB. If you haven't cleaned the cache in a long time, you can free up to 2-3 GB of space.
โ“ Why the cache is rapidly accumulating again?
This is due to the peculiarities of Android and MIUI: Apps cache data to speed up work (for example, Instagram stores thumbnails of photos). MIUI actively uses cache to optimize multitasking. Some applications (for example, Facebook or TikTok) aggressively cache content in the background. To slow down the accumulation of garbage, turn off autoload media in social networks and limit the background activity of applications in Settings โ†’ Battery โ†’ Battery Management.