How to clean memory on Xiaomi Redmi 5A without losing files: full instructions

Xiaomi Redmi 5A is one of the most popular budget smartphones, but its modest 16 or 32 GB of internal memory is quickly clogged with garbage. If the phone started to slow down and there is less than 1 GB of free space, donโ€™t rush to reset it to factory settings! In this article, you will find 7 ways to clean up memory without deleting personal files, including hidden MIUI features and third-party tools.

We will understand how to remove the cache of applications, optimize the system, transfer data to the SD-map (if supported) and even restore "lost" space that doesn't show up in the settings. 5A s MIUI 9-12 and do not require root rights. Important: before you start, check how much memory is actually occupied - often the system shows incorrect data due to file system errors.

If you've tried standard methods (like Settings โ†’ Memory cleaning) and they haven't worked, the article has solutions for the hard cases: when the memory "disappears" after an update, or when the system writes "Not enough space" when it's calculated it should be enough. Let's start with the simplest and move on to advanced techniques.

1. Diagnosis: Why does memory end?

Before cleaning, you need to understand what exactly takes up space. On Redmi 5A, the problem is often not in user files, but in:

  • ๐Ÿ“ System cache (can weigh up to 3โ€“5 GB, especially after updates) MIUI).
  • ๐Ÿค– Application data (e.g., Facebook or Telegram cache easily reaches 1)+ GB).
  • ๐Ÿ—‘๏ธ "Garbage files from remote programs (remain in folders) /data/data).
  • ๐Ÿ”„ Duplicates (MIUI Sometimes they make copies of photos when editing).

To see the full picture:

  1. Open the settings โ†’ About the phone โ†’ Memory.
  2. Click on the chart and select "Details".
  3. Pay attention to the System and Applications sections โ€“ if they take up more than 10GB, itโ€™s time to clean.

๐Ÿ” The Hidden Problem: On Redmi 5A s MIUI 10+ A bug is often encountered when the system shows "Memory is full", when in fact it is free. 2โ€“3 GB. This is due to partition mounting error /data. Solution โ€“ Reboot in Safe Mode (click the power button) โ†’ long tap on "Switch off" โ†’ "Restarting in Safe Mode").

๐Ÿ“Š What is most often taken up by memory in your Xiaomi?
Photographs and videos
Applications and games
Cash and junk files
I don't know, I haven't.

2. Cleaning the application cache and system

The fastest way to release 1-3 GB is to remove the cache. On Redmi 5A, there are two ways to do this:

Method 1: Through the MIUI settings

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Slip on three dots in the upper right corner โ†’ "Sort by size."
  3. Select apps with a cache >100MB (e.g. YouTube, Chrome, MIUI Gallery).
  4. Click Clear Cache (not to be confused with Clear Data โ€“ it will delete logins!).

Method 2: Completely clean the system cache

If the first method didnโ€™t work, use the hidden MIUI function:

  1. Open the Settings. โ†’ Additionally. โ†’ Memory.
  2. Click on "Cleanup" at the bottom of the screen.
  3. Select "Deep Clean" and confirm.
  4. Reboot your phone โ€“ it is a must, otherwise the cache will recover partially.

โš ๏ธ Note: After a deep cleaning, some apps (such as WhatsApp or banking) may request a re-authorization. Check in advance if passwords are saved in Mi Account or Google Smart Lock.

Make a backup of contacts (export to VCF)

Remember passwords from important applications

Connect your phone to charge (the process can take 5-10 minutes)

Do not interrupt cleaning even if the screen is turned off-->

Cache typeHow much space does it take?Can I remove it without consequences?
Cash apps (Facebook, Instagram)From 50MB to 2GBYeah, but I'm gonna have to re-download the thumbnails.
System cache (MIUI)1-3 GBYeah, but maybe lags for the first 10 minutes.
Dalvik cache (for Android)300-800 MBOnly through Recovery (see Section 5)
Cash Google Play Services200-500 MBYes, but notices may be missing.

3. Delete unnecessary files and duplicates

Xiaomi Redmi 5A has a nasty feature: even after deleting photos through the gallery, files can remain in the DCIM/.thumbnails or Pictures/Screenshots folder.

