OpenRUU For Linux And Mac OSX Users September 28th, 2010
The official HTC RUU files are only available for Windows, however if you are using either Linux or Mac OSX there is now a way to run a modified version of the RUU to enable you to update using the same official ROM, just read down through this guide and follow the instructions below.
Caveat: Please read the entire guide before starting and ensure that you fully understand all of the steps. If you are unsure about anything, please ask a question using the comments at the bottom of the post before continuing; it’s better to check first before starting and finding you run into problems. The usual also applies, by following this guide you do so at your own risk, I will not be held accountable for any problems you may encounter along the way.
- Firstly, download and install the appropriate Android SDK for your operating system, both Linux and Mac OSX versions can be found here, this will make sure that you have all the files and drivers necessary on your machine before starting (these will also be useful afterwards so it is a good idea to leave them installed once you have finished).
- Download the OpenRUU file, complete with the necessary ROM from here [mirror].
Next, you’ll need to create your goldcard:
- Backup the data on your microSD card. You may also wish to make a copy of any SMS or MMS messages that are already on your phone, suitable apps can be found on the market to do this.
- If you took out your microSD in the previous step, ensure it is back in your Desire and click through Menu>Settings>SD & Phone Storage.
- Click Unmount SD card.
- Click Format SD card; by doing this from within your phone instead of formatting it from your computer, you will ensure that it is formatted in the correct format.
- Next, download and install ASTRO File Manager from the market if you do not already have it installed. Once it has finished being installed open the application.
- Navigate to sys/class/mmc_host/mmc1/mmc1:82d1 (you may find that ‘82d1’ will be different, this is normal just choose the option that you have available on your device).
- Long press on the CID file.
- Select Open As and then Text.
- Select File Editor.
- You’ll be given a long number, make a note of this somewhere safe.
- Open this page in your internet browser on your computer.
- Enter the number you found in the above steps into the SD Card Serial (CID) field.
- Enter all of the other details that you are asked for and hit Generate Goldcard.
- Check your email on your computer, the goldcard image that you have just created will have been sent to you as an attachment. Save this into the root of your user directory, it’s important that you do not save it anywhere else.
- Connect your Desire to your computer.
- Pull down the notification bar on your Desire and press Charge Only (if you have previously changed the default option this may be different, i.e. HTC Sync).
- Select the Disk Drive option and hit Done.
- On your computer, open Terminal which can be found by clicking through Applications>Utilities>Terminal (depending on which operating system you are using the location of Terminal will vary)
- Type the following:
- You should be able to see your microSD card; you can recognise it from its size and by the fact that its type is DOS_FAT_32. You need to make a note of the Identifier for example disk2s1.
- Now you need to unmount the microSD, assuming your Identifier was disk2s1 (change the value ‘2’ based on the number you got after the word ‘disk’) enter the following:
diskutil unmountDisk /dev/disk2
- Finally, to actually create your goldcard type:
sudo dd bs=512 if=~/goldcard.img of=/dev/disk2(remembering to change the ‘2’ if appropriate)
- When prompted, you’ll need to enter your password.
That’s the goldcard created, and the hard work out of the way. At this stage, double check that anything on your device that you wish backed up has been, as in the following stages you will flash your Desire with a new ROM and wipe any data in the process, then when ready proceed with the next stage:
- Extract the OpenRUU archive that you downloaded earlier.
- Run 2FastbootFlash-xxx.sh, where xxx represents the operating system that you are using; either Linux or Mac OSX (based on the Linux version, to run the file you will need to ensure that the file is executable. To do this, right click the file and clicking through Properties>Permissions, tick to allow executing file as a program. Then simply double click the file and choose Run in the popup allowing it to run within Terminal).
The RUU should now run and after a few minutes you will be finished. Any questions leave a comment below.
Credits: Thanks to 42turkeys for the tools and scripts used in this guide.
Tags: android, Desire, google, htc, linux, osx, ubuntu
This entry was posted on Tuesday, September 28th, 2010 at 4:00 pm and is filed under Android OS, Apple, Blah, Desire, Google, HTC, Linux, Linux Mint, Mac OS X, Technology Related, Ubuntu. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.