yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] MrHorus:
I've followed the process and I never ran into any problems, but I'm new to Android having previously owned Win Mobile phones and now an iPhone.

I got my G2 today on a contract upgrade just so that I could play around with it and try some development work.

Now that I have followed the process, how do I verify that I now have root?

Is there anything I can do to test?
[Hero, G2 Touch Android Development] jul644:
Use a program that requires root access.
[Hero, G2 Touch Android Development] :
If by G2 you mean HTC Magic/Sapphire rather than HTC Hero you're in the wrong place...
[Hero, G2 Touch Android Development] gaabrysz:
OK i have a problem when i do this:

4) open CMD prompt use> fastboot boot cm-hero-recovery.img

the phone reboots and then you have to do "adb shell" but when i do that it says "error: device not found", what now??
[Hero, G2 Touch Android Development] maikie:
Just tried it and it works sweet... Took all of 5 minutes... Awesome work thank you

I now have root access on my Hero :D
[Hero, G2 Touch Android Development] maikie:
Have you installed the correct drivers? They are located in the SDK folders you downloaded.

If so try entering "adb devices" in the commmand prompt, Just incase the daemon didnt start.
[Hero, G2 Touch Android Development] gaabrysz:
I think i did. i'm on win 7 x64 btw. ok i'll switch to vista 32bit and try there.

Ok i have checked and in the device manager there is a ADB device>HTC bootloader so i think drivers are correct.
[Hero, G2 Touch Android Development] Mienaikage:
Having the exact same problem here.
[Hero, G2 Touch Android Development] maikie:
try entering adb devices see if that makes any differences

btw, when i done mine the phone was in the recovery console..
[Hero, G2 Touch Android Development] Mienaikage:
Never mind I got it, I'm on Win7 x64, had to switch the driver from:

HTC Dream Composite ADB Interface Version: 1.0.10.1 [25/06/09]

To:

HTC Dream Composite ADB Interface Version: 1.0.9.0
[Hero, G2 Touch Android Development] gaabrysz:
Ok so lets clear something. after i type in cmd: fastboot boot cm-hero-recovery.img my phone reboots and goes to recovery console where i have some otions.... so now i have to type in cmd: adb shell, yes??

still nothing and the adb devices didn't help.
[Hero, G2 Touch Android Development] gaabrysz:
Can u share a link to the drivers?? Please :)
[Hero, G2 Touch Android Development] maikie:
it sounds like a driver issue. Using the lastest SDK?

android-sdk-windows-1.5_r3
[Hero, G2 Touch Android Development] gaabrysz:
OK got it working. It is a driver issue. using latest sdk but i had to use older drivers just like Mienaikage sad.
[Hero, G2 Touch Android Development] Mienaikage:
They came with the SDK I believe, in the android-sdk-windows-1.5_r3\usb_driver\amd64 folder.

If that's not it then it was this one: http://xdaforums.com/showthread.php?t=446274
[Hero, G2 Touch Android Development] oblika:
I have put a link on the Hero wiki page. I think this should be done also for roms (when one is out there). This so much better for new Hero users to come. I also kinda hate searching endless forums (thank xda-devs that they are, good guys here) and I also owned a HTC touch (Great wiki page, helped me a lot with rom flashing). So I'm willing to edit the page, so I'll be grateful if anyone sends me a PM when there is something new (but I also try to keep tracking the forum:) )

Have fun!!
[Hero, G2 Touch Android Development] Shluggity:
I just wanted to say a big "thank you" to Dayzee for putting the "N00b's Guide" together, and to Enlightener, JDL and others who contributed their valuable knowledge. Thanks to you all my rooting went like a dream; the walkthrough did just what it says on the tin. :cool:
[Hero, G2 Touch Android Development] d0ca:
struggling with fastboot

hi all,

i'm really having difficulties here, and i'm not entirely sure why. this is my setup:

phone

t-mobile g2 touch

kernel 2.3.27-a5504199 htc-kernel"and18-2 #521

build: 1.76.110.6 146733 CL#47214 release-keys

software version: 1.0.0.A6288

compter hardware

macbook pro, 2.6GHz intel core duo, 2GB ram

computer operating system

max osx 10.5.8

debian lenny 5.0.2 (with a few pinned packages from testing/unstable) using amd64 kernel

first, i tried in debian lenny. i downloaded and unzipped the SDK and then looked at the tools directory: it contained adb but not fastboot. i followed the ubuntu instructions for SDK/adb/fastboot which pointed at a copy of the fastboot binary, so downloaded that.

then, running './adb devices' i was able to see the phone connected via usb cable, but './fastboot devices' didn't show anything. i wonder if this is because it is a 32-bit binary and i am running a 64-bit kernel?

