yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] 42turkeys:
OpenRUU - RUU Shell Script For Linux & Mac

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

You do not need root.

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://xdaforums.com/attachment.php?attachmentid=350639&stc=1&d=1277632079

1.15.405.4 WWE Generic http://www.mediafire.com/?ojmyrn5f2xu

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! ;)
[Desire Android Development] 42turkeys:
Changelog

CHANGELOG:

Xtract-beta2:

Cleaned up the fastboot scripts alot & general cleaning up.

Xtract-beta1:

Initial Release
[Desire Android Development] 42turkeys:
Reserved #2
[Desire Android Development] BlackLine7:
Really nice updates...

Keep up the good work m8 :)
[Desire Android Development] Kalashnikitty:
Awesome work dude! many many kudos!! ;)
[Desire Android Development] noble8:
Thanks for this :)
[Desire Android Development] 42turkeys:
Future Development

Need to clean up the fastboot flash script. Will do it in the morning.

Then it's time to get the download version ready for when I get enough donations & then I will look at windows.

In the longer term I hope to make a live cd with TinyCoreLinux...
[Desire Android Development] bassam:
HBoot 0.8 Asia stock ROM

Hi, i have desire unlocked with Asia ROM 1.19.707.7 , HBoot 0.8

This ROM has selecting of Chinese and other far-east languages which bothering me at the input selecting and i don't use at all.

I want to use your method to install WWE ROM only without Rooting my device (as i understand ).

HTC informed me that my device is Unbranded Unlocked But Region locked !!

And it seems i have to go for Gold card , Root , Unroot to install back the new stock WWE ROM Bla , Bla , Bla which i am trying to avoid at the moment.

NOW

1- Is this method will install WWE 1.15 to my device without a need to Root?

2- Can i upgrade after the WWE 1.21 using the RUU classic method?

3- Is the HBoot 0.8 will remain?

Thank you in advance
[Desire Android Development] 42turkeys:
Just goldcard and then flash :)

If you have Windows then just use the RUU these scripts do not do anything extra/allow you to get past anything they are just RUUs for Linux & Mac.
[Desire Android Development] mihairimia:
Thank you for this. Im on linux only.

I think a howto its a must!
[Desire Android Development] 42turkeys:
The script explains everything you need to do, just double click 1extractrom.sh and then 'run in terminal'

If there's anything you don't understand just ask me and I will be glad to help :)
[Desire Android Development] mihairimia:
I tried from Ubuntu -

after executing the script, I'm loading the RUU with wine- the installer disappears when its close to finish, im hitting enter on the terminal, a file called rom.zip appears on my home but that's it. Nothing happens! The rom.zip stays at 0 bytes!
[Desire Android Development] davebv:
I do not know if I got it right. Would I be able to unroot my desire with these scripts from osx and linux?

(Like I would do it with htc sync and the restore ruu.exe in windows)

Thank you for the answer.
[Desire Android Development] 42turkeys:
Yeah definitely with Linux.

not so sure with osx as I haven't tried it.
[Desire Android Development] davebv:
that was a fast answer, thank you!
[Desire Android Development] CitronVert:
Excuse me...

How it works when u have a mac ?
[HD2 General] HectiQ:
Yesterday I could view all my messages, but now there only 7 or so, I see (255) in the header, but the rest won't show up, what is messing up my phone? did I do sth wrong?
[HD2 General] dobreandl:
Wait just wait , try to restart the phone and just wait my friend , the Htc HD2 official rom has this problem i experienced it sometimes
[HD2 General] HectiQ:
oh, okay thanks dobreandl
[HD2 General] rjbimbo:
I'm also having this problem, every since i downloaded the new update. Even when i start it over the text messages disappear... strange..
[HD2 General] HectiQ:
indeed it started when I updated my stock rom
[HD2 General] pigglett:
I posted about the same problem a few weeks ago.... still no fix for me the disapper @ random
[Hero, G2 Touch Android Development] 42turkeys:
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://xdaforums.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! ;)
[Hero, G2 Touch Android Development] 42turkeys:
Reserved for q&a
[Hero, G2 Touch Android Development] 42turkeys:
Reserved #2
[Hero, G2 Touch Android Development] maxisma:
Nice job! Well done :)
[Hero, G2 Touch Android Development] 42turkeys:
With beta2 I have cleaned up the fastboot scripts alot & general cleaning up of the scripts.
[Hero, G2 Touch Android Development] davebv:
Is this the method for unrooting the HTC and return to stock roms? Like it is done when executing the ruu.exe in windows.
[Hero, G2 Touch Android Development] adwinp:
You should add a prerequisites section.

