yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] R3PUBL1K:
Had an issue with error 37 when installing drivers, but overcome that and now my phone is also rooted :D cheers JD (gentleman jack)
[Hero, G2 Touch Android Development] R3PUBL1K:
You could substitute or add this click start then RUN and type "cmd" (no quotes) then press enter ;)
[Hero, G2 Touch Android Development] Dayzee:
In my experience (so far G1 and Google Ion or Dev Magic) Root Explorer allows you everywhere that astro does BUT in each folder it tells if it is R/O or R/W and allows you to toggle this to copy paste move stuff around even in device memory - as such it is either EXtremely useful or Extremely dangerous. :) Without Root, you cannot swap from R/O to R/W in a folder, though Astro and other file explorers let you look inside.

Dayzee xx
[Hero, G2 Touch Android Development] DeadManDan:
quick questions....

couple of quick questions....

1.Is this a permanent change/flash? Will this need to be done if you reboot or hard reset the device ?

2.Will your mobile operator shout at you for doing this if you ever need to return your device? i.e. with previous devices flashing back a stock rom prior to returning device was necessary - is there a similar process for reversing this change?

3.To me, rooting, sounds like a permissions change to the device allowing you more permissions to tinker with it than before - therefore after rooting does the possibility exist that malicious code or human error fry/break/delete sys data from the device? (i like my phone, and i like to tinker but also dont want to trash it within the first week :D )

cheers dudes
[Hero, G2 Touch Android Development] veejayjameson:
Is there something im missing?

Wifitether doesn't seem to work. On the device it gives an upload speed, but no download speed.

Anyone having this issue? So far iv just turned on wifitether then added the network on my laptop. Webpages just pause for ages before saying page not avaliable...

:(
[Hero, G2 Touch Android Development] Catscrash:
will this reset my device / kill my preferences and applications?
[Hero, G2 Touch Android Development] Dayzee:
Ta I've added it to my noobs post - Can you clarify something for me - Specifically where should I put the unpacked stuff? should it go into the tools folder of sdk like the recovery.img file? I think that the two files - su and superuser should go into tools for adb to find them easily - is that right? Lemme know if its not...

Dayzee. xx
[Hero, G2 Touch Android Development] veejayjameson:
Yer have tried with G2. It worked I think.. having issues connecting with wifitether though. However root explorer seems to work.

Give it a try, let me know, would be interesting if you have similar tethering issues..
[Hero, G2 Touch Android Development] Dayzee:
Firstly to Deadmandan - Yes to all that, and the programme Superuser Whitelist is there to tackle that one - it means no programme can have SU access without it flagging it up to you and asking for you to allow it (can be once or always or never) For the most part, in my limited experience, there isn't huge problems with hackers or nasties yet on android, prolly as its new.

With regard to Wifi Tethering, its a whole other can of wrigglies with lots of little glitches and niggles down to the many many variables involved in getting it working. So, it might be more productive to seek out tethering threads and info on the Sapphire forums, as the Hero and Sapphire should be essentially the same on this, and lots of work has been done on tethering the Magic/sapphire. Or check the forums and maybe start or join a tethering thread :)

That will also leave this thread less cluttered for folks getting their new heros and wanting info on rooting. < smiles >
[Hero, G2 Touch Android Development] enlightener:
YES, it's right :D

If you don't have the tools folder in your PATH it is better if you put Superuser.apk and su binary in the tools folder of the sdk so you can push them without specifying the full path. :p
[Hero, G2 Touch Android Development] R3PUBL1K:
Great - As superuser would not install from the app store for me:confused: unsuccessful - I used the alternative method.

Thanks
[Hero, G2 Touch Android Development] johnboywilson:
Ok so now we can ROOT :p does that mean we can run apps from the memory card like most os let you?
[Hero, G2 Touch Android Development] Dayzee:
Ya indeed but as with Tethering and Bluetooth file transfer, these are all things that need a thread / enquiry of their own and often have lots of glitches to get through to make them work - soo many variables and root is just the jumping off point.

I'd say have a look in hero forum for A2SD but it may be too early for a hero specific thread (You could start one tho!!)

Then try the Sapphire Forums as the board and OS is the same as the Rogers 32A Magic and lots more development already done in there.
[Hero, G2 Touch Android Development] Catscrash:
i rooted with your first method (method 2 was not there when i did)