Step-by-step:

  1. Install the file manager Mi File Explorer (available in GetApps) or Solid Explorer.
  2. Turn on the hidden file display: in Mi File Explorer, click on three lines โ†’ Settings โ†’ Show hidden files.
  3. Go to /storage/emulated/0/DCIM/.thumbnails /storage/emulated/0/Pictures/.extras /storage/emulated/0/Download/.temp
  4. Delete all files with the extensions.tmp,.nomedia,.thumb.

๐Ÿ’ก Useful tip: To find duplicate photos, use the Files by Google app (the Cleanup tab" โ†’ "It even finds similar pictures with a difference of 1-2 pixels.

โš ๏ธ Note: Do not delete files from the folder /data manually, this can cause the system to crash. Use only official tools to clean up system data. MIUI or ADB (see section 6).

How to recover accidentally deleted files?
If you delete important data, install DiskDigger or Recuva (for PC) immediately and scan the memory. The chances of recovery are higher if: 1. No new files were written after deletion. 2. Use SD-card (internal memory is harder to recover). 3. Files were not deleted through "full formatting".

4. Data transfer to SD-card (if supported)

Redmi 5A officially supports microSD up to 256GB, but there are nuances: MIUI does not allow you to transfer all applications to the map, only their data.

What can be transferred:

  • ๐Ÿ“ธ Photos and videos (via Gallery) โ†’ highlight files โ†’ "Move it" โ†’ choose SD).
  • ๐ŸŽต Music and podcasts (in the Mi Music app click on the track) โ†’ "Save it on. SD").
  • ๐Ÿ“„ Documents (through any file manager).
  • ๐ŸŽฎ Game data (e.g. cache) PUBG Mobile or Genshin Impact).

What I CAN'T move:

  • ๐Ÿ“ฑ The apps themselves (only on Android 6)+ rooted ADB).
  • ๐Ÿ”ง System files MIUI.
  • ๐Ÿ“ฅ Updates OTA (They are always in the internal memory).

๐Ÿ”ง Technical life hack: If SD-The card is defined as a โ€œportable storageโ€ rather than โ€œinternal memoryโ€ and can be formatted as an internal memory via Settings. โ†’ Memory. โ†’ SD-map โ†’ Three points. โ†’ Settings โ†’ But, after that, the map can't be retrieved without losing data!

๐Ÿ’ก

Before formatting an SD as internal memory, check its speed class. For the Redmi 5A, optimal use of UHS-I Class 10 cards (such as SanDisk Ultra or Samsung EVO+) Slow cards will slow down the system.

5.Cache reset via Recovery Mode (advanced method)

If standard methods didnโ€™t help, and free memory is critically scarce (less than 500 MB), try cleaning the Dalvik cache and cache partition via Recovery.

Instructions:

  1. Turn off the phone.
  2. Press Volume Up + Power before the Mi logo appears.
  3. In the Recovery menu, select the language (volume buttons) and tap on "Wipe & Reset".
  4. Select "Wipe Cache" (not "Wipe All Data").
  5. Confirm the action and wait until the completion (takes 1-2 minutes).
  6. Reboot your phone through Reboot.

โš ๏ธ Attention: After this procedure, the first start of the system will take up to 10 minutes - this is normal. Do not interrupt the boot, even if the screen remains black for a long time. If the phone is stuck on startup the Redmi logo for more than 15 minutes, perform a forced restart (press the Power for 20 seconds).

Critical information: Some MIUI 11+ firmware may not have the option "Wipe Cache" in place, in which case use the command via ADB: adb reboot recovery, then manually select "Mounts and Storage" โ†’ "Wipe Cache."

6.Use of ADB for deep cleaning (for experienced)

If you're ready to work with the command line, ADB (Android Debug Bridge) will help you remove debris that is not available through standard settings, which requires a PC and enabled debugging over USB.

Preparation:

  1. Turn on Developer Mode: Settings โ†’ About Phone โ†’ MIUI version (shap 7 times).
  2. Return to Settings โ†’ Additional โ†’ For developers and activate โ€œDebugging by USBโ€.
  3. Connect your phone to your PC and confirm your trust in your computer.
  4. Download ADB Tools and unpack it into the C:\adb folder.

