5,595,964 Members 31,452 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Extract files from Nandroid backups

Tip us?
 
landaile
Old
#1  
Member - OP
Thanks Meter 13
Posts: 38
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,171
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 557
Posts: 1,804
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 275
Posts: 1,959
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: 142
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

Fix the Ambient Light Issues on Your Google Nexus 5 using Xposed

The Google Nexus 5 is a great and rather popular device. This LG-produced … more

Google Glass XE16 Update Factory Image and Rooted Bootloader Now Available

You may recall that early yesterday, we talked about the XE16 … more

Add Swipe Utilities to Your App with SimpleFingerGestures Library

Gestures have become an increasingly important element in smartphone UI … more