Labels

Sunday, April 8, 2012

How to permanently root your HTC Sensation

The below method worked for me on my HTC Sensation  XE


  1. Unlock the bootloader first , For HTC you can follow the method described in Unlock Boot Loader for HTC
  2. Find Hboot version of your phone and note it down somewhere
If you don't know how to find it , please check How to find HBOOT version

Note: For HTC models with latest updates we cannot simply follow the revolutionary method , the revolutionary method failed for me saying it failed to attain root access , so we will have to use tacoroot utility for obtaining a temporary root access
  1. Follow the below steps to attain temporary root access
  2. Download and keep su-2.3.6.3-ef-signed.zip
  3. Uninstall HTC Sync from your computer
  4. Install HTC Drivers
  5. Enable USB Debugging on your mobile

Turn on USB Debugging, on your homescreen tap Menu> Settings> Application> Development. Then, make sure that USB debugging is checked.
  1. Download the latest version of HtcSupertool.V3
  2. Extract it and you will find a root folder inside the extracted folder
  1. From command prompt browse to the”root: folder and execute the following command
adb push tacoroot.bin /data/local/
adb shell chmod 777 /data/local/tacoroot.bin
adb shell /data/local/tacoroot.bin -setup
adb shell /data/local/tacoroot.bin --root
You will see the commands executing as below
D:\Android\htcsupertoolv3\root>adb push tacoroot.bin /data/local/
* daemon not running. starting it now *
* daemon started successfully *
1766 KB/s (14475 bytes in 0.008s)

D:\Android\htcsupertoolv3\root>adb shell chmod 777 /data/local/tacoroot.bin

D:\Android\htcsupertoolv3\root>adb shell /data/local/tacoroot.bin --setup
TacoRoot: HTC Edition v1
By Justin Case (jcase)
Presented by TeamAndIRC, RootzWiki and AndroidPolice
With great assistance from Reid Holland (Erishasnobattery)
----------
TacoRoot: HTC Edition v1 is based on a vulnerability independently discovered by

both Justin Case and Dan Rosenberg (Rosenberg fist). I believe unrevoked and
AlpahRev were also aware of it.
----------
Usage:
--recovery : For this exploit to work, you must have booted recovery at least on
ce after your last factory reset.
--setup : Setup the phone for root, must be done before --root.
--root : Root the phone.
--undo : Remove TacoRoot.
----------
Rebooting into recovery, please press Volume+, Volume- and Power at the same time, and reboot the system.

D:\Android\htcsupertoolv3\root>adb shell /data/local/tacoroot.bin --root
TacoRoot: HTC Edition v1
By Justin Case (jcase)
Presented by TeamAndIRC, RootzWiki and AndroidPolice
With great assistance from Reid Holland (Erishasnobattery)
----------
TacoRoot: HTC Edition v1 is based on a vulnerability independently discovered by

both Justin Case and Dan Rosenberg (Rosenberg fist). I believe unrevoked and
AlpahRev were also aware of it.
----------
Usage:
--recovery : For this exploit to work, you must have booted recovery at least on
ce after your last factory reset.
--setup : Setup the phone for root, must be done before --root.
--root : Root the phone.
--undo : Remove TacoRoot.
----------

D:\Android\htcsupertoolv3\root>adb push tacoroot.bin /data/local/
* daemon not running. starting it now *
* daemon started successfully *
523 KB/s (14475 bytes in 0.027s)

D:\Android\htcsupertoolv3\root>adb shell chmod 777 /data/local/tacoroot.bin

D:\Android\htcsupertoolv3\root>adb shell /data/local/tacoroot.bin --setup
TacoRoot: HTC Edition v1
By Justin Case (jcase)
Presented by TeamAndIRC, RootzWiki and AndroidPolice
With great assistance from Reid Holland (Erishasnobattery)
----------
TacoRoot: HTC Edition v1 is based on a vulnerability independently discovered by

both Justin Case and Dan Rosenberg (Rosenberg fist). I believe unrevoked and
AlpahRev were also aware of it.
----------
Usage:
--recovery : For this exploit to work, you must have booted recovery at least on
ce after your last factory reset.
--setup : Setup the phone for root, must be done before --root.
--root : Root the phone.
--undo : Remove TacoRoot.
----------
Rebooting into recovery, please press Volume+, Volume- and Power at the same time, and reboot the system.