anyway, decided to reboot into the mac partition (operating system) as it seems people have got it working there....

on mac, download the SDK and everything's hunkydory except still no fastboot. so, after a bit of searching (quite a bit!) i found the HTC support page which contained a link to 'fastboot-mac' binary. download this and chmod it appropriately. now i get:

macbook-pro:tools user$ ./fastboot-mac devices
macbook-pro:tools user$ ./adb devices
List of devices attached
HT97NL99999	device

macbook-pro:tools user$

although previously i was getting:

macbook-pro:tools user$ ./fastboot-mac devices
ERROR: could not get pipe properties
macbook-pro:tools user$

so now i feel really stuck and am not sure what i can do to proceed. does anyone have any ideas?

tia,

d0cA
[Hero, G2 Touch Android Development] fozzieb:
no idea m8, i ended up running it in my fusion xp install.
[Hero, G2 Touch Android Development] michael2690:
Problem with rooting

I have a problem I hope some of you can help me with. When i reach to the point where I have to type in:

-adb shell mount /system

I get this error :

-adb shell mount /system failed: Device or resource busy (something like that)

Phone:

HTC Hero (

Denmark

)

kernel 2.6.27-a5504199 htc-kernel"and18-2 #521

build: 1.76.405.6 146733 CL#47214 release-keys

software version: 1.0.0.A6288

Michael.
[Hero, G2 Touch Android Development] d0ca:
ok, fixed it myself :)

