Jump to content


How can I view the files inside the nandroid .img file?

- - - - -

  • Please log in to reply
16 replies to this topic

#1
navygino

navygino

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Devices:Acer Liquid, LG KS660
Any software required?

Thanks.


#2
behnaam

behnaam

    Enthusiast

  • MoDaCo Plus
  • PipPipPip
  • 259 posts
  • Location:Stockholm, Sweden
  • Interests:Android, UX and interaction design, tech and last but not least; Beer :D
  • Devices:Google Nexus One
  • Twitter:@benocharm

View Postnavygino, on Feb 23 2010, 19:09, said:

Any software required?

Thanks.

Which of them? there are different images packed in different ways, system is yaffs2 image and boot.img is packed with mkbootimg tool from android source

Follow me @benocharm on twitter for latest update on my work :)

Like my work? Consider buying me a beer :)

#3
vache

vache

    Addict

  • Members
  • PipPipPipPipPip
  • 897 posts
  • Gender:Male
  • Devices:Acer Liquid, Acer Liquid Metal
  • Twitter:@vachounet
You'll need unyaffs.exe, but you only extract data.img & system.img. Fot boot.img you can find a tool in this tuto (unpack-bootimg.pl). It will extract ramdisk & kernel from it.

Edited by vache, 23 February 2010 - 07:44 PM.


#4
navygino

navygino

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Devices:Acer Liquid, LG KS660
I am reading those pages and downloading the "tools".

Any hint how should I deal with those "tools" with .pl extension?

Should I run it from cmd? or what?

I am definitely a dummy but I am trying to learn as I have some technical interest in Android......

Thanks.

[I am not good at programming but I have knowledge in Borland C when I was in college many years ago.....]

Edited by navygino, 24 February 2010 - 03:59 AM.


#5
kylenk

kylenk

    Regular

  • Members
  • PipPip
  • 133 posts
  • Gender:Male
  • Location:Melbourne Australia
im assuming pl = pearl? lol


#6
navygino

navygino

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Devices:Acer Liquid, LG KS660
Success to unpack yaffs Image, relatively easy......(Read some Wiki to learn what is it.....)
Reading and learning how to extract boot.img...Still don't understand but hopefully not too difficult.
Next step to learn to repack and compile stuffs.......... :(


#7
drigerott

drigerott

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 306 posts
  • Devices:Acer liquid
i'm on windows i tried unyaffs.exe but nothing works :(

can some one help me to unyaffs with cygwin?

Posted Image



for my ROM B70P,  themes  and guides if you want ;) offer me a coffè ;)

#8
drigerott

drigerott

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 306 posts
  • Devices:Acer liquid
i compiled again from surce unyaffs.exe with cygwin : gcc -o unyaffs unyaffs.c

then unyaffs.exe system.img

: Segmentation fault (core dumped)



??????

Posted Image



for my ROM B70P,  themes  and guides if you want ;) offer me a coffè ;)

#9
navygino

navygino

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Devices:Acer Liquid, LG KS660

View Postdrigerott, on Feb 25 2010, 17:26, said:

i compiled again from surce unyaffs.exe with cygwin : gcc -o unyaffs unyaffs.c

then unyaffs.exe system.img

: Segmentation fault (core dumped)
??????
I had packed everything need for the unyaffs here as a tiny tool for my own use.
  • unyaffs.exe
  • cygwin1.dll
  • cygz.dll
  • Unpack_system.img.cmd (Put the system.img in the same folder and run with this simple cmd...)
@echo off
Echo =============================================================
Echo *** Unpack yahffs system.img ***
Echo ==============================================================
Echo.
pause
unyaffs [color=red]system.img (Please edit yourself for your own use)[/color]
Echo..
Echo COMPLETED!
pause

Attached Files


Edited by navygino, 25 February 2010 - 09:49 AM.


#10
drigerott

drigerott

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 306 posts
  • Devices:Acer liquid
no stil lthe same error:


      2 [main] unyaffs 724 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_
VIOLATION
    579 [main] unyaffs 724 open_stackdumpfile: Dumping stack trace to unyaffs.ex
e.stackdump

maybe is the system.img corrupt :S

Posted Image



for my ROM B70P,  themes  and guides if you want ;) offer me a coffè ;)

