yashsingh1/xdaforums huggingface dataset:
[HTC One S] ascot17:
If you are rooted and if you have Busybox installed, then you MAY be able to unlock. There have been some problems with the 1.14 hboot, however.

The only way to find out is to try it!
[HTC One S] mrko==:
i must still buy it..i've found this at 170 euro..should i buy it?
[HTC One S] s10shane:
i got the un_lock_code its:060410772

then i put the last 7 of my imei number: *******

then i put it in the automatic code generator, and it gave me this: 0564 9864

i put a at&t sim card in my phone then booted it up. i put that carrier unlock code in, and it says unlock unsuccessful. thats where i am lost. lol
[HTC One S] ascot17:
Did you enter the number as 0564 9864 or as 05649864 [with no spaces]?

Only the 2nd one will work...
[HTC One S] s10shane:
I did both since they both didn't work. I will try it again though.

Edit: ok now it unlocked my phone with no problem. that is odd. it didnt work when i tried to unlock it when i was running ParanoidAndroid JellyBean v2.23. but i just installed TrickDroid v7.0.0 which is the stock tmobile rom and i put the unlock code in and it worked perfect. i guess u have to run an htc sense rom when putting in the unlock code? well anyways thanks for the help.
[HTC One S] nwdrifter:
Thanks to the OP for posting this. It worked as posted. As a note to first time users, you will want to make sure your handset is an S4 not S3. Lastly if you are on CM10 this will NOT work. You will need to go back to stock or go to Trickdroid ROM first.
[HTC One S] glenroebuck:
quick question on the first page the math is wrong?

when you subtract 063312345 - 56781234 = 6531111 which is already 8 digits so you don't add a zero //?? correct?
[HTC One S] WCCobra:
6531111 is 7 characters
[HTC One S] glenroebuck:
ignore me I am high lol

one thing I did find was that you can't use a swype like keyboard in term em - I got the no such error when I went to the asop keyboard it worked greatl.

hmm I am on dark jelly and it won't take the unlock code either - maybe go back to stock
[HTC One S] anonymous27:
tried all methods but none of them works. it gives me a blank Un_lock Code. please help im using a one s from t mobile
[HTC One S] ascot17:
Are you able to read the mmcblk0p6 file?

If you are, and it contains no UN_lock_code, then an unlock may not be possible...
[HTC One S] magiconthetire:
This worked like a CHARM! :)

Thanks given!
[HTC One S] Mathato:
Just got my Straight Talk AT&T Micro SIM in the mail(Since T-Mo is unwilling to work with a long time customer). I was spooked when i was getting "network unlock unsuccessful" because I've been waiting about a week for this SIM. What do you know. You read a few pages and figure out CM10 wont cut it...

Restored to Energy Rom. Entered Unlock Code. BOOM. Unlocked..

Thank you to to anyone and everyone who worked on any part of this process! :good::good::good::good::good::good::good:
[HTC One S] Joro_D:
I just want to thank you guys, it worked like a charm! (bow) I've rooted my phone first and installed TrickDroid with the presumption that it will not be needed to complete this procedure, but bummer... it gave me the same problem (mine's T-mobile). So followed all the steps and voila! :) Thank you again.
[HTC One S] ascot17:
You are very welcome. I have now added a note in the OP about CM10 based ROMs. The thread is getting quite long now and not everyone is going to do the reading!
[HTC One S] maddog497:
Just completed this and want to thank you.

The only issue was that I needed busybox.
[HTC One S] eneka:
So after i cracked my screen, I had my original phone replaced by HTC (I was in taiwan at that time), they ended up replacing the phone giving a refurb/like new.

Now I have a problem unlocking...it's not working!

after typing the string of code in terminal I get the unlock code and the imei, however the imei is different than what's on the back on the phone and using *#06#

