Related
If you have a 2.73+ rom with the latest hboot you will need to follow This Post to boot the recovery image
1) restart into bootloader (switch on holding the back button)
2) Extract the latest GSM Hero recovery IMG into your android SDK/tools folder
(For SDK & CMD help reffer to Post 3 "The Basics" )
3) Download Superuser.zip and extract the contents to your SDK/tools folder.
4) Plug in USB
5) open a CMD prompt from the tools directory and type the following command> fastboot boot recovery-RA-hero-v1.5.2.img
(you should now enter a recovery console on the handset)
NOW PERFORM A NANDROID BACKUP from the recovery menu, once completre, continue..
6)then type the following commands in CMD exactly as they are here, hitting enter for a new line.
adb shell mount /system
adb push su /system/bin/
adb shell chmod 4755 /system/bin/su
adb push Superuser.apk /system/app/
adb shell reboot
Congratulations you now have root access..
Download "Root Boot" from the app store (this will only work if you have root!)
Step 6 modified thanks to ENLIGHTENER, cheers, su whitelist working nicely now..
Recovery image updated to recovery-RA-hero-v1.5.2.img , thanks to Amon_RA
Please be carefull! I accept no liability!
FYI, To unroot you will have to either restore an earlier backup or flash a stock rom..... (reccomend the new official HTC Update via RUU to do a full reset)
OK i have a stupid question as i'm new to all that android thing. Where is the sdk folder? How do i open CMD? Maby u could do a tutorial for totaly new guys on *how to root your HERO* ??
Thanks
The Basics
gaabrysz said:
OK i have a stupid question as i'm new to all that android thing. Where is the sdk folder? How do i open CMD? Maby u could do a tutorial for totaly new guys on *how to root your HERO* ??
Thanks
Click to expand...
Click to collapse
1) you need to download the android software development kit from Here and extract it to yourhard drive.
2) (check) fastboot and adb should be located in the tools folder.
3) in tools right click>new>shortcut when asked enter CMD.exe
4) right click on cmd.exe shortcut, go to properties and clear the "start in" box.
job done, follow as above.
*Edit*
FYI
Verify you have root, go to app store> download Root Booter and test its functions if this works, you have root!
The G2 is the HTC Hero on T-Mobile.
The SDK includes all the drivers needed.
once you have booted the img via fastboot you should enter a recovery console, at this point you need to follow the instructions exactly as typed for adb,
I am running windows 7 Ultimate, should be the same for all windows platforms,
Cheers
__________________
Thank you
Oh and one more question. Do i loose any data doing this??
gaabrysz said:
Thank you
Oh and one more question. Do i loose any data doing this??
Click to expand...
Click to collapse
No, you will not loose anything but be sure to do a Nandroid incase you need to go back to "Stock"
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?
MrHorus said:
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?
Click to expand...
Click to collapse
Use a program that requires root access.
MrHorus said:
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?
Click to expand...
Click to collapse
If by G2 you mean HTC Magic/Sapphire rather than HTC Hero you're in the wrong place...
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??
Just tried it and it works sweet... Took all of 5 minutes... Awesome work thank you
I now have root access on my Hero
gaabrysz said:
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??
Click to expand...
Click to collapse
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.
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.
gaabrysz said:
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??
Click to expand...
Click to collapse
Having the exact same problem here.
gaabrysz said:
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.
Click to expand...
Click to collapse
try entering adb devices see if that makes any differences
btw, when i done mine the phone was in the recovery console..
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
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.
Mienaikage said:
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
Click to expand...
Click to collapse
Can u share a link to the drivers?? Please
it sounds like a driver issue. Using the lastest SDK?
android-sdk-windows-1.5_r3
OK got it working. It is a driver issue. using latest sdk but i had to use older drivers just like Mienaikage sad.
gaabrysz said:
Can u share a link to the drivers?? Please
Click to expand...
Click to collapse
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://forum.xda-developers.com/showthread.php?t=446274
I have my Evo rooted with DC 3.1.1 and I also have Nand Unlock via Toasts Way. But I did all of this using Windows. I already installed Android SDK for Mac. But every time I try to execute a command after I do the cd /android-sdk/tools. It just says -bash: adb: command not found. Can anyone give me a hand?
same issue for me
nitty917 said:
same issue for me
Click to expand...
Click to collapse
If you need help. PM Me.
Use ./adb instead of adb
BearCavalry said:
Use ./adb instead of adb
Click to expand...
Click to collapse
That wont help at all.
Hi.i am trying to set up adb on my compaq laptop vista,i tried everything,youtube videos,guides
Still dont work,please help me if there,s any other metod.any help ill bappreciated,
Sent from my HTC Vision using XDA App
Have you tried this ?
http://forum.xda-developers.com/showthread.php?t=865685
Prob solvd thanks so much.
Sent from my HTC Vision using XDA App
Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Sent from my HTC Vision using XDA App
imranbandial said:
Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Click to expand...
Click to collapse
Have you been through the guide that I linked above, and done all the steps to get adb setup on your PC ?
If you're having a problem with the gfree procedure it would be best if you post up a question in it on that thread. Are you sure you're typing the commands exactly as it says there ?
the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..
imranbandial said:
the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..
Click to expand...
Click to collapse
When you are running adb, if for example you do "adb push gfree", where you are trying to copy (push) the file "gfree" from your PC to your phone, it will look in your current directory for gfree. So given you are usually doing this at the command prompt, in Windows do a "cd" (change directory) to change to the directory where you have put gfree.
For example, if gfree is in "\users\fred\desktop", then do "cd \users\fred\desktop", then run your "adb push gfree" and it will find the file.
If you do "adb shell" does that work, does it come up with a $ prompt ? If so, then it's working and has started a command "shell" on your phone.
Hi guys,
After a lot of trouble (I will not mention them but it was a long pain for me and my desire!) I've finally unbricked my phone BUT usb doesn't work anymore.
I learn that it's called usb-brick.
Sadly, Exhausted from this fight with my device, I've mistakenly installed RUU from htc with gingerbread. And with the new bootloader 1.02.0001.
Problem: I have not find any method to root the phone without the need of usb link with the installed rom.
I hoped to do it when I read about Gingerbreak but infortunatly, it doesn't work with htc version of GB.
Moreover, because the exploit of revolutionary is not known I can not exploit it directly on the phone.
So, I need root for usb unbrick, but I need usb for having root :'(
Is there a way to root my device without needing this usb link?
(Of course, I can access fastboot usb.)
Have anyone an idea?
I know, it's a tricky question... But I have really no idea what to do...
Thanks,
Dvad'
My problem is solved if I can become s-off.
Do I really need a rom with usb connection working in order to S-off my devices?
Fastboot via USB isn't enough? I tried with revolutionary says "waiting for device" forever.
Try following bortak's Troubleshooting Guide
http://forum.xda-developers.com/showthread.php?t=1275632
ROOT WITHOUT USB CONNECTION
Thank for answering.
I read this method but, it works on froyo build only. And I've gingerbread.
davmoi said:
Thank for answering.
I read this method but, it works on froyo build only. And I've gingerbread.
Click to expand...
Click to collapse
Do this:
-extract this on ur computer (its a "portable" version of adb)
-install this widget from the market, it allow to use adb over wifi (without cable)
-try this local root exploit by revolutionary (its work even on 2.3)
after u get temp root, use the flash_image method to flash the misc partition (as for every guide for usb brick fix)
EDIT: Sorry the widget on the market requires root to work..hmm
send it to htc repair, tell they after the upgrade with their 2.3.3 ruu, ur usb stopped working..maybe u get free repair under warranty
My problem is solved!
In fact andQlimax were right! The idea is to run adb with a wifi connection.
Wifi over adb needs root. I don't understand why because this method doesn't need root:
1° Type this In android terminal. it configure the phone to run adb over tcp.
setprop service.adb.tcp.port 5555
stop adbd
start adbd
Click to expand...
Click to collapse
2°Connect your htc on a wifi network
3° on the pc run:
adb tcpip 5555
adb connect ip-of-the-phone-on-your-wifi-network:5555
Click to expand...
Click to collapse
You can access adb shell, have Temp root with zergRush, and flash your mtd0.img.
Problem solved!
davmoi said:
My problem is solved!
In fact andQlimax were right! The idea is to run adb with a wifi connection.
Wifi over adb needs root. I don't understand why because this method doesn't need root:
1° Type this In android terminal. it configure the phone to run adb over tcp.
2°Connect your htc on a wifi network
3° on the pc run:
You can access adb shell, have Temp root with zergRush, and flash your mtd0.img.
Problem solved!
Click to expand...
Click to collapse
Then u just did that and solved? Cool
I shall bookmark this for future reference
I've got this exact problem, but I can't get the WiFi ADB to work. I've got the official Gingerbread RUU installed and the USB is dead outside of fastboot. The terminal on the phone accepts the commands without issue and connecting to WiFi is fine, but my PC just won't find it for some reason. Ideas? I don't fancy an out-of-warranty repair.
seekified said:
I've got this exact problem, but I can't get the WiFi ADB to work. I've got the official Gingerbread RUU installed and the USB is dead outside of fastboot. The terminal on the phone accepts the commands without issue and connecting to WiFi is fine, but my PC just won't find it for some reason. Ideas? I don't fancy an out-of-warranty repair.
Click to expand...
Click to collapse
any firewall/antivirus blocking the port 5555?
what the result of "adb devices" from ur computer after the above procedure?
andQlimax said:
any firewall/antivirus blocking the port 5555?
what the result of "adb devices" from ur computer after the above procedure?
Click to expand...
Click to collapse
Nope, nothing like that is even installed on my PC at the moment. adb devices gives me "List of devices attached" and then an empty line. Is the terminal on the phone meant to return anything when you enter above commands? For me, it simply goes to an empty line when enter the command and doesn't state whether or not is was successful.
seekified said:
Nope, nothing like that is even installed on my PC at the moment. adb devices gives me "List of devices attached" and then an empty line. Is the terminal on the phone meant to return anything when you enter above commands? For me, it simply goes to an empty line when enter the command and doesn't state whether or not is was successful.
Click to expand...
Click to collapse
well, after searching this on internet seems that to be able to do this:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
you need root...so I don't know how the previous user, davmoi, managed to do that..
so in my opinion there is no way to use adb over wifi without root..and there is no way to root the desire with gb 2.3.3 without adb..and without root there is no way to restore usb brick..
call htc and say they that after the 2.3.3 update ur usb is gone..(as u was just flashing their ruu, u should get repair under warranty)
andQlimax said:
well, after searching this on internet seems that to be able to do this:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
you need root...so I don't know how the previous user, davmoi, managed to do that..
so in my opinion there is no way to use adb over wifi without root..and there is no way to root the desire with gb 2.3.3 without adb..and without root there is no way to restore usb brick..
call htc and say they that after the 2.3.3 update ur usb is gone..(as u was just flashing their ruu, u should get repair under warranty)
Click to expand...
Click to collapse
Pretty much what I figured.
I've spoken to HTC and apparently they consider use of the 2.3.3 update to void the warranty as they've put up several warnings and such on the website... which is pretty crap. I'm guessing it won't be too much work for them to just re-flash it though. As long as I can make this phone last until MSM8960 chips hit the market, I'm happy. Never using Amon Ra again though.
Cant enable adb-WIFI connection. List of devices is empty. Think u need root
Need solution without root!
I have no bill (EBay..) to send it to HTC.
Strange, I swear I was not rooted when I used these command lines. (Superuser and titanium was saying that.And it was on a stock 2.3 rom so....
I simply enter them in Android terminal emulator with a user shell.
Can you ping your phone on your wifi network from your computer?
Dvad'
Edit: I think that if we needed root the phone would say "operation not permitted" when you enter the command. The problem seems to be elsewhere.
davmoi said:
Strange, I swear I was not rooted when I used these command lines. (Superuser and titanium was saying that.And it was on a stock 2.3 rom so....
I simply enter them in Android terminal emulator with a user shell.
Can you ping your phone on your wifi network from your computer?
Dvad'
Click to expand...
Click to collapse
ur phone was rooted, that commands requires root permission
Maybe, but in that case, I was able to root a completly stock Gingerbread RUU without adb... And without knowing it!
:/
And if it is the case I can not say how, because I have done a lot of tries with my phone, and I don't remember all of them..
davmoi said:
Maybe, but in that case, I was able to root a completly stock Gingerbread RUU without adb... And without knowing it!
:/
And if it is the case I can not say how, because I have done a lot of tries with my phone, and I don't remember all of them..
Click to expand...
Click to collapse
out of curiosity ur phone was s-offed when u run the 2.3 ruu?
No... it was not soff anymore. Hboot version was stock 1.02
Sent from my HTC Desire using Tapatalk
I could establish wifi connection on GB 2.3.3, HBoot 1.02, not rootet and s-on as described! ADB Shell worked fine. But: when I try to launch command "flash_image mtd0.img" the permission is denied! In ADB Shell on PC I have the "#" instead of the "$". On phone in Terminal Emulator I have only "$"!
Hello,
i am quite new on linux now, because Windows is ****ing me up with its bluescreens and bugs right now, but i cant find any htc drivers for linux.
Do i need any special program for linux, or can i use the default adb and fastboot of the SDK?
I recognized, that the adb devices just shows : ???????????????? no permissions.
JoePi
JoePi said:
Hello,
i am quite new on linux now, because Windows is ****ing me up with its bluescreens and bugs right now, but i cant find any htc drivers for linux.
Do i need any special program for linux, or can i use the default adb and fastboot of the SDK?
JoePi
Click to expand...
Click to collapse
cd to the directory where the fastboot\adb files are
sudo su -
password
./adb startserver
./adb whateverhere
or
./fastboot whateverhere
(i never need drivers some people will say oh you need to do this this and this but meh)
Ok thank you .
i knew to run as root user, but i though there were drivers for htc phones.
But now i am done : thank you
Lloir said:
cd to the directory where the fastboot\adb files are
sudo su -
password
./adb startserver
./adb whateverhere
or
./fastboot whateverhere
(i never need drivers some people will say oh you need to do this this and this but meh)
Click to expand...
Click to collapse
Thanks for this! Now I'll be able to flash without worries when I'm on my eeepc.
Sent from my HTC One V using Tapatalk 2