• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

OpenRUU for Linux & Mac - NEW! Extract rom.zip from any RUU! BETA2

Search This thread

42turkeys

Senior Member
Apr 18, 2010
569
117
OpenRUU - RUU Shell Script For Linux & Mac

This is a shell script to flash an official RUU from HTC.

You do not need root.

Prerequisites:
Wine - Only needed to extract a rom from an RUU.

The script will:
  • NEW! Extract a rom.zip from an RUU & works on any device!
  • Get your current ROM version
  • Get Your Current HBOOT Version
  • Get Your Battery %
  • Reboot into RUU Mode
  • Flash the ROM using fastboot or NEW! Flash the rom in HBOOT without a PC!
  • Reboot your phone
Enjoy! :)

DOWNLOADS:

RUU Exract Version (beta) http://forum.xda-developers.com/attachment.php?attachmentid=350639&stc=1&d=1277632079]

If you can, please donate so I can afford better hosting, I also have some cool features to implement when I get proper hosting too. (If you can host a rom.zip, please PM me.)

Donate - GBP

Donate - Euro

Donate - Dollars

Post here with any bugs/comments so my turkeys can get to work! ;)

attachment.php
 

Attachments

  • OpenRUU-Xtract-beta.zip
    789.4 KB · Views: 4,284
Last edited:

42turkeys

Senior Member
Apr 18, 2010
569
117
With beta2 I have cleaned up the fastboot scripts alot & general cleaning up of the scripts.
 

davebv

Member
Jun 9, 2010
9
0
Is this the method for unrooting the HTC and return to stock roms? Like it is done when executing the ruu.exe in windows.
 

MrPadie

Senior Member
Jan 29, 2010
202
41
Cape Town
www.voidblog.com
Just one question quickly. Say I extract the rom.zip from one of the official 2.1 RUU's - will it be flashable in such a way that I don't lose my custom recovery image? In other words, is the SPL removed?
 

42turkeys

Senior Member
Apr 18, 2010
569
117
Just one question quickly. Say I extract the rom.zip from one of the official 2.1 RUU's - will it be flashable in such a way that I don't lose my custom recovery image? In other words, is the SPL removed?
Nothing is removed or added, just the same as using an HTC ruu on windows.


Sent from Steve Job's Android Dungeon with my HTC Hero
 

MrPadie

Senior Member
Jan 29, 2010
202
41
Cape Town
www.voidblog.com
I see. Just a heads up - wine for mac does not allow the RUU install to get past the initial loading screen. Wine error is:

Code:
fixme:storage:create_storagefile Storage share mode not implemented.
err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
err:module:import_dll Library ARUGlobal.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe" failed, status c0000135
 

42turkeys

Senior Member
Apr 18, 2010
569
117
I see. Just a heads up - wine for mac does not allow the RUU install to get past the initial loading screen. Wine error is:

Code:
fixme:storage:create_storagefile Storage share mode not implemented.
err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
err:module:import_dll Library ARUGlobal.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe" failed, status c0000135
That's normal if you are just seeing the loading screen. You have to hit enter on the script just before it dissapears. I'm working on a better solution.

Sent from Steve Job's Android Dungeon with my HTC Hero
 

MrPadie

Senior Member
Jan 29, 2010
202
41
Cape Town
www.voidblog.com
Ah, I see. I already tried to hit enter at that point, and it didn't find it - must have not been copied over yet. However, at the same time, I manually watched the temporary directory as it was being created and I didn't see the rom.zip file appear, from start to finish. Has it worked for you on Mac yet? Never the less, I achieved what I wanted with Windows...one of the very little things I can achieve with it :p

Keep up the good work, really great script.
Mr P.
 

utodeb

Member
Jul 27, 2010
12
2
Hello,

I have a problem with OpenRUU explained on modaco forum

Edit : It's OK, goldcard issue

Thank
 
Last edited:

seansin

New member
Aug 9, 2010
3
0
Will this work if the RUU is not working ?

Hi,

Will openRUU extract a rom form the RUU to work on my hero if the RUU is not working in the exe mode on windows and giving signature error (even with goldcard).

I have a stock rom 2.73.405.66 and a custom recovery ClockWokMod 2.0.1.3 and I have not been able to downgrade to 2.73.405.5 using the "RUU_Hero_HTC_WWE_2.73.405.5_WWE_release_signed_NoDriver.exe" file with the latest HTC sync running and 2 different goldcards. Always a signature error.

