yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] omer1112:
Worked like a bauce! (method 2)

Protip for others: Keep a microSD card reader handy and make sure you do a nand backup.

Mine went into bootloop and had to pull PG5DIAG file of the mem via external reader because booting in hboot/recovery to nand restore wouldn't do anything (would keep trying to flash the nbh)
[HTC Sensation] snwahs:
I have tried it. Screen appears and my phone / serial number is found, however it hangs on "Attempting to retrieve code from phone!" From the Desire thread it says this should only take about 30 seconds. No error messages or other information is given.

S-Off

S/N: SH17***
[HTC Sensation] sieempi:
That'a a bug. The app searches for an 8 letter string and fails loudly if it doesn't find it. It happens with SH* and even some HT* which save the unlock code the same way.
[HTC Sensation] robiatti:
Worked Great using the ADB Method

for My Sensation 4g

and for the MT4G Slide.
[HTC Sensation] snwahs:
Ok, should I have tried again or await a potential bug fix? Again no failure messages just kept searching...
[HTC Sensation] BTaylor927:
Hi guys,

I tried this on my sensation using method 2 and only get no signal on the sims I try. I put the right file on my SD, ran the clear s58 command, pulled the battery (had no other way to exit the menu) and rebooted.

Any idea what I'm doing wrong?
[HTC Sensation] materijalmen:
I need a quick anwer. If i unlock my phone, i will loose the warranty. Is there any option, to "lock" again the device? I mean, if something goes wrong, and i have to bring the device to the shop where i have bought it.?

Thx
[HTC Sensation] sieempi:
Relocking is possible, if I'm not mistaking, by issuing some fastboot commands.
[HTC Sensation] BTaylor927:
Does anyone have any idea about the no signal issue? I get absolutely no signal anywhere with any sim. I tried using an RUU to restore and still no luck.

Any help greatly appreciated!
[HTC Sensation] LITANG:
thanks！but i not see picture！i not root z710！so what do？
[HTC Sensation] sinisin:
Should the hboot header say Revolutionary or Unlocked?
[HTC Sensation] chils41:
gr8 it works !
[HTC Sensation] madman228:
Thanks

Thanks a lot for this post guys I just tried the adb shell method and it actually worked. Again Thanks a lot
[HTC Sensation] zeeraxis:
i athe adb shell method is not for my device, i tried the second method 6 times still no luck

i guess the second method need updates ?
[HTC Sensation] sinisin:
I put in an alternate sim and entered my unlock code, it said it unlocked, but my hboot still says revolutionary, not unlocked. What is the deal, am I unlocked or not?

Sent from the top of my Pyramid!
[HTC Sensation] ClydeB1:
The Revolutionary or Unlocked (HTC Dev) text has to do with unlocking the bootloader and not to do with unlocking your sim that this thread is about ;)
[HTC Sensation] sinisin:
Clyde you are my hero! LoL. Thanks brogham!

Sent from the top of my Pyramid!
[HTC Sensation] nintendolinky:
My phone now has no signal and no sim card is working, not even one that the phone was originally locked too. Will flashing a stock rom fix this.

.....Edit.....

So stock rom didn't fix the issue, I have noticed that the internet works but that is it, what could be wrong with the phone.
[HTC Sensation] osugsxr:
had to use method 2, worked perfectly thanks!
[HTC Sensation] raja16sep:
Hi Brother,

Thanks for me 2nd method works.

Thanks

Br, Raja
[HTC Sensation] Zehlek:
I can confirm that method 2 works. I just tested a friend's simcard from Rogers and I got service and everything worked. Thanks a lot for finding this out
[HTC Sensation] KAwAtA:
Here in Canada, got one from Bell, method 1 failed but method 2 worked. Thank's so much! You guys just saved me ~$20
[HTC Sensation] rapid1:
Finally

I finally got one to work the sensation with beats audio revolution mod/rom worked fully. For some reason nothing else would work. This guide did not work on 3 attempts. Got root access now backing up to clockwork :)

