I. 开始之前你需要完成的:

你需要确认你能通过ADB来访问你的HERO。如果不行的话就先看看如何安装HERO的驱动(这个方法转自draculading的帖子HTC HERO 取得root权限完全傻瓜教程,适合新人。。。其中安装驱动部分。)
1. 下载Android SDK
Google官网去下个SDK里面有root要用的工具和驱动,网址 http://developer.android.com/index.html博主:该网页已经被墙,尝试这个网页http://androidappdocs.appspot.com/sdk/index.html下载以后可以解压到任意位置,建议解压到C:/sdk/ ,后面的教程里说的sdk文件夹就是指的这个文件夹

2.安装USB debugging驱动
确定你的手机已经打开USB Debugging,在Settings - Applications -Development - USB Debugging
现在把手机通过usb线连到电脑上,电脑会提示你安装驱动,驱动的位置在sdk文件夹里的usb_driver, 如果是32位的系统选择x86文件夹安装驱动,如果是64位系统选择amd64文件夹(驱动可以兼容win7,我用的是64位的win7)另外最好从始至终使用同一个usb接口,不然有可能会再次提示你安装驱动

博主:如果安装了HTCsync2.0.8,那么USB驱动就已经安装好了,以上第二步可以省略。

驱动搞定后就可以开始啦(以下部分是从http://www.androidspin.com/index.php?option=com_content&view=article&id=254:how-to-root-cdma-hero&catid=10:rooting&Itemid=4翻译而来)

II. 获取CDMA HERO的root权限

  1. 下载附件中的asroot2.zip,并解压.
  2. 把解压后的asroot2放到SDK的TOOLS目录里
  3.  卸下SD卡,然后手机连接电脑
  4. 打开XP的命令行工具,到SDK的TOOLS目录输入以下指令,
cd/
cd AndroidSDK/Tools/ (到这里是进入SDK的TOOLS目录)
adb devices(与手机建立连接)

请确认你手机的序列号有列出,并提示成功,否则请确认第一步是否完成(也就是说如果没有出现你HERO的序列,那就是驱动没装成功)

5. 然后输入

adb push asroot2 /data/local/ (回车)
adb shell chmod 0755 /data/local/asroot2 (回车)
adb shell (回车,会变成$提示符)
/data/local/asroot2 /system/bin/sh (回车,会变成#提示符)

6. 然后输入

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system(回车)
cd /system/bin(回车)
cat sh > su(回车)
chmod 4775 su(回车)

7.退出一直输入exit回车就可以了

然后就OK了! 重启机子吧! 

以上步骤完成后,安装Root Explorer试验以上操作是否成功,请参考《冒死体验~~~Root Explorer文件管理


============================================================
【英文原文】

HOW TO ROOT YOUR CDMA HTC HERO

Posted by on 8th November 2009

This guide will walk you through gaining root access to your CDMA HTC Hero currently on the Sprint and Verizon Networks.  

I. Before You Begin

You need to be able to access the phone via ADB.

Follow this procedure to get ADB setup on your Hero.

How To Setup ADB/Install USB Drivers

II. Root the CDMA Hero

1. Download the following file and then unzip it.

AsRoot2

2. Take the unzipped file and save it into the Tools folder of your AndroidSDK.
3. Plug your phone in via USB and do NOT mount the SD card.
4. Open the Command Prompt and type the following (hitting enter at the end of every line):

cd/
cd AndroidSDK/Tools/
adb devices

And make sure your phones’s serial number pops up
(if not redo section I).

5. Then type:

adb push asroot2 /data/local/
adb shell chmod 0755 /data/local/asroot2
adb shell
/data/local/asroot2 /system/bin/sh

6. Then type:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /system/bin
cat sh > su
chmod 4775 su

All Done! You now have root access! Try to download a root program from the Market and see if it works :P

 

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