How to prevent saving photos from WhatsApp in the gallery Xiaomi: all ways

Xiaomi smartphones (including the Redmi, POCO and Black Shark lines) by default save all photos and videos received via WhatsApp directly to the system gallery, which leads to chaos in the DCIM folder, duplicate files and quickly fill internal memory.

The problem is compounded by the fact that MIUI (the Xiaomi brand shell) actively scans folders for new media files, and even after removal from the gallery, they can remain in the app cache. In this article, we will discuss all the working ways to disable auto-save โ€“ from the settings of WhatsApp itself to hidden MIUI functions and third-party utilities.

The reason lies in two factors: the settings of the messenger and the features MIUI. By default, WhatsApp creates a folder on the internal drive WhatsApp/Media, Xiaomi automatically indexes this folder through the Gallery system app, even if you didn't open it.

Key points:

  • ๐Ÿ“ folder WhatsApp/Media It is divided into subfolders: Images, Video, Audio, etc. This is where files get into the gallery.
  • ๐Ÿ”„ MIUI Updates the media index every time you connect to Wi-Fi or charge, so even old files can suddenly appear in the gallery.
  • ๐Ÿ“ฑ On Android 11 smartphones+ and MIUI 12.5+ WhatsApp gets expanded storage rights, making it harder to block auto-save.

It's important to understand that simply deleting files from the gallery doesn't solve the problem: they will remain in the WhatsApp folder and be restored the next time you scan, you need to disable the source, either in the messenger settings or at the system level.

๐Ÿ“Š How often do you get unwanted media on WhatsApp?
Every day.
Several times a week
Nearby
Almost never.

Method 1: Disable autosave in WhatsApp settings

The most obvious method is to use the built-in messenger options. WhatsApp allows you to flexibly adjust the download of media files depending on the type of connection (mobile data, Wi-Fi or roaming).

  1. Open WhatsApp and tap on it. โ‹ฎ (three points) in upper right corner.
  2. Select Settings โ†’ Warehouse and data.
  3. Scroll to Automatic Download Media Files and click on it.
  4. Set the settings for each type of connection: ๐Ÿ“ถ Mobile data: uncheck all file types (photo, audio, video, documents). ๐Ÿ“ก Wi-Fi: Do the same if you donโ€™t want to save files even on your home network. ๐ŸŒ Roaming: Here autosave is usually disabled by default.

After this, the new media files will not automatically download, but you can download them manually one at a time, but this method does not solve the problem completely: the files received before the change of settings will remain in the gallery, and the folder will remain in the gallery. WhatsApp/Media keep up.

โ˜‘๏ธ Checking WhatsApp settings

Done: 0 / 4

If you don't disable WhatsApp autosave, you can hide the media folder from the system gallery, so you need to create an empty.nomedia file in the WhatsApp/Media folder, which signals Android that the contents of the folder don't need to be indexed as media.

Instructions:

  1. Install any file manager with access to root folders (e.g. Mi File Manager, Solid Explorer, or FX File Explorer).
  2. Go to /storage/emulated/0/WhatsApp/Media/
  3. Create a new text file in each subfolder (Images, Video, etc.) and call it.nomedia (with a dot at the beginning!).
  4. Reboot your smartphone so that the changes take effect.

โš ๏ธ Note: This method does not work on all versions. MIUI. On some devices (for example, Redmi Note 10 Pro with the MIUI 13) the gallery ignores.nomedia and keeps displaying files, in which case try an alternative way to exclude the folder from scanning in the Gallery app settings.

MethodAdvantagesDeficiencies
Disconnection on WhatsAppIt does not require third-party applications.Does not delete old files, does not block manual download
File.nomediaHiding files from the gallery, saving spaceIt may not work on the new MIUI versions.
Exclusion of folder in GalleryIt works even if.nomedia is ignored.Requires manual configuration for each folder

MIUI has a hidden feature that allows you to exclude certain folders from the gallery scanning, which is useful if the.nomedia file didn't work. Here's how to do it:

  1. Open the Gallery app.
  2. Tap it on. โ‹ฎ (three-point) โ†’ Settings.
  3. Select Show Hidden Folders (or Manage Folders in New Versions).
  4. Find the WhatsApp folder and uncheck it. If it's not on the list, click Add and manually specify the path: /storage/emulated/0/WhatsApp/
  5. Save the changes and restart the gallery.

โš ๏ธ Note: Apps will need permissions to access storage and possibly special features (in Android settings).Do not install utilities from unverified sources - this can lead to data leakage.

