Why the gallery doesn’t display photos from WhatsApp on Xiaomi Redmi

When the standard gallery stops seeing new images from messengers after updating the MIUI or HyperOS operating system, it has become one of the most common problems for Xiaomi owners: users receive a notification of a new message, but they can not find the attached file in the album. This causes panic and thoughts about data loss, but in 95% of cases the files are physically on the device, the indexing system has simply stopped displaying them correctly.

The root of the problem is often Android security policy changes that severely restrict applications from accessing the file system. In recent MIUI versions, folders with messenger media files by default can be hidden from the system scanner or have the.nomedia attribute that prevents content from being displayed in the gallery.

In this article, we will take a closer look at how storage works on Redmi and Poco smartphones, and provide a step-by-step algorithm to restore visibility to your images. You don’t need root rights or complex computer utilities. We will look at both software visibility settings and possible conflicts in the work of Media Storage.

Changes to Android Access Policy and Folder Structure

Starting with Android 11 and up, Google introduced Scoped Storage, which was a game-changer for developers and users: WhatsApp used to be free to save files to a shared DCIM or Pictures folder, from where they were immediately picked up by the gallery, and now each software must store data in its own isolated directory, access to which is limited.

On Xiaomi smartphones, this has shifted the path to images. If you used to search for files on the WhatsApp/Media/WhatsApp Images path, now they can be deeper in the structure of Android/media/com.whatsapp. The standard MIUI gallery does not always have time to adapt to these changes or correctly scan new protected areas.

Also, the operating system itself can block certain folders from scanning to save battery power or speed up the interface. If you've recently cleaned a cache or used third-party optimizers, your access settings may have gone wrong. It's important to understand that the files are still there, they're just in the blind spot for your current display configuration.

⚠️ Warning: Don't try to manually rename system folders inside the Android directory without backing up.This could cause WhatsApp to stop seeing its own database of media files.

To check the current folder structure, it is recommended to use a built-in Explorer. Go to the Documents or Internal Drive section and carefully study the contents. Often users simply do not know where the files are now physically located, and look for them in old familiar places.

The first thing you need to do before you go into the file system is to check the settings of the Gallery app itself. There's a built-in album hiding feature in the MIUI shell that could have been activated accidentally or after you reset your settings. Open the app and go to Albums.

Click on the three dots in the top corner or the Settings button (often looks like a gear).Look for Hidden Albums or Album Visibility Management. Here you can activate a switch that hides.whatsapp prefix folders or application system folders. Make sure all sliders are active.

📊 Have you experienced a photo disappearing after the update? MIUI?
Yeah, all the photos are missing.
Just a photo from WhatsApp.
The photos disappeared, but were found in hidden folders
No, I'm working.

It's also worth checking whether Closed Folder or Second Space is enabled. Sometimes users mistakenly save files to an isolated environment instead of the main profile. If you have Second Space set up, check the gallery there by switching over system settings.

Another important aspect is the operation of the Memory Cleanup function. Xiaomi's built-in optimizer can label old messenger media files as "junk" and hide their previews to speed up the loading of the gallery. Try turning off automatic storage optimization while you're diagnosing them.

Solving the problem through the.nomedia file

One of the most common technical reasons for photos to disappear is the presence of a special utility file called.nomedia, which is a command for the Android operating system: "Don't scan this folder and show its contents in the gallery." Often created by the applications themselves to protect privacy or appears as a result of recording errors.

To fix this, you’ll need a file manager that supports hidden files (like Xiaomi’s standard Explorer or X-rays). MI File Manager. In the Explorer settings, enable the option to "Show hidden files." After that, go on the path: Internal drive → Android → media → com.whatsapp → WhatsApp → Media → WhatsApp Images.

If you see a file called.nomedia, you need to delete it, and check the parent folders, all the way to com.whatsapp, and if you delete it, you'll have the system scan the directory again and add images to the general index.

💡

Once you delete the.nomedia file, don't restart your phone right away. Give the system 5-10 minutes to re-index the media files in the background.

If you don't have a file, you can create it artificially in the folder you want to hide, but in this case, the task is reversed. Sometimes it helps to create a.nomedia file in the WhatsApp Images/Statuses folder so that the gallery stops showing thousands of statuses, and vice versa, removing it from the main image folder.

Cleaning up Media Storage cache and Galleries

When the software settings are in order and the files are in place, the culprit is a malfunction of the system component Media Storage, which is responsible for scanning all the contents of the phone and building a database for the gallery, music player and other applications, if its database is damaged or outdated, new photos will not be displayed.

