Rooting your Android phone can be a daunting task, considering the number of options, methods, and packages floating in the ethertubes. This guide attempts to provide a more detailed walk-through to installing Cyanogenmod on the HTC Sensation.
Preparation
Begin by disabling Fastboot on your phone
Settings > Power > Fastboot
and enable USB debugging.
Settings > Applications > Development > USB debugging
Next, configure your Linux device subsystem to recognize your phone. The idVendor of 0bb4 is the HTC manufacturer ID returned by lsusb.
# echo 'SUBSYSTEM="usb", ATTR{idVendor}=="0bb4", MODE="0666"' > /etc/udev/rules.d/51-android.rules
# udevadm control --reload-rules
Revolutionary
With the preparation complete, the first step is to gain S-OFF access with Revolutionary. S-OFF, or security off, access removes protected access from the bootloader and the root folders allowing you to write and install custom ROMs.
Download the latest revolutionary-X.X.tgz file, and unpack and execute the binary.
$ tar xfz revolutionary-X.X.tgz
$ ./revolutionary
Connect your phone to your computer, and restart the phone in Fastboot USB mode by first completely powering off, and then powering on with Volume-Down button depressed. If you do not see the HBOOT screen on startup, then try removing your battery for a few seconds before trying again.
HBOOT, the HTC bootloader, will initialize and drop you into a selection menu. Select Fastboot USB press the power button to enable Revolutionary to detect your phone.
Once Revolutionary recognizes your phone, it will provide you with your HBOOT version and serial number. Enter these numbers into the Revolutionary page to generate the beta key. Copy the key to the running program and Revolutionary will attempt to gain S-OFF access.
Once S-OFF access is granted, Revolutionary will prompt you to install ClockworkMod Recovery; press n to decline and install it manually.
ClockworkMod Recovery
ClockworkMod Recovery is a program that enables you to install custom ROMs to your phone. To install ClockworkMod Recovery, first download and install the Android SDK. Next, download the ClockworkMod Recovery ROM Manager, recovery-clockwork-X.X.X.X.img.
Run fastboot from the Android platform tools directory with the ClockworkMod Recovery image.
$ fastboot flash recovery recovery-clockwork-X.X.X.X.img
Android Superuser
With ClockworkMod Recovery installed, the next step is to use it to obtain root access with the Android Superuser custom ROM. Download the su-bin-X.X.X.X-signed.zip file and copy it to your SD card.
# mount /dev/sdb1 /mnt/phone
# cp /path/to/su-bin-X.X.X.X-signed.zip /mnt/phone
# umount /mnt/phone
Restart your phone into ClockworkMod Recovery mode by powering off and powering on with Volume Down depressed. Select RECOVERY, BACKUP AND RESTORE, and BACKUP to backup the original manufacturer’s ROM.
With the original ROM backed up, it is now safe to load Android Superuser. Select install zip from sdcard, choose zip from sdcard, and su-bin-X.X.X.X-signed.zip. Once the installation is complete, select reboot and your phone will reboot with root access.
Cyanogenmod
We are finally ready to install Cyanogenmod. Install Superuser and ClockworkMod ROM Manager from the Android Marketplace. Open the ROM Manager and select Flash ClockworkMod Recovery to update the application. The Superuser will prompt you to allow ClockworkMod Recovery root access; allow it. Finally, select Download ROM from the ROM Manager and install Cyanogenmod.