I then realized that the imei that was showing in terminal was the imei of my old phone..so after trying to generate an unlock code with both imei's neither of them works..
[HTC One S] mfsr98:
By seeing so many times new posts on this thread, I know the answer: Flash a ROM that is not CM10.
[HTC One S] vulcanize:
Just on a whim I tried it with my T-mobile Note II and could not find the UN_lock_code on emulator either :(
[HTC One S] wvitalik:
Really works!! Thanks a lot! :good:

I had some problems with installing BusyBox on Stock T-Mobile 2.35 but it runs on Customs Firmware.

P.S. I have one more Problem, I tried several Custom FirmWares and I have the same problem Wi-Fi does not work. What can I flash to have a Wi-Fi on my T-Mobile HTC One S?
[HTC One S] gszabi:
LOL man Samsung has different security.
[HTC One S] krlwarrior:
Just wondering, isn't this phone supossed to not have sdcard? Or there are some diferent versions? I'm asking because I'm plaining to buy it, thanks :)
[HTC One S] WCCobra:
There is an internal flash memory 16GB, The One S does not support external SD cards. The post is referring to moving the script off the internal user partition to the system partition. The user partition does not allow execution of shell scripts.
[HTC One S] dale_cooper:
So I'm on AOKP Jellybean Milestone 1 - unlock didn't work because I think its cm10 based?

So basically I need to temporarily flash a sense rom, unlock it, and if i restore my AOKP JB backup will I be ok or will it revert the unlock and be locked again?
[HTC One S] alphar:
doesn't seem to work for me either. I'm rooted on my stock sense Rom and I obtained my unlock code (088900744) from Es File explorer. My last 7 digits of my Imei are 0095337. According to the guide that Imei would convert to 00995337.

Therefore my sim unlock should be..

Unlock code 088900744 - 00995337 = 87905407

When I type in the sim unlock with another sim card in my phone, I get a message saying that its an incorrect code. Any suggestions?

Update: I used method #2 from the OP and got a different sim unlock number and it unlocked my phone perfectly! :)
[HTC One S] cardidark09:
Your were supposed to flip the last seven digits of your ime to 337 0095 then add the 337 to get 13 then take last digit and put in the middle which would end up 33730095
[HTC One S] Jocantonio:
HTC One S C2

Good afternoon anybody knows if this method would work on the HTC One S C2 ?
[HTC One S] ascot17:
You will be ok once the backup is restored. You only need to unlock once.
[HTC One S] ascot17:
Unlikely I think. I believe the C2 is a dual-core version of the S3 and the method doesn't work for S3.
[HTC One S] joseph230:
Actual tutorial worked for me like a charm :)
[HTC One S] cardidark09:
Worked like a charm for me. Method 1
[HTC One S] cjcm:
I can not install busyboox, thats why that command line sends me not found. I am rooted. Seems like my phone doesnt let anything to write in the system folder ... why?
[HTC One S] ttaidapos:
Hey guys, got my unlock code but I'm not getting a prompt with another SIM. I'm on a stock T-Mobile ROM. Is there a key sequence we can enter in the dialer to bring up the SIM unlock screen? Do I need to remove ROOT? The SIM I tried is easily 7yrs old from Europe.
[HTC One S] cjcm:
How did you get the unlokc code,. I am facing the esact problem, but i can not install busybox. HOw you resolve the permision denied issue, execute permissions?
[HTC One S] cjcm:
After bootlooader unlocking, falshing recovery, rooting, entering a bootloop, softbricked phone, paying webpages and finding they did not had my unlock code, exploring internet like 3 pages per minutes. Man , thank you. THANK YOUUUUUU. You fkin rule.

I was getting not found error, also Permission denied with the script. Now i am done. Thanks. Your method works. Also thanks to the owner of this thread. He should put this method there too.

For people who can not find the dev folder. IN Es Explorer click serach, in types select all and seach for block. Its a folder, inside it, it is the mmcblk....6p. !!!!!
[HTC One S] molo_Ono:
Thanks to OP for posting this and to all those who helped make it happen. I was able to unlock my SIM on the S4 version using method 2.