#11
ev0

ev0

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Liquid
I wanted to do the same without starting up VMware and just extract some files from a system.img/data.img under Windows, so I modified the unyaffs source and made it Windows compatible! (more or less, symlinks & hardlinks are not implemented)

Source & binary: Download (same as Attachment)

There are two binaries inside: one compiled with VC 9.0 and one with MinGW. If u don't have the VC 2008 Redistributable installed, maybe the MinGW version works. Just drag&drop the ".img"-file onto the "wunyaffs.exe" and wait a few seconds - the files will get extracted directly into the directory where the ".img" resides in.

Commandline: wunyaffs IMAGE_FILE.IMG

Maybe someone finds it useful too, so I thought I'd share <_<

Attached Files


Edited by ev0, 11 March 2010 - 04:28 AM.


#12
Borkata

Borkata

    Diehard

  • Members
  • PipPipPipPip
  • 314 posts
  • Devices:Acer Liquid; HTC Kaiser

View Postev0, on Mar 11 2010, 06:27, said:

I wanted to do the same without starting up VMware and just extract some files from a system.img/data.img under Windows, so I modified the unyaffs source and made it Windows compatible! (more or less, symlinks & hardlinks are not implemented)

Source & binary: Download (same as Attachment)

There are two binaries inside: one compiled with VC 9.0 and one with MinGW. If u don't have the VC 2008 Redistributable installed, maybe the MinGW version works. Just drag&drop the ".img"-file onto the "wunyaffs.exe" and wait a few seconds - the files will get extracted directly into the directory where the ".img" resides in.

Commandline: wunyaffs IMAGE_FILE.IMG

Maybe someone finds it useful too, so I thought I'd share <_<

Thanks for sharing :mellow: This is really useful, because every start of the virtual machine eats my pc memory and I hardly work :(


#13
Cyber Boy

Cyber Boy

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:HTC Tattoo
wunyaffs
Not working.
It said Don't Send Message.
Help


#14
Zonly1

Zonly1

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:G2

View Postev0, on Mar 10 2010, 21:27, said:

I wanted to do the same without starting up VMware and just extract some files from a system.img/data.img under Windows, so I modified the unyaffs source and made it Windows compatible! (more or less, symlinks & hardlinks are not implemented)

Source & binary: Download (same as Attachment)

There are two binaries inside: one compiled with VC 9.0 and one with MinGW. If u don't have the VC 2008 Redistributable installed, maybe the MinGW version works. Just drag&drop the ".img"-file onto the "wunyaffs.exe" and wait a few seconds - the files will get extracted directly into the directory where the ".img" resides in.

Commandline: wunyaffs IMAGE_FILE.IMG

Maybe someone finds it useful too, so I thought I'd share :)


AWESOME!  This really helped me out!


#15
Mr.Brownstone

Mr.Brownstone

    Newbie

  • Members
  • Pip
  • 1 posts
Thanks a lot Navygino! That works fine =)


#16
Logseman

Logseman

    Regular

  • Members
  • PipPip
  • 53 posts
  • Devices:Advent Vega, Samsung Galaxy S
  • Twitter:@Panimayo

View Postev0, on Mar 11 2010, 06:27, said:

I wanted to do the same without starting up VMware and just extract some files from a system.img/data.img under Windows, so I modified the unyaffs source and made it Windows compatible! (more or less, symlinks & hardlinks are not implemented)

Source & binary: Download (same as Attachment)

There are two binaries inside: one compiled with VC 9.0 and one with MinGW. If u don't have the VC 2008 Redistributable installed, maybe the MinGW version works. Just drag&drop the ".img"-file onto the "wunyaffs.exe" and wait a few seconds - the files will get extracted directly into the directory where the ".img" resides in.

Commandline: wunyaffs IMAGE_FILE.IMG

Maybe someone finds it useful too, so I thought I'd share :)
Sorry for necro-posting so blatantly, but this person has saved me from a world of trouble. It's only fitting to thank him/her.


#17
AMIH

AMIH

    Newbie

  • Members
  • Pip
  • 1 posts
THX nv0 & navygino. It helps a lot to unpack my "yaffs2-1.img" file of "Trekstor MovieStation Antarius Plus". But after editing, (enabling telnet) how to repack?! Posted Image





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users