How to add exceptions to the cleanup on Xiaomi Poco X3: save the right files and applications

Xiaomi Poco X3 is a popular smartphone with powerful stuffing, but even its 64/128 GB of memory is eventually clogged with unnecessary files. Built-in cleaning (Security โ†’ Cleanup) helps to free up space, but often removes what the user still needs: cache of the right applications, downloads or even save games. Today we will discuss how to configure exceptions in the cleanup so that automatic processes do not touch important data.

The problem is that by default, MIUI (even in the latest Poco X3) doesnโ€™t offer flexible tools to fine-tune the cleaning, and users are faced with the fact that after clicking โ€œCleanโ€ disappear:

  • ๐Ÿ“ Downloaded files from the Download folder (such as documents or archives);
  • ๐ŸŽฎ Cache games, which is why you have to re-download updates;
  • ๐Ÿ“ฑ Logs and temporary application files that are needed for debugging;
  • ๐Ÿ“ธ Miniatures and previews from the gallery, which slows down its work after cleaning.

Fortunately, there are ways around this, from manual file transfers to hidden MIUI features and third-party utilities, and we'll go through each method in detail.

1. Standard cleaning settings in MIUI: what can be turned off

Before you resort to third-party solutions, check the built-in options. In the Poco X3 (as in other smartphones on MIUI 12/13/14), there is the possibility of partially controlling what will be removed during cleaning.

  1. Open Settings โ†’ Applications โ†’ Cleaning;
  2. Put it on the gear icon (โš™๏ธ) top-right;
  3. In the section "Autocleaning" disable unnecessary items: ๐Ÿ—‘๏ธ App cache โ€“ if you do not want to clear the cache of all programs; ๐Ÿ“ฅ Download files โ€“ so as not to lose downloaded documents; ๐Ÿ“ค Recycle Bin - if you store important files there.

Method limitation: Even when these options are disabled, the system can delete temporary files that do not fall into the categories indicated, such as individual game cache or application data labeled as โ€œjunk.โ€

๐Ÿ“Š How often do you clear your memory on Poco? X3?
Once a week.
Only when the place ends.
Never clean.
I'm using third-party utilities.

2. Manually add exceptions through file manager

The most reliable way to protect files from being cleaned is to move them to folders that MIUI doesn't touch.

  • ๐Ÿ“‚ /storage/emulated/0/Android/data/ โ€” Application data is stored here (but only accessed from root or through ADB);
  • ๐Ÿ“‚ /storage/emulated/0/DCIM/ โ€” Photos and videos (except: thumbnails in.thumbnails);
  • ๐Ÿ“‚ /storage/emulated/0/Music/, /storage/emulated/0/Movies/ โ€” mediafiles;
  • ๐Ÿ“‚ /storage/emulated/0/MIUI/ โ€” System folders (not recommended for user files).

Instructions for transfer:

  1. Open Files (standard file manager MIUI)
  2. Select one of the protected folders (for example, DCIM/Camera or create a new one in Music).

โš ๏ธ Note: Do not move files to /Android/obb/ โ€” This is a folder for additional game data, and some applications may not see files manually placed there.

โ˜‘๏ธ Preparation for manual file transfer

Done: 0 / 4

3.Using the Protected Folders feature in MIUI

MIUI has a hidden Secure Folders feature that is originally designed to hide sensitive files, but also protects them from automatic cleanup.

  1. Open Files โ†’ go to the โ€œCategoryโ€ tab;
  2. Scroll down and find the Secure Folders section (if not, update Files via Google Play);
  3. Create a new secure folder by setting a password or fingerprint.
  4. Move files to it that should not be deleted during cleaning.

Advantages of the method:

  • ๐Ÿ”’ Files are not only protected from cleaning, but also hidden from strangers;
  • ๐Ÿ“ฑ Access to the folder is only possible through Files or Gallery (not visible in other managers);
  • ๐Ÿ”„ When resetting the folder remains intact (if not formatting the memory).

Disadvantages: if you forget the password, it will be impossible to restore access to files without resetting your smartphone.

What if โ€œSecure Foldersโ€ are not on the menu?
If you're in your version MIUI If you donโ€™t have this section, try: 1. Update the Files app to the latest version via Google Play. 2. Install an alternative file manager (like Solid Explorer) and manually create a folder with a dot at the beginning of the name (like.protected), but this wonโ€™t work on all versions. MIUI. 3.Use ADB-commands to create a hidden directory (developer rights required).

4. Set up exceptions for the app cache

One of the most annoying things about cleaning up is removing the cache of games and apps (like Google Maps, YouTube or Genshin Impact) to avoid this:

Method 1: Disabling cache cleaning for individual applications

  1. Go to Settings โ†’ Applications โ†’ Application Management;
  2. Select the app you want (like Google Chrome).
  3. Tap โ€œClear the cacheโ€ โ†’ โ€œMemory managementโ€;
  4. Turn off the option of โ€œCache Autocleanerโ€ (if available).

Method 2: Using ADB to block cleaning (requires a PC)

For advanced users, there is a way to block cache clearing for specific packets via ADB:

adb shell cmd appops set <package_name> CLEAR_APP_CACHE deny

Where <package_name> โ€” Application ID (e.g. com.android.chrome for Chrome) can be found through the App Inspector or Package Name Viewer from Google Play.

