Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,213 Members 39,973 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Extract files from Nandroid backups

Tip us?
 
landaile
Old
#1  
Member - OP
Thanks Meter 15
Posts: 45
Join Date: Sep 2010
Default [GUIDE] Extract files from Nandroid backups

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.
The Following 10 Users Say Thank You to landaile For This Useful Post: [ Click to Expand ]
 
Lock-N-Load
Old
#2  
Lock-N-Load's Avatar
Senior Member
Thanks Meter 265
Posts: 1,178
Join Date: Aug 2010
Location: 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?
 
cruise350
Old
#3  
cruise350's Avatar
Senior Member
Thanks Meter 576
Posts: 1,841
Join Date: Dec 2007
Location: Memphis, TN
Is the system.img the only thing you can open with this or can you open the data.img or the wimax.img also?
 
stevenmirabito
Old
#4  
stevenmirabito's Avatar
Member
Thanks Meter 24
Posts: 52
Join Date: Jan 2011
Location: Camillus, NY

 
DONATE TO ME
Quote:
Originally Posted by Lock-N-Load View Post
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
Old
#5  
Member
Thanks Meter 0
Posts: 32
Join Date: May 2007
Quote:
Originally Posted by cruise350 View Post
Is the system.img the only thing you can open with this or can you open the data.img or the wimax.img also?
I want to know this also
 
gpz1100
Old
#6  
gpz1100's Avatar
Senior Member
Thanks Meter 281
Posts: 2,006
Join Date: Nov 2009
Seems to work ok for me for data.img and system.img, but not wimax.img or boot.img.
Page Plus Flashing - True 3G (evdo)
Free Page Plus Ports/Activation - PM for more info

Vzw Samsung S4 - Page Plus
The Following User Says Thank You to gpz1100 For This Useful Post: [ Click to Expand ]
 
wutitizshorty
Old
#7  
Member
Thanks Meter 0
Posts: 32
Join Date: May 2007
Yep, I tried that too...worked.
 
wutitizshorty
Old
(Last edited by wutitizshorty; 11th March 2011 at 10:13 AM.)
#8  
Member
Thanks Meter 0
Posts: 32
Join Date: May 2007
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
 
wutitizshorty
Old
#9  
Member
Thanks Meter 0
Posts: 32
Join Date: May 2007
Does anyone know a command to repack the files???
 
djtoonjr
Old
#10  
Senior Member
Thanks Meter 1
Posts: 145
Join Date: Nov 2009
Default 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.
Black Evo 4G with Red Housing Mod
Team-Nocturnal Kinged SHOOTER E3D 2.3
16GB-EXT



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Change Your Toast Notification Style with XToast

Android uses multipletypes of notifications. One of these isknown as a toast notification. … more

Port Sony Xperia Themes to CyanogenMod 11 with Ease

In addition the obvious proficiency with graphics, creating agood Android theme … more

Cell Phone SIM Unlock Bill Just Steps Away from President’s Desk

For all those who believe that Cinderella stories don’t actually … more