---------- Post added at 01:03 PM ---------- Previous post was at 12:17 PM ----------

Seems that I got to excited. Yes I can apply the revolution with beats audio to my sensation. All the programs etc work great even GPS etc seems to work, but the phone won't make any calls not even to voice mail so another epic fail.
[HTC Sensation] Gee1:
Worked like a Charm!!!!!!

Just want to say thank you for this! Saved me the trouble of having to fight with t-mobile for the unlock code and wait. Used method 2 and it worked like a charm. Followed every step in method 2, after it completed had to pull battery to exit, rebooted phone, went thru setup, restarted phone in recovery, restored my nandroid backup, everything works like is suppose to. :D:D:D:D:D:D

Phone: HTC Sensation 4G

ROM: Revolution HD 3.6.0 by mike1986

Thank you again!
[HTC Sensation] :
Are you saying that sometimes, when you do this, you loose them once, or that If I unlock my phone I will get randomly looses from today until the end of time?
[HTC Sensation] mbangia630:
I used method 2.

Phone has been stuck on the HTC boot screen for 10minutes now...

any ideas?

:((
[HTC Sensation] nick_martin:
Method 2 works. I had to take out the battery to reboot!
[HTC Sensation] dobah:
I got the strings not found command when using terminal. Once I installed busybox, the strings command worked.
[HTC Sensation] maichants20:
hello,

use method 2 work perfect
[HTC Sensation] roemar:
I used method 2 and it worked so easy. Certified noobproof. I just have a question, is this a permanent unlocking? Thanks.
[HTC Sensation] Emission:
Method 1 showed a date, Method 2 worked flawlessly :), thank you so much! :D
[HTC Sensation] memreh:
Hyooooge thanks to everyone who helped put these guides together! Method 2 worked for me! Yeahhhhhhhhhhh!
[HTC Sensation] Darkmx2000:
**delete**
[HTC Sensation] Zehlek:
Do you think method 2 will work for all Android phones or just the Sensation
[HTC Sensation] mikemod:
O2 UK, method 1 and ADB didn't work

Method 2 success, excellent work ..
[HTC Sensation] BTaylor927:
Was it locked to O2? My locked to O2 sensation just refuses to unlock :\
[HTC Sensation] mikemod:
Yes it was locked to O2.

I had tried a Vodafone SIM before and it didn't work but now it does :)
[HTC Sensation] BTaylor927:
Damn. Sorry, it's just really weird. My phone refuses to unlock and is also locked to O2, I was thinking that O2 might have pulled some weirdness much like Orange with the Tattoo. Guess not.
[HTC Sensation] Jerald2:
Trouble :(

So the first method didnt work for me i got no strings found so Im trying the adb method. and i get to step 6 when I enter in su i get

c:\adb>adb shell

~# su

su

/sbin/sh: su: not found

Im not sure if this is the right place or the q and a forum to post my question. So im going to post both remove and sorry if wrong

any ways point me in the right direction.

So I read that someone installed busy box and first method worked I tried that and it worked like a charm thanks guys.
[HTC Sensation] sieempi:
There's a third unlock method, check it out, it might work

Via XDA App
[HTC Sensation] BTaylor927:
Yeah, I know. I tried your method, which ostensibly worked (Said it succeeded) but the best I can get is a mobile data connection with no signal :/
[HTC Sensation] yungyeh:
Hi I have the same problem. I loss my root after applying method 2. I did remove the DIAG file from my SD card and the restoration from recovery was successful. The only problem is the "root" is missing. Did you find the solution? Does flash other rom solve it? Thanks

A few update:

I tried to flash the su zip from the thread again: http://xdaforums.com/showthread.php?t=1192300

However, the flash process cannot complete and report an error.

Mounting SYSTEM
Deleting SYSTEM:bin/su...
Deleting SYSTEM:xbin/su...
Extracting files to SYSTEM...
Setting SYSTEM:bin/su permission to 6755
Creating SYSTEM:xbin/su symbolic link...
E:Error in /sdcard/su-2.3.6.3-efgh-signed.zip (Status 0)
Installation aborted

I still don't have root.
[HTC Sensation] DaNnY549:
Method 1 - adb guide <-------------- the best method :d
[HTC Sensation] ClydeB1:
This is a problem for a few users and was even added to the FAQ of that thread. Rerun the su flash again (and perhaps a 3rd time even) but it will eventually take. Alternatively if you are using a custom rom, just flash that as it includes root.
[HTC Sensation] yungyeh:
Ha I did tried two times without success. I dare not try the third but went straight to flash a custom ROM (maybe I should try flash the su zip the third time). Problem was solved by flashing Revolution HD. It's good to mention that I tried leedroid and insertcoin yet got no su, either. That is really weird. I wonder what the method had done to my phone and somehow even the nandroid restore could not restore perfectly.

I have seen many US-TMO users report no wireless network signal so I believe there must be something the method 2 would most likely modified (or erased) and those may be essential to the certain version of TMO HTC Sensation 4G. I doubt there will be a fix since there was something the developers may not be knowing got deleted or overwritten.
[HTC Sensation] s10shane:
Method 2 worked great for me the first time. thank you guys very much!
[HTC Sensation] dmakhkamov:
:( cant root

I cant root the device... it is t-mobile version with SH sn...

the program tries to S-OFF the device but when the phone reboots it waits for the fastboot and suddenly looses the connection...

please help me unlock the device
[HTC Sensation] ClydeB1:
You're in the wrong thread ;), but just reboot your phone and rerun the tool. It should work the 2nd time.
[HTC Sensation] dmakhkamov:
Please redirect me to the correct thread cuz I am despirate... I Tried to do it about 10 times... not working... :( HEEELLLPPP!

Probably i have some driver problems... Does fastboot require any specific drivers? My device manager shows the device as My HTC.

Also i've only installed drivers that come with HTC Sync... and each time i run the tool it disconnects on fastboot stage... my phone is in fastboot mode though(if it helps)
[HTC Sensation] ClydeB1:
This is the correct thread for s-off.

Fastboot does require drivers. Boot your phone into bootloader and connect to usb. Does it show up as USB Fastboot on the screen? Also, in fastboot run the following command via command prompt on pc "fastboot devices" - it should return your device serial number.

What error do you get when you lose comms with the device? Does it show "waiting for fastboot" or does it say "communication error press any key to exit?". If it is the latter one, that suggests that you have the correct drivers installed. You can try booting your phone into fastboot and then try reinstalling the HTC drivers. You can also try using different usb cables and differnt ports on your pc if possible, or even try another pc.
[HTC Sensation] dmakhkamov:
Yes my phone reboots and goes into Fastboot USB... I know the serial number... the error is it says waiting for fastboot... then it retries... and then it says that "the connection was unnecpectedly lost" or "interupted".... tried on Two PC with two different cables... can you post the driver files if possible so that I will link them :)

Hugge thanks in advance
[HTC Sensation] ClydeB1:
I know that you know the serial number, I wanted you to run the command in fastboot to see if the device was being recognised - running "fastboot devices" when in fastboot would show if the phone is being picked up by the pc or not ;)

In fastboot mode install these drivers
[HTC Sensation] craig1965:
Method 2 works perfectly I had a t-mobile UK locked sensation so far I've tried Orange and Vodafone all work no problems at all with Eu firmware 1.45

Many thanks
[HTC Sensation] dmakhkamov:
Yahooo :)

THanks for the right link on S-OFF :D it all worked :D With Method 2 :D
[HTC Sensation] arcticwolf8:
Works on MyTouch 4G Slide
[HTC Sensation] itsmikeramsay:
Does anyone know how to rebrand/lock their phone back to a carrier? I'm having trouble with WiFi calling since it's been unlocked....Can someone point me in the right direction please? :confused:
[HTC Sensation] ClydeB1:
Deleted - wrong thread
[HTC Sensation] sieempi:
Pm me the imei and the network you'd like it relocked to. I guess you used method 2 and I doubt that relocking will solve your issue..

Via XDA App
[HTC Sensation] L.N.X:
Thanks for the methode 1

This method is at the top, thank you to them for sharing their
[HTC Sensation] quahog_convo:
Just did this via Method 1 and verified it worked for an AT&T SIM.

Awesome! Thanks :D
[HTC Sensation] craig1965:
I have unlocked my sensation with method 2 there's no question about every sim card I try works however when I go to bootloader screen and choose simlock I get

fat 32 init ok

Open MCCMNC file fail

Open CID file fail

My question is if its stuck like this will my carrier pick this up if I have to do a warranty return and what can I do to overcome this
[HTC Sensation] xplod4202:
You don't have to do anything in bootloader, ones you use method 2, your phone is unlocked.
[HTC Sensation] K_Dizzle:
sorry this may be mentioned but is there any reason why i get sh-3.2# in adb when i enter the strings -n 8 /dev/block/mmcblk0p6 i get a list of currently defined functions is there any reason why?
[HTC Sensation] recondo1202:
Sweeeeeeeeeet!!!!

Method 2 worked flawlessly!!! I'm UNLOCKED!

Thank you very much!
[HTC Sensation] pro714:
trying to unlok but when i type su its says permission denied

---------- Post added at 01:53 AM ---------- Previous post was at 01:52 AM ----------

any help plz

---------- Post added at 01:55 AM ---------- Previous post was at 01:53 AM ----------

my htc sensation hboot is 1.18.00
[HTC Sensation] ClydeB1:
As stated in the first post, you need a rooted device. The fact that su doesn't work in terminal emulator means you are not rooted. You can follow the steps in the sticky for s-off and rooting your device.
[HTC Sensation] Tempestrs4:
Is this affected by changing roms? ie If i'm sim unlocked running cm7 then flash a sense 3.5 rom, will it still be sim unlocked?
[HTC Sensation] xl VipeR lx:
great! make sure u vote
[HTC Sensation] xl VipeR lx:
yeh, i think the code is located elsewhere. you are definitely locked?
[HTC Sensation] xplod4202:
can dose commands be entered via terminal on the phone itself?
[HTC Sensation] bachviet:
T-Mobile Sensation 4G - unlocked code worked for me.

Thanks.
[HTC Sensation] xl VipeR lx:
Possibly. Try it. If you can and then post the dumps. We will read them for you
[HTC Sensation] skygear:
FYI - i have 3 sensations - so far using terminal (installed from market) on my primary device, i pulled the first code- HT of course _ then using root explorer, opened on the device as a text file and scrolled down a few pages and saw the code - i will try with the other 2 and
[HTC Sensation] xl VipeR lx:
Great. I'll post a terminal guide
[HTC Sensation] skygear:
i used all the same commands!
[HTC Sensation] xl VipeR lx:
Did you find the file in mmcblk0p6?
[HTC Sensation] xplod4202:
Here are my files. Thank you.

My IMEI starts with 355.
[HTC Sensation] skygear:
yeah it was in "6" if we can get some other input here I'll dump more sectors and look through them too.

do we know for a fact that the unlock codes are 8 digits on all the devices? regardless of the serial #?

how many bytes, sectors etc is the mmcblk ?
[HTC Sensation] skygear:
its not in

mmcblk0p1 - boot mentions root also @ sw stuff

mmcblk0p2 mentions 'security level is open" another few lines mention LMISsbl12_security_on:simlock_magic

mmcblk0p3 fukc! 32mb file... got some reading to do!
[HTC Sensation] xl VipeR lx:
Are you decoding them our just reading the english bits

I dumped 20 blocks p1 to p20. Mine is sh unlocked. But still found nothing. interestingly one noob pmed me to say he used super cid before and now his code in front of imei was 11111111.

He never got back to me whether he tried it or not
[HTC Sensation] xl VipeR lx:
did you try your other devices?
[HTC Sensation] xl VipeR lx:
Sorry bruva. Yours is sh. Serial number

Code isn't there. Not sure where it is or if we will make a breakthrough
[HTC Sensation] skygear:
I'm trying plain text first on 2 "S" serial #'s then i'll toss the files onto a pc and use other tools

i'm wondering if we compare an unlocked dump against another if we could just write the data ourselves and flash the file

I mean the it is writing something to a secured area, thats why the devices 'reboot' once the unlock code is entered
[HTC Sensation] skygear:
i still think we just got lucky on the plain text find.

my thoughts are reading them in a hex editor
[HTC Sensation] pantect:
I tried it and it worked for me, Tmous, Thanks for the great guide.
[HTC Sensation] xl VipeR lx:
I tried one. It want much good. Erich one do you reckon we should try
[HTC Sensation] xl VipeR lx:
I was thinking the same also because. I noticed it said sim lock in blk2. But it was gibberish next to it. The encoded stuff
[HTC Sensation] ClydeB1:
No it's not affected by changing roms.
[HTC Sensation] Dhanu:
I followed the following instructions

http://xdaforums.com/showpost.php?p=16932972&postcount=2

Step 7 was not needed for me. When I typed in "su" it said command not found.

Anyway I skipped it and went to step 8 and was able to get the unlock code.
[HTC Sensation] mrtkts:
method 1 worked on my sensation 4g but now im trying on my mytouch 4g slide, method 1 and method 2 failed. it says string not found.

im sure my phone is s-off and rooted
[HTC Sensation] sieempi:
There's a solution for you also, check your forum.

Via XDA App
[HTC Sensation] mrtkts:
i found solution here ;) after installation of busybox, method 2 works like charm

tnx
[HTC Sensation] sinisin:
No. Once you unlock it stays unlocked. Changing roms doesn't revert the process.

Sent from where ever I was when I posted this
[HTC Sensation] sinisin:
I should read more. Dunno how I missed it but I did.

Sent from where ever I was when I posted this
[HTC Sensation] -=knop=-:
re strings

its strange that some phones have strings binaries available while others dont.... maybe there is a way to install those into the phone?

how about cat command? it should display file contents too...
[HTC Sensation] Bxsteez:
I gave it a try on my T-Mobile Sensation 4G and I was able to get a code from method 1. I can't say the code is legit or not since I do not have a valid sim card from another carrier.

I have a Verizon LTE sim card but that seemed to give the network unlock unsuccessful error message.
[HTC Sensation] ced357:
Thanks a lot...

With method 2 my sensation is now sim free...

:D:D:D
[HTC Sensation] bosslabs:
Method 2 is the easiest unlock method I have seen ever. Thanks ViperX.
[HTC Sensation] Bxsteez:
Quick question. Will moving my device from S-OFF to S-ON knock out this unlock?
[HTC Sensation] Eilkh:
Thank you for this guide! ;)
[HTC Sensation] krarvind:
i followed the method 2, the diag stuff but when i reboot the phone its stuck at htc, and when enter fastboot, it goes quickly again to diag stuff, how can i get out of this? s-off, cwm and installing hypersensation went great. wanted to unlock, but stuck at htc.
[HTC Sensation] Bxsteez:
Yea i had that problem. Turns out i didn't read the directions carefully enough. Did you do the diag stuff and then restore your backup?
[HTC Sensation] krarvind:
restore my backup? i didn't even get a chance to., after it said clean s58 data, it just sat there with those two options, so i pulled the battery and put it in, rebooted, its stuck. so i did adb reboot bootloader which works but moment i select bootloader options, it goes to the diag stuff so quickly that i cna't enter recovery to mount and delete that file. any ideas?

What is supposed to happen after it says clean s58 data ok? it goes back to the PYD service DIAG 1.00 screen and just sits there.
[HTC Sensation] Bxsteez:
I can tell you what I did. I pulled out my SD card and went into bootloader and then i put the SD card back in and chose recovery.

Of course you could do it the right way and delete the nbh file from the root of your sd card by using a microsd card adapter and plugging it into your PC.

I think there is an adb reboot recovery command too. That should jump you right into recovery without going into bootloader again.
[HTC Sensation] DrewMullen:
this explains my feelings

http://www.youtube.com/watch?v=mM1Gqqhy_m0#t=84
[HTC Sensation] krarvind:
I did do a nandroid backup after s-off, cwm before hyper sensation but not after that and before unlock ( my bad!). i just reflashed hypersensation, still stuck at boot screen. my sd card is somehow corrupted?

Edit Post: Back up and running now, i came from galaxy S which has an internal sd card , hence didn't think of pulling sd card to delete the file resp for unlocking, did that, went into reovery, factory reset, format sytem, reflash, i am back up and running. now. will try a different sim card. thanks for the help.
[HTC Sensation] Bxsteez:
Your SDcard should not be corrupted. If you restore your the backup you made before beginning the sim unlock or an old backup would be fine. That should fix the stuck at boot screen. Also keep in mind first boot takes a bit longer.

I had the same issue as you as these are the steps i did to fix.
[HTC Sensation] krarvind:
yes, i am back up and running. thanks for help. even experienced flashers can panic a bit. i have written many guides for flashing but this one gave me a bit of panic, late night flashing i guess.
[HTC Sensation] Bxsteez:
I had the same panic. I let it sit for like 20 mins too waiting for it. Then i had to go back and reread the instructions and i totally missed that restoring part.
[HTC Sensation] krarvind:
but the funny thing is even if you had a backup done, unless you can get into recovery ( which you can by adb), you will get stuck at the HTC boot screen, plus after that clean s58 data, you have to pull the battery and put it back, long press power does nothing. anyway its all good.
[HTC Sensation] timsah:
@xl Viper lx

I translated your guide into german. I hope you don't mind. I ofcourse mentioned about you and your thread ;)

http://www.pocketpc.ch/htc-sensation-root-rom/145972-anleitung-htc-sensation-simlock-entfernen.html
[HTC Sensation] guitarmaniatico:
Thanks!

What can I say ..... perfect work, took a little while, but it completely work.

I did it with method two on a T-Mobile Sensation.

Thanks a lot, you rock!!!
[HTC Sensation] loni90:
Htc evo 3d?

will this work on HTC EVO 3D?

i want to buy one, but its locked, but i want to unlock it - is it possible?