i went back to debian (as that's my ultimate objective - to install debian on the phone as saurik did with the G1), and decided to compile the source code for android as it apparently has all the tools in it. i left that to run overnight...

so this morning when i woke up, there was everything. now, it seemed to work better - i wasn't getting any errors with fastboot like i was before, and although it still didn't seem to be finding any devices, at least adb was.... however, i then discovered that adb did not seem to work (i.e. didn't show the device id) when the phone was in the fastboot mode. so i got adb to work again (just having the phone on and booted normally) and then rebooted with the usb cable still attached and tried to run fastboot:

0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./fastboot boot cm-hero-recovery.img
< waiting for device >
^C
130 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb devices
List of devices attached

0 user@evasion:~/mydroid/out/host/linux-x86/bin$ sudo ./adb kill-server
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ sudo ./adb start-server
* daemon not running. starting it now *
* daemon started successfully *
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ sudo ./adb devices
List of devices attached

0 user@evasion:~/mydroid/out/host/linux-x86/bin$ sudo ./adb devices
[sudo] password for user:
List of devices attached
HT97NL999999 device

0 user@evasion:~/mydroid/out/host/linux-x86/bin$ sudo ./fastboot boot cm-hero-recovery.img
downloading 'boot.img'... OKAY
booting... OKAY
0 user@evasion:~/mydroid/out/host/linux-x86/bin$

success!! which meant i could do the rest of the commands as in the tutorial:

0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb shell mount /system
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb push su /system/bin/
524 KB/s (34612 bytes in 0.064s)
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ /.adb shell chmod 4755 /system/b
bash: /.adb: No such file or directory
127 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb shell chmod 4755 /system
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb push Superuser.apk /system
209 KB/s (16967 bytes in 0.078s)
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb shell reboot
0 user@evasion:~/mydroid/out/host/linux-x86/bin$ ./adb shell
$ su
#

now, i'm trying to figure out what i need to do to install debian (is the firmware the same as the G1? - in which case i can use the jesusfreak firmware...) but that is a whole other thread, i think ;-)

so, many thanks to everyone who contributed to getting root on this phone, and to dayzee specifically for the great how-to write-up!

docA
[Hero, G2 Touch Android Development] tzahi1234:
hey michael!

i have the same problem!

i have no idea what to do.....

do any 1 hed this problem and solve it?
[Hero, G2 Touch Android Development] Phil_UK:
SuperUser Whitelist.... repeatedly says 'update available' . If click on App launch just get black screen also.

Had no errors up until this point so assumed rooted.

When typed 'adb shell' got the $ sign but if I type SU get permission denied...so does that mean I am not rooted? :(

Edit: Tried Running 'Remote Wipe'....SU asked for permission :) So guess I am rooted? However this bit from guide does not work for me:

"(You see a little dollar sign) the type SU - the Superuser aopp should ask for permission, click allow always and then you'll see the little rooted # sign - You are rooted!!"

Confused! :S

Edit #2 - Tried RootBooter...Normal Boot worked. Recovery Reboot (while plugged into PC) left it with a phone and warning triangle graphic. Perhaps this is normal, and proves root. I have zero knowledge of how to use it properly at the moment :p
[Hero, G2 Touch Android Development] Dayzee:
Lots of posts detail the fact that superuser "whitelist" does not work on hero but the one pushed in the walk-through works just fine. Just ignore the upgrade thingy xxx looks like you are rooted successfully tho Phil xx

Dayz xx
[Hero, G2 Touch Android Development] Phil_UK:
Thanks Dayzee....think it rooted. Trying Root Explorer, can see all folders just trying to copy a private apk to sd now....hmmmm no luck....put that as a Q in the Application area just now :)
[Hero, G2 Touch Android Development] TomSom:
o_O

Hi all

I am failry new to android and i have got a hero.

I have gone through the walkthrough and got no errors.

However when i go to this step where i check if it is rooted:

with me it is:

D:\SDK\tools> adb shell

$ SU

i get:

SU: permission denied

So i dont know if it has rooted now. I wanted to try some of the apps u said but i have no creditcard and can't buy anything from the market.

Is there some other way to test if it is rooted succesfully?

Thanks!
[Hero, G2 Touch Android Development] LeeDroid:
you need to download an app such as root booter (free) if itworks you have root access.

you should still be able to access the market and download free apps.
[Hero, G2 Touch Android Development] i_maq:
Hey, having a bit of an issue in the middle of rooting my Hero! I've got to the stage where I have to type adb shell mount /system but it gives me this message:

mount: mounting /dev/block/mtdblock3 on /system failed: Device or resource busy

What do I do?! I'm a complete and utter noob to Android and using cmd btw :(

EDIT: I see a couple of people have the same problem as me a few posts back, any chance for help? :(

DOUBLE EDIT: Well I carried on anyway and it seems my Hero's rooted successfully anyway, so hope that helps anyone with the same problem!
[Hero, G2 Touch Android Development] oblika:
Have you tried "SU" or "su". Because linux is case sensitive. And android acts a little strange and when command is not found it prints out "permission denied". So you might give "su" (lowercase) a go.
[Hero, G2 Touch Android Development] TomSom:
Thanks it worked..

i tried it before but i had to click allow on phone. then it showed the #

Thanks all!
[Hero, G2 Touch Android Development] TomSom:
I looked in market for root booter but it says 0.60 pounds there.

As we are on the subject is there like a forum or something where u can download apps directly to phone for free?
[Hero, G2 Touch Android Development] Phil_UK:
Aha...I had same problem....never tried lowercas 'su'....bet that solves it! :D
[Hero, G2 Touch Android Development] knnelg:
Apologies if this is old info, but just in case it's usefull, here is a rooting video...

http://blog.makezine.com/archive/2009/08/root_an_htc_hero_running_android.html?CMP=OTC-0D6B48984890
[Hero, G2 Touch Android Development] Dayzee:
:o I did not know about the case sensitive thing - checked the Noob guide and I had actually put SU in it so I've editted that now - Apols.

Also pointed out that upgrading from the Superuser Permissions app that is pushed during the rooting method to Superuser Whitelist gives a lot of people errors on Hero, and since Superuser Permissions seems to do the job fine, to just not upgrade.

Dayzzz
[Hero, G2 Touch Android Development] Phil_UK:
Yep.... 'su' lowercase worked for me. SuperUser popped up etc... :)
[Hero, G2 Touch Android Development] i_maq:
Can anyone advise me on how to UNROOT my Hero?!
[Hero, G2 Touch Android Development] phlo:
just remove su and Superuser.apk and reboot

adb shell mount /system
adb shell rm /system/bin/su
adb shell rm /system/app/Superuser.apk
adb shell reboot
[Hero, G2 Touch Android Development] i_maq:
Thanks, do I go into fastboot usb to do this?
[Hero, G2 Touch Android Development] phlo:
yes, or turning on usb-debugging, but in usb-debbunging you don't need to mount but a su instead before.

hmmm su is not enough you need to remount rw or use fastboot :-)
[Hero, G2 Touch Android Development] Blackhorse:
I can confirm this worked perefectly for me.

Newer driver would not work at all, older driver worked and rooted within seconds

Also thanks to Dayzee for such an idiot proof guide!!

<-----Idiot!!! :D lol
[Hero, G2 Touch Android Development] cRAZYtUNER:
Hi there, it can be done on HTC Magic? If so is it the same steps?
[Hero, G2 Touch Android Development] i_maq:
Remount rw? :o
[Hero, G2 Touch Android Development] Dayzee:
Magic is a different device and has a different support forum here

http://xdaforums.com/forumdisplay.php?f=493