Cleanup commands:

adb shell pm clear com.miui.gallery #Gallery cleanup (miniatures, cache)


adb shell pm clear com.android.providers.media # Media storage reset




adb shell rm -rf /data/local/tmp/* # Delete temporary files




adb shell rm -rf /cache/* # Cleaning the cache partition (requires root)

๐Ÿ”ง Extended cleaning (for confident users only!):

adb shell su


rm -rf /data/dalvik-cache/*




rm -rf /data/system/package_cache/*

โš ๏ธ Attention: Rm teams -rf No su will not work on an unrooted phone. ADB Can lead to data loss or cyclical reboot! - Create a backup using adb backup before experimenting.

๐Ÿ’ก

ADB is a powerful tool, but dangerous. If you're not sure about commands, use apps like SD Maid (requires root) or Files by Google (works without superuser rights) instead.

7.Alternative methods: cloud storage and compression

If physical memory is severely lacking, then purchase SD-cards are not an option, consider:

Cloud services:

  • ๐ŸŒฅ๏ธ Mi Cloud (5GB free): Automatic sync of photos and contacts. Included in Settings โ†’ Mi Account โ†’ Mi Cloud.
  • ๐Ÿ“ Google Photos: Unlimited storage for compressed photos (quality "High quality").
  • ๐Ÿ’พ Yandex Disk or Mega: 10โ€“50 GB free of charge when registering.

Data compression:

  • ๐Ÿ“ฆ Use ZArchiver to archive rarely used files (such as old photos).
  • ๐ŸŽฌ Video Compress reduces the size of videos by 2-3 times without severe loss of quality.
  • ๐Ÿ“ฑ Turn "Light Mode" on MIUI: Settings โ†’ Special opportunities โ†’ Easy mode. This will turn off animations and reduce the system's memory usage.

๐Ÿ’ก Advice for Photographers: Set up Google Photos to automatically delete local copies after uploading to the cloud:

  1. Open Google Photos โ†’ โ€œSettingsโ€ โ†’ โ€œFree up spaceโ€.
  2. Select "Remove already reserved".
  3. The photos will remain in the cloud and be deleted from the phone.

FAQ: Frequent questions about cleaning up memory

Can I clean up the memory on Redmi 5A without a computer?
Yes, all of the methods in sections 1-4 and 7 run directly on the phone, and you only need the computer to work with ADB (section 6) or if you want to recover deleted files via Recuva.
Why does memory run out quickly after cleaning?
Causes: ๐Ÿ”„ Auto-Update Apps (turn off in Play Market) โ†’ "Settings" โ†’ "Auto-update"). ๐Ÿ“ฅ Download garbage through your browser (clean history in Chrome once a week). ๐Ÿค– Background activity MIUI (Turn on Battery Optimization for Unnecessary Applications).
How to transfer applications to SD-card, if there is no such option in the settings?
On Redmi 5A, without root, porting applications to SD is officially impossible. Routes: Use App2SD (requires root). Install Link2SD and link application folders to SD (risky!). Only transfer application data (like game cache) manually through the file manager.
What if the phone says โ€œNot enough memoryโ€ but itโ€™s actually there?
This is a MIUI bug associated with the /data partition mounting error. Solutions: Reboot your phone to Safe Mode (see section 1). Perform adb shell df -h via ADB - if there is free space, but the system "does not see" it, will help reset the cache through Recovery (section 5). In extreme cases, reset settings (but not data!) through Settings โ†’ Additional โ†’ Reset.
How to clear your memory if your phone is not switched on?
If Redmi 5A hung on the logo or does not respond: Try to go to Recovery (see section 5) and make Wipe Cache. If it does not help, connect the phone to your PC and use Mi PC Suite for recovery (function "Repair Device"). In the most severe case, run the phone through the Mi Flash Tool (instructions on the official forum Xiaomi). โš ๏ธ Warning: Firmware will delete all data! If there were important files on the phone, try extracting them first SD-map (if any) and scan it on another device.