You open a gallery on your Xiaomi to show your friends fresh shots, but instead a blank screen or the words "No files"? The situation when photos suddenly disappear from the gallery is familiar to many owners of smartphones of this brand. The reasons can range from banal user errors to deep failures in the firmware MIUI. In this article, we will not just list the possible culprits of the problem, but also give specific instructions for recovering lost files - taking into account the features of different models of Redmi, POCO and Xiaomi's flagship series 12/13/14.
Itβs important to understand that missing photos from a gallery doesnβt always mean physically removing them from a device. 60% of the time, files remain in the phoneβs memory but become inaccessible due to a failure in the Gallery app or system services. Another common reason is the automatic memory optimization that Xiaomi aggressively implements in the latest versions of MIUI. Next, weβll look at each of the reasons in detail, starting with the easiest to diagnose.
1. Failure of the Gallery application or cache
The most innocuous and easily remedied cause is a temporary failure in the standard Gallery app, which can occur after a MIUI update, abrupt power outage, or conflict with other programs.
To check out this version:
- π Restart your phone β sometimes itβs enough for the system to re-initialize the cache of the gallery.
- π§Ή Clear the app's cache: Settings β Annexes β Application management β gallery β Warehouse β Clear the cache.
- π§ Reset the gallery settings (without deleting data): in the same menu, click Reset settings".
- π₯ Update the app via Google Play (if you are using a Google gallery version rather than the standard one).
If the photos came back after that, the software was the problem, otherwise we'll move on to the following points.
2. Automatic memory optimization and "smart cleaning"
Xiaomi is known for its aggressive memory management policy, especially on budget models (Redmi Note 10/11/12, POCO M4/M5).Smart Cleanup can automatically delete "unnecessary" files, including photos, if:
- π Free disk space less than 10% (threshold varies depending on the model).
- π Files have not been opened for more than 30 days (setting is hidden in Settings) β Memory. β Make room β Settings).
- π The photos were moved to the basket" MIUI and automatically deleted after 15 days.
How to check and disable this function:
- Open Settings β Memory β Free up space.
- Click on the gear in the upper right corner and turn off the "Car Clean" option.
- Check the Recycle Bin section in the Gallery app - the files are probably there.
π‘
On models with MIUI 14+, the path to cleaning settings has changed: Settings β Storage β Storage settings β Automatic cleaning.
Critical feature: on some Xiaomi firmware for China (CN-ROM), the auto-cleaning function does not have a shutdown interface β it works at the system level, in which case only a rollback to the global firmware (Global ROM) will help.
3. Conflict with cloud storage Mi Cloud or Google Photos
If youβre syncing with Mi Cloud or Google Photos, the missing photos may be due to:
- π Version Conflict: Local files are replaced by cloud (or vice versa) in a bad Internet.
- ποΈ Optimize storage in Google Photos (Photos are replaced by links to the cloud).
- π Mi Cloud login failure after password or region change.
Diagnosis:
- Open Settings β Accounts β Mi Cloud and check the sync status.
- In Google Photos, go to Settings β Free up space β if the option is active, local copies could be deleted.
- Check the DCIM/.thumbdata folder through the file manager β sometimes thumbnails remain and originals are left in the cloud.
βοΈ Checking cloud synchronization
β οΈ Note: If you delete photos from Google Photos, they will automatically disappear from the Xiaomi Gallery (and vice versa) when you actively sync them.
4. Damage to the file system or memory card
If the photos are missing after retrieval SD-A card, a phone crash, or a power outage, may be the fault of a damaged file system:
- π Gallery shows empty folders or icons of a "damaged file".
- π Phone asks to format memory card when connected.
- π B Settings β The storage is displayed as an "unknown" occupied place.
Decisions:
- For internal memory: adb shell fsck /dev/block/mmcblk0pX (where X is the partition number, requires root).
- For SD-Maps: Connect the card to the PC via the card reader. Launch chkdsk E: /f In the Windows command line (replace E: with the letter of your drive). Use utilities like PhotoRec or Recuva to recover.
| Type of damage | Reason. | Decision |
|---|---|---|
| Logical errors FAT32/exFAT | Incorrect card extraction | chkdsk or formatting |
| Physical bad sectors | Depreciation of flash memory | New-carrier cloning |
| Damage to the section table | Firmware failure | Recovery through TestDisk |
β οΈ Note: If the memory card is defined as "RAW" If you ask for formatting, don't agree, it will lead to permanent loss of data.
5. Hidden files or virus activity
Sometimes the photos are not lost, but become hidden because of:
- π¦ Viruses that rename files (e.g., add the.nomedia extension).
- ποΈ Manual Hiding Through File Managers (such as Mi File Explorer).
- π System folders (e.g, DCIM/.thumbnails), which are not displayed by default.
How to return hidden files:
- Install a file manager that supports hidden files (e.g. FX File Explorer).
- Go to /storage/emulated/0/DCIM and check for files with the.nomedia extension.
- Run virus testing through Malwarebytes or Dr.Web.
If the photos were hidden by a virus, their names may look like this:
IMG_20230515_123456.jpg.virus
DCIM_12345.backup
photo_1.datHow to recognize malware on Xiaomi
6. Reset settings or update MIUI
After updating the firmware or resetting to factory settings, photos can disappear for two reasons:
- The files are still there, but the gallery canβt see them β the permission to access the DCIM folder has been lost.
- Files are deleted β if the reset was made via Fastboot or with the formatting of internal memory.
What to do:
- π Check the folder. DCIM through ADB: adb shell ls /storage/emulated/0/DCIM If the folder is empty, but the disk space is occupied, the files could be moved to the disk. /data/media/0/MIUI/Backup.
- π₯ Restore data from the Mi Cloud backup (if it was created before the reset).
- π§ Use DiskDigger or EaseUS MobiSaver for deep scanning.
Important: On Xiaomi models with Snapdragon 8 Gen 1/2 chip (for example, Xiaomi 12 Pro, 13 Ultra) after resetting via Fastboot, you can only restore files using professional tools like UFS Explorer - standard utilities do not see partitions with FBE encryption.
Hardware malfunctions
If none of the above methods worked, the problem may be in the iron:
- πΎ Memory module malfunction (especially on older Redmi models) 4/5 eMMC).
- π Oxidation of contacts on the board (after moisture hits).
- π Power controller failure, which causes the phone to fail to see part of the memory.
Signs of hardware malfunction:
| Symptoms. | Probable cause |
|---|---|
| Phone accidentally reboots when gallery opens | Problems with memory controller |
| Photos disappear after heating the phone | Oxidation of contacts or dump of memory chip |
| In Settings β Storage displays β0 MBβ freely | Failure of the file table or memory failure |
β οΈ Warning: If you suspect a hardware malfunction, do not attempt to recover data yourself, which may exacerbate the problem. PC-3000 or UFS Tool.
π‘
On Xiaomi phones with UFS 3.1 (e.g., Xiaomi 11T Pro, 12S Ultra), hardware memory failures are often masked as software errors.