Instructions for NoMedia:

  1. Download the app from Google Play.
  2. Open it and give access to the files.
  3. Select the WhatsApp/Media folder and click Create.nomedia.
  4. Reset the device.
What to do if the app doesnโ€™t see the WhatsApp folder?
If NoMedia or another file manager doesnโ€™t display the WhatsApp folder, check it out: 1. Have you allowed access to all files (in Android settings: Settings) โ†’ Annexes โ†’ [Name of utility] โ†’ Rights. โ†’ Files and media โ†’ Allow access to all files). 2. Is the folder hidden by system settings (sometimes) MIUI Hide system folders from third-party applications). 3. Are you using it? SD-map as the main storage - in this case, the path to the folder may be different: /storage/XXXX-XXXX/WhatsApp/, where XXXX-XXXX โ€” ID your card.

Method 5: Cleaning up files already saved

Even after auto-save is turned off, the gallery will still have files that were previously downloaded, which can be deleted manually or using WhatsAppโ€™s built-in tools.

Option 1: Delete via WhatsApp

  1. Open Settings โ†’ Storage and Data โ†’ Storage Management.
  2. Sort the files by size or date.
  3. Select the unnecessary and click Remove (basket icon).

Option 2: Mass cleaning through the file manager

  1. Go to /storage/emulated/0/WhatsApp/Media/.
  2. Delete the contents of the Images, Video, Audio folders (but not the folders themselves!).
  3. Clean the cart (if you use Mi File Manager).

โš ๏ธ Attention: Do not delete the folder WhatsApp/Databases โ€” It contains backup chats! Also avoid cleaning WhatsApp/Backups, If you use cloud redundancy.

๐Ÿ’ก

Clean your WhatsApp/Media folder regularly โ€“ even disabled autosave doesnโ€™t prevent files from accumulating when you manually upload them.

Why the methods may not work for the new Xiaomi

On Xiaomi smartphones with Android 13/14 and MIUI 14+, the blocking of auto-save has become more complicated due to:

  • ๐Ÿ” New Permits Policy: Google tightens control over app access to storage, WhatsApp can now ignore.nomedia if it has the right to MANAGE_EXTERNAL_STORAGE.
  • ๐Ÿ“‚ Changes in MIUI: In the latest versions of the shell gallery uses its own media scanner, which does not always take into account system settings.
  • ๐Ÿค– Speared Storage Features: Android 11+ Applications are isolated in their sandboxes, and WhatsApp can save files to secure folders that are not available for.nomedia.

If none of these methods worked:

  1. Try updating WhatsApp to the latest version โ€“ sometimes bugs are fixed in new releases.
  2. Check if your Xiaomi has a MIUI beta installed (they often contain experimental media scanning features).
  3. Use an alternative gallery (like Google Photos or Simple Gallery) that can ignore WhatsApp folders.

FAQ: Frequent questions

Can auto-save be disabled for certain chats only?
Yes, but only indirectly. WhatsApp doesn't allow you to set up auto-save for individual contacts, but you can: Archive chat (long tap) โ†’ ๐Ÿ“ Archive) so that notifications and media from it are not actively displayed. โ†’ Disable notifications for this chat so that files do not load in the background, but this does not guarantee 100% blocking โ€“ files will still be downloaded when you open the chat.
Why do files appear in the gallery again after the reboot?
This is due to background scanning in MIUI. The system periodically checks folders for new media, especially after: Reboot device; Wi-Fi connection. Battery charge above 80%. Solution: disable automatic synchronization in gallery settings or use third-party apps to block scanning.
How to return deleted files if they were needed?
If you accidentally cleaned the folder WhatsApp/Media, File recovery can be done through the Recycle Bin in the file manager (acts) 30 Using data recovery software (DiskDigger, Recuva), but only if the files were not overwritten, asking the sender to resend the files. โš ๏ธ Note: Do not save new files to your device until you try to recover it, which reduces your chances of success.
Will.nomedia work on Xiaomi with root rights?
Yes, but with nuances. If you have a bootloader unlocked and Magisk installed, you can: Create.nomedia via Root Explorer; change the rights to access the WhatsApp/Media folder per 000 (read/write ban); use Magisk modules, such as NoMedia, to block the world, but it is risky: incorrect rights can lead to the collapse of WhatsApp or loss of access to chats.
Is there a difference between Xiaomi, Redmi and POCO?
No, the methods are universal for all devices on MIUI, including: Xiaomi 13/14 series, Mi 11; Redmi Note 10/11/12, Redmi K50; POCO F4/F5, POCO X5; Black Shark 5/6. Exceptions are Android Go devices (for example, Redmi A1), where WhatsApp functionality may be limited.