โš ๏ธ Note: Some system applications (e.g. com.miui.securitycenter) may ignore this command. MIUI settings may reset.

AnnexPacket IDIs it recommended to block the cleaning of the cache?
Google Chromecom.android.chromeYeah (keeps history and bookmarks)
YouTubecom.google.android.youtubeYeah (accelerates video uploading)
Genshin Impactcom.mihoyo.GenshinImpactYes (avoids reloading resources)
WhatsAppcom.whatsappNo (media cache can be cleared)

5. Third-party utilities for flexible cleaning

If built-in MIUI tools aren't enough, use third-party apps that allow you to:

  • ๐ŸŽ›๏ธ Configure whitelists of files and folders;
  • ๐Ÿ“Š See which files will be deleted before cleaning;
  • ๐Ÿ”„ Automate cleaning on schedule with exceptions.

Top.-3 POCO X3:

  1. SD Maid โ€“ allows you to add exceptions for files and folders, supports cleaning by mask (for example, *.apk);
  2. Files by Google โ€“ has the โ€œCleanupโ€ function with manual selection of files for removal;
  3. CCleaner is able to save the list of exceptions and clear only specified categories.

How to set exceptions in SD Maid:

  1. Click on the filter icon (๐Ÿ”) โ†’ ยซExclusionsยป;

๐Ÿ’ก

Before using third-party cleaners, check their reputation on Google Play. Some utilities (such as "Clean Master") can aggressively delete data or display intrusive ads.

6.Alternative method: backups before cleaning

If neither of these methods works, you have to back up before every cleanup, and it doesn't protect files from being deleted, but it allows you to quickly restore them. X3 fit:

  • โ˜๏ธ Cloud services: Google Drive (15GB free); Mi Cloud (5GB for Xiaomi accounts); Yandex Disk (10GB when registering).

Backup Automation: In Settings โ†’ System โ†’ Backup can enable automatic copying to Mi Cloud (but it doesnโ€™t save user files, only settings and apps).

๐Ÿ’ก

Backup is the only way to guarantee data retention if you clear memory frequently. Even with exceptions, there is always the risk of file loss if a system crashes or MIUI updates.

7. Frequent mistakes and how to avoid them

When setting exceptions, Poco X3 users often face typical problems:

  • ๐Ÿšซ Ignoring System Warnings: If MIUI He says that the folder will be cleaned, it will be cleaned, even if you transfer the files there.
  • ๐Ÿ”„ Resetting settings after update: after update MIUI all exceptions ADB or the cleaning settings are reset. Check them after each update.
  • ๐Ÿ“‚ The wrong path to folders: in ADB For file managers, specify full paths (e.g, /storage/emulated/0/Download/, Not just a download).
  • ๐Ÿ”’ Forgotten password from secure folders: if you lock the folder and forget the password, it is impossible to restore access without resetting the phone.

How do you check if exceptions work? Before a mass cleanup:

  1. Create a test file (e.g. test.txt) in the folder you want to protect.
  2. Start cleaning (Safety โ†’ Cleaning);
  3. Check if the file is still in place.

FAQ: Answers to Frequent Questions

Can you completely turn off automatic cleaning on the Poco X3?
Yes, but it's not recommended. Complete shutdown will result in garbage filling the memory. Better set exceptions or manually clean through Files. How to disable: Go to Settings โ†’ Battery and productivity โ†’ Cleaning; Turn off the โ€œAuto Cleanโ€ option; Into Security โ†’ Cleanup โ†’ โš™๏ธ Turn off all automatic processes.
Why do game saves disappear after cleaning?
Most games store progress in a folder /Android/data/<package_name>/files/ or /Android/obb/. If the game is not synced to the cloud (e.g. via Google Play Games), saves can be deleted when the cache is cleared.Solution: Use ADB to block the cleaning of the game cache (see section) 4); Move the folder with the saved in DCIM or other protected directory; Enable cloud sync in game settings.
How to recover files deleted during cleaning?
If files have been deleted recently, try: Check the Recycle Bin in the Files app (Basket section, files are stored there for 15 days); Use recovery software: DiskDigger (runs without root, but with restrictions); Recuva (requires you to connect your phone to a PC); EaseUS MobiSaver (paid version recovers more files); Check backups in Google Drive or Mi Cloud. Important: after deleting, do not write new files to your phone - this reduces the chances of recovery.
Will the cleanup work if you disable Security via ADB?
Disabling the com.miui.securitycenter application will result in: โœ… Stopping automatic cleaning; โŒ Loss of access to battery optimization, virus protection and application blocking; โš ๏ธ Possible disruptions to work MIUI (For example, system applications will not be updated. Command to disable: adb shell pm disable-user --user 0 com.miui.securitycenter To get everything back: adb shell pm enable com.miui.securitycenter
Can I add exceptions to the cleaning through TWRP?
Yes, if you have TWRP Recovery installed, you can manually edit files that should not be deleted. To do this: Boot to TWRP (press Power + Volume Up); Go to File Manager; Find the folders you want to protect (e.g. /data/media/0/Download); Create an empty file called.nomedia in them โ€“ this will prevent the folder from being scanned by system utilities (but does not guarantee 100% protection: this method does not work for the cache of applications and system files).