The update that I wanted to share with you all is that I was able to keep this unlock on a custom ROM. I am currently running Dark Jelly S Edition (build 1.1) and still have mobile connectivity with my AT&T SIM with HSPA+ speeds. I should mention that I have the Nexus 4 and so my SIM was already setup for 4G (as opposed to LTE) on AT&T's end.

What I did:

1) I unlocked the SIM using method 2 on STOCK ROM first.

2) Then I flashed Dark Jelly S Edition with CWM recovery.

3) Went through all the set up with my SIM card in. At this point I didn't have any connectivity. I turned airplane mode on/off and viola.

4) I used the APN settings found here: http://xdaforums.com/showthread.php?t=1791526

5) Reboot just to refresh things.

I'm super happy to have a close-to-stock ROM with 4G speeds on a compact light phone that I don't have to baby for fear of scratching it. It's my weekend warrior.

Cheers!
[HTC One S] notoxa:
Hey guys, thanks OP for the tutorial.

Quick question - if I buy the phone locked, will I be able to unlock bootloader, root, then follow this tutorial to perform an unlock, all without the sim the phone's locked to?

For example, if I buy this phone locked to Orange in the UK, can I unlock the bootloader, root it and unlock it without an Orange sim?

Thanks!
[HTC One S] ascot17:
Yes, this should not be a problem, however if you buy a phone locked to Orange (eg a PAYG phone) it will normally come with a sim!
[HTC One S] notoxa:
Good point! However, I'm thinking of buying from a second-hand website (smartfonestore, to be precise - £184 for perfect condition One S!), so it won't come with the sim. You must be right though, all I need is boot and maybe some wifi/store functions to unlock, then I can pop in my giffgaff sim.

Thanks :).
[HTC One S] kdm212:
badass! thank you sir!
[HTC One S] flywatt:
My HTC One S is rooted, busybox installed. I tried method 1. Got the message "Strings not found". I went to method 3. Again, all fields say "not found". I'm stumpped.
[HTC One S] flywatt:
Got it through adb. Unlocked and working with Net10.
[HTC One S] jsergan:
Hi all, i have a problem, there is no Un_lock_code in mmcblk0p6, in terminal emulator i've got this:

root@android:/ # /system/xbin/busybox strings -n 8 /dev/block/mmcblk0p6

/system/xbin/busybox strings -n 8 /dev/block/mmcblk0p6

macaddr=1C:B0:94:C2:30:6A

20121027

41AD52AH02897

HT26JW404419

|}>@ik&@+]

AS@|}>@ik&@+]

AS@|}>@ik&@+]

AS@|}>@ik&@+]

1.75.997.1

EBR_Update

1.75.997.1

EBR_Update

