Did you take a photo on your smartphone, but it did not appear in the gallery? Or are the photos saved but disappear after a few minutes? This problem occurs on devices of all brands - from budget Xiaomi Redmi to flagship Samsung Galaxy S23. The reasons may lie both in the settings of the Camera application and in system failures Android.
In 80% of cases, incorrect permissions, application cache or file system errors are to blame. But sometimes the problem is deeper: a damaged memory chip, a conflict with cloud services, or even virus software. In this article we will look all possible reasons from basic to rare, and give step-by-step guide for each. You will learn how to check your camera settings, recover lost files and prevent the failure from happening again.
We will pay special attention to the differences between Android versions: solutions for Android 13+ may not work on Android 9 and below. We will also consider the nuances for devices with custom firmware (for example, LineageOS) and smartphones without a memory card slot.
1. Checking the basic settings of the camera and gallery
Before digging deep into the system files, make sure that the problem is not in trivial settings. Often, users accidentally change saving settings or turn off synchronization.
Open the "Camera"** application and check:
- ๐ Save folder: go to
Camera settings โ Save folder. Make sure the standard folder is selected (usuallyDCIM/Camera). On some devices (for example Huawei), the path may differ:Pictures/Camera. - ๐ผ๏ธ File format: if the camera saves to
HEIF/HEIC(on Android 11+), and the gallery does not support this format, the photos will be invisible. Switch toJPEGin the settings. - โ๏ธ Cloud saving: on Samsung and Google Pixel by default, saving can only be enabled in Google Photos. Check
Settings โ Cloud and accounts.
Also open Gallery** (or Photos) application and:
- ๐ Use folder search: sometimes pictures are saved in unexpected directories, for example,
DownloadorPictures/Screenshots. - ๐ Update the library: in some galleries (for example, Mi Gallery on Xiaomi) there is an "Update" or "Scan device" button.
- ๐ Check hidden folders: files with a dot at the beginning of the name (for example,
.thumbnails) are not displayed by default.
โ ๏ธ Attention: On devices with Android 10+ and function "Separate storage"** (for example, on Samsung Knox) photos can be saved in a protected folder that is not accessible to the standard gallery. Check the application Secure Folder or Private Mode.
Checked the save folder in the camera settings|Disabled "Cloud only" mode|Updated the library in the gallery|Checked hidden folders through the file manager|Made sure that the file format is JPEG/PNG-->
2. Clearing cache and application data
A clogged cache or corrupted application data is the most common reason why photos are not displayed in the gallery. This does not mean that the files are lost: they may physically exist on the device, but the system โdoes not see them.โ
Follow the instructions:
- Open
Settings โ Applications. - Find and select the application "Camera"** (on some devices it may be called Camera or Camera module).
- Click
Storage โ Clear cache. - If the problem persists, go back and select
Clear data(this will reset the camera to factory settings!). - Repeat steps 2-4 for the Gallery app** (or Google Photosif using it).
After clearing the data, you may need to restart the device. On Android 12+ it is also recommended:
- ๐ Restart Media Provider: go to
Settings โ Applications โ Show all applications (โฎ) โ Show system ones, find Media Provider and pressStop, thenRun. - ๐ฑ Reset settings Media Storage (same as the point above).
โ ๏ธ Attention: On devices with MIUI (for example, Redmi Note 11) after clearing the camera data, you may lose access to some functions (for example, "Cinema Effects"**). In this case, update the application via Google Play or Mi App Store.
| Application | Action | Consequences |
|---|---|---|
| Camera | Cleaning cache | Safe, settings are not reset |
| Camera | Clearing data | All settings (resolution, timer, filters) will be reset |
| Gallery | Clearing the cache | Thumbnails may disappear, but the files will remain |
| Google Photos | Clearing data | The account will be unlinked, you will have to log in again |
| Media Provider | Stop/start | Temporary invisibility of media files (up to 5 minutes) |
3. Problems with the memory card or internal storage
If photos are saved on SD card, the problem may be in its file system, bad sectors or incorrect formatting. Even if the card is detected by the device, this does not guarantee its functionality.
How to check:
- ๐ฑ Move saving to internal memory: in the camera settings, select
Internal storageinstead of SD card. If photos start to be saved, there is a problem with the card. - ๐ง Check the file system: The SD card must be formatted in
exFATorFAT32(supported Android 11+ supportedF2FS, but not all devices read it correctly). - ๐ ๏ธ Scan for errors: connect the card to the PC and run
chkdsk [drive letter]: /fin the command line (for Windows).
For internal storage:
- ๐ Check free space: if less 10% of the total volume, Android may block writing new files. Free up space or transfer data to your PC.
- ๐ Restart the device in Safe Mode (hold down the power button โ โReboot in Safe Modeโ). If photos are saved in this mode, third-party software is to blame.
How to format an SD card without losing data?
If there are important files on the card, copy them to a PC or cloud before formatting. Use official utilities from the card manufacturer (for example SD Card Formatter from SD Association). Formatting in Android itself (via Settings โ Storage) is less reliable and can leave artifacts.
On devices with Android 9 and below a bug is often encountered when the system loses rights to write to a folder DCIM. Solution:
- Connect your smartphone to the PC via USB (mode
File transfer). - Go to folder
DCIM/Camera. - Create manually a new file (for example, text) or move any photo from your PC there.
- Turn off the device and restart it.
4. Conflicts with cloud services and synchronization
Google are enabled. Photo, Mi Cloud, Samsung Cloud and other services may interfere with local saving of photos, especially if functions like "Storage optimization" or "Automatic deletion after downloading".
What to do:
- โ๏ธ Open Google Photos โ
Settings โ Backup and synchronization. Make sure that the optionDelete copies from devicedisabled. - ๐ On Samsung check Galaxy Cloud: go to
Settings โ Accounts and backup โ Samsung Cloud โ Data synchronizationand disableGallery. - ๐ฑ On Xiaomi disable Mi Cloud Sync in your account settings.
If you use third-party galleries (for example, Simple Gallery or QuickPic), check their settings:
- ๐ผ๏ธ Disable the option
Hide duplicatesโsometimes cloud and local copies are perceived as duplicates. - ๐ Enable the display of hidden files (in Simple Gallery:
Settings โ Show hidden files).
โ ๏ธ Attention: On Android 13+ with function "Photo Permissions"** (Settings โ Privacy โ Permissions for photos) some applications may block access to new photos. Add the gallery to the list of allowed ones.
If photos disappear a few minutes after being taken, check your settings Google Photos for the "Free up space" function. It automatically deletes local copies after uploading to the cloud.
5. failures
If the previous steps did not help, the problem may be deeper: a damaged file system, a malfunction of Media Scanner (media scanning services) or even hardware failures.
Diagnostics:
- ๐ง Rebuilding the media database: delete files
.nomediain folders with photos (they block scanning). You can also manually start the scan by creating an empty file.nomediain the root of the storage, then deleting it. - ๐ฑ Reset application settings: go to
Settings โ System โ Reset settings โ Reset application settings. This will not delete data, but it will reset permissions and cache for all apps. - ๐ ๏ธ Virus scan: some malware block writing to certain folders. Scan your device via Malwarebytes or Dr.Web Light.
For advanced users:
- ๐ Use ADB to force scan media files:
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/emulated/0/DCIM/Camera/ - ๐ Check folder permissions
DCIMvia Terminal Emulator:ls -la /storage/emulated/0/DCIMCorrect rights:
drwxrwx--x(owner -media_rworsdcard_rw).
Critical information: If after a reboot the photos appear in the gallery, but after a while they disappear again - this is a sign of partition damage. /data/media. In this case, only a hard reset or flashing will help.
| Symptom | Probable cause | Solution |
|---|---|---|
| Photos appear after reboot, but then disappear | Cache is damaged Media Provider | Clear cache and data Media Storage |
| Photos are saved but not displayed in the gallery | Files have a non-standard extension (.arw, .dng) | Rename to .jpg or install a supporting gallery |
| When shooting, the error "Failed to save" is displayed | No rights to write to the folder or memory card in read-only mode | Check the SD card on another device or format |
| Photos are saved with artifacts or dead pixels | The camera module or memory controller is damaged | Test on another device or take it to the service |
6. Hardware faults and rare cases
If software methods do not help, the problem may be in the hardware:
- ๐ Damaged SD card connector: even if the card is detected, the contacts may be oxidized. Check on another device.
- ๐พ Faulty flash memory: if the internal storage is leaking, photos may remain broken or disappear. Symptoms: random reboots, errors when writing files.
- ๐ท Camera controller failure: on some devices (for example, OnePlus) the camera module has its own memory buffer. If it is full, photos are not saved.
How to diagnose:
- ๐ง Connect your smartphone to the PC and try to copy photos manually. If files are copied with errors, the problem is in memory.
- ๐ฑ Install an alternative camera (for example, Open Camera) and check whether the pictures are saved.
- ๐ Test the device in Safe Mode โif the problem persists, itโs the culprit hardware.
โ ๏ธ Attention: On devices with UFS 3.1 (for example, Samsung Galaxy S22) memory failures can manifest themselves selectively: photos are not saved, but other files (videos, documents) are recorded normally. In this case, diagnostics are required at a service center.
If you suspect a hardware fault, but do not want to take the phone for repair, try:
- ๐ Reset to factory settings (after copying the data first!). This will help if the problem is in the firmware.
- ๐ฒ Reflash the device via Odin (for Samsung) or Fastboot (for Google Pixel, Xiaomi etc.).
- ๐ง Replace the SD card to a new one (we recommend SanDisk Extreme or Samsung EVO Plus).
If photos are not saved even after resetting and flashing, with a 95% probability the hardware is to blame (memory, camera controller or motherboard).
7. Recovering lost photos
If the photos are not displayed in the gallery, but physically still exist on the device, you can try to restore them: do not write new files on your smartphone so as not to overwrite them. lost data.
Recovery methods:
- ๐ Through the file manager: use Solid Explorer or FX File Explorer with the mode enabled
Show hidden filesLook. photos in folders:/storage/emulated/0/DCIM,/storage/emulated/0/Pictures,/data/media/0/DCIM(root access required). - ๐พ Using a PC: connect the phone in mode
File transferand scan the storage with the app Recuva or DiskDigger. - โ๏ธ From cloud backups: check Google Photos (section
Cart), Samsung Cloud or Mi Cloud. Files can be stored there up to 60 days.
For devices with root access:
- Use TWRP to create an image of the partition
/dataand recovery via PhotoRec. - Check the folder
/data/media/0/DCIM/.thumbnails- sometimes the original photos remain there.
โ ๏ธ Attention: Recovery apps like Dr.Fone or EaseUS MobiSaver often require root access and can themselves damage data. Use them only if other methods did not help.
If the photos were recently deleted, check the folder DCIM/.thumbnails - sometimes thumbnails remain there in acceptable quality (resolution ~320x240 pixels).
8. Prevention: how to prevent loss of photos in the future
To prevent the problem from recurring, follow these recommendations:
- ๐ Clear the cache regularly cameras and galleries (once a month).
- โ๏ธ Set up backup v Google Photos or Dropbox (but disable automatic deletion from the device!).
- ๐ Use reliable SD cards class
A2orUHS-I(for example, SanDisk Extreme Pro). - ๐ฑ Update the firmware: many bugs with saving media files have been fixed. Android 12+ Many bugs with saving media files have been fixed.
- ๐ง Check memory health periodically via AIDA64 (section
Storage โ Health status).
For owners of devices with MIUI, ColorOS or One UI:
- Disable "Battery Optimization"** for the Camera and Gallery apps (this may interrupt saving processes).
- In Developer Options (
Settings โ About phone โ Build number (7 taps) โ For developers) disableDo not save camera actions(if any).
Alternative gallerieswhich are less likely to lose files:
- Simple Gallery Pro (supports
.nomedia, encryption, backup). - F-Stop Gallery (shows metadata and hidden files).
- QuickPic (lightweight, without cloud synchronization).
The most reliable strategy is to duplicate the save: simultaneously on the internal memory and SD card (if there is a slot). This will save photos even if one of the storage facilities fails.
FAQ: Frequently asked questions
Why are photos saved but not displayed in the gallery only on Android 13?
The policy for accessing media files has changed. The gallery may not see new photos if it does not have permission Android 13 The media file access policy has changed. The gallery may not see new photos unless it has permission READ_MEDIA_IMAGES. Solution:
- Go to
Settings โ Applications โ Gallery โ Permissions. - Enable
Photos and videos. - Reboot device.
Also check if files are hidden through the new function "Private space"** (Settings โ Privacy โ Private space).
Is it possible to restore photos if they are not displayed even through PC?
Yes, but the chances depend on the reason:
- If the files are deleted (but not overwritten by new data), use DiskDigger or PhotoRec.
- If the files exist, but cannot be read (broken), try opening them through GIMP or RawTherapee (for RAW files).
- If there is a problem in file system, connect the memory to the Linux PC and run
fsck.
For devices with root you can try to recover files from /data/media/0/DCIM via TWRP.
Why on Xiaomi, photos are saved in the MIUI folder and not in DCIM?
On devices Xiaomi, Redmi i Poco with firmware MIUI photos are saved by default in:
/storage/emulated/0/DCIM/Cameraโstandard pictures./storage/emulated/0/MIUI/Cameraโphotos with effects or in "Document"** mode./storage/emulated/0/Pictures/Screenshotsโscreenshots.
To change the save folder:
- Open Camera โ
Settings (โ)โFolder saving. - Select
DCIM/Camera. - Reboot the device.
How to transfer photos from internal memory to an SD card without loss?
Use file manager (for example, Solid Explorer):
- Open folder
DCIM/Camera. - Select photos โ
Copy. - Go to SD card folder
DCIM/CameraโInsert. - Delete files from the internal memory only after checkingso that they were copied without errors.
On Android 11+ to write to an SD card may be required permission MANAGE_EXTERNAL_STORAGE. It can be enabled via ADB:
adb shell appops set --uid [application_UID] MANAGE_EXTERNAL_STORAGE allow
To find out the application UID, use the command adb shell dumpsys package [package_name].
Why did photos stop being saved after updating Android?
Updates often reset permissions or change the operating logic Media ProviderTry:
- Clear cache and data Media Storage (how to in section 2).
- Roll back the camera update (if there was one):
Settings โ Applications โ Camera โ โฎ โ Uninstall updates. - Check settings allowed folders in the gallery (on Android 13+).
If the problem appeared after a major update (for example, from Android 11 to Android 12), you may need resetting the settings (but not data!).