Not everybody has wine installed be default.
[Hero, G2 Touch Android Development] 42turkeys:
Done.

10char
[Hero, G2 Touch Android Development] MrPadie:
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?
[Hero, G2 Touch Android Development] 42turkeys:
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
[Hero, G2 Touch Android Development] MrPadie:
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:

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
[Hero, G2 Touch Android Development] 42turkeys:
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
[Hero, G2 Touch Android Development] MrPadie:
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.
[Hero, G2 Touch Android Development] utodeb:
Hello,

I have a problem with OpenRUU explained on modaco forum

Edit : It's OK, goldcard issue

Thank
[Hero, G2 Touch Android Development] seansin:
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.
[Hero, G2 Touch Android Development] LORDAIM:
thx mate..
[Hero, G2 Touch Android Development] slippylane:
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?
[Hero, G2 Touch Android Development] Rainmak3r:
HTC Wildfire is not listed as an option, is it supported by the tool?
[Hero, G2 Touch Android Development] hacktrix2006:
I was wondering the same thing it would be great if this works on the Wildfire.
[Hero, G2 Touch Android Development] bulanula:
Well, to be honest if this is using Wine then it is pretty useless.

Anyway, does it work on the HD2 Leo ??
[Hero, G2 Touch Android Development] ilbulgaro89:
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
[Hero, G2 Touch Android Development] Fubarovic:
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.:

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

cat `find -name rom.zip` > ~/rom.zip

use

find -name 'rom.zip' -exec mv {} ~/rom.zip \;

2. Instead of

echo "Copying to /files/rom.zip ..."
mv -f ~/rom.zip ./rom.zip
rm ~/rom.zip
echo "Done!"
echo

use something like

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

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:

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!
[Hero, G2 Touch Android Development] imsaurabh4u:
was looking for the mac..

thanks mate
[Hero, G2 Touch Android Development] :
Sorry to bump this thread, but here is the script I use to extract the ruu (thanks to 42turkeys and Fubarovic). With this script, I don't need to wait to for a certain percentage to freeze wine so the script can copy the rom.zip, since it just loops.

#!/bin/sh
# credits: 42turkeys, Fubarovic

if [ -f ~/rom.zip ]; then
rm ~/rom.zip; fi

echo -n 'Waiting for RUU to run...'
until [ -e ~/rom.zip ]; do
find ~/.wine -name 'rom.zip' -exec mv -v {} ~ \;
done

if [ -f ~/rom.zip ]; then echo -n "Successfully copied!";
else echo "Failed to copy rom.zip."; fi
[Hero, G2 Touch Android Development] kingofnice:
I have Wine installed but it doesnt make the rom.zip
[Legend General] TheTmac:
hello!

i was searching around if it is possible to get network from PC to my HTC Legend, but had no luck with it.. do anyone know if this is possible ?

Thanks.

Tmac ;)
[Legend General] telnet:
the type of network "ad hoc" is not possible.

same problem.

