Where do photos disappear from the gallery on the Xiaomi phone and how to return them?

You opened a gallery on your Xiaomi to show your friends fresh photos, but instead, a void or some of the images disappeared without a trace? This problem is familiar to many owners of the brandโ€™s smartphones, and the reasons can lie in the features of the MIUI firmware, and hardware failures. Unlike iPhone or โ€œpureโ€ Android, Xiaomi devices often hide files in non-obvious folders, automatically optimize storage or encounter sync bugs.

In this article, we will not only list possible scenarios for the disappearance of photos, but also give step-by-step instructions for search and recovery โ€“ from checking the cart to using ADB service commands. Particular attention will be paid to the nuances specific to Xiaomi: for example, why photos can move to the Mi Cloud without your knowledge or how the Smart Cleanup function affects the gallery. If you have already tried standard methods (reboot, search by folders) and they did not work, here you will find solutions for complex cases.

1. Hidden folders and system directories MIUI

The first thing to check is whether photos are hidden in one of the hidden directories that MIUI automatically creates. Unlike standard Android, Xiaomiโ€™s firmware actively uses additional folders to sort media files, for example, pictures from messengers (Telegram, WhatsApp) or screenshots can be stored separately from the main gallery.

How to find hidden photos:

  • ๐Ÿ“ Open any file manager (e.g. Mi File Explorer or Solid Explorer) and go to Internal Memory โ†’ DCIM. Check the subfolders:.thumbnails (miniatures), Camera (main images), Screenshots (screenshots).
  • ๐Ÿ” Enable the display of hidden files: in Mi File Explorer, click โ‹ฎ โ†’ Settings โ†’ Show hidden files.
  • ๐Ÿ“ฑ Check the MIUI โ†’ Gallery โ†’ Cloud folder โ€“ sometimes files are temporarily moved here when synchronized with Mi Cloud.

Important: The DCIM/.thumbnails folder can take up to 1-2 GB, but contain only thumbnails - the original photos can be located elsewhere.

๐Ÿ’ก

If you use a memory card, check it through a PC โ€“ sometimes the MIUI โ€œlosesโ€ communication with the SD- card, and the files become invisible to the gallery, but remain on the media.

2. Automatic storage optimization

The MIUI Smart Clean (or Storage Optimization) feature can delete or archive old photos without your knowledge, and this option is activated by default on many models (Redmi Note 10/11, POCO X3/X4, Mi 11/12) and works according to the following rules:

  • ๐Ÿ—‘๏ธ Deletes files older than 30 days if the device has less than 10% free space.
  • ๐Ÿ“ฆ Archives media files in Mi Cloud, leaving only previews (~100 KB) on the phone.
  • ๐Ÿ”„ Optimizes duplicates by replacing them with links to originals in the cloud.

How to turn off optimization:

  1. Go to Settings โ†’ Memory โ†’ Memory Cleanup.
  2. Turn off the option "Car Clean" and "Storage Optimization".
  3. Check the "Archive" section in the gallery - original photos replaced by previews can be stored here.
๐Ÿ“Š Have you ever lost a photo due to automatic cleaning?
Yeah, and more than once.
Yeah, but he did.
No, but I know about that function.
What is it?

โš ๏ธ Warning: If you use Google Photos in parallel with Mi Cloud, the sync conflict may result in duplicate or file loss. Check the settings of both services and turn off autodelete in Google Photos โ†’ Settings โ†’ Free up space.

3. synchronization failures with Mi Cloud

Mi Cloud is Xiaomi's cloud storage, which is often the cause of missing photos.

  • ๐ŸŒ Unstable Internet connection (photos are partially downloaded or not synced).
  • ๐Ÿ”„ Version conflict (e.g., you edited a photo on your phone and the old version was left in the cloud).
  • ๐Ÿ“ต Authorization errors (if you logged out of your Mi Account or changed your password).

