Xiaomi smartphones are known for their performance, but over time, even they start to slow down due to clogged memory. High-resolution photos, app cache, duplicate files and pre-installed MIUI services take up gigabytes of space you donβt even know you have. In this article, weβll break down safe cleaning methods, from manual garbage removal to hidden system features that are rarely mentioned in standard instructions.
It's important to understand that not everything that's "extra" can be deleted without consequences, for example, cleaning the cache of some system applications (like com.miui.home) can cause the shell to malfunction, we'll show you which files you can touch and which ones you can only use as a last resort, and you'll also learn how to automate the process so you don't go back to cleaning every week.
1. Analysis of occupied space: what exactly is the memory?
Before you delete something, you need to understand what kind of data is eating away at memory. MIUI has a built-in analyzer, but it often hides some of the information. Here's how to get the whole picture:
Open Settings β About Phone β Memory. Here you will see a diagram of categories: Apps, Images, Video, etc. But this tool doesn't show you:
- π Hidden folders (e.g.,.thumbnails with thumbnails or thumbnails) Android/data game-cache)
- π Duplicate files that are created when backing up
- π± Residual files after deleting applications (sometimes up to 500 MB)
For deep analysis, use third-party tools like Files by Google or SD Maid, which scan the memory at the file system level and find what MIUI misses. For example, SD Maid detects:
- ποΈ Empty folders (remain after uninstallation of programs)
- π Zero size files (junk tags)
- π Folders with the same content (duplicates of documents)
Notice the category "Other" in the MIUI analyzer, which is often hidden here:
- π Logs of the system (/data/log)
- π΅ Offline cache of music services (for example, Spotify or Yandex Music)
- π‘ Geolocation data (cache of Google Maps or Yandex.Navigator maps)
2.Cache cleaning: what can be removed and what can not
Cache speeds up applications, but eventually becomes the main source of garbage. There are two types of cache in MIUI:
- Custom cache β temporary application files (can be deleted without risk)
- System cache β shell and service data (cleanup may cause failures)
To safely clear the cache:
- Go to Settings β Applications β Application Management.
- Select an app (such as Instagram or Telegram).
- Click Clear Cache (NOT Clear Data β this will delete accounts and settings!).
For mass cleaning, use the built-in tool:
- Open Security. β Cleanup.
- Select βDeep Cleanβ and tick off unnecessary files.
- Click βCleanβ (the system will automatically miss critical data).
Clear the cache only for custom applications
Donβt touch system processes (start with com.android or com.miui)
Close all active programs before cleaning.
After cleaning, restart the phone.-->
β οΈ Warning: Never clear the cache for com.miui.gallery and com.android.providers.media, which can cause photos to disappear and media to crash.
If you want to remove the cache completely (including system), do so through the Recovery mode:
- Turn off the phone.
- Press Volume Up + Power before the Mi logo appears.
- Select Wipe & Reset β Wipe Cache (not to be confused with Wipe Data!).
3. Removal of pre-installed applications (bloatware)
Xiaomi is known for stuffing its smartphones with unnecessary apps, from Mi Browser to Mi Pay. Many of them canβt be removed by standard methods, but there are workarounds.
Method 1: Disconnect via settings (without root)
- Go to Settings β Applications β Application Management.
- Find an unneeded app (such as Mi Music or Mi Video).
- Click βDisableβ (this hides it from the menu and stops background processes).
Method 2: Remove via ADB (for power users)
If the shutdown is not enough, you can completely remove system applications using ADB (Android Debug Bridge).
- Turn on Developer Mode (7 times click on Version) MIUIΒ» In Settings β The phone).
- Activate Debugging by USB in Settings β Additional β For developers.
- Connect your phone to your PC and execute the command: adb shell pm uninstall --user 0 com.miui.videoplayer (replace com.miui.videoplayer with the desired application package).
List of safe to remove MIUI packets:
| Annex | Packet name | Can I remove it? |
|---|---|---|
| Mi Browser | com.android.browser | Yes (there are alternatives) |
| Mi Music | com.miui.player | Yes. |
| Mi Video | com.miui.videoplayer | Yes. |
| Mi Pay | com.miui.mipay | Yes (unless you use it) |
| Cleaner | com.miui.cleanmaster | No (system optimizer) |
β οΈ Note: Removing com.miui.home or com.android.settings will cause your phone to fail and can only be restored through a full reset or flashing.
4. Cleaning up multimedia: photos, videos and duplicates
Photos and videos are the main memory eaters, and even if you regularly transfer them to your PC, you still have:
- πΈ Miniatures (folder.thumbnails)
- π₯ Cache of editors (for example, from CapCut or InShot)
- π Duplicates (created when imported from messengers)
To clean this up:
- Use Google Photos to search for duplicates: open the app β click on the avatar β Free Place β Clear duplicates.
- Delete the.thumbnails folder through the file manager (e.g. Mi File Manager or Solid Explorer).
- Clear the video editor cache in Settings β Apps β [Editorβs Name] β Clear the cache.
To automatically clean up your garbage from the gallery, install Files by Google:
- Open the app and go to the βCleanupβ tab.
- Select βLarge Filesβ or βDublicatesβ.
- Review the files proposed for deletion and confirm the action.
π‘
Before mass deleting photos, turn on the display of hidden files in the file manager settings, so you do not miss folders like.nomedia, which can take up to 1-2 GB.
5.Storage optimization: data portability and cloud services
If you're running out of memory and you don't want to delete anything, you can transfer it to an external drive or to the cloud. Here's how to do it effectively.
Transfer to microSD:
- π Use the class memory card A2 (It works faster with applications).
- π V MIUI You can only transfer part of the application: β Annexes β [Choose] β Warehouse β Change. β Memory map.
- π· Port photos and videos manually through the file manager.
Cloud services:
- βοΈ Google Photos β automatically uploads photos and videos (you can turn on compression to save traffic).
- π¦ Mi Cloud β gives 5 GB for free, but only syncs contacts and notes (for media files is not suitable).
- π Yandex Drive or Mega β Allows you to download files of any type (up to 20 GB free).
To automatically upload photos to the cloud:
- Open Google Photos.
- Click on the avatar β βPhoto settingsβ β βBackup and syncβ.
- Select βHigh Qualityβ (unlimited storage) or βSourceβ (place counter).
β οΈ Note: When you migrate applications to microSD, they may be slower. Do not transfer messengers (WhatsApp, Telegram) to them - this will cause delays in notifications.
6. Hidden MIUI functions for memory release
Xiaomi hides a few useful cleaning tools that arenβt visible in the basic settings.
1. Light Mode (Light Mode)
Reduces background processes and frees up RAM:
- Enable Developer Mode (as described above).
- Go to Settings β Additional β For developers β Easy mode.
- Activate the option and restart the phone.
2. Cleaning through the engineering menu
Allows you to remove debris that is not visible in standard settings:
- Dial in the dialer: ##4636##.
- Select "Storage."
- Click on Clear Cache (not to be confused with Clear Data!).
3. Disconnecting automatic diagnostics
MIUI constantly collects data about phone usage, which takes place:
- Go to Settings β About the phone β Reviews and analytics.
- Turn off Automatic Reporting.
- Delete /data/data/com.miui.analytics folder via Root Explorer (superuser rights required).
What happens if you delete the com.miui.analytics folder?
7. Cleanup automation: setting up regular garbage disposal
To avoid manually cleaning your phone, set up automatic deletion of unnecessary files:
1. Cleaning Planner in MIUI
- Open Security β Cleaning β Settings (cogs).
- Turn on "Car Cleaner."
- Select frequency (weekly or monthly) and file types (cache, temporary data).
2. Tasker for advanced users
With Tasker, you can create a task that will:
- ποΈ Clean the cache every Saturday at 3:00.
- π Remove files older than 30 days from the Download folder.
- π Notify about memory filling at 90%.
Example of Tasker's task:
- Create a new task.
- Add the Code β Run Shell action.
- Type in the command: pm clear com.miui.cleanmaster (this will reset the cache of a standard cleaner).
- Set the trigger for time (for example, once a week).
π‘
Automated cleaning saves time, but does not replace manual checking. Regularly (every 1-2 months) analyze the memory manually to remove accumulated duplicates and unnecessary files.