yashsingh1/xdaforums huggingface dataset:
[HTC One S] invensmaster:
Just pm the numbers thanks I hope I can be of help
[HTC One S] itsmikeramsay:
Gonna do this the minute I grab mines. Lol

Sent from ICS device!
[HTC One S] vdub804:
It works mine is officially unlocked:D
[HTC One S] Totòòò:
Can u pls post the method to unlock?
[HTC One S] ascot17:
I will do later today.

Just need to write a idiot-proof guide! ;)
[HTC One S] itsmikeramsay:
Imma need that one lol j/k. Thanks for the hard work though.

Sent from ICS device!
[HTC One S] Totòòò:
Haha thanks u r great!
[HTC One S] Istvan_86:
Hello, actually I only have acces to a ONE S few days a month but if you tell me what info I should search in ONE S (I don´t know exactly what is mount points) maybe I can help you.
[HTC One S] PerGon:
If you mean the mounting points for One S, this is what I get when I do "adb shell mount"

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mmcblk0p33 /system ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p35 /data ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p34 /cache ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p26 /devlog ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p17 /firmware_radio vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p18 /firmware_q6 vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p19 /firmware_wcnss vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
tmpfs /data/secure/data tmpfs rw,relatime,mode=755,gid=1000 0 0
DxDrmServerIpc /data/DxDrm/fuse fuse.DxDrmServerIpc rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
htcfs /data/htcfs fuse.htcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
/dev/block/vold/179:36 /mnt/sdcard vfat rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard 0 0
/dev/block/vold/179:36 /mnt/secure/asec vfat rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0

Hope it helps
[HTC One S] hasoon2000:
Can you run this command in Android Terminal Emulator (from your phone)

cat /proc/emmc

Thanks!
[HTC One S] PerGon:
app_184@android:/ $ cat /proc/emmc

dev: size erasesize name

mmcblk0p23: 000ffa00 00000200 "misc"

mmcblk0p22: 00fffe00 00000200 "recovery"

mmcblk0p21: 01000000 00000200 "boot"

mmcblk0p33: 67fffc00 00000200 "system"

mmcblk0p30: 00140200 00000200 "local"

mmcblk0p34: 0ffffe00 00000200 "cache"

mmcblk0p35: 97fffe00 00000200 "userdata"

mmcblk0p26: 01400000 00000200 "devlog"

mmcblk0p28: 00040000 00000200 "pdata"

mmcblk0p36: 27be00000 00000200 "fat"

mmcblk0p31: 00010000 00000200 "extra"

mmcblk0p17: 02d00000 00000200 "radio"

mmcblk0p18: 00a00000 00000200 "adsp"

mmcblk0p16: 00100000 00000200 "dsps"

mmcblk0p19: 00500000 00000200 "wcnss"

mmcblk0p20: 007ffa00 00000200 "radio_config"

mmcblk0p24: 00400000 00000200 "modem_st1"

mmcblk0p25: 00400000 00000200 "modem_st2"

Thanks
[HTC One S] ascot17:
This is not an exhaustive list. It shows only mmcblk0p16 to 36.

When I search /dev/block manually there are also blocks 0-15.
[HTC One S] diogodji:
Hey guys,

I already tried both Method 1 and Method 2 and they give me the same SIM Unlock Code.

My UN_Lock_code is 075235360

My 7 last IMEI digits are 8582148

Therefore my SIM Unlock Code should be 6039 6778.

