[GUIDE] Extract files from Nandroid backups

Search This thread

landaile

Senior Member
Sep 23, 2010
76
25
I have seen this asked a few times recently so I figured I would try to put together a quick and easy guide to extracting files from Nandroid backups. This guide only covers Windows, I assume if you are running Linux you can download unyaffs and compile/run it without my assistance. If you are adventurous you can install cygwin and compile unyaffs on your own (or download it at any number of sites across the internet), however I have included all the files needed to extract the files from the img files.

1. Download unyaffs along with the cygwin1.dll
2. Extract the files to a new folder.
3. Copy the system.img file from the ROM or your Nandroid backup to the folder you extracted unyaffs.exe and cygwin1.dll to.
4. Open a command prompt and cd to the folder containing the three files. If you are on Windows 7 you can just navigate there with Windows Explorer and in the URL bar type cmd to open a comman prompt in that location.
5. Type unyaffs system.img

You have now extracted all the files from the system partition of your Nandroid backup. The APKs are in the /app folder and some apps require library files that can be found in the /lib folder. For example: Swype.apk requires that libSwypeCore.so be in the lib folder for it to work properly.
 

Lock-N-Load

Senior Member
Aug 25, 2010
1,618
392
Under Your Skin
I get an "end of image" message and no folder is created with the extracted files.

I am trying to recover some photos from my Gallery, which I presume is in data.img - but no matter what I try to extract, I get "end of image"

any ideas?
 

stevenmirabito

Senior Member
Jan 22, 2011
74
42
Camillus, NY
about.me
I get an "end of image" message and no folder is created with the extracted files.

I am trying to recover some photos from my Gallery, which I presume is in data.img - but no matter what I try to extract, I get "end of image"

any ideas?

Your photos should be on your MicroSD card, not on one of the system partitions. Look in SDCARD:\DCIM\100ANDRO, your photos should be there. ;)
 

wutitizshorty

Member
May 28, 2007
32
0
Is there a command to repack the system or data image after you have unpacked and played around with them???

I am pretty sure that my issue is within the data file...I removed what I think caused the problem but how do I repack it all to put it on the sd card and try it out?

thanks
 
Last edited:

djtoonjr

Senior Member
Nov 18, 2009
156
6
Worked for me.

Pretty much my whole family has Evo's. theyre all rooted too thanks to me ;) but in my experimenting, i lost the 4G keys to mines. so i troubleshooted. i put Amen Ra's recovery on my brothers phone, and nandroid'ed only the wimax. put the entire folder for that backup on my sdcard on the spot where u would find ur backups, ran Amen Ra on my Evo. and bam. working 4G. u just cant use them at the sametime cuz it interfears.
 

wutitizshorty

Member
May 28, 2007
32
0
Oh ok cool.

Is there anyway to pack the files on windows
I want to see if my phone will boot now that I got rid of some programs I believe to be causing it to bootloop
 

omartelinho

Member
Jan 22, 2013
8
0
I've extracted *.smg files from a SBF Rom File. I'm willing to extract Stock Apk's from it.

Now, my Unyaffs is in the same folder of the SMG files such as cygwin1.dll, however when i try to execute "unyaffs cg39.smg" I receive the following:

8 [main] unyaffs 5960 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
2790 [main] unyaffs 5960 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump


the log says:

Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=444E1A20 ebx=0000001A ecx=FFFFFFE4 edx=00801322 esi=0040130E edi=610E21A0
ebp=0022EE88 esp=0022EE50 program=C:\Motorola\unaffys\teste-extracted\unyaffs.exe, pid 4708, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022EE88 004010B0 (0022EEE9, 00000000, 00000000, 00401333)
0022EEB8 004013AF (00000002, 00800180, 00800090, 610A5E22)
0022EFA8 61004DD2 (0022EFC0, FFFFFFFF, 77A651CE, 00000000)
0022FF58 6100594F (00000000, 00000000, 00000000, 00000000)
End of stack trace



I've tried to regsrv32 the DLL and also receveid error as a invalid Dll. Does anyone have an idea?

I'm looking for stock Phone, Contacts and the keyboard apk, by the way, anyone knows the keyboard apk file?

thanks
 

Rix70

Senior Member
Jun 18, 2009
1,110
171
Catania
hi guys,exist a new link for this tool or another tool for open .img files?
thanks in advance
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    I have seen this asked a few times recently so I figured I would try to put together a quick and easy guide to extracting files from Nandroid backups. This guide only covers Windows, I assume if you are running Linux you can download unyaffs and compile/run it without my assistance. If you are adventurous you can install cygwin and compile unyaffs on your own (or download it at any number of sites across the internet), however I have included all the files needed to extract the files from the img files.

    1. Download unyaffs along with the cygwin1.dll
    2. Extract the files to a new folder.
    3. Copy the system.img file from the ROM or your Nandroid backup to the folder you extracted unyaffs.exe and cygwin1.dll to.
    4. Open a command prompt and cd to the folder containing the three files. If you are on Windows 7 you can just navigate there with Windows Explorer and in the URL bar type cmd to open a comman prompt in that location.
    5. Type unyaffs system.img

    You have now extracted all the files from the system partition of your Nandroid backup. The APKs are in the /app folder and some apps require library files that can be found in the /lib folder. For example: Swype.apk requires that libSwypeCore.so be in the lib folder for it to work properly.
    1
    Seems to work ok for me for data.img and system.img, but not wimax.img or boot.img.