D:\Android\htcsupertoolv3\root>adb shell /data/local/tacoroot.bin --root
TacoRoot: HTC Edition v1
By Justin Case (jcase)
Presented by TeamAndIRC, RootzWiki and AndroidPolice
With great assistance from Reid Holland (Erishasnobattery)
----------
TacoRoot: HTC Edition v1 is based on a vulnerability independently discovered by

both Justin Case and Dan Rosenberg (Rosenberg fist). I believe unrevoked and
AlpahRev were also aware of it.
----------
Usage:
--recovery : For this exploit to work, you must have booted recovery at least on
ce after your last factory reset.
--setup : Setup the phone for root, must be done before --root.
--root : Root the phone.
--undo : Remove TacoRoot.
----------
Rebooting into root.
  1. Now you will see the phone rebooted into an unstable mode , for sensation XE you will see the HTC and Beat Audio Screen on the phone
Thats what we need , now the phone is ready for Rooting using Revolutionary Method as described in below sections
  1. Go to the revolutionary.io portal
  2. scroll down to Downloads Section.
  3. Now click on Download for Windows, Revolutionary Zip file will start downloading and a menu headed with “Beta Key” will appear as below

  1. Now select your operating system, device and HBOOT version (obtained from step2)
  2. Go to the extracted folder and execute revolutionary.exe
  1. You should be able to see a terminal window that will be in process of identifying serial key of your device.
  2. copy and paste it in the Serial field on the form at Revolutionary.io
  3. Now click on Generate Key and paste this key at the relevant position in terminal.
  4. Revolutionary will now ask you to Install clockwork recovery mod after S OFF.
  5. Select Y to install it , if you choose to install N , you will have to install recovery v5.0.0.8 manually
  6. Turn off your phone Fully and reboot into the Bootloader/HBOOT screen
  7. Start clockworkmod recovery mode
  8. Navigate to "Backup & Restore" using the Volume Down button and press select (power button to select) then select "Backup"
  9. Select "install zip from sdcard" after backing up
  10. Then select "Choose zip from sdcard"
  11. Then select "su-2.3.6.3-efgh-signed.zip"
  12. Then select "Yes - install su-2.3.6.3-efgh-signed.zip" to confirm
  13. Then go back
  14. Then reboot. , that's it you are rooted now








Finding HBOOT version of your Android Mobile




  1. Poweroff your mobile
  2. Remove battery and insert it
  3. Hold the volume down button and press the power button at the same time
  4. You will see a white screen (fastboot menu) and the hboot version number can be found on the top

Friday, April 6, 2012

How to unlock boot loader for HTC Sensation XE

Unlocking boot loader is now easy as htc officially provides a methode , but doing this activity will void your warranty agreement, so do it at your own risk.


  1. Go to http://htcdev.com/ and register you emai ID
  2. Install Java Runtime Environment (obtain it from http://java.com)
  3. Get Google Android SDK zip (android-sdk_r17-windows.zip is the latest) from http://developer.android.com/sdk/index.htm
  4. Install HTC Sync (http://www.htc.com/www/help/)
  5. Extract android-sdk_r17-windows.zip and run SDK Manager.exe from C:\android-sdk_r17-windows\android-sdk-windows
  6. Select tools and install it
  7. Once the installation is finished get adb.exe, AdbWinApi.dll, fastboot.exe from (C:\android-sdk_r17-windows\android-sdk-windows\platform-tools)
  8. Create a new folder say “c:\Android”) and copy the files there
  9. Remove and reinsert the battery.
  10. Press Volume Down and Power to start the device into Bootloader mode.
  11. Connect the device to the computer via a usb cable
  12. Open Command Prompt and change directory to C:\Android
  13. Type in Command Prompt: fastboot oem get_identifier_token


  1. Now you need to copy the token generated in the above step and need to paste it on the form in htc site, for that Go to http://htcdev.com/bootloader/ and follow the instructions by clicking on “Begin Unloack Bootloader), most of the steps are already done and you can directly go to the token submission section. Once submitted they will email email you the unloack code binary (Unlock_code.bin)

  1. Copy Unlock_code.bin to C:\Android
  2. In the command prompt type fastboot flash unlocktoken Unlock_code.bin
  3. Now follow the instruction on your phone , select YES to unlock the phone , you can make selection using the Volume key and Power Button
 
  1. That’s it!!! , the phone will reboot and the boot loader will be unlocked
  2. If you want to re-lock it just type fastboot oem lock