METHOD 1 - ADB GUIDE- Skip steps 1 to 5! if you already have already got ADB and can get to the ADB folder through command prompt/Terminal.
If your not sure follow all the steps
1. Download adb tools here: download for
Windows or
Linux or from attachments in the Sensation S-off guide
2. On your PC click on your local disk C: Drive (or D: drive for some) (WINDOWS users: Start > My computer > Local Disk (C)
3. Create a new folder called "adb" and extract the files from adb.zip into it. Make sure it doesn't create another folder in the adb folder when extracting
4. open command prompt (or terminal for linux) and type "cd" "followed by the path to your adb folder" (windows users can type "cd C:\adb")
5.a Ensure your phone is switched on (regular home screen) and connect it by USB in charging mode (Ensure usb debugging is on settings) OR!!!!
[ IF YOU GOT THE STRING:NOT FOUND ERROR IN METHOD 1 (terminal Emulator) REBOOT INTO RECOVERY AND CONNECT YOUR USB AND CONTINUE (Turn off your phone completely, volume down + power button, then select recovery to get into it!) ]
6. enter the command "
adb shell". Your phone should display a hash sign [#] (if it doesn't then you are not rooted! - GO ROOT)
7. enter the command "
SU".
8. enter the command "
strings -n 8 /dev/block/mmcblk0p6"
9. This should output a bunch of details as shown in the screenshot below
10. The 8 digit number above your IMEI is your unlock code. See post 2 on how to enter it. IF it only brings you a date and your IMEI. Then the unlock code is not present in your device. Move to Method 2 in Post 1
To unlock your GSM phone with the unlock code follow these simple steps:
1. Power on your Sensation with a SIM card from an unsupported network/carrier/provider.
2. If asked, enter the PIN code of your SIM Card.
3. Enter unlock code when prompted!
FOR DUAL CDMA
How to enter the code in dual CDMA - GSM/LTE HTC Phones
1. Power on your Sensation with a SIM card from an unsupported network/carrier/provider.
2. Phone will tell you to insert an allowed SIM card and that the phone will switch back to CDMA mode.
3. Click OK.
4. Click green button to get to the main screen of the phone.
5. Click on settings.
6. Click on all settings.
7. In the personal tab click on security.
8. The phone will ask you to enter the unlock code. Enter it. Done