[DEV][Windows][NO-CYGWIN]unyaffs tool

Search This thread

adridu59

Senior Member
May 15, 2011
926
2,283
Paris, France
www.twitter.com
Hello everybody,

Here is the unyaffs tool for Windows including the latest cygwin1.dll to get it working without having to install Cygwin ! :)

  • This tool can extract *.img (YAFFS) android files.
  • This is a command-line utility.
  • Usage: open cmd, go to unyaffs.exe folder and type: unyaffs image_file_name

DOWNLOAD on Mediafire

Over 900 downloads !
capture2qj3b.png



Sources : unyaffs project, Cygwin
 
Last edited:

Droidzone

Inactive Recognized Developer
Sep 24, 2010
5,531
2,283
Kochi
www.droidzone.in
OnePlus 9 Pro
Hello everybody,

Here is the unyaffs tool for Windows including the latest cygwin1.dll to get it working without having to install Cygwin ! :)

  • This tool can extract *.img (YAFFS) android files.
  • This is a command-line utility.
  • Usage: open cmd, go to unyaffs.exe folder and type unyaffs image_file_name

DOWNLOAD on Mediafire

PLEASE CLICK ON THE THANKS BUTTON IF THAT HELPED.

What did you use to compile it on Windows?
 

bombadier

Senior Member
Jul 3, 2010
3,530
3,358
The Burgh
Cant get this to work get a STATUS_ACCESS_VIOLATION at eip=004010B0 error,have tried various tutorials/sources and just cannot get it to work :mad:

EDIT I am too stupid to get this to work,managed to get what I needed extracted by using ext2explore.
 
Last edited:

E:V:A

Inactive Recognized Developer
Dec 6, 2011
1,449
2,213
-∇ϕ
I didn't compile it, just downloaded latest unyaffs binaries and grabbed Cygwin dll from cygwin binaries.

Very simple stuff but I'm not sure everyone will think to do it. Installing Cygwin is a pain, this way is much more simpler. :)

a) Well if you didn't compile it, where did you get the binaries from? (And who compiled them, what version etc.??) Give us a link!

b) Cygwin is generally a piece of cake to install! But it doesn't contain any YAFFS binaries or sources!

So what have you been doing dude, and why should we trust your stuff??


To everyone: I would NOT run any exe from this guy, unless he can show his sources and what he did.
 

adridu59

Senior Member
May 15, 2011
926
2,283
Paris, France
www.twitter.com
a) Well if you didn't compile it, where did you get the binaries from? (And who compiled them, what version etc.??) Give us a link!

b) Cygwin is generally a piece of cake to install! But it doesn't contain any YAFFS binaries or sources!

So what have you been doing dude, and why should we trust your stuff??


To everyone: I would NOT run any exe from this guy, unless he can show his sources and what he did.

Are you one of those purists who only run selfcompiled code ?

Unyaffs tool needs Cygwin dll to run on Windows.
"What version" --> There is only one release from Dec 2008 if you took some time for looking at project page.

Now next time be less aggresive and stop calling me "this guy", thanks in advance.
 
Last edited:

mingolianbeef

Senior Member
Apr 14, 2011
2,401
1,502
Give me a verification post and this will be my img recompile tool.!

I don't believe in bashing anyone, I think he is trying to make a name for himself like everyone else, credits to you dude, but I'm gonna hold back trying this out until I get just a little more info on it. Great work ahead of time though dude.!

Sent from my PG86100 using XDA App
 

bovirus

Senior Member
Oct 7, 2007
2,154
787
Is not necessary to install Cygwin. It's enough Cygwin.dll.

There are some new structure for YAFFS file iamge (ex. 8192 bytes /segment and 448 bytes /spare)

The new utility (unyaffs) can support it, but if you want to recompile it should be encessary also makeyaffs (and it should be run under Linux - not under Windows)

Some link about other utils

Unyaffs /ehlers) - source: https://github.com/ehlers/unyaffs

