Jump to content

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


Guest navygino

Recommended Posts

Guest behnaam
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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Guest navygino

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
Link to comment
Share on other sites

Guest navygino

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.......... :(

Link to comment
Share on other sites

Guest navygino
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

unyaffs_x86_win_pack.rar

Edited by navygino
Link to comment
Share on other sites

Guest drigerott

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

Link to comment
Share on other sites

  • 2 weeks later...

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 <_<

wunyaffs.zip

Edited by ev0
Link to comment
Share on other sites

Guest Borkata
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 :(

Link to comment
Share on other sites

  • 8 months later...
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!

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
Guest Logseman
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.

Link to comment
Share on other sites

  • 6 months later...

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?! unsure.gif

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.