rooting seems to work... well i think so, root explorer works... but when i try installing super user whitelist it says "incompatible upgrade"... or to be exact "inkompatible aktualisierung" (german version)

any ideas?
[Hero, G2 Touch Android Development] Dayzee:
Try pushing that Superuser .apk from enlightener - it seemed to work for Republik. Just do the lines that say

adb shell mount /system

adb push Superuser.apk /system/app/

adb shell reboot

Try that - Dayzee
[Hero, G2 Touch Android Development] Catscrash:
okay, now after restart there is a black window, above it says "SU Request"

and after a while there is a popup, asking to wait or force-close the application...
[Hero, G2 Touch Android Development] enlightener:
Accept the request :P
[Hero, G2 Touch Android Development] Catscrash:
x-D yeah, would like to, but its just a big black screen ;-) no buttons or anything else...
[Hero, G2 Touch Android Development] jtech:
Works perfectly!

Nice work
[Hero, G2 Touch Android Development] Catscrash:
which method did you use?

does the SuperUser-Request program work for you?
[Hero, G2 Touch Android Development] Cynabal:
I think T-Mobile in a stroke of genius are naming the Hero the G2 Touch, this might be what hes refering to?
[Hero, G2 Touch Android Development] R3PUBL1K:
Same for me - :eek:
[Hero, G2 Touch Android Development] fozzieb:
Fantastic, sim free white Hero rooted and tested with Root Booter.

Well done and cheers to Dayzee for the easy guide.
[Hero, G2 Touch Android Development] Visios:
Hi,

I have tested both methods. The withelist app is only installable if you use the Superuser.apk way.

Firstly running the application the device makes a reboot. Later the screen was black only (other report the same). However, then I run adb schell and tried su to test the permission. Then a window pop up on the hero which was asking if I want to allow the shell to use root rights. After this test the whitelist app works also for all other application. So if you have a black screen, kill it and try the shell first!

Cheers

Visios
[Hero, G2 Touch Android Development] Johnston411:
all worked perfectly

ta very much :)
[Hero, G2 Touch Android Development] R3PUBL1K:
:p to you :D
[Hero, G2 Touch Android Development] Johnston411:
;) good here ain't it :D
[Hero, G2 Touch Android Development] R3PUBL1K:
indeed - so you managed to get SU to work too?
[Hero, G2 Touch Android Development] Dayzee:
Which Superuser bit is causing the glitch? Is it downloading it after rooting, or pushing it in with enlighteners method and his SU code?

Then I can change the Easy Guide to avoid the glitchy one so as not to freak out the folks trying the Easy way...

Dayzzz
[Hero, G2 Touch Android Development] Catscrash:
I killed the black screen as you said, rebooted again into recoverymode and typed (on pc right?)

adb shell

mount /system

/system/bin/su

but nothing poped up on the hero, there is still the screen with the green text, on the pc opened just another shell

/ # /system/bin/su

#

which i can exit with strg+D, what did you do differently?

thanks
[Hero, G2 Touch Android Development] fozzieb:
ok now that i have rooted, downloading an app from the market seems to take ages to start.

anyone else getting this?
[Hero, G2 Touch Android Development] fozzieb:
ok trying to download an app i now get an error after 5 mins or so,

Sorry!

Process android.process.acore

is not reponding

force close wait

any ideas?

It looks like the app installed, but the progress bar never moved and it did not say it was complete.
[Hero, G2 Touch Android Development] LeeDroid:
i was expiriencing similar issues prior to root but without the warnings, it would just hang, you got a good task manager installed like Taskill? make sure there is not too much running and emember, most of these apps are free and a lot coded by "Newbie developers" they wont all function flawlessley.
[Hero, G2 Touch Android Development] fozzieb:
yes but the download part is controlled by android not the app you are downloading, it is causing the problem before it has finished downloading and started to install it.
[Hero, G2 Touch Android Development] LeeDroid:
there will be no confirmation on the device when using the terminal, quite simply finish with the "reboot command"

/system/bin/reboot
[Hero, G2 Touch Android Development] LeeDroid:
not sure where ur issue lies, the app store / data speed etc vary throughout the day, suppose it depends on how busy the severs and networks are.
[Hero, G2 Touch Android Development] R3PUBL1K:
I was using the push method as the app would not install? I would then run tetherblu and then SU would launch but crash? seems more stable now though but SU Per... does not request permissions before launch.

