Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,797 Members 51,578 Now Online
XDA Developers Android and Mobile Development Forum

[How-To] Extracting/Accessing Recovery/Nandroid backup (.img) files

Tip us?
 
DooMLoRD
Old
(Last edited by DooMLoRD; 18th April 2011 at 11:12 PM.)
#1  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 38,368
Posts: 13,058
Join Date: Jul 2010
Location: Noida
Default [How-To] Extracting/Accessing Recovery/Nandroid backup (.img) files

Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,

* If the MODS feel this thread is redundant please delete it *

Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).

linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
and compile using:
Code:
gcc -o unyaffs unyaffs.c
for windows users:
you can download the attached rar file and extract it...


usage:
1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
3) go to terminal/command prompt, change directory to where those files are and execute:
e.g. for system.img
Code:
unyaffs system.img
the contents of the .img file will be extracted in that directory


there is also an app in the market YaffsExpert with which you can extract the .img files using phone


Inspired from:
guide at EVO 4G forums http://forum.xda-developers.com/showthread.php?t=890508
Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
Attached Files
File Type: rar unyaffs-x86-win.rar - [Click for QR Code] (576.3 KB, 12953 views)
The Following 58 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
MrHassell
Old
#2  
Senior Member
Thanks Meter 245
Posts: 391
Join Date: Dec 2010
Location: Melbourne

 
DONATE TO ME
Default xlnt

+1 nice post! very useful info for any Android owner, anyone ever backed up with nandroid or xRecovery and felt like they forgot something from one of their earlier backups...? This is what you need
You like my work? Feel free to buy me a cool beer
The Following User Says Thank You to MrHassell For This Useful Post: [ Click to Expand ]
 
javagreen
Old
#3  
javagreen's Avatar
Senior Member
Thanks Meter 171
Posts: 836
Join Date: Aug 2010
Location: Dombivli
Pretty nice and useful. I actually was tinkering around with these files the other day as I contemplated running either Z's Froyo Beta 4 OR J's GB
 
cobrato
Old
#4  
cobrato's Avatar
Senior Member
Thanks Meter 1,955
Posts: 827
Join Date: Jul 2010

 
DONATE TO ME
Thank you. It is very useful.
 
Z3US911
Old
#6  
Z3US911's Avatar
Senior Member
Thanks Meter 116
Posts: 972
Join Date: Jan 2011
Location: Delhi

 
DONATE TO ME
now i don't have to google for this thanx...
 
velnens123
Old
#7  
velnens123's Avatar
Senior Member
Thanks Meter 248
Posts: 728
Join Date: Dec 2010
Location: Lincoln
How To Repack Files?
 
mohdameer
Old
#8  
Member
Thanks Meter 6
Posts: 84
Join Date: Aug 2010
Will this check for the md5?
 
DooMLoRD
Old
#9  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 38,368
Posts: 13,058
Join Date: Jul 2010
Location: Noida
Quote:
Originally Posted by velnens123 View Post
How To Repack Files?
i didnt follow...

do u want to place/add/remove files to make ur own yaffs img?
 
Thol
Old
#10  
Senior Member
Thanks Meter 14
Posts: 228
Join Date: Aug 2007
i searched a tool like this... thank for this HOW TO!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes