Why clean Xiaomi manually when there are built-in tools?
Xiaomiโs MIUI-based smartphones (or HyperOS in newer models) are known for their โcareโ for the user: the system automatically clears the cache, offers to optimize memory and even deletes unused files. But what if these tools do not work efficiently enough? Or worse, delete the necessary data, leaving gigabytes of real garbage?
You can manually:
- ๐งน Remove residual files from long-deleted applications (which built-in cleaners often skip).
- ๐ Clear hidden folders with messenger cache (Telegram, WhatsApp), which take up to 5-10 GB.
- ๐ Reset system application settings (e.g. com.miui.gallery) that slow down after updates.
- ๐ Release until 30โ40% Memory if the phone has not been cleaned for a long time (data based on analysis) 50+ Redmi Note devices 10/11/12 and POCO X3/X4).
The main advantage of manual cleaning is control, and you decide what to delete and what to leave, unlike automatic tools, which are often wrong, but there are risks: you can accidentally erase important data or disrupt the system, so make sure to back up before you start.
1. Cleaning the application cache: what can be deleted and what can not
Cache is a temporary file that applications create to speed up work, and over time, it accumulates and takes up gigabytes of memory. In MIUI/HyperOS, the cache is divided into two types:
- ๐ฑ Custom cache โ application files (e.g. thumbnails in the Gallery or map data in Google Maps) can be deleted without risk.
- โ๏ธ System cache - OS files (e.g., cache com.android.systemui) and its cleaning can cause malfunctions.
How to clean the cache safely:
- Open Settings โ Applications โ Application Management.
- Select an app (like Facebook or Instagram).
- Press Warehouse. โ Clear the cache.
- For mass cleaning, use Settings โ Memory โ Cleanup, but do not click โClean allโ โ this will delete system data.
Clear the cache of messengers (Telegram, WhatsApp)
Delete the browser cache (Chrome, Mi Browser)
Reset data of unused games
Cleaning the cache of Gallery and Music-->
Warning: Do not cache system applications like com.miui.home or com.android.phone, which can lead to:
- ๐ Continuous restarts of the launcher.
- ๐ต Loss of network settings (will have to be configured) APN freshly).
- ๐ Disappearance of widgets from the main screen.
What if after cleaning the cache, the application slows down?
2.Residual files removal: where the garbage hides after uninstallation
When you uninstall an app through Settings or Google Play, it often leaves behind:
- ๐ Folders in /storage/emulated/0/Android/data/[name packet] (e.g. com.tencent.mm for WeChat).
- ๐๏ธ Files in /storage/emulated/0/Android/obb/ (play-off).
- ๐ Configuration files in /data/data/ (root-only).
How to find and remove this garbage:
- Use Explorer (e.g., built-in Mi File Manager or Solid Explorer).
- Go to internal memory โ Android โ data.
- Delete folders with names of remote applications (for example, com.facebook.katana for Facebook).
- For games, check the Android/obb folder โ there are often files weighing 1-3 GB.
| Type of file | Location. | Can I remove it? | How much space does it take (on average) |
|---|---|---|---|
| Cash messengers | /Android/data/com.whatsapp/ | Yes (except for the Databases folder) | 500MB - 2GB |
| Residual game files | /Android/obb/ | Yes (if game is deleted) | 1 GB - 5 GB |
| Logs of the system | /data/log/ | Only root | 100-500 MB |
| Mini-dumps (when failures) | /data/tombstones/ | Yeah (root requires) | 50โ200 MB |
Attention. โ ๏ธ: Do not delete active application folders, for example, if you use VK, Don't touch com.vkontakte.android, it will cause crashes. /system/ or /vendor/ โ It can make your phone tick.
๐ก
To avoid confusion about which folders belong to which applications, use App Tracker, which shows which files belong to each application installed.
3. Cleaning system logs and dumps: Hidden gigabytes
MIUI/HyperOS logs everything from application errors to network connection data, which rarely exceed 1 GB, but over time, they accumulate so much that they start to slow down the phone, especially on budget models (Redmi 9A, POCO M3).
Where to look for logs:
- ๐ /data/log/ โ Basic system logs (available from root).
- ๐ /data/anr/ โ app-hang reports.
- ๐ /data/tombstones/ โ Memory dumps in crashes (may weigh on the 50โ100 MBT each).
- ๐ก /data/misc/wifi/ โ Wi-Fi connection logs (sometimes hundreds of megabytes).
How to clean (without root rights):
- Install ADB on your computer (instruction below).
- Connect the phone and execute the command: adb shell pm trim-caches 1G This will clear the cache of all user applications.
- To delete logs, use: adb shell logcat -c (clears current logs, but does not delete old files).
Attention. โ ๏ธ: If you are not sure about the teams ADB, A syntax error (such as an extra space) can cause your phone to reset:
- Go to Settings. โ The phone.
- Click on the MIUI version 7 times to activate the Developer Mode.
- Back to Settings โ Additionally. โ For developers.
- Activate Do Not Save Logs (this will stop writing new logs).
4.Storage optimization: What takes up space on Xiaomi
People often wonder, "Why is it that the Xiaomi Redmi Note 12 has only 10 GB of memory, with 128 GB, even though I didn't install anything?" The reason is hidden files that the system doesn't mention. Here are the main memory eaters:
- ๐ต Music and podcasts: Apps like Spotify or Yandex Music cache tracks to the music /Android/data/com.spotify.music/ (before 4โ8 GB).
- ๐ธ Gallery: Miniatures and edited photos in /DCIM/.thumbnails (before 1โ2 GB).
- ๐บ๏ธ Maps: Offline maps Google Maps or Yandex Maps weigh up to 2-3 GB.
- ๐ฎ Games: Even after deleting the game, files can remain in the game. /Android/obb/ (For example, Genshin Impact leaves the 15 GB).
How to find and delete:
- Open Mi File Manager and go to Categories โ Large Files.
- Sort by size and delete unnecessary files (e.g. old WhatsApp videos in /WhatsApp/Media/).
- For maps: open Google Maps โ Profile โ Settings โ Offline maps and remove unnecessary regions.
๐ก
The biggest garbage accumulates in the folders of messengers. For example, in Telegram, the sticker cache and the gif can take up to 3-5 GB. To clean it, go to Telegram Settings โ Data and memory โ Storage โ Clear the cache
5. Reset system application settings: when nothing helps
If the phone started to brake and cleaning the cache didn't help, the problem could be settings for system applications.
- ๐ฑ com.miui.home (launcher) โ if the main screen is slowing down.
- ๐ com.android.contacts โ if contacts are slowly opened.
- ๐ท com.miui.gallery โ if the gallery does not load the photo.
How to reset your settings:
- Go to Settings โ Applications โ Application Management.
- Click on the three dots in the top right corner and select Show All Apps.
- Find the system application you need (e.g. Gallery).
- Select Warehouse โ Space Management โ Resetting.
Attention. โ ๏ธ: Resetting the com.android.settings application settings will result in:
- ๐ I will reset all personal settings (wallpaper, sounds, gestures).
- ๐ Losing saved Wi-Fi passwords.
- ๐ฑ Return to the standard launcher (if you used a third-party launcher).
If the reset didnโt work, try disabling the problem app (unless itโs system critical).For example, com.miui.weather2 (weather) can be turned off without consequences.
6. Manual cleaning of Dalvik cache: for advanced users
Dalvik cache is an optimized file that Android creates to speed up the launch of applications. Over time, they fragment and can take up to 1-2 GB. Clearing Dalvik cache is useful if:
- ๐ข The phone slowly opened the app.
- ๐ After updating MIUI/HyperOS lags appeared.
- ๐ Free memory is decreasing on its own.
How to clean (recovery or root required):
- Turn off the phone.
- Press Volume Up + Power to enter Recovery.
- Choose Advanced โ Wipe Dalvik Cache.
- Reboot your phone (Reboot System)
Warning โ ๏ธ: After cleaning the Dalvik cache, the first start of the phone will be longer than usual (up to 5-10 minutes). Do not interrupt the process! Also do not clean the Dalvik cache more than 1 time every 2-3 months - this can lead to memory wear and tear.
What is Dalvik Cache and Why Canโt It Be Cleaned Too Often?
7.Alternative methods: ADB and hidden commands
If standard methods don't work, you can use ADB (Android Debug Bridge) for deep cleaning, which requires connecting the phone to a computer, but allows you to remove debris that is not available through the interface.
The main cleaning commands are:
adb shell pm clear com.miui.securitycenter #Disposal of the Security Center
adb shell pm clear com.android.providers.media # Cleaning up media cache
adb shell rm -rf /data/local/tmp/* # Delete temporary files
adb shell sync # File system synchronizationHidden MIUI commands are also useful:
- ๐ Dial on the phone ##4636## โ Choose Usage Statistics โ Clear data (resetting of usage statistics).
- ๐ฑ Type #284## for sensor test (sometimes helps to reset system errors).
Attention. โ ๏ธ: Teams. ADB They can harm the system if you're incorrectly entered. For example, the adb shell rm command -rf /data/* It would completely erase all user data (photos, contacts, messages) on one of the Redmi Note test sites. 8 Pro. Always check the syntax!