needs an acces point wifi
[Nexus One Themes and Apps] swagr:
I know there are a lot of talented ppl in this forum(except me :-( )does anyone know if its possible to get the lock screen from the Samsung Galaxy S ported to our N1's? Swipe anywhere in any direction to unlock is brilliant...or even that lovely analog clock with the weather inside ;-)
[Nexus One Themes and Apps] borjus86:
search app lockbot in market..
[Nexus One Themes and Apps] swagr:
Thanks, i'll test and update...
[Nexus One Themes and Apps] swagr:
It works great but it lacks the "jiggsaw" functionality as seen in this vid http://www.youtube.com/watch?v=ArGfDb_KCus...
[Nexus One Themes and Apps] GANJDROID:
Yeah, but lockbot is only for the lock screen, none of the features the actual lockscreens have is on it. Would live to see a port of the lockscreen though :D
[Nexus One Themes and Apps] eboy44:
+1 i would love to have that on my nexus!
[Nexus One Themes and Apps] paco909:
i would also love to have this lock-screen its soo awesome !!!!!!!
[Nexus One Themes and Apps] xXJay_RXx:
this on the nexus would be awesome
[Nexus One Themes and Apps] Daneshm90:
Is there a galaxy dump ? Also is this a standalone app that does this or is it tied to the framework ? standalone should be easy, framework next to impossible :)
[Nexus One Themes and Apps] swagr:
I saw a dump somewhere, i'll have to go and look for it. I really dont know if its standalone or tied to the framework. So if i locate the dump can u help? *prays*
[Nexus One Themes and Apps] soulcrash:
Sorry for just pushing this up, but im still looking for the lockscreen, maybe someone has found a way to use it already :)
[Nexus One Themes and Apps] stian230:
+1 I would like to se that on a Nexus
[Nexus One Themes and Apps] lilchip85:
i would to see this as well.

love the sig lol also the pic you have of the cracked screen of the N1 happened to me as well :( my wife said she was about to cry for me lol
[Nexus One Themes and Apps] louis chan:
I want to fix it as well.
[Nexus One Themes and Apps] M3NYFAC3Z:
I believe this is the dump......

http://www.mediafire.com/?gurwfcvp3c398lc
[EVO 4G Q&A, Help & Troubleshooting] vboyz103:
Man so I just saw a video review of Droid X over Android Central and the Moto X got 60fps out of the box without any hacks. But with HTC the devs gotta hack it. Yeah yeah I know some peeps would say we don't need 60fps, but hell for me even if I only get 40fps with nova hack, things seem so much smoother.
[EVO 4G Q&A, Help & Troubleshooting] castillo312:
Yeah, I'm pissed off with my EVO! or I should say HTC!!! I've emailed them about 3 times now and still no reply in regards to the 30 frame rates per second cap. I'm going to wait until the 3rd of July and return my evo and wait for the sprint samsung galaxy version... i read there's going to be 2 versions, a pro with the qwerty and a keyboard less. Also i read the processor in it is identical to that of the iphone 4. This is bull HTC, i expected the best from the evo until the 2nd day i had my evo and saw my palm pre plays 3d games 10 times better than the evo.
[EVO 4G Q&A, Help & Troubleshooting] Kshawn:
I feel what you guys are saying, but how many of us would have known about this issue so early on had it not been for the members here bringing it to our attention, I would have probably caught it later on and not so soon. And yes it is very snappy with the hack.

Also I'm pretty sure sprint is only getting the QWERTY flavored Galaxy S. Samsung also doesn't have a very good track record with keeping up with their devices on a timely fashion. I left MOMENT due to that and went HTC, not like sprint has an variety of big named devices anyway. I'm pretty sure emailing HTC at this point is a waste of time seeing as they already stated they capped it for *their* reasons. This isn't a problem for me since the devs are working on fixes even tho it isn't their job. I'm not an average user so tweaking and twiddling with my phone is all good for me. But I can see how to an average user this would be an issue if they even decide to care.

I really don't know how any of you guys expect to by any smart phone or gadget for that matter and have it work flawlessly without fault. I still can't get over people getting bent about some light warpage that you only see in dark areas but hey thats just me.
[EVO 4G Q&A, Help & Troubleshooting] EtherealRemnant:
Samsung has pledged to focus more on their Android devices so I would imagine that their past issues with not updating will be resolved...

I'm really wanting the Galaxy S Pro... It takes every other Android phone to task.
[EVO 4G Q&A, Help & Troubleshooting] Sporkman:
take the phone back jump to Verizon and move on SIMPLE !
[EVO 4G Q&A, Help & Troubleshooting] go4the1:
Because ONE "flaw" with ONE phone (which is, by the the way, the FIRST batch of the FIRST generation of this phone) obviously means the company as a whole is just garbage?
[EVO 4G Q&A, Help & Troubleshooting] EtherealRemnant:
One phone? Uhhh.......
[EVO 4G Q&A, Help & Troubleshooting] go4the1:
yes, this is the EVO 4G forum. When I say one phone I think it's implied I'm talking about the model as a whole.
[EVO 4G Q&A, Help & Troubleshooting] EtherealRemnant:
You emphasized one phone as if meaning to say that HTC hasn't ****ed up on just about every other phone they've ever put out as well...
[EVO 4G Q&A, Help & Troubleshooting] ramiss:
IMO the grass is not greener at Samsung. I have had the i760 and the Moment and each time I swapped them for the HTC equivilent at the time.

Every device has issues, but at least HTC hacks are much easier to come by...the evidence is in the size of the XDA forums.

The only thing I like better about Samsung is that the hardware is less flimsey, but HTC has gotten better at it over the last year.
[EVO 4G Q&A, Help & Troubleshooting] go4the1:
I emphasized "one" phone because when you translate his post to English, the rant is:

...which is obviously untrue.
[EVO 4G Q&A, Help & Troubleshooting] Jykinturah:
Guys, we know that the cap is software imposed. It can be fixed. Sure, HTC screwed up by imposing a 30FPS cap, but nothing matches the QQing the iPhone 4 users are making right now. (Seriously, glass back and front? Antennae shorting?)

Basically, the cap will be broken completely soon. It is HTC's fault they imposed such a dumb cap in the first place, but calling the company crap because of that is kind of uncalled for.
[EVO 4G Q&A, Help & Troubleshooting] go4the1:
+1 exactly my point.

OP, play with an evo for a few minutes and then try to say that the (temporary) 30fps cap really makes a difference to the overall experience of the device.
[EVO 4G Q&A, Help & Troubleshooting] mrmomoman:
Just go buy the droid x and don't spend your precious time here to tell us how you hate HTC and the EVO because you have so much experience with the Droid X to says its so much better.
[EVO 4G Q&A, Help & Troubleshooting] castillo312:
You know, I bought this phone cash for 500 bucks... I'm a big gamer and would really like to play most of the 3d games gameloft has to offer and with the evo capped at 30 frp second, I'm **** out of luck! CALL IT WHAT YOU WANT, but i want my moneys worth and for the look HTC does not care to fix this issue. I just hope the galaxy s delivers where the evo failed to. And for the record, I bought ASPHAL 5 for my evo on the second day I owned it and IT PLAYS LIKE ****!!!! It did not have to come here to figure this out.
[EVO 4G Q&A, Help & Troubleshooting] TheBiles:
I'm actually waiting to see how thick the S Pro is. If it is pretty thin I might check it out, even though I will probably never use the hardware keyboard. The GPU alone looks to be kicking all kinds of ass.
[EVO 4G Q&A, Help & Troubleshooting] Albaholic:
^Do you really need to post that twice?
[EVO 4G Q&A, Help & Troubleshooting] Kshawn:
I totally get that you want your monies worth, I mean who doesn't right? Also as stated we all would have figured it out sooner or later on our own about the caps one way or another. And yes I agree the cap is nonsense and we shouldn't just "make due" but if you bought the evo as a means for serious gaming I think you picked up the wrong device :p. But all In all I get everyone's point :D
[EVO 4G Q&A, Help & Troubleshooting] troyboytn:
Oh snap! lol I'll be laughing about this remark til tomorrow.
[EVO 4G Q&A, Help & Troubleshooting] Jykinturah:
I'm sorry, but I don't understand how people can play games on a phone.
[EVO 4G Q&A, Help & Troubleshooting] EtherealRemnant:
On a screen this large? Dude its bigger than the PSP's screen...
[EVO 4G Q&A, Help & Troubleshooting] Jykinturah:
Yeah, I know. I just don't get into the gaming mood when I pick my Evo up. I go online, surf, fiddle around with the settings... I guess it is just the way I look at phones.

I use an iPod Touch for my mobile gaming (not including PSP, DS, etc).
[EVO 4G Q&A, Help & Troubleshooting] vboyz103:
Ha, that's very informative comment. At least I voiced mine in an appropriate manner.