any help?
[HTC One S] ascot17:
I suspect you have a S3 model and not a S4 :(
[HTC One S] asdfvtn:
After much stupidity, I got it!

Thank you very much for this guide, it was awesome!
[HTC One S] dorezen:
thanks for the guide, this worked like a charm after i flashed back to T-mobile USA 2.35 RUU. tried the phone with an at&t sim and was able to make calls but for some reason i wasn't able to connect to the data network during the 5 minutes i got to use the sim.
[HTC One S] jsergan:
No, i have a S4, just bought an unlock code on ebay and it works, but thanks anyway!
[HTC One S] Tech Star:
So the problem I am having right now is when I put in my Simple Mobile SIM card, no unlock code box shows up for me to put in the unlock code. Is there something wrong?

My device is rooted and uses the original rom it came with.

Edit: I upgraded to TrickDroid and I still have the same issue. No dialog comes up for me to put in the unlock code.
[HTC One S] Qs5:
Is it normal that my IMEI number from *#06* is different from the one shown in "strings -n 8 /dev/block/mmcblk0p6"?
[HTC One S] ascot17:
Could the phone be unlocked already? Do you get a signal with your new sim?

No - they should be the same!

That said, you could work out 2 different unlock codes using the 2 different numbers and try both....
[HTC One S] Qs5:
Well I did have to send my phone in for repair, they changes my mother board I believe. Or gave me a brand new phone. On the back of my phone near the sim tray the IMEI matches the one for *#06# and it worked out properly. c;
[HTC One S] Punnyabrata:
Will this work on the AT&T One X?
[HTC One S] ascot17:
No - the At&T device does not have the code on the mm0p6 block.
[HTC One S] kam777:
Fido HTC One S Step 1 worked for me

Hi Just letting everyone know, I am on fido I had already rooted my phone. I tried the first method and it worked perfectly. I inserted my friends' telus simcard in my fido HTC, it asked for an unlock code. I entered the calculated 8 digit number calculated in method 1 and it worked perfectly...

Thanks much!!!!
[HTC One S] vlada10:
s3

Any chance to release s3 version hack sim unlock ????
[HTC One S] ascot17:
Not likely - as with the At&T device, the S3 version does not have the code on the mm0p6 block
[HTC One S] ultraprimeomega:
Simple mobile is the same sim like tmobile, no unlock needed for simple mobile

Proof, I sale tmobile phones activated with simple mobile

Get a att sim card, or net10, h2o, airvoice, verizon, sprint. Nextel sim wont work
[HTC One S] kiringichiban:
How long is the Method 3 unlock.sh supposed to take?

I am using method 3, because I lazy and I thought it would save me some time... I have copied unlock.sh into /system with root explorer and executed it from there...

I have been staring at the screen with the dialogue "Please wait... Executing script file..." for 15 minutes now. How long does it take for the script file to find the unlock code?

Thank you for this and

TIA
[HTC One S] ascot17:
The Bash script runs instantly. There is something wrong somewhere!

I would suggest using method 1 which may help you to find where the problem lies.
[HTC One S] kiringichiban:
I ended up using method 1 and it worked. Doing the math myself was more fun than I had expected.
[HTC One S] Super_Dork_42:
So you need another sim card for this? Good thing they accidentally slipped one into my box when I bought it. Or do I need a non-T-Mobile one?
[HTC One S] kiringichiban:
No need sim to get unlock pin code. But will need another carrier sim to call up the unlock dialogue to enter in the unlock code.
[HTC One S] teof95:
Will this work for HTC one x? did anyone try it?
[HTC One S] ascot17:
No - the One X does not have the code on the mm0p6 block and no-one has been able to find it hidden elsewhere.
[HTC One S] mycomputerisjunk:
Deleted..............
[HTC One S] Bert336:
T-mobile

HTC One S

guys i need some help... after waiting on HTCdev to get their services back up, i finally got my .bin from htc...bootloader unlocked, phone rooted, terminal installed but i cannot seem to be able to get the unlock code..

I decided to try it with the unlock.sh script.. well i get the following message:

awk: not found

grep: not found

/system/xbin/busybox: not found

Error: Failed to get IMEI.

I have installed busybox and granted root for terminal & busybox & Rootexplorer.

I need some guidance please.
[HTC One S] adolfo778:
Guys, please take a moment to sign this https://petitions.whitehouse.gov/petition/make-unlocking-cell-phones-legal/1g9KhZG7
[HTC One S] OzGurKan:
this works on all carriers? i am from romania, and i wanna buy an one S, locked on vodafone ro ... will it work ?

thx!
[HTC One S] Adis0ru:
@OzGurKan ... the HTC One S you want to buy has a S3 processor type that cannot be hacked (sim unlock exploit doesnt work). I am in the exact situation except that mine is locked to Orange Ro. Vodafone Ro and Orange Ro change the sim unlock codes with their ownes and if you want to buy the code from them, the prince for the unlock code is 100 EUR if the phone is still under contract.
[HTC One S] uvt_novice:
UNLOCKED SUCCESSFULLY!!! HTС One S Wind Mobile version. Thanks a lot!!!

Like for many others, the Bash Script has never worked for me, was getting error. However, methods 1 and 2 worked just fine. Used both methods just to make sure was getting the same final unlock code.
[HTC One S] Bert336:
nevermind, i had to reinstall busybox...

worked just fine, i dont have a sim to try it with so ill get my friend to go shop for go...

thanks for the Tutorial :)
[HTC One S] Super_Dork_42:
I'm unrooted and locked but I am curious. Would this invalidate my contact/warrantee/insurance/whatever?
[HTC One S] ascot17:
The SIM unlocking will have no effect on your contract or insurance. In most countries unlocking is perfectly legal.

You need to be rooted initially, however, and the only way to root this phone is to begin by unlocking the bootloader via the HTC website. You can read more about unlocking on these forums. There are suggestions that this would have implications on your warranty
[HTC One S] bayardo2001:
Thanks for posting this, just did it on my phone and it worked great.

used the SH script and then the app to get the SIM unlock.
[HTC One S] Super_Dork_42:
Cool, thanks. I already know about root and it's advantages/disadvantages (I had an Eris before that would barely even run without a custom ROM) but I'm going to wait until my warranty runs out in March to root. I wonder, if I have an extra SIM card they put in the box (I assume by accident since nobody else got one) when I got the phone, would this work to make it an international phone or would it still be on T-Mo since the card is from them? If still T-Mo, does anyone want to trade a T-Mo card for an international one? :silly:
[HTC One S] rosswhite:
Quick question if anyone can help? I'm currently rooted and have the sim unlock code, but I am planning on unrooting and going back to stock. Will running an ruu carrier lock my phone again? Will I be able to use this code even when the phone is not rooted?

Thanks
[HTC One S] adolfo778:
Yes you should be fine
[HTC One S] beyored:
I've tried all three methods and its gave me the same unlock code on all but for the life of me it won't unlock....any ideas anyone.....cheers in advance....

EDIT....i installed sense based rom and tried it and hey presto ulocked.....
[HTC One S] nicxus:
Just to get this clear. Once I unlocked it remains unlocked? Even if I factory wipe my phone in TWRP and install another rom?
[HTC One S] ascot17:
You can only sim unlock while the phone is rooted.

If you sim unlock and then go back to unrooted stock, the phone will remain sim unlocked.

If you go back to unrooted stock before you sim unlock, you will not be able to sim unlock.
[HTC One S] ascot17:
Correct.
[HTC One S] ascot17:
If you are locked to T-Mo, you will need a SIM card that is not from T-Mo to unlock.
[HTC One S] Super_Dork_42:
Thanks. That's what I wondered. Anyone want to buy a fresh T-Mobile Sim card in trade for an international one? :silly:
[HTC One S] magicninja:
ok niot sure whats going on...i put the sh file into system....changed permissions to all execute clicked on it and the only thing that popped up was if i wanted to open with browser or adobe reader.

I did all the calculations properly so decided to try this sh method.

Also the size of the sh. on download was 2kb but once i put on phone it was only 1.something
[HTC One S] VBolgaria:
can anyone help? What's wrong? I tried many times, no results.

----------------------------------------------

c:\AndroidSDK\tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

shell@android:/ $ su

su

shell@android:/ # strings -n 8 /dev/block/mmcblk0p6

strings -n 8 /dev/block/mmcblk0p6

macaddr=1C:B0:94:C6:5F:BB

20121013

41AD527X00450

HT24YW414099

1.75.997.1

EBR_Update

shell@android:/ #

------------------------------------------------
[HTC One S] RomWiz:
What is the problem here?
[HTC One S] VBolgaria:
the problem is

It should output several lines of data (including your IMEI number)

One of the lines should be [eg] UN_Lock_code=063312345

But I there is no the line with UN_Lock_code=????????? Please see above.
[HTC One S] cfhplumb:
Not sure how to root

How do I root an HTC TyTN II? I need to unlock it to switch to T-Mobile. I am running on Windows 7 (yet have got Windows Mobile Device Center Working) and would like to use this method. Thank you!

Reply to me faster:

Click to email me!
[HTC One S] adolfo778:
You can't its windows mobile. There might be an option in xda section of the titan 2

If not eBay sells cheap unlock codes

