Ubuntu LiveCD with ADB and Unrevoked Recovery installer(Guide).

80 posts
Thanks Meter: 86
By shad0wf0x, Member on 1st August 2010, 08:15 PM
Post Reply Email Thread
I have been helping out with rooting HTC Aria's over in IRC in the #liberatedAria channel for a while now. A lot of people have problems with drivers on Windows. The easiest solution for them to do this has been to download an Ubuntu LiveCD and use it to root their phone, however many people know nothing about Linux at all and feel daunted by this.

I have created a customized Ubuntu LiveCD that has a script that downloads the Unrevoked Teams reflash, untars it, and runs it as root to root HTC's phones that are supported by the tool (HTC Evo, Hero, Aria, Desire, and Incredible). It also has the Android SDK included and added to the path so it is accessible from a terminal. Everything can be done without a single change to the computer you are doing it on.

Download the iso image here:
MD5: 9a34c343e8f610e66674af9384334bf6
ubuntu-10.04-desktop-i386-HTCROOT.iso Primary

Burn the iso to a cd (This can be done with any cd burning software, imgburn found here is free)
If you do not have a CD drive, you can create a bootable flash drive by using the tool found here:Pendrive Linux

Put the CD into your computer cd/dvd drive and reboot your computer.

You must make your computer boot from CD, there are many different ways to do this depending on what computer you have, most recent computers have this enabled by default. Here is a guide that may help if you can't get this to work:Enable Boot from CD

Once it boots from the cd it will show a small picture of a keyboard and a person, do not press anything here and it will come to a window that will allow you to select your language.

Select your language and click "Try Ubuntu 10.04 LTS". This will boot up to a standard Ubuntu livecd desktop.

On your phone click menu, settings, applications, development, usb debugging

On the computer click "Places" on the top menubar and click "Home Folder". This will open a file explorer window, in that window is a script called "".

Double click A window will pop up asking you what to do with this file, click "Run in Terminal". This will go get from the internet the current version of Unrevoked recovery installer from, unzip/tar it, and run it as root.

Once it is complete you will be looking at the unrevoked3 screen and you should follow the prompts on screen.

You will then follow the prompts on the screen to plug in your phone, from the notification pane in android select charge only.

unrevoked3 will reboot your phone twice and leave you in ClockworkMod Recovery. On the computer at the bottom of the window it will say "Done".
Close the window, if you do not need to do anything further you can shut down the machine and be back in windows with nothing changed on your windows system.

Congratulations, your phone is now rooted and has ClockworkMod recovery installed.

There are other guides to setup of sideloading for the aria as well as how to load roms. You can do these using this live cd as well, this is a full ubuntu 10.04 livecd with only games and open office removed, and the unrevoked3 installer and the android sdk installed, it is already in the path and you can use adb commands from the terminal without having to switch directories(however it can be found in /opt/android-sdk-linux_86).

I would like to thank The Unrevoked team for making such a nice tool, and website that made this possible. I would like to that the guys in IRC on channels #liberatedAria and #koush for everything I've learned recently as well as all the great work they have done. Thanks also to Attn1 for making some nice roms for the HTC Aria and gave me the idea to create this. Thanks to Downer3d for the torrent mirror. Thanks to Neolobster for the new faster mirror.

Allowing Non-Market Apps using this cd on the stock ARIA rom:

Click Applications in the upper left corner.
Go to Accessories, click Terminal. This will put in you a terminal in the default users home folder. Because ADB(and android sdk) are in the path you do not need to change any directories. Start the phone in CLockworkmod with data mounted from the partitions menu and plug the phone into the computer.

sudo su
adb pull /data/data/ settings.db
echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 ./settings.db
adb push settings.db /data/data/
adb reboot
What this does:
Switch user to root.
ADB pulls the file that contains the setting to allow non market apps down to the machine from the phone.
The next line runs a sql update of the field install_non_market_apps in table 'secure' and sets the value to 1 (on).
ADB then pushes the file back to the phone in its original location.
You then use ADB to reboot the phone to enable it.
The Following 4 Users Say Thank You to shad0wf0x For This Useful Post: [ View ] Gift shad0wf0x Ad-Free
2nd August 2010, 02:52 AM |#2  
Senior Member
Thanks Meter: 20
Thats awesome!! If I didnt already go through all the trouble of doing it on my Windows box I would definitely try your live CD. I already have 10.04 installed on my laptop and I never really thought of trying it on there. I wonder if it would have been easier....oh well. Thanks again. Im sure there are plenty of people out there that will find this very useful.
2nd August 2010, 03:35 AM |#3  
attn1's Avatar
Inactive Recognized Developer
Thanks Meter: 1,824
Much easier. And yes, this IS awesome. Great job, Shad0wf0x. This kicks ass.
2nd August 2010, 05:46 AM |#4  
Cryptecks's Avatar
Senior Member
Flag Athens, Ohio
Thanks Meter: 1,112
Donate to Me
This is a fantastic idea, I had a ton of trouble rooting my Aria on Win7 x64 and downloading and using Ubuntu 10.04 eventually proved to be much easier. If your iso works as advertised I can see this possibly being the most pain-free solution for annoyed Windows rooters.

Sent from my HTC Liberty using XDA App
4th August 2010, 05:18 PM |#5  
Thanks Meter: 3
This works wonderfully for rooting and sideloading apps (the only issue there was figuring out I needed the root account and permissions). As painless as a dentist trip.

If I was to install Ubuntu from that LiveCD, would it still have the Android SDK on it or would I need to reinstall it? I like not having to cd to it.
4th August 2010, 07:16 PM |#6  
OP Member
Thanks Meter: 86
the android sdk is installed on the livecd and in the path, you'll have it every time you boot up, the part the script downloads will be gone on a second boot('s recovery installer)
6th August 2010, 12:20 AM |#7  
Junior Member
Thanks Meter: 0
Great job!

Do u think that u could add some other HTC devices, in the future?
6th August 2010, 07:07 AM |#8  
mcsinny99's Avatar
Thanks Meter: 0
Awesome, thanks!
6th August 2010, 06:00 PM |#9  
OP Member
Thanks Meter: 86
Originally Posted by matteios

Great job!

Do u think that u could add some other HTC devices, in the future?

The devices supported are the devices supported by the unrevoked3 tool, I am not part of their team, just trying to help out some windows users who have driver problems.
6th August 2010, 07:20 PM |#10  
Senior Member
Flag RIchmond, Virginia
Thanks Meter: 19
Question Virtual image?
Has anyone created a virtual image of s full Android dev system? That would sure be handy!
6th August 2010, 09:59 PM |#11  
matt_b's Avatar
Senior Member
Flag Wichita
Thanks Meter: 38
Originally Posted by jmdearras

Has anyone created a virtual image of s full Android dev system? That would sure be handy!

not sure if this is what you're looking for, but it'll help.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes