Originally Posted by rajat836
that means i have to firstly s-on and then unlock bootloader through htcdev .......??????
NOOOOO! Just install Towelroot, and in adb obtain a shell session using the commands "adb devices" then "adb shell". then after obtain root privileges by typing "su" in the shell, after that run this command in the shell "echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796" (you should probably copy and paste that). After type "exit" and reboot into your bootloader. You are now bootloader unlocked and rooted no recovery needed. Now you should install SuperSU from the playstore for safety
You can get TowelRoot here https://towelroot.com/
just install it and run it and click "make it rain", the xda thread says it doesnt work on newer htc phones but since youre s-off it doesn't matter. I used this method to unlock my S-Off phone and everthing worked fine