How to recover photos from Mi Cloud:

  1. Open the Mi Cloud app and check the Gallery section.
  2. If you have a photo in the cloud but not on your phone, click on Sync or Restore.
  3. If sync is frozen, clear the app cache: Settings โ†’ Applications โ†’ Mi Cloud โ†’ Storage โ†’ Clear the cache.
Problem.Reason.Decision
Photos are in the cloud, but not on your phone.Incomplete synchronizationManually run synchronization in Mi Cloud
Photos disappeared in the cloud and on the phoneRemoval from synchronized deviceCheck the Recycle Bin in Mi Cloud (stores files for 30 days)
Photo is displayed as a grey squarePreview downloaded, original - noConnect to Wi-Fi and wait for full load
What if Mi Cloud requires device confirmation?
If a notification โ€œNew Deviceโ€ appears when you sign in to Mi Cloud, but the SMS code does not come in: 1. Check if your number is locked in the Mi. 2 account settings. Try requesting the code via email (if it is tied). 3. Use a backup confirmation method (security questions or backup code). If nothing helps, contact Xiaomi support with the IMEI device.

4. Damage to the file system or memory card

If the photos are missing in large numbers or if the gallery shows an error "Can't download the media file", the problem may be a file system corruption.

  • ๐Ÿ“ฑ Internal memory (e.g., after a failed update MIUI).
  • ๐Ÿ’พ MicroSD cards (especially cheap or fake)
  • ๐Ÿ”Œ Connected USB- drives (via OTG).

Signs of damage:

  • The files are displayed as 0 bytes.
  • The folders open with the error "No Way Found".
  • The phone asks you to format the memory card.

How to recover data:

  1. Connect your phone to your PC and use Recuva, DiskDigger, or PhotoRec.
  2. For a memory card, take it out and check it on another device, and if it's identified, copy it and format it.
  3. If internal memory is damaged, try resetting your phone to factory settings (but this will delete all data!).

โš ๏ธ Warning: Don't write new files to a damaged medium, which reduces the chances of recovery. If the memory card is making errors, don't format it right away: try reading the data through TestDisk first.

Sometimes the problem isn't with the files, but with the Xiaomi Gallery app itself.

  • ๐Ÿ–ผ๏ธ Do not display photos due to a thumbnail database failure.
  • ๐Ÿ”„ Focus on updating the media library.
  • ๐Ÿ“ต Fall when you open certain folders (e.g., with HEIC- photo from iPhone).

Solutions:

Clear gallery cache |Update the app via Mi App Store |Install an alternative gallery (e.g. Google Photos or Simple Gallery)|Reset the gallery settings to factory-->

If the standard cache cleaning didnโ€™t help, try rebuilding the media file base:

  1. Install File Manager+ (from Xiaomi) and go to Device โ†’ data โ†’ data โ†’ com.android.providers.media.
  2. Delete external-.db and internal-.db files (this will reset the media cache).
  3. Restart the phone and the system will reassemble the database (it can take 5-10 minutes).

Note: On some models (Redmi 9, POCO M3), this method may not work due to the limitations of MIUI 12+.

6. Viruses or malware

Rarely, viruses can encrypt or hide photos by replacing them with their own files, especially those who:

  • ๐Ÿ“ฒ Install APK from unverified sources.
  • ๐Ÿ”“ Disable Mi Protect (Xiaomi built-in antivirus).
  • ๐Ÿ’ป Connect the phone to infected PCs.

Signs of infection:

  • Photos are replaced with strange images or files with the.locked extension.
  • There are pop-ups demanding payment for "unlocking".
  • The phone is warming and discharges quickly.

What to do:

  1. Install an antivirus (such as Malwarebytes or Dr.Web Light) and scan the device.
  2. Check the list of installed applications: remove suspicious ones (especially those with storage access rights).
  3. If your photos are encrypted, try recovering them from a backup of Mi Cloud or Google Drive.

๐Ÿ’ก

If you suspect a virus, don't connect your phone to other devices, which can spread the infection. Use cloud scanners (like VirusTotal) to check for suspicious files.

