Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,368 Members 51,991 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
shad0wf0x
Old
(Last edited by shad0wf0x; 26th January 2011 at 07:16 PM.) Reason: removed adb remount from sideload instructions
#1  
Member - OP
Thanks Meter 86
Posts: 80
Join Date: Apr 2008
Thumbs up Ubuntu LiveCD with ADB and Unrevoked Recovery installer(Guide).

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
ubuntu-10.04-desktop-i386-HTCROOT.iso FileFactory.com

Burn the iso to a cd (This can be done with any cd burning software, imgburn found here is free)
[Optional]
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 "reflash.sh".

Double click reflash.sh. 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 unrevoked.com/recovery, 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 Freenode.net 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.

Code:
Select Code
sudo su
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
echo "update secure set value = 1 where name = 'install_non_market_apps';"|sqlite3 ./settings.db
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
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.
Shad0wf0x
AT&T Samsung Galaxy S4 (CM11)
Asus Nexus 7 2013
HTC G2 (CM7)
Samsung Captivate (CM10.2)
Nook Color (CM7)
The Following 4 Users Say Thank You to shad0wf0x For This Useful Post: [ Click to Expand ]
 
Ki77erB
Old
#2  
Senior Member
Thanks Meter 20
Posts: 119
Join Date: Jul 2010
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.
 
attn1
Old
#3  
attn1's Avatar
Recognized Developer
Thanks Meter 1796
Posts: 2,543
Join Date: Mar 2010
Much easier. And yes, this IS awesome. Great job, Shad0wf0x. This kicks ass.
Join the #burstroot IRC channel
 
Cryptecks
Old
#4  
Cryptecks's Avatar
Senior Member
Thanks Meter 551
Posts: 366
Join Date: Aug 2010
Location: Athens, Ohio
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
Phone: HTC One X // Evita (AT&T) - running Paranoid Android 4.43 - (4.4.4)
Tablet: Nexus 7 2013 // Flo - running Paranoid Android 4.5 - (4.4.4)

Paranoid Android Legacy: HTC One X // Evita device maintainer - Dev thread ||| Q&A thread

Web Developer, Electronic Vision ||| POD Ambassador, Bonnaroo Music & Arts Festival
 
WTFsandwich
Old
#5  
Member
Thanks Meter 3
Posts: 54
Join Date: Jul 2010
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.
 
shad0wf0x
Old
#6  
Member - OP
Thanks Meter 86
Posts: 80
Join Date: Apr 2008
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(unrevoked.com's recovery installer)
Shad0wf0x
AT&T Samsung Galaxy S4 (CM11)
Asus Nexus 7 2013
HTC G2 (CM7)
Samsung Captivate (CM10.2)
Nook Color (CM7)
 
matteios
Old
#7  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Jul 2010
Great job!

Do u think that u could add some other HTC devices, in the future?
 
mcsinny99
Old
(Last edited by mcsinny99; 6th August 2010 at 08:02 AM.)
#8  
mcsinny99's Avatar
Member
Thanks Meter 0
Posts: 78
Join Date: Jul 2009
Awesome, thanks!
 
shad0wf0x
Old
#9  
Member - OP
Thanks Meter 86
Posts: 80
Join Date: Apr 2008
Quote:
Originally Posted by matteios View Post
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.
Shad0wf0x
AT&T Samsung Galaxy S4 (CM11)
Asus Nexus 7 2013
HTC G2 (CM7)
Samsung Captivate (CM10.2)
Nook Color (CM7)
 
jmdearras
Old
#10  
Senior Member
Thanks Meter 19
Posts: 435
Join Date: Aug 2008
Location: RIchmond, Virginia
Question Virtual image?

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes