The following is a step by step process to unlock HTC Sensation 4G. It necessitates the cell phone to be rooted first. Please see my other process to root HTC Sensation 4G.
It should have the unlock code on the top of the IMEI number in the last few lines. If it shows a date instead, go to next step.
I hope it will work for you.
- Install Android Terminal Emulator from marketplace.
- Install busybox from marketplace.
- Start the emulator and enter "su".
- Enter "strings -n 8 /dev/block/mmcblk0p6"
It should have the unlock code on the top of the IMEI number in the last few lines. If it shows a date instead, go to next step.
- Search for and download PG58DIAG from the web.
- Copy the file PG58DIAG to SD card root folder.
- Reboot to hboot. Place the cell phone horiziontally when asked to.
- Press Power key to choose "Clean S58 Data".
- Take out the SD card and reboot the mobile phone. Delete the file PG58DIAG from SD card.
I hope it will work for you.