Deleted photos on Xiaomi, Redmi or smartphones POCO Even if you have cleaned your cart or formatted your memory card, files can remain in hidden folders, backups of Mi Cloud or memory fragments. In this article, we will analyze the physical ways of storing deleted images, how to restore them β from standard tools to advanced methods using the use of remote images. ADB, I also want to explain why some files cannot be restored.
Many users mistakenly believe that after cleaning the basket in the gallery, the photos are erased forever. MIUI (even in the latest versions 14/15) It leaves traces of deleted data in several places, for example, thumbnails can be saved in the app cache, and full-size copies can be saved in the.thumbnails folder or backups of Google Photos. The main thing is not to write new files to the device after deletion, otherwise the old data will be overwritten.
Recovery of deleted photos on Xiaomi depends on three factors:
- Removal method (basket, formatting, resetting settings);
- Availability of backups in the cloud or on PC;
- The time elapsed since the removal (the longer the less chance).
1. Where are deleted photos physically stored on Xiaomi
On Xiaomi smartphones, deleted photos go through several stages of storage (/storage/emulated/0/MIUI/Gallery/trash/), stored 30 After cleaning the basket, files are not erased instantly - their paths are simply excluded from the system index, and the data itself remains in memory until overwriting.
Main folders where traces of deleted images may remain:
- π Gallery basket: /MIUI/Gallery/trash/ β Here the photos are left until manual cleaning or expiration of the term (30 days).
- π Cash miniature: /DCIM/.thumbnails/ β reduced photo copies (size) ~320px), Sometimes they are saved even after the original is removed.
- π Backups of Mi Cloud: If sync was enabled, photos can be stored in the cloud in the Mi folder Cloud/Backup/Photos/.
- π Temporary camera files: /DCIM/Camera/temp/ β Sometimes there are unsaved photos.
- π.nomedia folder: hidden files in /DCIM/.nomedia/ or /Pictures/.nomedia/, which are not displayed in the gallery.
On microSD devices, deleted photos can remain in non-indexed sectors until they are completely overwritten. For example, if you delete a photo and then card video of the same size, the chances of recovery drop dramatically (eMMC/UFS) The process of overwriting is faster due to the mechanism TRIM, cleansing out the junk blocks.
Important! F2FS (It is used by the new Xiaomi with MIUI 13+) More aggressively cleanses deleted data than ext4. Therefore, on older models (for example, Redmi Note 8) the chances of recovery are higher than on Xiaomi 13 Pro.
What is it? TRIM Why is it interfering with recovery?
2. How to recover photos from the shopping cart of the Xiaomi Gallery
The easiest way to return deleted photos is to check the cart in the standard gallery. MIUI. It works on the principle of "soft removal": files are not erased immediately, but only hidden from the main view:
- Open the Gallery app (flower icon).
- Slip on three dots in the upper right corner β select the basket.
- Find the right photos, click on them β Restore.
If the basket is empty, check:
- π Recycle Bin Settings: Go to Gallery β Settings β Cart and make sure that the shelf life is not reduced to 0 days.
- π folder /MIUI/Gallery/trash/ through a file manager (e.g. Mi File Manager or Solid Explorer) Sometimes files are displayed here but not shown in the gallery interface.
- π Access rights: If you use a third-party gallery (such as Google Photos), its shopping cart may be separate.
Critical nuance: after the update MIUI before version 14.0.5+ The gallery basket can be automatically cleaned when you first connect to Mi Cloud if you have the option "Storage Optimization" enabled. β Accounts. β Mi Cloud β Synchronization settings.
βοΈ Checking the basket of the Xiaomi gallery
3. Recovery via Mi Cloud and Google Photos
If photos have been synced to the cloud, they can be returned even after the device is completely cleaned. Xiaomi offers two cloud-based backup services:
| Service | The road to recovery | Storage period | Limitations |
|---|---|---|---|
| Mi Cloud | Settings β Mi Account. β Mi Cloud β gallery β Basket | 30 days (60 days) VIP-user-user) | Only if synchronization has been enabled before removal |
| Google Photo | photos.google.com β Recycle bin (or through the app) | 60 days | Authorization is required in the same Google account |
| Backup copy of MIUI | Settings β Additionally. β Backup β Local copies | No time limit (before deleting the copy file) | Recovers all data, not individual photos |
To recover photos from Mi Cloud:
- Sign in to the same Mi Account that was linked to your phone at the time of deletion.
- Go to i.mi.com β gallery β Basket.
- Select the photos you want and click Restore. They'll go back to the gallery on the device.
The algorithm is similar for Google Photos, but there is a caveat: if photos were deleted before June 1, 2021, they could be stored in the shopping cart indefinitely (the old Google policy), after which the period was reduced to 60 days.
β οΈ Note: If you delete a photo from the Mi Cloud Recycle Bin and immediately disable sync, files can be deleted from Xiaomi servers without recovery. Unlike Google Photos, where data is stored on servers longer, even after cleaning the Recycle Bin.
4.Search for hidden folders and cache thumbnails
Even if the shopping cart is empty, deleted photos can remain in hidden folders or cache of system applications to find them:
- π Use a file manager that supports hidden files (e.g., file manager, FX File Explorer or Root Explorer).
- π Move to the /storage/emulated/0/DCIM/.thumbnails/ β Miniatures are stored here, which can sometimes be increased to acceptable quality.
- π Check the folders: /DCIM/Camera/temp/ β camera-file; /Pictures/Screenshots/.trash/ β screen-basket; /Android/data/com.miui.gallery/cache/ β gallery-cash.
To view the thumbnails from the.thumbnails folder:
- Copy files with the.thumb extension on your PC.
- Rename the extension to.jpg.
- Open it through Photoshop or GIMP β Sometimes it is possible to increase the resolution with 320px before 1024px lossless.
Example of the path to the cache of the gallery: /data/data/com.miui.gallery/cache/images/. Access to this folder requires root rights or use ADB (about this in the next section).
π‘
If thumbnails in the.thumbnails folder donβt open, try using the program. JPEG Repair Tool β It Recovers Damaged Headers JPG-file.
5. Advanced methods: ADB and recovery programs
If standard methods do not help, you can try low-level recovery through the ADB (Android Debug Bridge or specialized programs:
- The photos were deleted less than 72 hours ago.
- No new files were recorded on the device;
- There's access to the PC and USB-cable.
Instructions for recovery through ADB:
- Turn on the debugging. USB on the phone: Settings β The phone. β Version. MIUI (tap 7 times) β Go back to Settings β Additionally. β For developers β Debugging by USB.
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or the terminal (Mac/Linux) and enter adb shell su find /data -name ".jpg" -o -name ".png" > /sdcard/recovered_files.txt This team is looking for everything. JPG/PNG-files in system folders and saves paths to text file.
- Download the file. recovered_files.txt from your phone and find the paths to the deleted photo.
For recovery without root, you can use programs:
- π₯οΈ DiskDigger (there is a version for Android) β scans memory for the remains of deleted files;
- π₯οΈ Recuva (for PC) β if you connect the memory card through a card reader;
- π₯οΈ EaseUS MobiSaver β supports recovery from Xiaomi without root.
β οΈ Note: Programs like Dr.Fone or Tenorshare often require a recovery fee without guaranteeing results. Before using, check for reviews of a particular version of the program - some of them contain malicious code.
π‘
The faster you start recovering from deletion, the better the chances of returning a photo, and 3-5 days after deletion (especially in internal memory), the data is almost always overwritten.
6 What to do if the photo is permanently deleted
If all methods have been tried and the photo has not been recovered, there are two options:
- Contact a service center β some workshops offer data recovery services from memory chips (cost from 5 000 USD) β½). Efficiency depends on the phone model and type of memory (eMMC recovers worse than the memory). UFS).
- Check backups on other devices β sometimes photos are synced with: π» PC (Download folder or DCIM when connected USB); π₯οΈ Cloud services (Yandex Drive, Dropbox, OneDrive); π± Other smartphones (if Mi Share or Nearby Share were enabled).
If the photos were of high value (such as documents or unique footage), you can try contacting a data recovery lab, such as:
- ACE Lab (Moscow, St. Petersburg);
- Data Recovery (Yekaterinburg, Novosibirsk)
- HDD Recovery (online application with the device being sent).
The cost of recovery depends on the complexity:
| Type of recovery | Term | Cost (β½) |
|---|---|---|
| Logical (no disassembly) | 1-3 days | 3 000 β 8 000 |
| Physical (from memory chip) | 5-10 days | 10 000 β 30 000 |
| Urgent recovery | 24 hours | 15,000 |
7. How to prevent future photo loss
To avoid the problem of deleted photos again, follow the simple rules:
- π Enable automatic sync with Mi Cloud or Google Photos (settings) β accounts β gallery-synchronization).
- πΎ Make regular backups to your PC or external drive (e.g., via Mi) PC Suite).
- ποΈ Do not manually clean the cart β wait for automatic removal in 30 days.
- π± Use a two-step cleaning: first transfer the photo to the cart, and after a week, check if they are not needed again.
For additional protection:
- Install the Dumpster app (an alternative shopping cart for Android) that saves deleted files in a separate storage.
- Set up Planned Backup in Settings β Additionally. β Backup (select weekly copy creation).
- For important photos, use hidden albums in the gallery MIUI: highlight the photo β More. β They won't show up in the main list, but they'll stay in the folder. /DCIM/.hidden/.
π‘
If you frequently delete photos by mistake, turn on the βDelete Confirmationβ option in the gallery settings (Gallery) β Settings β Confirm removal. This will add an extra step before cleaning.