EDIT tried another Route app "screenshot" which works but I do not get a warning ???
[Hero, G2 Touch Android Development] fozzieb:
ok true, but for it to sit for 5 mins (app is only 421KB ) saying downloading whithout the progress bar even moving then then to crash with an error and then for the app to show up as installed, that just sems more than speed issue.

Will try some other apps in the morning and see how it goes.

Cheers for the advice.
[Hero, G2 Touch Android Development] Catscrash:
mh, i tried that, but after the reboot the screen is still black
[Hero, G2 Touch Android Development] LeeDroid:
If your device is not booting then a command has been incorrectly entered (and caused an issue) or you Hero is faulty!
[Hero, G2 Touch Android Development] LeeDroid:
1st Post updated with Superuser push method :D
[Hero, G2 Touch Android Development] Catscrash:
sry, i did not speak clearly

my device is booting properly, but if i start a program that wants root-access there is still the black screen without any buttons with "SU Request" as Title
[Hero, G2 Touch Android Development] fl4r3:
I have the exact same problem too...If I wait long enough it asks me if I want to kill the task or wait.

I tried following the advice Visios was giving you but it wasn't quite clear...
[Hero, G2 Touch Android Development] LeeDroid:
Ah, my appologies, its been a long day, not something i have encountered. which app are you attempting to run, I am personally only having issues with the superuser whitelist.... grrrrr.

Have you attemptedto use Root Booter?
[Hero, G2 Touch Android Development] Catscrash:
it happens with every root-app. For example Root Explorer

This only happens with the alternative method via push.

with the first method root works well, but there is as you say no superuser whitelist
[Hero, G2 Touch Android Development] Johnston411:
Yep

Followed the push method and worked first time

When I then tried to use screen capture I got the Su pop up asking whether to allow it
[Hero, G2 Touch Android Development] LeeDroid:
Following problems with Superuser whitelist I tried the modified version by ENLIGHTENER using SU push method, Superuser whitelist now works perfectly. many thanks!

Test using Root Booter, you should get a promt from SU requesting permissions to be set for "the app".

Love it when a plan comes together!!
[Hero, G2 Touch Android Development] R3PUBL1K:
Well screenshot works for me but SU did not popup? I'll have another mess tomorrow.
[Hero, G2 Touch Android Development] gaabrysz:
Ok got a problem. After using the jackdaniels_lee method i don't think i rooted my Hero so i had a go with ENLIGHTENER thing and... when i do "adb shell mount /system" my hero is not regonized. I tried many different drivers and nothing. Any idea why ??

Ok i even did this http://groups.google.com/group/andr...read/thread/ff713181959c48ee/98dbfe1887d671c0

and some other things. Tried both methods on 3 systems (32 and 64bit) and nothing. All i can say is... right now i hate android :(
[Hero, G2 Touch Android Development] m3t4tr0n:
Okay, first method doesn't work for me at all ... Superuser whitelist wont install because it says my ROM is not compatible. The second method works in so far as I then get popups from Superuser whitelist to allow/deny, however it seems like the actual priv escalation afterwards fails, (for example if I open a local shell in ConnectBot and do a su -, I get the popup to allow the su, however when I click yes/always it then just hangs and doesn't return to the su shell - same for any app, the su part is failing).

I have gone through both methods and verified, but not getting any joy from my Hero (White sim free model). Any tips/clues/suggestions to try appreciated.
[Hero, G2 Touch Android Development] fl4r3:
I was having problems with the Su popups with su file explorer....it kept hnging at a blank screen. But tried the screenshot app instead and as it was about to take a picture, the root request option came up properly.

Finally sorted!!
[Hero, G2 Touch Android Development] liamhere:
what would be good....

a youtube video of "how to root your htc hero"...anyone????
[Hero, G2 Touch Android Development] Visios:
For everyone who installed the superuser app and have a black screen only if a root app was started:

1.

