2

I am using LGE Nexus 4 which is running on Android Version 4.4.2. Somehow accidently i do a factory reset on my phone and in return i lost all my emails, messages, pictures i.e, almost everything. Now i am desperately want to recover them but don't know how to do it.

I tried to find a solution on google but i got more confused by the given solutions on google. I tried a data recovery software(Dr Drone for android) but the software is not able to recover data from those devices which are running on >Android version 4.2. Technical team of Dr Drone for android want me to root the device but because of complications in the rooting process i don't want to root my device.

Is there any way to recover them?

1

Here's a couple of things that might help,

  • A regular factory reset does not wipe the sdcard partition. Things such as pictures and whatsapp messages should be restorable when you just install the relevant apps again.

  • If you are a Gmail user, just sign in again and it will automatically resync. If you are using a corporate email account or general mail app, and if the email was setup using IMAP, the messages should still be sitting on the server and adding the email account again should sync the messages back. If the setup used POP, then you might be out of luck here.

  • By default the contacts on your phone sync with Google if you were signed in to the phone. Signing in again should sync those back as well.

Good luck!

  • A factory reset on a device without an external sd card (such as the Nexus 4) will completely wipe the device including photos. See factory-reset "This process deletes all user data and user installed apps, so the device looks like it came fresh out of the box. " – bmdixon Jun 10 '14 at 16:05
  • That is partially correct. The sdcard partition is not wiped when a factory reset happens. Photos are an example of application data stored on the sdcard. App data stored on internal memory will be wiped though. – chromozonex Jun 10 '14 at 19:31
1

Please note: It is advised to follow this method only if you know what is ROOT and agree that you are doing this at your own risk. I do not hold credit for this technique as this method has been taken from here and 100% credit goes to the respective author.

Requirements:

  • A Rooted Android phone.
  • BusyBox installed on your device.
  • Cygwin installed to [c:\cygwin] with pv and util-linux from the repo. Make sure to open Cygwin once to make sure that the /bin folder is created. Also, I made a folder at [c:\cygwin\nexus] to put the exported .RAW file.
  • Netcat (download the ZIP file and extract nc.exe to [c:\cygwin\bin]).
  • ADB (make sure adb.exe is in your path).
  • Enable USB debugging in your device. For Android 4.0 and above do it from: Settings > Developer Options > USB debugging. For Android 2.3 and below do it from: Settings > Application > Development > USB debugging.
  • VHD tool Put the VhdTool.exe file in [c:\cygwin\nexus].
  • Piriform Recuva or your favorite data recovery tool, (it appears Recuva only finds the more common file types like images, videos, etc. Those were the file types in which I was interested. If you are after more exotic file types perhaps you might share the software you used).

The process in short:

  • This has been tested on Samsung Galaxy Nexus though this should work for ANY phone with Internal Memory.
  • We will be using a Windows 7 machine to: back up the entire internal memory partition to your computer as a single, massive .RAW file, convert the .RAW file output to a VHD, mount the VHD as a disk in Disk Manager, scan the attached VHD volume for files that have been deleted and recover them.

Actual Work to do:

  1. It is recommended that you choose to recover your entire memory block instead of just the data partition. In this case that is mmcblk0. For our purpose here we are seeking to recover the userdata partition: /dev/block/mmcblk0p12
  2. Turn on your phone.
  3. Connect the phone in ADB mode.
  4. Unlock the screen.
  5. Open a Cygwin terminal and enter (This assumes your BusyBox installation is at [/system/bin/busybox]. It may be at [/system/xbin/busybox]):

    • adb forward tcp:5555 tcp:5555
    • adb shell
    • /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
  6. Open another Cygwin terminal and enter:

    • adb forward tcp:5555 tcp:5555
    • cd /nexus
    • nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw
  7. For 16GB or 32GB internal memory this process is going to take 2 to 3+ hours respectively.

  8. We need to convert the .RAW file to a virtual hard drive. VhdTool.exe basically just puts a VHD footer on the end of the .RAW file. Open a Windows command prompt, go to [c:\cygwin\nexus], and type:

    • VhdTool.exe /convert mmcblk0p12.raw
  9. Now we need to mount the VHD in Windows. Select the Start button-->right-click Computer-->select Manage.

  10. Select Storage-->Disk Management.
  11. In the menu select Action-->Attach VHD.
  12. For Location enter [c:\cygwin\nexus\mmcblk0p12.raw] and select the OK button.
  13. Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select Initialize Disk.
  14. Select the GPT (GUID Partition Table) radio button and select the OK button.
  15. Right-click on the Unallocated space and select New Simple Volume...
  16. In the Wizard select Next>, leave the default for the volume size, select Next>, select a drive letter (e.g. K), select Next>, MAKE SURE to select the 'Do not format this volume' radio button, select Next>, select Finish.
  17. A box will pop up asking you to format the drive. You DO NOT want to format the drive at this time.
  18. Right-click on the RAW space and select Format... MAKE SURE to change the File system to FAT32. Set the Allocation unit size dropdown to 'Default.' MAKE SURE that the Perform a quick format checkbox is CHECKED. You do not want to overwrite the entire new drive with all zeroes (0's) and destroy your data. Quick Format means that it will only attempt to destroy the index for the drive by establishing a new index. Without this box checked the Windows operating system will write zeroes (0's) across the entire volume, potentially destroying your data. Select the OK button.
  19. A box will pop up saying that Formatting this volume will erase all data on it. That would be doubly true if you actually didn't check the 'Perform a quick format' checkbox. Double check that you actually did check the box and select the OK button. (Don't worry. This essentially leaves the volume in the exact same state that your phone's internal memory is living in right now: there is data on the drive...you just can't see it. It's coming back, I promise!)
  20. Open the Recuva application. In the wizard select the 'Next >' button. Select the 'Other' radio button and select Next >. Select the 'In a specific location' radio button and enter: k:\ (assuming K is the drive letter you chose...) Select the Next > button. Select the Enable Deep Scan checkbox. This is the magical setting that finds files that have been deleted...but not really deleted. Select the Start button.
  21. Finally the application may take about an hour to do the 'Deep Scan.' It's time for more laps around the house! Once the application has returned its results you can choose which files to recover using the checkboxes. Select the 'Recover...' button and choose the location to which you wish to output your files.
  • For the transfer, I prefer something more along the lines of $adb shell su -c "stty raw; dd if=/dev/block/mmcblk0" | pv -s 16G | dd of=mmcblk0.raw of course that copies the whole NAND flash and not just the individual partition, but it's easily enough modified. – ewanm89 Jun 6 '14 at 22:34
  • in my case (Nexus 4 with Android 4.4.4): 1. the partition was /dev/block/mmcblk0p23 2. busybox was installed at /system/xbin 3. I had to use different port for some reason. screenshot for fun – itsho Dec 8 '14 at 18:49
0

Once you do the factory reset the data like messages and other content stored in local storage is lost,except that if you have synced the phone with gmail-account, all those sync supported category contents can be obtained back.

Remember these things, If you use gmail data like contacts, emails, Calendar, Chrome, Drive, google+ are supported to sync with mail-account, enable sync ,so you will have backup of all these contents online, the important thing which gmail provides with sync is app-data, ie data associated with each application you install on your phone, and regarding messages, gmail doesnt provide backup withit, so you can use other apps like hangouts and other,so that its data will be saved on sync.

I hope these tips helps you have backup even if you do factory reset by mistake next time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.