To compile under Windows it's quite simple.
Install Cygwinwin (downlaod http://cygwin.com/setup.exe and run it).
As modules select: "gcc", "gdb" and "make".
Create a folder under "/Cygwin/home/@username" and put here the program source.
Run Cygwin. Go to the source directory. Run "make". You will have the .exe file compiled.
Copy the compiled .exe file plus CYGWIN.DLL (available in \CYGWIN) and in other folder and you can run utility.

Other usefull tools: http://code.google.com/p/yaffs2utils/
 

abaaaabbbb63

Senior Member
Nov 19, 2011
3,898
3,423
Somewhere Over The Rainbow
I tried to unyaff the system.img from the HTC Desire C RUU. This is the error it gave me, and I don't know why.

Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=00010000 ebx=00000001 ecx=FFFFFFFD edx=00AB13FA esi=0040130E edi=610E21A0
ebp=0028EE88 esp=0028EE50 program=C:\Users\Andu\Desktop\unyaffs\unyaffs.exe, pid 6012, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028EE88 004010B0 (0028EEE9, 00000000, 00000000, 00401333)
0028EEB8 004013AF (00000002, 00AB0190, 00AB0090, 610A5E22)
0028EFA8 61004DD2 (0028EFC0, FFFFFFFF, 007DA588, 007B00C4)
0028FF58 6100594F (00000000, 00000000, 00000000, 00000000)
End of stack trace

I tried running cmd as Admin, same error.
 
Last edited:

samir.win32

Member
Aug 31, 2012
16
0
I tried to unyaff the system.img from the HTC Desire C RUU. This is the error it gave me, and I don't know why.

Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=00010000 ebx=00000001 ecx=FFFFFFFD edx=00AB13FA esi=0040130E edi=610E21A0
ebp=0028EE88 esp=0028EE50 program=C:\Users\Andu\Desktop\unyaffs\unyaffs.exe, pid 6012, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028EE88 004010B0 (0028EEE9, 00000000, 00000000, 00401333)
0028EEB8 004013AF (00000002, 00AB0190, 00AB0090, 610A5E22)
0028EFA8 61004DD2 (0028EFC0, FFFFFFFF, 007DA588, 007B00C4)
0028FF58 6100594F (00000000, 00000000, 00000000, 00000000)
End of stack trace

I tried running cmd as Admin, same error.

I too got an error like this

???
ROM>unyaffs system.img
140 [main] unyaffs 1192 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
1064 [main] unyaffs 1192 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
????

plz help
 

petar_b

Senior Member
Mar 28, 2009
69
7
This utility acts weird when I have ran it first time.
- It has hidden all processes in my task manager and procexplorer (systernals),
- ProcMon (systernals) was showing that process is hooked to system32/wow64 and registry
- it raised 6 (out of 44) cores of my CPU to 100%
- I couldn't exit nor kill command windows. As I run windows server 2016 which is very reliable I find strange that one can't kill a command window.

After reboot:
- I moved this into vmware to analyze with olidbg but then it behaved as it should.
- olydbg shows that exe imports kernel dlls which is unusuall since cygwin provides integration with the OS.

My feeling:
- I would not use this exe again.
- When I see communication between member who provided it and others, I trust it less.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 77
    Hello everybody,

    Here is the unyaffs tool for Windows including the latest cygwin1.dll to get it working without having to install Cygwin ! :)

    • This tool can extract *.img (YAFFS) android files.
    • This is a command-line utility.
    • Usage: open cmd, go to unyaffs.exe folder and type: unyaffs image_file_name

    DOWNLOAD on Mediafire

    Over 900 downloads !
    capture2qj3b.png



    Sources : unyaffs project, Cygwin
    3
    a) Well if you didn't compile it, where did you get the binaries from? (And who compiled them, what version etc.??) Give us a link!

    b) Cygwin is generally a piece of cake to install! But it doesn't contain any YAFFS binaries or sources!

    So what have you been doing dude, and why should we trust your stuff??


    To everyone: I would NOT run any exe from this guy, unless he can show his sources and what he did.

    Are you one of those purists who only run selfcompiled code ?

    Unyaffs tool needs Cygwin dll to run on Windows.
    "What version" --> There is only one release from Dec 2008 if you took some time for looking at project page.

    Now next time be less aggresive and stop calling me "this guy", thanks in advance.
    2
    What did you use to compile it on Windows?

    I didn't compile it, just downloaded unyaffs binaries and grabbed Cygwin dll from cygwin binaries.

    Very simple stuff but I'm not sure everyone will think to do it. Installing Cygwin is a pain, this way is much more simpler. :)
    2
    Is not necessary to install Cygwin. It's enough Cygwin.dll.

    There are some new structure for YAFFS file iamge (ex. 8192 bytes /segment and 448 bytes /spare)

    The new utility (unyaffs) can support it, but if you want to recompile it should be encessary also makeyaffs (and it should be run under Linux - not under Windows)

    Some link about other utils

    Unyaffs /ehlers) - source: https://github.com/ehlers/unyaffs

    To compile under Windows it's quite simple.
    Install Cygwinwin (downlaod http://cygwin.com/setup.exe and run it).
    As modules select: "gcc", "gdb" and "make".
    Create a folder under "/Cygwin/home/@username" and put here the program source.
    Run Cygwin. Go to the source directory. Run "make". You will have the .exe file compiled.
    Copy the compiled .exe file plus CYGWIN.DLL (available in \CYGWIN) and in other folder and you can run utility.

    Other usefull tools: http://code.google.com/p/yaffs2utils/
    1
    if you dont trust him why u even post on this thread about his work?
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone