Flashing an Android smartphone is a procedure that often becomes a salvation for โlockedโ or slow devices. But what should you do if, after installing the new firmware, you find that all your photos have disappeared? This situation is familiar to many: the internal memory is cleared, files are overwritten, and precious pictures seem lost forever. Fortunately, in 90% of cases, photos can be restored - if you act quickly and correctly.
The main problem is that standard backup methods (for example, via Google Photos) are often ignored by users until the moment when the data is already lost. Meanwhile, even after a complete flashing, the files do not disappear instantly - they remain on the device until they are overwritten by new data. In this article we will examine 5 proven recovery methodsincluding the use of specialized software, working with cloud services and even manual data extraction via ADB. Important: the less you use your phone after flashing the firmware, the higher the chances of success.
Before you begin recovery, answer two key questions:
- Have you backed up photos before (via Google Account, Mi Cloud, Samsung Cloud or third-party applications)?
- Was synchronization with the cloud enabled at the time of the firmware?
If the answer to any of the questions is โyes,โ your chances of returning the pictures are close to 100%. If not, donโt despair: modern tools like DiskDigger or EaseUS MobiSaver are able to restore files even after formatting the partition /data.
1. Checking cloud backups: the first step to recovery
Start with the simplest and most obvious: check if your photos are saved in cloud services. Most modern smartphones (especially from Samsung, Xiaomi, Google and Huawei) automatically synchronize media files with the cloud - if this function has been activated.
How to check:
- ๐ฑ Google Photos: Open the application or go to photos.google.com from any device. Check the folder
"Archive"and section"Trash"(files are stored there for 60 days). - ๐ฅ๏ธ Manufacturer cloud:
- For Samsung: Samsung Cloud or Galaxy Cloud (available in
Settings โ Accounts and archiving). - For Xiaomi: Mi Cloud (check in
Settings โ Mi Account โ Cloud). - For Huawei: Huawei Cloud (section
Settings โ Huawei ID โ Cloud).
- For Samsung: Samsung Cloud or Galaxy Cloud (available in
- ๐ Third-party services: If you used Dropbox, OneDrive or Yandex Disk, check the folders with automatic downloads (usually called
"Camera Uploads"or"Startup").
Important: some manufacturers (for example, Samsung) can store backups for only 15-30 days. If the firmware was installed a long time ago, the files could have been deleted. In this case, proceed to the following methods.
If you don't remember whether syncing was turned on, try regaining access to your old Google account. Even if the phone is reset, the photos could be saved in the cloud under the linked mail.
2. Recovery through specialized software: DiskDigger, EaseUS, Dr.Fone
If there are no cloud copies, the next step is to use data recovery apps. These tools scan the device's internal memory at the file system level and find deleted files before they are overwritten. The best solutions for Android:
| app | Root support | Recovery without root | Max. file size | Cost |
|---|---|---|---|---|
| DiskDigger | โ Full | โ Limited (thumbnails only) | Unlimited | Free / $14.99 |
| EaseUS MobiSaver | โ Yes | โ Yes (partially) | 100 MB | $39.95 |
| Dr.Fone (Wondershare) | โ Yes | โ No | Unlimited | $59.95 |
| Recuva (for memory cards) | โ No | โ Yes | 4 GB | Free |
Step-by-step guide for DiskDigger (the most effective option):
- Download and install DiskDigger s Google Play.
- Launch the application and select
"Full scanning"(requires root access). - Specify file type: check
"JPG","PNG","HEIC"(for iPhone photos). - Wait for scanning to complete (may take up to 1-2 hours).
- Select the found photos and click
"Restore". Save them to a memory card or to the cloud.
Disable Wi-Fi and mobile data on the phone|Charge the device to 100%|Do not install new applications|Use the original USB cable-->
Important note about root access: Without them, apps will only be able to find thumbnails of photos (the size ~100โ200 KB). For a complete recovery, you will need to unlock bootloader and get root. On some devices (for example, Samsung s Knox) this will trigger the flag RMM/Knox and void the warranty.
What to do if the phone is not detected PC?
If your device is not recognized by the computer after flashing the firmware, try:
1. Install drivers ADB manually via Android SDK.
2. Switch the connection mode from "Charging" to "File transfer" (screen unlocking may be required).
3. Use another USB port (preferably USB 2.0 on the back panel of the PC).
4. Disable USB debugging and enable it again in Settings โ For Developers.
3. Manual recovery via ADB: for experienced users
If the apps did not find the photos, but you are sure that they were on the device, you can try to extract them manually via Android Debug Bridge (ADB). This method requires knowledge of the command line and only works if you have root access or unlocked bootloader.
Instructions:
- Install Platform Tools on a PC.
- Connect your phone to the computer and enable USB debugging.
- Open the command line (
cmd) and run:adb shellsu
cd /data/media/0/DCIM/
lsHere
/DCIM/is a standard folder with photos. If it is not there, check/Pictures/or/Download/. - Copy the files to your PC:
adb pull /data/media/0/DCIM/ C:\Backup\Photos
Critical detail: if the folder /data was formatted during the firmware, this method will not work. In this case, the only option left is recovery through low-level scanning (see section 4).
ADB method is only suitable for devices with an unlocked bootloader. It will not work on phones with a locked bootloader (for example, most Xiaomi models).
4. Low-level scanning: when all else fails
If standard methods do not produce results, the last option remains - low-level scanning of the device memory. This method requires:
- ๐ง Unlocked
bootloader. - ๐ป Computer with Linux or Windows (for dd-commands).
- ๐ ๏ธ Knowledge of working with the terminal.
Action algorithm:
- Connect the phone in mode
fastbootand create an image of the partitionuserdata:fastboot oem unlockfastboot flash userdata userdata.img
adb pull /dev/block/mmcblk0pXX userdata_backup.img(Replace
XXto the current partition number for your model.) - Use PhotoRec (part of the package TestDisk) to scan the image:
photorec /d C:\Recovery userdata_backup.img - Wait for the process to complete (may take several hours).
โ ๏ธ Attention: Low-level scanning is a risky procedure. An error in the commands can lead to complete loss of data or bricking of the device. If you are not confident in your skills, contact a specialist.
5. Recovery from a physically damaged device
If the phone does not turn on after unsuccessful firmware (for example, it got stuck on the logo or went to bootloop), but photos are critical, there are two options left:
- Connecting via JTAG:
- ๐ Requires special equipment (JTAG cable or RIFF Box).
- ๐ฐ Cost of service at the service center: from 3,000 to 10,000 rubles.
- โฑ๏ธ Recovery time: 1โ3 days.
- Replacing the memory chip:
- ๐ง Used if the memory controller is damaged.
- ๐ฑ Requires soldering of the chip onto the working board.
- โ ๏ธ Risk of data loss: ~30% (depending on qualifications wizard).
โ ๏ธ Attention: If the phone was dropped into water or was physically damaged before flashing, the chances of data recovery drop sharply. In such cases, it is recommended to contact laboratories with clean rooms (for example, ACE Lab or Flash Extract), where the chips are removed under sterile conditions.
6. Prevention for the future: how to avoid losing photos
The best way to recover photos is to never lose them. Follow these rules to minimize risks:
- โ๏ธ Automatic sync: Set up a backup in Google Photos (
Settings โ Backup and sync. Select quality"Original"if it is important to maintain the original resolution. - ๐ Local copies: Regularly (once every 1-2 months) copy photos to a PC or external drive. Use utilities like Syncthing for automatic synchronization.
- ๐ Dual storage: Save especially valuable pictures in two clouds (for example, Google Photos + Yandex Disk).
- ๐ฑ Separate memory card: Set the camera to save photos to microSD (to
Camera settings โ Save location). The card can be removed before flashing.
๐ก Advice for Samsung owners: Phones with One UI have a built-in function "Secure Folder" (in Settings โ Biometrics and security). Photos saved there are not deleted when resetting the settings.
FAQ: Frequently asked questions about photo recovery after flashing
Is it possible to restore photos if the phone was completely formatted?
Yes, but the chances depend on how much data was written to the device after formatting. If you started recovery right away, the success rate is ~70โ80%. If the phone was actively used (applications were installed, new photos were taken), the chances drop to 20โ30%.
Will a factory reset help get photos back?
No, a factory reset (Wipe Data/Factory Reset) deletes all user data, including photos. This process cannot be undone. If you have not yet done a reset, but are planning to flash the firmware, first copy the photo to a PC or memory card.
Is it possible to recover photos from a phone that does not turn on?
Yes, but you will need specialized equipment (JTAG, ISP programmer) or replacing the memory chip. It is impossible to do this on your own - contact service centers with experience working with โdeadโ devices.
How much does it cost to restore photos in a service center?
The cost depends on the method:
- Software recovery: 1,500โ5,000 rubles.
- JTAG/ISP: 5,000โ15,000 rubles.
- Replacement of memory chip: 10,000โ30,000 rubles (depending on the phone model).
Prices are valid for Moscow and St. Petersburg. May differ in regions.
Which photos are restored better: those taken with a phone camera or downloaded from the Internet?
Photos taken with a phone camera are restored worse because:
- They are often stored in a compressed format (for example,
HEICon an iPhone orJPEGwith a high degree of compression). - Can be broken into fragments (especially panoramas or photographs in mode
HDR). - The system can store them in encrypted form (starting from Android 10).
Images downloaded from the Internet (for example, PNG or JPEG without compression) are restored almost completely.