Dayzeee
[Hero, G2 Touch Android Development] LeeDroid:
Sticky Request

Can we make this thread sticky please?
[Hero, G2 Touch Android Development] herolova:
Great thread!!!

I now have root access!!!:)

hmmm errr what now... :confused:

:D
[Hero, G2 Touch Android Development] oleost:
When I tried it, My windows XP asked my for drivers one more time, so I pointet it in the right direction, it installed the driver succesfully, and then I repeated the steps. (turned the phone off again, and on into bootloader... and followed the steps again)

Then it worked.
[Hero, G2 Touch Android Development] kiz:
Thanks for the tutorial Dayzee!
[Hero, G2 Touch Android Development] nuumuun:
great guide!! rooted with 0 problems, thanks a lot =]
[Hero, G2 Touch Android Development] ooo7:
followed instruction but su request just hangs

hi,

i followed first post procedure and got no error. however, when i try to a run a programme (root explorer) there is a popup comes saying root request but nothing happens after this.

please advice.. i might have missed a step ...

thhanks

ooo7
[Hero, G2 Touch Android Development] yourdad:
hi, I have followed the process up to the point at which you have to enter "adb shell mount /system" into command prompt. However when I hit enter i get an error message that says "error: closed" and i cannot continue any further. Has anyone else encountered this problem?

cheers
[Hero, G2 Touch Android Development] jhericurls:
Deleted

....
[Hero, G2 Touch Android Development] gunnar-eee:
Is there a Nandroid image available for doing backup of the initial stock state of the Hero so it can later be restored to that state if needed ?

Is a noob guide needed specifically for the Hero in that respect ?
[Hero, G2 Touch Android Development] yourdad:
Ok so I have managed to root it, with thanks to the previous posts and a little imrov..now can someone tell me how i can run apps off my sd card instead of having to run them of the phone memory?

Cheers
[Hero, G2 Touch Android Development] dennis333:
I have exactly the same problem!

After tons of problems to get windows 7 to recognize my phone (it wouldn't recognize my hero so I couldn't point a driver to it and on my Hero itself no "usb connection" popup appeared) after 2 days it suddenly recognized my Hero and I could install the correct drivers (2 times. 1 for fastboot and 1 for adb) and follow the tutorial.

After that I installed Root Explorer and SetCPU to see if the phone was rooted alright. Well, after running the programs a black window with in the topbar something like "Su Request" or "Root Request" comes up but after that nothing happens and the screen remains all black.

The phone itself remains to work though, I can push the Home button and continue to operate the Hero.

Does anybody knows what's going on here?

I would be very glad with any help! :)

FIXED IT with help from Phlo's post:

Go to settings------applications------development and turn debugging on.

I still have the problem that no "USB connected" appears in my notification bar when I plug the Hero with a USB cable on my pc (Windows 7 x64). :-(
[Hero, G2 Touch Android Development] ooo7:
Hi,

i think i figured out the problem.

you need to goto settings--> applications--> usb debug (enable this)

then i think it should be ok

ooo7
[Hero, G2 Touch Android Development] justbabu:
Dayzee,

Thank you!

Your guide worked a treat. I now have a rooted T-Mobile phone.

Babu.
[Hero, G2 Touch Android Development] zyborg:
Would someone please explain the purpose of rooting your HTC Hero? Thanks.
[Hero, G2 Touch Android Development] Dayzee:
How bout this thread, stickied at the top if this forum, titled "What Can I Do With Root - INFO"

http://xdaforums.com/showthread.php?t=543940

:)

Dayzee
[Hero, G2 Touch Android Development] ooo7:
Hi Dayzee,

do i have to enable USB debuging to keep the root access?

because soon i disable this i want have the root access.

thanks

ooo7
[Hero, G2 Touch Android Development] lsim001:
If you type 'su' at the command prompted the prompt changed from $ to # then that means u have changed to the superuser account. After that if you type 'id' it will say that your id is 0 which. is the root id ie. You have root access.
[Hero, G2 Touch Android Development] spiderman_anhvu:
What is the different of getting rooted through this way and Modaco's patch? I'm a noob with my new HTC Hero (I've used G1 before).
[Hero, G2 Touch Android Development] frandavid100:
Dayzee: I just managed to root my Hero thanks to your wonderful howto. I can't thank you enough.
[Hero, G2 Touch Android Development] joemax:
Is all this possible with the Android SDK on OS X ?

I want to load the vanilla de-branded firmware on my Hero when HTC release an update (well hopefully one day ;) ) but don't really want to be booting into Windows as it scares the crap out of me ;)

Also use nandroid to back up my current config in case I need to return the handset for repair etc.

