5,596,925 Members 48,582 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 34166
Posts: 12,239
Join Date: Jul 2010
Location: Pune, Maharashtra
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, 12227 views)
The Following 57 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
MrHassell
Old
#2  
Senior Member
Thanks Meter 245
Posts: 389
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 167
Posts: 814
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 1949
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 113
Posts: 943
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 242
Posts: 702
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 34166
Posts: 12,239
Join Date: Jul 2010
Location: Pune, Maharashtra
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?
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
 
Thol
Old
#10  
Senior Member
Thanks Meter 14
Posts: 229
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