Edit: nvm about eBay forgot about new law
[HTC One S] Qs5:
The law only applies to now phone purchased after January 26th. Also we reached 100,000 signatures, so the government has to do something about it.
[HTC One S] WCCobra:
Not true. If you reach 100k signatures the government has to issue a reply. That reply could simply state their full support of the new law.
[HTC One S] GAEvakYD:
Wow this would be great IF I can find the unlock code.

I've done all the steps but can't find the two lines. I've tried partiton 6 en 7. Partition 6 gives me a lot of binary data scolling over the screen. Partition 7 looks better but to short and no unlockcode. It outputs this:

shell@android:/ # strings -n 8 /dev/block/mmcblk0p7

strings -n 8 /dev/block/mmcblk0p7

HTC__E11

00000168

3531150595650300

QCT_UMTS_RADIO_VER=1

HSDPACat=10

HSUPACat=6

IMEISVN=1

QCT_UMTS_RADIO_END=1

574908040

00000001

574908040

;].`XF\n6*

Qnkpe+['`

M!obh\!y

+^dAf(v)

;].`XF\n6*

Qnkpe+['`

M!obh\!y

+^dAf(v)

""##$%&(*+-0368;

!"#$%&(*,/26:>CG

&!&2&D&U&g&x&

7$H$Z$k$}$

&0&H&S&d&v&

!"#$%&(*,/26:>CG

,.037;AGNV`lz

shell@android:/ #

Hopefully you guys can help me. I've a HTC One V with custom ROM with root access and unlocked bootloader.
[HTC One S] adolfo778:
What carrier
[HTC One S] GAEvakYD:
Sad to must say that I don't know the carrier. The seller sold me the phone without simlock. I've tried to contact him by email/phone/sms but no reaction. :( Stupid me.

I hoped the carrier wasn't necessary for an unlock. I will try several dutch sim cards today, hopefully I can find the carrier that way.
[HTC One S] KOCTA:
I got exactly the same problem. I have 2 phones. One of them was unlocked like a charm, but another gave me the same output.

The first has HBOOT 1.14.004, radio 1.08ts.50.02.16 end eMMC-boot Aug 14 2012.

The second is newer: HBOOT 1.14.0005, radio 1.11t.50.02.22, eMMC-boot Nov 21 2012.

I think there was an update that closed the possibility to see the unlock code. Encryption or something like this.

Any suggestions?

Both phones are with unlocked bootloaders and rooted. I can make them S-OFF and copy partition 6 from one to another but I afraid it will be fail...
[HTC One S] sonny-67:
Ok, being trying this for ages and keep getting strings not found or permission errors.

So, tried copying the mmcbll0p6 folder to the sdcard to view it on the PC.

However, I have no files within this folder???? I Have another folder, called mmcblk0p6 - but no files.

Any ides
[HTC One S] smiter:
hi there, just unlocked htc one s with 1st guide

string doesn't worked for me so i have used:

"This may be widely known but I used a slightly different approach to get the code.

I first tried the Strings command but got Strings: not found. However, I cd into the /dev/block directory and found the mmcblk0p6 file. I then moved that file over to my sdcard - "dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.bak"

Next, I connected my phone to my computer and mounted the sdcard. I opened the mmcblk0p6.bak file using Textpad in the Binary format. I was able to find the code just like how it is shown in the image in step 6.

Textpad can be downloaded at textpad.com. You can probably use any editor which is capable of opening files in binary or hex format."

i used es explorer to open that file...

or refer to http://xdaforums.com/showthread.php?p=22320474

i have tried 2nd guide with that small app, but that code didn't work and was different that mine.
[HTC One S] cichy20a:
Works fine on S3 CPU, just removed Orange Sim-Lock just use provided keygen to get the code :)
[HTC One S] eneka:
Is there anyway to network unlock the phone now that S-off can be achieved?

This method doesn't work me me since my phone was a RMA device and the software/imei/ is funky :(
[HTC One S] wanxu:
I have the same problems here :( It's after going to warranty. They should have done anything...