Install superuser app (http://xdaforums.com/showpost.php?p=4257045&postcount=38)

2.

Update superuser app in on the market to SuperUser Whitelist

3. if you now get a black screen without any button. Wait a while and you will get a pop up to kill the app.

I dont know if this will work for you ... However, it worked for me... I now connected to the device via "adb shell"

Adb ist a command line tool form the andriod sdk. Was used before to install superuser app. Now you have a shell on your hero. Like other linux versions you can not get root rigth with su. In my case then a msg pop up on my hero wich was asking if I want give root acces for the shell. After this window the withelist app worked for all other apps from the store which need root access. So the black screen problem is disappeared. Maybe on my system only. But you can try it and report.;)
[Hero, G2 Touch Android Development] R3PUBL1K:
still not getting SU to ask me to grant permissions - although Root apps like screenshot work :( (now I have a vulnerable system)
[Hero, G2 Touch Android Development] enlightener:
vulnerable system? :D

have you pushed(and chmod-ed) the su binary contained in superuser.zip (some pages back) ? if so then open Superuser Whitelist and remove all the permissions given
[Hero, G2 Touch Android Development] Catscrash:
doesn't work for me, i did as you said, but when i update superuser whitelist the hero reboots and after it has started again the SU Request screen is still black
[Hero, G2 Touch Android Development] Visios:
Yes and NOW you have to wait and for the popup to kil the black screen. Then connect via adb shell

and after this type in the shell su. In my case then the asking screen come back but now not black. Instead it ask correcly.

Maybe it was fortune only on my system. If it not work, I would restore your backuped org system and use the other method till a better solution is found. I used the first version for some days without any problems. In this case you are not asked ... thats all. In reality you have to trust the apps. If you click ok or see nothing :D The only diference is that you know which app ask for root rigths .
[Hero, G2 Touch Android Development] enlightener:
it is strange that for some people works fine and for others don't.

Make sure that you follow the steps exactly:

if you downloaded Superuser Whitelist from the market, uninstall it

fastboot with modified recovery

download http://xdaforums.com/attachment.php?attachmentid=211569&d=1249225060 (superuser.zip, don't download if you have it) and extract it (maybe it's simple, if you don't have tools folder in PATH, to extract it in the tools folder of the sdk )

open a console (cmd or linux shell), cd in the folder where you extracted the superuser.zip contents and type the following:

adb shell mount /system
adb shell rm /system/app/Superuser.apk (will give error if you don't have it... ignore the error)
adb push su /system/bin/
adb shell chmod 4755 /system/bin/su
adb push Superuser.apk /system/app
adb shell reboot

now, when you use a program that requires root permissions a popup will appear (black window with some buttons really), it will ask you if you want to give root permissions to the app. if you trust the app you can allow it.

In the apps menu, the Superuser Whitelist, when opened shows you the list of apps that you granted root permissions (in hero the list don't work well :-|, you can try to push a different version taken from another hero room, look sapphire or dream forums ). when you click an entry it will remove it from the whitelist.

to verify that it works, after reboot, open a shell with adb:

adb shell
su

in the phone will appear a popup asking for permissions... allow it....

so, that's all :-|
[Hero, G2 Touch Android Development] R3PUBL1K:
Right...

I tried the remove (RM command last night) but got a different error (which I did not note) trying the command again on XP and not vista returns a Android debug bridge version 1.0.20 and a load of switch commands after- which I have ignored.

If I do adb shell and SU I get SU. Now when I launch screenshot, SU Request launches with a blank black screen and a small pop from the app screenshot stating unable to take screenshot. :(
[Hero, G2 Touch Android Development] veejayjameson:
When HTC release a firmware update to fix the current little bugs, what happens to the root users?

Read you can't receive OTA updates with the Dream and Magic do we have to wait for it to appear on here?
[Hero, G2 Touch Android Development] j2kquest:
right im about to give up, im not even a noob with all this adb stuff as i had a rooted G1

but for some reason non of the root methods work on my UK G2 touch (Aka HTC Hero)

Could my phone have a number of security patches
[Hero, G2 Touch Android Development] enlightener:
what does not work? what's the error or the problem?
[Hero, G2 Touch Android Development] LeeDroid:
in which device state are you trying to use adb shell? it will only recognise the device in normal or recovery mode and not in bootloader/fastboot mode.

to have the correct permissions when using adb shell (if not already rooted) you need to boot cm-hero-recover.img via fastboot.
[Hero, G2 Touch Android Development] Catscrash:
interesting, so after rooting it should be possible to use the adb shell when the hero is booted normal?

perhaps this is the problem of ours...

i only can use adb when booted into recovery mode via fastboot boot cm-...

even after rooting i get the following when i try doing it while normally booted:

C:\android_sdk\tools>adb shell

error: device not found

C:\android_sdk\tools>adb devices

List of devices attached

C:\android_sdk\tools>
[Hero, G2 Touch Android Development] gaabrysz:
hmm ok... so how do i have to reboot the device if i want to use the superuser thing?? And your right in fastboot it wont regonize my device. Sorry for being angry :(
[Hero, G2 Touch Android Development] gaabrysz:
Ok it worked. Now i have the question thing "allow allways allow " etc. :)
[Hero, G2 Touch Android Development] R3PUBL1K:
Same for me
[Hero, G2 Touch Android Development] gaabrysz:
Hmm rooted device should let me reboot from the terminal right ?? To do so you type:

su

then

reboot

And then i get not permited :/ Any ideas why ??

OK so that reboot thing. Should it work from the emulator in the phone?? it works in CMD from windows but not when i do this on the phone itself. Ahh so much to learn again :)
[Hero, G2 Touch Android Development] Catscrash:
okay, thanks to enlightener i know whats wrong with us:

go to systemsettings --> application --> developement --> usb debugging set to enabled

then plug in usb in normal state, do adb shell and su and then a popup appears (for the first time for me with buttons :D, but it takes one/two seconds till buttons appear) and after that, everything works :-)
[Hero, G2 Touch Android Development] kobz1973:
can anyone confirm 100% this works on tmobile uk g2 touch ?
[Hero, G2 Touch Android Development] R3PUBL1K:
Well I be damed - :D

@ Enlightener and Catscrash

Grazie mille!
[Hero, G2 Touch Android Development] m3t4tr0n:
Hmm, something is still going on ... I can get to su now if I enable USB debugging and go through the shell (adb shell, then su as described) ... I get a popup, I click always allow. I can now su to root which ConnectBot, and the always allow seems to work there.

Swapper doesn't seem to work, formatting/using the swap file seems to report fail ... but there is definitely some progress after the USB debugging step.
[Hero, G2 Touch Android Development] Dayzee:
Ya I'm all rooted up - still experiencing weirdness if I try to upgrade to Superuser Whitelist via the market - it starts to download the the fone restarts - everytime, and only with superuser whitelist. Weirdness.

Anyway, I'm gonna update the EASY WAY post with these additions

Recommend checking the USB Debugging BEFORE you start the rooting process.

Will add enlighteners extra bit on page 11 too as I had to do this since I didn't get root the first time.

Will add a bit about solving "device not found" errors too.

Dayzeee - I'm like butter. Clarified Butter.
[Hero, G2 Touch Android Development] Catscrash:
jap, same here, but the superuser permissions, and some day there will be another update which will work... i hope ;-)
[Hero, G2 Touch Android Development] geovass:
i get the following...

iMAC:~ geovass$ adb shell mount /system

iMAC:~ geovass$ adb push su /system/bin/

cannot stat 'su': No such file or directory ????????????

iMAC:~ geovass$ adb push su /system/bin/

cannot stat 'su': No such file or directory ????????

iMAC:~ geovass$ adb shell chmod 4755 /system/bin/su

iMAC:~ geovass$ adb push Superuser.apk /system/app/

cannot stat 'Superuser.apk': No such file or directory

iMAC:~ geovass$ adb shell reboot

i have placed both superuser.apk and su files on the tools folder on my SDK folder.

The phone is rooted...
[Hero, G2 Touch Android Development] enlightener:
if you type pwd you will find why you get "no such file or directory" :p

ps. Superuser.apk and su binary must be in the current working directory or you have to specify the full path (adb push /pathToFile /pathOnDevice )
[Hero, G2 Touch Android Development] LeeDroid:
so sorry folks, forgot to mention USB Debugging, my bad :o

the problem with superuser whitelist from the market is that it is designed for Jesus freaks rom series not our OEM/Network branded roms. only version we can rely on atm is the zipped version in this thread...
[Hero, G2 Touch Android Development] geovass:
thanks !!!!!!!
[Hero, G2 Touch Android Development] Bayangan:
Is fastboot here also need to check the SPL?

I mean the SPL must NOT the "perfected" version just like the Magic?

Or all the SPL in Hero is not the "perfected" versions?

Sorry I'm bit confused because I read Sapphire rooting too. I have the perfected SPL in my Sapphire so I plan to grab Hero if the SPL is not the same like my Sapphire.

Thanks.