Jump to content

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


Recommended Posts

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

Posted (edited)

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
Guest navygino
Posted (edited)

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

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

Guest drigerott
Posted

i'm on windows i tried unyaffs.exe but nothing works :(

can some one help me to unyaffs with cygwin?

Guest drigerott
Posted

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

then unyaffs.exe system.img

: Segmentation fault (core dumped)

??????

Guest navygino
Posted (edited)
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
Guest drigerott
Posted

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

  • 2 weeks later...
Posted (edited)

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

Guest Cyber Boy
Posted

wunyaffs

Not working.

It said Don't Send Message.

Help

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

  • 5 months later...
Guest Mr.Brownstone
Posted

Thanks a lot Navygino! That works fine =)

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

  • 6 months later...
Posted

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

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.