However as I type in this number into my phone it says that the SIM Unlock Code is incorrect. :(

Am I doing anything wrong?
[HTC One S] baseballfanz:
Your One S the S3 or S4 version?
[HTC One S] diogodji:
S4, unlocked bootloader, rooted.
[HTC One S] ascot17:
No, you have the correct code.

There are now several people on this thread reporting the same problem. Buying a code from a third party (eg eBay) results in the same unlock code which does not work.

It is possible that HTC have changed something in the phone hardware/software in recent versions of the phone. The only solution in these cases may be to buy a code from your carrier. :(
[HTC One S] PerGon:
Sad news :(

It's probably a dumb question, but flashing older versions of rom/baseband/radio or something will not resolve this, right?
[HTC One S] diogodji:
This is indeed sad news since buying a code from the carrier is unthinkable. It will cost me around €120.

I will try to go to a store which unlocks mobile phones near me to see if they can do anything. :(
[HTC One S] PerGon:
Indeed, very expensive!

Let us know if the guys in the store can managed it!
[HTC One S] diogodji:
Well I left my phone in the store this morning and they just phoned me saying that currently there is no chance of it being unlocked. They explained that they tried to insert the unlock code but it didn't accept. (exactly what I did at home)

Honestly I don't know what to do know, shall I wait for a new unlock method to come out? (if it will come out at all)

Or shall I return it for another?

I'm so annoyed right now, I was really into this phone and enjoyed it a lot.

Anyways, this is a heads-up for anyone trying to buy an HTC One S and is looking to unlock it.
[HTC One S] senone:
work for me, popped in a old nextel sim and entered generated the code.. unlocked from network will try tomorrow with att sim at work...

thanks great job..
[HTC One S] ascot17:
I don't think so.

It could be HBOOT related, however I can think of no reason why HTC would WANT to prevent the phones from being unlocked.

It may be worth an enquiry to HTC direct via their website.
[HTC One S] KedKaeDee:
ookkkk

call me a noob but what exactly is the benefit of this?
[HTC One S] ascot17:
It allows you to use any sim card in your phone (i.e. not just the one from your network provider).
[HTC One S] Matekofski:
I have one noob question...can I in any way brick my phone or do something to it if I do something wrong or if it's the wrong procesor (S3, not S4)?? Thank you very much for your help... :)
[HTC One S] ascot17:
No there is nothing in this process that will brick your phone. The method will only work for the S4 processor however (and not all of these it appears).

There are ways to check whether you have S3 or S4. Just search these forums.
[HTC One S] SuperDave81:
Worked on a T-mo One S bought from Walmart two days ago. Had to install busybox first to get the strings command to work. Used method 1 (math is fun) and a friend's AT&T iphone micro sim, Thanks!
[HTC One S] danial.aw:
i have a Bell HTC One S ... tried the method and tried entering the code onto the sim card... no luck though... keeps saying incorrect password everytime :(... i dont know what to do or how to unlock this... Unlocked Bootloader + custom rom: Leedroid ...

hope someone can message me
[HTC One S] PerGon:
Hi there

More people had the same problem you have. We start to believe that the method was been changed (HTC, carrier, I don't know...)...

I buyed this phone precisely because it was easy to unlock, and still I haven't done it successfully :(

Make sure you are doing the correct calculation. Tried the 3 methods? Same result? So you probably are in the same situation as I am (and at least other guy, check last posts).

I already tried to buy the unlock code from a 3rd party site, they gave me the same unlock code. Still, no success!

I really start to believe HTC changed something... is there someone who can confirm this or give us some enlightenment on this topic? :)

Thanks
[HTC One S] diogodji:
From what the people told me in the store I went to to unlock this phone, what I understood was that HTC must have fixed the flaw that allowed this to be unlocked; and locked the phone in another way..

Anyway, they also told me to hold on to the phone (I was already considering exchanging it for another), because an unlock method would be released in about a month or so.
[HTC One S] danial.aw:
well that completely sucks :(... lol got it for a gift and now its a waste cuz i gotta take it back... but ya i tried all 3 methods and generated the same code... and the purchased code was also the same one... kind of stupid that this problem is occuring
[HTC One S] WCCobra:
Try this script instead. It looks like your busybox is not installed in /system/xbin
[HTC One S] Frankyg:
Thanks for that, still failed though. I'm certain that I installed busybox to /system/xbin (default location)

Maybe T-mobile US will just give me the unlock code, seeing that I'm in australia and they won't be making any money from me anyway!
[HTC One S] Enzopreme:
Didn't work for me either :confused: For those of us that were unsuccessful with the process we should list the specifics of our phones to try and see if there's a pattern. I highly doubt its HTC thats responsible for it and t mobile is a possibility but I NEVER updated my device OTA so I doubt they put out a patch either. Let's get it worked out gentlemen!!

Device Specifics:

TMOUS HTC One S Hboot Version 1.09 running CM10 nightly 9/15/12
[HTC One S] Frankyg:
So is this the only sim unlock solution? (apart from the pay services) If we can't get this to work, then kinda stuck??
[HTC One S] diogodji:
Well these 3 methods are currently the one ways to unlock your phone. Unfortunately there seems to be many phones which can't be unlocked via these methods (mine being one of them).

I really hope some new method comes up, as I really want to start using my One S.
[HTC One S] Frankyg:
Ah well - I might just cough up the $15 and be done with it.

Anyone got a contact email for T-mob USA that I can request an unlock code?
[HTC One S] PerGon:
True. In fact, those 3 methods do the same. Each one is just a different way to obtain the "unlock code". But the code obtained will be the same! Even in the pay sites, one week ago, the code they gave me, was the same that I obtain in this methods.

I don't know who might have changed the method... the carriers? HTC?

I also hope that some new method comes up!
[HTC One S] Frankyg:
You mean that even the pay sites could not provide you with an unlock code that works?
[HTC One S] PerGon:
Correct.

I used one of those pay sites two weeks ago and the code they gave me was the same I had already calculated. I exchange some emails with the support and in the end they refund me (I had to make a video showing me checking my IMEI and putting the unlock code). Actually, all the support was very good. But unfortenly, it didn't help :(

And if I go to carrier to unlock the phone, they will charge around 100€ for it...
[HTC One S] adarsh_4u:
I just unlocked my tmobil one s using script method. Initially unlock code was not working on CM10 rom . To get it to work I had to install Axiom,s ROM and unlock code worked flawlessly.
[HTC One S] PerGon:
It did not work for me! Which version of Axiom,s did you use?

Thanks
[HTC One S] Enzopreme:
After multiple unsuccessful unlock attempts, I switched from CM10 to Viper Rom 1.1.1 and tried again with the same code, and same AT&T mini sim, and VOILA!! I'm unlocked. For those of you who can't get unlocked try switching ROMs and flashing new boot.img's. It should work.
[HTC One S] Crusher16:
Which boot.img did you use?

EDIT: Flashed Axiom Senseless, put my AT&T sim card in, entered the unlock code and BAM. Now unlocked.

Back on CM10 now with no issues.
[HTC One S] Enzopreme:
I was using whatever the boot.IMG flashing tool uses for Viper Rom. I also have hboot 1.09.
[HTC One S] PerGon:
I just flashed the Viper Rom, and no luck. :(

My hboot is 1.14, this is probably the cause, right?

Does anyone with this hboot where able to sim unlock your device?
[HTC One S] ATSPerson:
Success

I tried this a week ago. I was running Unofficial AOKP JellyBean Build 2 and followed the instructions at the beginning of the thread. No joy.

I just flashed Venom's Viper and Hey Presto! I'm unlocked

:D

Caveat: I'm on T-Mobile UK. The Sim I used was an old Voda with no number, I haven't actually made a call on another network so I only have the pop-up message to prove it.

Specifics:

HBoot: 1.09

Was Unoffical AOKP JellyBean Build 2

Flashed Viper 1.0
[HTC One S] Enzopreme:
What kernel are you using? Did you use the boot.IMG flash tool provided in the Viper Rom thread? What method did you use to acquire your unlock code?
[HTC One S] PerGon:
I was using stock rom (bootloader unlocked and rooted, stock kernel (3.0.8-01575-gdcba118 - root@ABM #1 - SMP PREEMPT)), and flashed the viper rom (flashed the rom and the boot.img provided with the rom).

I used the three methods (they all give the same result) and I had the code from a payed site (the code they gave me was the same I had calculated previously).

:(
[HTC One S] Enzopreme:
Flash an aosp Rom and try, and if it doesn't work, then flash back to stock, then give the unlock a shot. I know it sounds silly, but it worked for me. Can't hurt to try right?
[HTC One S] PerGon:
Well, as you say it does not hurt to try :) can you please tell me which aosp rom did you try? I would like to try the same... thanks!
[HTC One S] ady_uaic:
Hi guys,

A friend of mine has S3 version, and he wants to unlock it. Do you know if there is any way to do it, for free? I saw that these tutorials are for S4, but I was wondering if any method for S3 have been released.
[HTC One S] diogodji:
I would also like to know which ROM you used, thanks!
[HTC One S] ady_uaic:
I found out a way in my town, online, with 7 euro's.
[HTC One S] diogodji:
Did you buy the One S recently? Did you get to try the method in this thread?
[HTC One S] ady_uaic:
I didn't tried to use these methods since is an S3, and not S4.
[HTC One S] MeMoM&aVirusTI:
i just ran this Method 3 ....using Terminal Emulator on HTC One S S3 ...it seems it works ..it generated the 2 unlock codes needed to Sim Unlock the device

thank you very much :cool:
[HTC One S] lordvampire:
for those who get the ERROR: grep and awk not found...

1) i installed buybox installer from market, then installed busybox

2) installed SSHDroid

3) open SSHDroid and connect to to the phone "ssh root@ip_of_htcOneS" pass:admin (win_user: putty / mac_user: terminal)

4) "su"

5) sh unlock.sh

and i got NO ERROR saying grep not found blablabla..

greets
[HTC One S] mfsr98:
I have a question. I'm probably going to buy this device, and when I do, will I be able to root it, use this method and then unroot it again for warranty reasons?
[HTC One S] VladBelsky:
My final SIM unlock code came out as having a space after the fourth number in the eight digit code. Do I enter the eight digits without a space in the middle? Also, is there a limit to how many times I can enter the code incorrectly? I heard that on some SIM-locked phones, if you enter the wrong code a certain number of times, it becomes "hard locked" (unable to accept an unlock code anymore).
[HTC One S] /devnull:
The S4 can be rooted, first have to unlock the boot loader (unfortunately boot loader unlock has to be done at this time via HTCDev site). You can then root and then SIM unlock. To unroot and relock boot loader you flash RUU.
[HTC One S] vigorito:
hi im not sure where i need to copy file unlock.sh to the root of the sd card? im not sure where is system folder

method 1 and method 2 didnt work for me i get 2 identical unlocked codes with both methods but phone say network unlocking code unsesexfull

if can some explain where i need to copy the unlock.sh file
[HTC One S] /devnull:
Please read the OP instructions, Method 3 - Fully Automatic. In case you missed it place the script in /system and run via terminal or via root explorer.
[HTC One S] vigorito:
i read it 10 times idk where is system file its not on the root of the sd card! and even if i do it code will be the same like in method 1 or method 2 thats saying other people i read whole thread
[HTC One S] WCCobra:
Yes, the code will be identical. And you must place the script in a location outside of your SD Card, since the SD Card does not allow scripts to execute for security purposes.
[HTC One S] Chris95X8:
Just reporting here. I got the code using the first method and tried to unlock while I was on AOKP Jelly Bean. Unfortunately, it failed. Then I installed a stock ROM, Trick Droid, and I was able to unlock without any problem. Thanks very much for this.
[HTC One S] vigorito:
What version of trick droid? Can you explain how you did it? Are you again on aopk?

---------- Post added at 11:56 AM ---------- Previous post was at 11:53 AM ----------

With any file manager placing the script into system file its say failed but ill skip method 3 because i get unlock code identical from first and second i will try unlock with different rom im on aopk jelly bean
[HTC One S] vigorito:
guys one update,if you are on cm10 or aopk jelly bean or paranoid android and you cant use the code,just switch to trick droid for s4 the one tmous v7 and apply the code its gonna work i just did it i was trying 2 days to unlock with no luck with trick droid rom i unlock it in a second and then you can again switch to old rom.
[HTC One S] Chris95X8:
I got the code with the first method. So while I was on AOKP, I inserted the SIM card into the phone and a window showed up requesting the code but it wouldn't accept it. So I flashed TrickDroid v08 and did the same thing. This time it accepted it.

Now I am on CM10.
[HTC One S] vigorito:
+1
[HTC One S] PerGon:
I've just tried trickdroid v8, trickdroid v8.1 and ParanoidAndroid JellyBean and no luck :crying:
[HTC One S] farazafs:
Is this is not possible to write /dev/block/mmcblk0p6 from other unlock Phone....?

Just like... placed from unlock phone Put From Dev/Block into SDCard

# dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.img

Then Placed mmcblk0p6.img on Lock Phone SDCard but root is necessary... then

From SDCard into Dev/Block

# dd if=/sdcard/mmcblk0p6.img of=/dev/block/mmcblk0p6

Is this is possible????
[HTC One S] samstheman42:
Holy Sh*t, this is AWESOME!

Worked like a charm for me :)

Very, very happy and appreciative, thank you so much.
[HTC One S] jimpjr:
Does this work for every HTC w/S4 cpu?
[HTC One S] Chris95X8:
Deleted
[HTC One S] ascot17:
All 3 methods produce the same unlock code. If the code from method 1 or 2 does not work, you will not have any success with method 3.

Some users have reported success after flashing a different ROM. This may be your best chance of unlocking your phone with the code that you already have.
[HTC One S] ascot17:
Enter 8 digits with no space.

I don't know the answer to this - sorry.
[HTC One S] encho:
Anyone with hboot 1.13 or 1.14 managed to unlock? Which rom?
[HTC One S] madsatan:
i got the unlock code....

here is the problem

i dont have another sim card not from fido ( i am using fido)

any way to enter the code??
[HTC One S] ascot17:
No. You need a different sim card. (But if you don't have one, you don't really need to unlock!!) ;)
[HTC One S] madsatan:
i need a phone when i go back to tw next week

dont feel like to buy a new phone
[HTC One S] chachi:
FWIW also got the 'length' command error with stericson busybox so did it manually with no issues but seems it does not instantiate that command :|
[HTC One S] chong67:
When I have the Sensation, I just call T-mobile and 1 day later I got the email to unlock it.

It will be same for my new One S too right? Just call them.
[HTC One S] madsatan:
i got the unlock code

i put in a rogers sim ... i have a fido phone

it doesnt seem to do anyitng ...

or the rogers sim has to be actived?? cuz i am using a brand sim
[HTC One S] MeMoM&aVirusTI:
the first time i tried to sim unlock a HTC One S... using Method 3 ...it worked ....

but now iam trying to unlock 2 other HTC One S devices & its not working ..when i try to run ...

su <enter>

/system/unlock.sh <enter>

now it just freezes at ....length: applet not found

any suggestions ??
[HTC One S] MeMoM&aVirusTI:
ok so i tried Method 2 ....it seems that it worked ....i haven't actually tested with a sim card yet ..but the method did work

but i would still like to figure out why Method 1 didnt work ..:confused:
[HTC One S] ascot17:
It seems likely that you do not have Busybox installed on these devices. Search for 'Busybox' in the thread - there should be some help available.

Most likely your Maths..! ;)
[HTC One S] WCCobra:
Can someone name which version of BusyBox worked for them? It appears they are not all equal.
[HTC One S] MeMoM&aVirusTI:
there is BusyBox ... & BusyBox Installer (pro).....iam using BusyBox Installer Pro....it seems alot more stable

BusyBox has a tendency to crash
[HTC One S] taki7610:
Thank so much @ascot17
[HTC One S] MeMoM&aVirusTI:
Whoops ...yeah while trying Method 1 ...I forgot about BusyBox

I knew my math was good ...I double checked 3 times ..lol

anyways I had 3 HTC One S to unlock ... Method 1 worked ....Method 2 worked & Method 3

Amazing ...thanx you :cool:
[HTC One S] cwaffles:
Works great for me on a Fido One S. Just had to install busybox from jrummy and do the advanced install for the strings command.
[HTC One S] s10shane:
i cant get it to unlock my one s. this is the first one ive had issues with unlocking it. i did method 2 - Semi Automatic. i put the the unlock code + the last 7 of my imei number and it gave me the sim unlock code. but when i put in my micro at&t sim card so i can unlock it. it said unlock unsuccessful. idk why its giving me a hard time. ive owned like 4 one s phones and this is the first one to give me crap. idk if it has to do with running a custom rom or not.
[HTC One S] taki7610:
@s10shane : not custom rom, you need install BusyBox, check root ( sure youre phone rooted ), type on cmd pc ( type adb devices -

List of devices attached

HTxxxxxxx device

adb shell [return]. You should see:

root@android:/ #

/system/xbin/busybox strings -n 8 /dev/block/mmcblk0p6, so you see picture, if you have un_lock_code, you fill first frame, 7 digist imei ( you counting from bottom to top ) click ok, you have unlock code for htc. good luck :D
[HTC One S] PerGon:
Well, there are other users in this forum that could not unlock their HTC One S (me included).

As far as I know, it appears to be a common problem for all users who have HBoot 1.14. Check your HBoot version, and let us know!
[HTC One S] s10shane:
I am using the newest one. I updated it to 4.0.4 ota update.
[HTC One S] jipi:
Same here, no way to unlock. HBOOT-1.14.0002 updated to 4.0.4. Strings command shows me a lot of numbers but it doesn't show explicitly UN_Lock_code.
[HTC One S] jipi:
I couldn't wait more for a solution and I paid 10€ to unlock it. This was money well spent, sparing me a lot of time.
[HTC One S] diogodji:
You unlocked your One S and you have a 1.14 HBoot version?

Hmm, I thought the problem with the "un-unlockable" phones was them having a 1.14 HBoot version.
[HTC One S] jipi:
I confirm I have HBOOT-1.14.0002 and I unlock it by IMEI with doctorsim.com for 10€ and it took less than two hours to receive my unlock code by email.
[HTC One S] mrko==:
hi,sorry for disturb,

can i unlock an one S t-mobile usa vith this guide?

everything i know are these things:

hboot-1.14.0004

radio-1.08ts.50.02.16

opendsp-v29.1.0.45.0622
[HTC One S] an2ane:
method 1 su [enter]

strings -n 8 /dev/block/mmcblk0p6	[enter]

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

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

i dont get the unlock line imei number is there but no unlock code line fail and sad :(
[HTC One S] mrko==:
can anyone help me? :)