cheers
[Hero, G2 Touch Android Development] radi8tor:
Hello there,

I tried to do this step: 4 CHECKING IF FASTBOOT or ADB SEES YOUR HERO

I entered "fastboot devices" but nothing appeared. I tried it on WinXP, Vista64bit, Win7 with same results. It gave the prompt back with no data.

I did all the steps written in the previous steps on all Windows platform, enabled USB debugging.

What should I do next?
[Hero, G2 Touch Android Development] syklitengutt:
Ok, now my phone is rooted. Thanks.

But now I cant sync with Vista.

It doesnt pop up.

Any ideas on how to fix this?
[Hero, G2 Touch Android Development] Arctic Matt:
Rootin' Tootin' Hero

Thanks to all the smart arses in xda-devs again for their outstanding work. Rooted my Chess HTC Hero in 10 mins with no problems on Win7 x64. I am now in the paid app store buying stuff from around the world from my walled nightmare called Norway.

To all the bureaucratic gits out there who ruin great technology with clauses and country specific contracts negotiations I have one thing to say, "Piss off!"

Thank you again,

:)
[Hero, G2 Touch Android Development] sayyas:
every thing is ok .....but wifi stopped working

what do i have to do ??????
[Hero, G2 Touch Android Development] hatch_jd:
This happened to me too and when I tried "adb devices" it showed nothing attached.

But I just unplugged USB and plugged in again after a short while it was recognised and the "adb shell..." commands worked fine after that.

You can also use "adb devices" to show what is connected it should list your device serial number

Now the rooted su appears to be running - I can run from "adb shell" and use ls to browse around otherwise unreadable directories with ls.
[Hero, G2 Touch Android Development] spiderman_anhvu:
Does anybody meet his problem when root your hero by this way?

@sayyas: What's the way that you used to root your hero?
[Hero, G2 Touch Android Development] spiderman_anhvu:
I had used driver from SDK 1.5r3 and driver for win x64 from this link: http://xdaforums.com/showthread.php?t=446274 but It was said that cannot install driver to my computer. So that fastboot cannot recogize my hero and i cannot root. Please help me, give me the correct driver or the driver that you had used to root your phone.

thank :(
[Hero, G2 Touch Android Development] sayyas:
solved: settings--> applications--> usb debug
[Hero, G2 Touch Android Development] spiderman_anhvu:
what was solved!? I had checked usb debuging but it didn't work.

-------------------------------------------------------------------------------------

Edit: Install HTC Sync 2.0.4 and driver is installed successful!!!
[Hero, G2 Touch Android Development] AndoMarc:
thx, finally managed to root my hero.

I'm on Ubuntu here. For over an hour I couldn't get fastboot to find my HTC device :(. Finally I stumbled upon this thread http://xdaforums.com/showthread.php?t=537508 The important part there is "Setting up UDEV to recognize HTC Device" ... after I did that everything was fine. :) ... maybe that can be added to the tutorial ..
[Hero, G2 Touch Android Development] felikz:
i am wondering if i can install debian on my hero... i just read some tutorials for installing it on the tmobile g1 and others, but they all require for the installation a jesus freke rom.. i cannot find any jf for the htc hero, is there anyone releases yet?! or may it be possible to install debian just with a rooted phone?

edit: and of course (if exists): where to get that jesus freke for hero and what version?
[Hero, G2 Touch Android Development] spiderman_anhvu:
There's no custom ROM for hero at this time :D, please wait... :)
[Hero, G2 Touch Android Development] felikz:
so is it possible to install debian on a rooted hero (no custom rom)?
[Hero, G2 Touch Android Development] brampower:
Can this be done on a MAC? And if so, how?

Thanks in advance.
[Hero, G2 Touch Android Development] Tobermory:
Confirm T-Mobile G2 success

Hi, I have just tried this procedure on a UK T-Mobile G2 Touch (HTC Hero) and can confirm it does indeed provide root access. I downloaded Root Explorer to test (costs £1.20)

Can I suggest that it might be worth starting the faq by saying download the sdk, superuser and recovery image as these are the 3 files you need.

Many thanks for the tutorial as I have been looking for quite a while on how to do this :)
[Hero, G2 Touch Android Development] ermacwins:
Dayzee Thank you for your great guide

now i need to get rid of the tmobile splash (will it increase the phone boot time?)

edit: i got the $ # prompts and when i installed bluex, it says i may not have root! please advise
[Hero, G2 Touch Android Development] ermacwins:
Bumpppppppppp
[Hero, G2 Touch Android Development] b_jammin666:
Works!

I can confirm this works and well. All very exciting! :-D