thanks!
[HTC Sensation] Bxsteez:
I don't think same method will work with the same files but there may be something about unlocking the EVO 3D in the Evo 3D thread. I didn't know the Evo 3D had a sim slot? Or are you trying to unlock it on the CDMA network? I'm not even sure that is possible.
[HTC Sensation] sieempi:
This is the thread (Evo 3d GSM aka shooteru): http://xdaforums.com/showthread.php?t=1272082

Works also with any Sensation (no wipe).
[HTC Sensation] Edwin320:
Method One worked like a charm!
[HTC Sensation] Zirowe:
Hello guys, I'll buy tomorrow a sensation with simlock, and I would like to unlock it to use it on another network.

Since it's t-mobile locked, and I think the warranty is to them, I would like to use a reversible method.

Of course I know, that if I s-off the phone, they won't repair it.

But, if I do method one, then before repair I undo the root and the s-off, will the sim unlocking woid my warranty?

As I can see method 2 is similar to what the xtc clip makes, and the xtc clip method on other htc android devices (I know that the sensation as of now is not suppoerted) woids the warranty forever, so I would like to try the first method.

What's your opinion?
[HTC Sensation] knotrkr:
Thanks a million man. I know it works on AT&T but can anyone confirm if it works on Virgin mobile as well? Or is it just, once it's unlocked, it works on any sims card period?

Thanks alot.
[HTC Sensation] gammahighuk:
hi friend i have htc sensation tmobile need repair my htc sensation

i have htc unlocked by revolutionary succes PG58DIAG.nbh clean sc58 ok

but says no serviceee with all sim card

i flash with rom and repeat process of unlock but no signalll

please help me

best regards