Hardware malfunctions

If none of the software methods helped, the problem may be in the hardware:

  • ๐Ÿ’พ Memory chip damage (especially relevant for low-end Redmi and POCO models with eMMC drives).
  • ๐Ÿ”Œ Oxidation of contacts of a memory card or microSD slot.
  • ๐Ÿ”‹ Memory controller malfunction (the phone may not see part of the files).

How to diagnose:

  • Connect your phone to your PC via USB (File Transfer Mode), and if your computer doesn't see the photo, it's a memory problem.
  • Check if the case is warmed in the memory chip area (usually under the back cover, battery).
  • Run the memory test through the engineering menu: dial ##4636## and select Testing.

Decisions:

  • If the warranty is valid, contact the Xiaomi service center.
  • For self-repair, you will need to solder the memory chip (expensive and risky).
  • If the problem is in the microSD slot, try to clean the contacts with alcohol.

โš ๏ธ Attention: On Xiaomi models with UFS 2.1/3.0 (e.g. Mi 10/11, Redmi K40), memory failure often manifests itself as a "slide" of files - they may disappear or be corrupted. In this case, data recovery is possible only in specialized laboratories (cost from 5 000 โ‚ฝ).

8.Recovery of deleted photos with professional tools

If photos have been deleted but not overwritten with new files, they can be restored using specialized utilities.

Tool.Supported filesFeatures
DiskDiggerJPG, PNG, HEIC, RAWIt works without root, but with root it recovers more.
RecuvaAny media filesRequires to connect your phone to your PC in MTP mode
EaseUS MobiSaverPhoto, video, audioPaid version restores files without restrictions
ADB PullAll files.Requires skills to work with the command line

Step-by-step instructions for DiskDigger:

  1. Download and install DiskDigger from Google Play.
  2. Start the scan (select "Full Analysis" for deep search).
  3. After completion, mark the desired photos and click "Restore".
  4. Save files to a memory card or cloud (not internal memory!).

For advanced users: Recovery through ADB:

adb shell


su




cd /sdcard/DCIM/Camera




ls -la | grep.jpg # check the list of photos




pull /sdcard/DCIM/Camera/photo.jpg /sdcard/Download/ # copy the file to another folder

Note: ADB requires root rights or unlocked bootloader. On new Xiaomi models (with MIUI 13+), this can result in a loss of warranty.

FAQ: Frequent questions about missing photos on Xiaomi

Can I get a photo after the MIUI update?
Yes, especially if the update was flawed. In this case: Check the MIUI โ†’ Backup โ†’ AllBackup folder โ€” sometimes the system backs up before the update. Roll back the firmware through Fastboot (if there is a backup). Contact Xiaomi with error logs (you can get them through Settings โ†’ About Phone โ†’ Error Report).
Why is it in Google Photos but not in Xiaomi Gallery?
This is due to a synchronization conflict. Solutions: Turn off autoloading in Google Photos (Settings โ†’ Backup and Sync). Clear the gallery cache and reboot the phone. Check if the photos are hidden in Google Photos (Archive section).
Can I recover the photo after resetting to factory settings?
You have a chance if: You backed up your Mi Cloud or Google Account. You have your photos stored on a memory card (you can read it on a PC); you use programs like Dr.Fone to scan your internal memory (but it doesn't work on all models); Important: Don't write new data to your phone after a reset, which reduces your chances of recovery.
Where do the photos go after transferring to the memory card?
A common problem is that files are not fully copied or disappear from the gallery. Causes: The memory card is formatted in FAT32 (does not support >4 GB files). MIUI Gallery does not scan external media (reboot or clear cache).
Why did you lose the photo after connecting your phone to your computer?
Possible causes: A virus on a PC has encrypted or deleted files; a file system error (e.g., exFAT on a memory card is not readable by Windows); a MTP- protocol conflict (try using PTP in connection settings); Solution: Connect your phone to another PC or use a card reader to read a microSD.