expand a nandroid img file

Search This thread

smeyerhuky

Senior Member
Jan 26, 2009
115
11
for those who do not know how to do this yet, follow directions given here.

Just took this info from the web. None of this except for the guide is written by me.
I am not responsible for anything please do not contact me if a green sludge starts attacking your neighborhood eating one person at a time.

************************************************************
************************************************************
************************************************************

http://code.google.com/p/unyaffs/downloads/list

made for linux, but if you know a bit of c, you can probably change it to work with windows, maybe I will do that if I have some time this week.


********OR********
http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip
or http://www.4shared.com/get/fgryPnPx/unyaffs-windows.html


for windows..... instructions below apply for both

if not included in the zips above, cygwin1.dll and unyaffs.exe are included as an attachment of this reply.



open up a command line, in windows vista/7 just press start and then type cmd press enter and change the directory to the folder with the unyaffs and the img in it. in xp press start>run>cmd... then the same
the usage is: unyaffs /path/to/img

example:
(if unyaffs.exe and system.img are both in c:\temp)
"c:\temp> unyaffs /temp/system.img"

note: the '/' is the way linux determines the pathname of a file and since it is built using cygwin(a file allowing for windows) it is preferrable that the path to the actual file is in unix POSIX format ie: / instead of \ between folders and files.

*********WARNING************
this will extract to directory that unyaffs binary is in.
 

Attachments

  • unyaffs-windows.zip
    877.5 KB · Views: 2,051

smeyerhuky

Senior Member
Jan 26, 2009
115
11
I remember reading this stuff back when I got my G1, and tonight I was trolling the themes and apps section cause I couldnt sleep. (which I rarely look at)

I was baffled that this wasnt common knowledge. I figured if there was no threads about it that people just knew how and didnt have any problems with it. My mistake lol...

enjoy.
 

smeyerhuky

Senior Member
Jan 26, 2009
115
11
can you please explain what is it? what it does? thanks

Umm, it expands nandroid img files :) not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them

Sent from my SPH-D700 using XDA App
 

decalex

Senior Member
Apr 21, 2009
3,101
1,441
Boston, MA
When you create a backup in Clockwork recovery, it leaves you with a folder like this:

2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am

Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).

In the orig post, he's explaining how to extract the files from these large .img files.

To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.
 

smeyerhuky

Senior Member
Jan 26, 2009
115
11
When you create a backup in Clockwork recovery, it leaves you with a folder like this:

2010-11-18.08.52.49
As you can prob figure out, I made that backup on 11/18 at 8:52am

Inside that folder are .img files, such as: data.img and system.img
Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).

In the orig post, he's explaining how to extract the files from these large .img files.

To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.


:) thx

Sent from my SPH-D700 using XDA App
 

sniperkill

Senior Member
Sep 27, 2010
1,648
320
Maryland
Umm, it expands nandroid img files :) not sure how else to explain it. Clockworkmod backups are in the img file format. This process allows you to extract those files to get stuff out of them

Sent from my SPH-D700 using XDA App

Right, like if you wanted a file or a few files from clockworkmod img backup, then this process would give you an extended file system, other than what you would normally use to extract the img files. Just trying to understand this so, please correct me if im wrong.... I've been trying to get more knowledge of this, so im still learning.

I prolly sound like a complete idiot, lol...
 

codest3r

Senior Member
Oct 27, 2010
348
58
Orlando, FL
Sweet! Thanks for this man. I'd been looking for how to do this for some time and kept ending up learning about emulation or some other tangential topic. This is the basic functionality I was looking for. Thanks for posting!
 

smeyerhuky

Senior Member
Jan 26, 2009
115
11
Np. I'm working on writing some stuff on top of the source code that should allow you to browse and pull just one our more file
Its been a but since I looked theory source code so it might take a while... Maybe in between semesters?


Sent from my SPH-D700 using XDA App
 

mjben

Senior Member
Nov 19, 2010
425
44
Manitowoc
Great, now how can I re-compress back to .img after I've made the changes that I want?

EDIT: Nevermind. I just made a zip of the new system folder and flashed it in CWM.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    for those who do not know how to do this yet, follow directions given here.

    Just took this info from the web. None of this except for the guide is written by me.
    I am not responsible for anything please do not contact me if a green sludge starts attacking your neighborhood eating one person at a time.

    ************************************************************
    ************************************************************
    ************************************************************

    http://code.google.com/p/unyaffs/downloads/list

    made for linux, but if you know a bit of c, you can probably change it to work with windows, maybe I will do that if I have some time this week.


    ********OR********
    http://jiggawatt.org/badc0de/android/unyaffs-x86-win.zip
    or http://www.4shared.com/get/fgryPnPx/unyaffs-windows.html


    for windows..... instructions below apply for both

    if not included in the zips above, cygwin1.dll and unyaffs.exe are included as an attachment of this reply.



    open up a command line, in windows vista/7 just press start and then type cmd press enter and change the directory to the folder with the unyaffs and the img in it. in xp press start>run>cmd... then the same
    the usage is: unyaffs /path/to/img

    example:
    (if unyaffs.exe and system.img are both in c:\temp)
    "c:\temp> unyaffs /temp/system.img"

    note: the '/' is the way linux determines the pathname of a file and since it is built using cygwin(a file allowing for windows) it is preferrable that the path to the actual file is in unix POSIX format ie: / instead of \ between folders and files.

    *********WARNING************
    this will extract to directory that unyaffs binary is in.
    2
    When you create a backup in Clockwork recovery, it leaves you with a folder like this:

    2010-11-18.08.52.49
    As you can prob figure out, I made that backup on 11/18 at 8:52am

    Inside that folder are .img files, such as: data.img and system.img
    Those files basically contain your data (like apps you've installed from market) and system (..system apps that might've come with the phone).

    In the orig post, he's explaining how to extract the files from these large .img files.

    To give an example, I had a couple of corrupted clockwork backups, and wanted to ONLY pull out some database files (like text messages and call logs) which were not corrupted. Even tho the backup was messed up, I could still extract the files I needed by using the method above, then copied them manually to my phone.