To reset this process, follow the following steps:

  • 📱 Go to Settings. → Annexes → All applications.
  • 🔍 In the search, type “Media Storage” (or Media Storage).
  • 🗑️ Press "Clear» → «Clear everything" (don't be afraid, your photos will not be deleted, only the index will reset).
  • 🔄 Repeat the procedure for the Gallery app».

Once you do this, be sure to restart the device, and when you turn on, the system will start the background indexing process, which can take anywhere from 10 to 30 minutes depending on the number of files on the phone, during which time the phone may get slightly warmer.

☑️ Checklist of Media Storage diagnostics

Done: 0 / 5

Importantly, on some versions of MIUI, the process may simply be called Media Storage. If you don't find it in the general list, click three dots in the corner of the application list and select Show System Processes.

Comparison of paths to files in different versions of Android

Understanding the file path difference is critical to finding missing images, and here is a chart showing how the storage logic has changed depending on the version of the operating system installed on your Redmi.

Android versionType of accessThe Way to WhatsApp PhotosVisibility in the Gallery
Android 9 and belowOpen-ended/WhatsApp/Media/WhatsApp ImagesAutomatic.
Android 10Transitional/WhatsApp/Media/WhatsApp ImagesAutomatic.
Android 11+Scoped Storage/Android/media/com.whatsapp/...Requires settings
Android 13+Strict/Android/media/com.whatsapp/...Often hidden

As you can see from the table, the path has gotten longer and more complicated on modern smartphones, and it's the Android/media folder that often causes problems, because some file managers don't show its contents by default without special permissions, and it's critical to give Explorer all the permissions you want when you first run it.

If you use a third-party gallery (like Google Photos or QuickPic), the problem can be solved by simply giving that application access to all files on the device. MIUI Sometimes more sloppy about it.

Specific settings MIUI and HyperOS

Xiaomi’s shells have unique features that can block media display, including the “Second Space” and “Hidden Albums” features we’ve already mentioned, but there are more subtle settings.

New versions of HyperOS have enhanced privacy protections. Go to Settings → Privacy Protection → Special Permissions → Access to Multimedia Files. Make sure that the Gallery and WhatsApp app have full access, not limited access ("Photos Only Selected"). Restricted access can block scanning of new folders.

The hidden developer setting
In some cases, the option “Do not remain active” in the menu for developers helps, followed by a reboot, which forces the re-creation of system processes of media services.

It's also worth checking the battery settings. If Gallery has a "No background activity" restriction, it won't be able to update albums in real time. Set No Limits mode for this app.

⚠️ Note: If you reset your network settings or completely reset your phone without prior synchronization, local folder visibility settings will be lost and the problem will have to be solved again.

Use of Third-Party File Managers

If standard Explorer is not working well or MIUI seems too confusing, the best solution is to install a dedicated file manager, and applications like Files by Google, Solid Explorer or FX File Explorer have more flexible display settings.

Install one of these managers, give it all the permissions, and go to the root directory. Often third-party applications see files where the system utilities are blinded. You can just open the file through a third-party manager, and it will automatically add to the system index.

They also allow you to rename files en masse or change their extensions if there is an encoding error, but beware: changing the extension from.jpg to something else will make the file unreadable for the gallery.

💡

The main reason for hiding photos on Xiaomi Redmi is the.nomedia file marker and strict security policies of Android 11+, which require manual confirmation of access to folders.

In conclusion, the problem is solved in a complex way: checking hidden files, resetting the cache of the media service, and carefully adjusting access rights. If none of the methods worked, the SQLite database itself, which WhatsApp uses, may be damaged, and then you will need to reinstall the messenger with restoration from the backup of Google Drive.

Why do photos appear on WhatsApp but they don’t appear in the Gallery?
This means that the messenger application has successfully uploaded and saved the file to its isolated folder, but the system indexer (Media Scanner) has not yet updated the database or has no rights to read that particular directory.
Is it safe to delete a.nomedia file?
It's a simple text file without an extension, and it's just a marker for the system, and if you delete it, it won't hurt the operating system or your data, it'll just let the gallery scan the folder.
Are there any old photos or just new ones?
If you lose old photos, you might have a file system error or an index reset, and if you have new ones, you might have a problem accessing the new folder that you created after you upgraded your WhatsApp or Android app.
Will the MIUI update help?
Sometimes new firmware versions fix the media scanner bugs, but they can also introduce new restrictions, so if you have a problem after an update, you better roll back the version or wait for a patch.