Will openRUU work using the same RUU exe and my hero ?

Thanks,

Sean.
 

slippylane

New member
May 17, 2009
3
0
Sign of a noob: I thought I knew what I was doing

Okay, ran the script as directed. It fell down a couple of times, so I altered a line in 1extractrom.sh to point to scripts/linux/cptoworkingdir.sh instead of scripts/cptoworkingdir.sh, then added a trailing "/" to the adb-linux push line in scripts/linux/desire.sh, after which it progressed smoothly and worked fine.

The phone boots okay into fastboot, recovery and into the OS. At least, I assume it boots okay...it certainly makes all the right beeps and buzzes. I can't be sure it's working okay because.....the screen is completely blank.

Not a flicker of life. I know it boots okay into fastboot, because I can connect to it with fastboot on my Ubuntu box, but I can't see a darned thing on the Desire's screen. No little red circle at first power-on. No boot screens or animation. Nothing.

So...what did I do wrong? Am I missing something obvious?
 

bulanula

Senior Member
Jun 10, 2009
144
12
London
Well, to be honest if this is using Wine then it is pretty useless.
Anyway, does it work on the HD2 Leo ??
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I see. Just a heads up - wine for mac does not allow the RUU install to get past the initial loading screen. Wine error is:

    Code:
    fixme:storage:create_storagefile Storage share mode not implemented.
    err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
    err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUGlobal.dll") not found
    err:module:import_dll Library ARUGlobal.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
    err:module:import_dll Library MFC42u.DLL (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
    err:module:import_dll Library MSVCP60.dll (which is needed by L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe") not found
    err:module:LdrInitializeThunk Main exe initialization for L"C:\\users\\allistersmith\\Temp\\{9A47FC28-4437-41C2-9AF8-0EAB066A2AE0}\\{50F2F878-636A-496F-A7CB-544C067E0C4B}\\ARUWizard.exe" failed, status c0000135

    You're missing some .dll files. However, I found out it's easy to extract the rom.zip without the OpenRUU script: run the .exe using wine. When you see the progress bar is right before the end, suspend wine. You can now do a find in wine's "C:" (typically under ~/.wine/drive_c) for rom.zip and copy it somewhere "safe", e.g.:

    Code:
    find ~/.wine -name 'rom.zip' -exec mv -v {} ~ \;

    and you will get rom.zip in your home directory.

    I didn't like this script very much, because it's completely relying on the user to hit enter at the right moment. When the user hits enter, the script will search for rom.zip in the temporary Windows directory, where the RUU installer extracted it, and copy it somewhere else. However, if you don't have the right .dlls installed, the installer quits and the temporary directory with the ROM is removed.

    Two more tips for the author:
    1. Instead of
    Code:
    cat `find -name rom.zip` > ~/rom.zip
    use
    Code:
    find -name 'rom.zip' -exec mv {} ~/rom.zip \;
    2. Instead of
    Code:
    echo "Copying to /files/rom.zip ..."
    mv -f ~/rom.zip ./rom.zip
    rm ~/rom.zip
    echo "Done!"
    echo
    use something like
    Code:
    echo -n "Copying to /files/rom.zip ... "
    mv -f ~/rom.zip ./rom.zip && echo "OK" || echo "Failed"
    The rm command is completely superfluous: if the mv failed, the rm will fail as well. On top of that, your script does not check the return code of the commands it's running. It will echo "Done!" no matter what the result of the mv or rm commands was.

    In short, thanks for the effort, 42turkeys, but it couldn't hurt to read up on shell scripting:
    - Bash scripting for beginners
    - Advanced Bash-Scripting Guide

    No flame intended.

    ---------- Post added at 10:28 PM ---------- Previous post was at 10:21 PM ----------

    I've got problem extracting Rom.zip ...I run it on Ubuntu I press enter when the RUU.exe is on 70% but it stay on "coping Rom.zip ......"
    Any help?Thanks

    No need for the script if you do the following:

    1. run the installer with wine from a terminal window
    2. when the initial progress bar is near 100%, suspend wine by hitting "CTRL + Z" in the terminal window
    3. wine will now be suspended and not react to anything, don't worry, that's the point.
    4. find rom.zip that was extracted by the installer to a temporary dir and store it somewhere safe:
    Code:
    find ~/.wine -name 'rom.zip' -exec mv -v {} ~ \;
    5. you should now have 'rom.zip' in your home directory
    6. resume wine and the installer by running "fg" in the same terminal window.
    7. Done!