Jun 26 AT 3:58 PM Nick Gray 20 Comments

SIM unlock the HTC One S for free with root exploit

htc-one-s-sim-unlock

It’s a known fact that rooting Android handsets allows users to unlock a phone’s hidden potential, but now root access can also be used to SIM unlock the HTC One S without relying on your service provider or a third-party.

A while back, HTC Sensation owners realized that HTC included the SIM unlock code for their devices within the /dev/block/mmcblk0p6 block. Since then, HTC has changed a few things and “encrypted the actual SIM unlock code by adding a key generated from the phone’s IMEI number.” In order to generate the SIM unlock code for the HTC One S, users must use their phone’s IMEI number to calculate the encryption key, subtract that number from the UN_Lock_clode to generate the phone’s SIM unlock code.

If multiple sets of numbers get you all flustered, developers have come up with a Bash Script which fully automates the entire process without the need for any fancy calculations.

Obtain HTC One S SIM unlock code with Bash Script

  1. Root your HTC One S
  2. Download Bash Script zip file
  3. Extract unlock.sh file from zip to /system/ folder on HTC One S
  4. execute the .sh file directly from root explorer or open terminal emulator and run:
    su <enter>
    /system/unlock.sh <enter>

 SIM unlock the HTC One S

  1. Once SIM unlock code displays on screen(also saved to /sdcard/sim_unlock_code.txt), write the number down and turn off your HTC One S
  2. Remove the microSIM card from phone
  3. Insert a microSIM card from another service provider and turn the HTC One S back on
  4. When prompted, enter the SIM unlock code
  5. Enjoy your HTC One S on any GSM service provider of your choice.

While this root exploit can be used to get a free SIM unlock code for those with a rooted HTC One S, there are a few other options for those who don’t want to root their device. T-Mobile and most other service providers will give customers an unlock after they have owned the phone for 90 days. If you’re not willing to wait that long, you can always buy a SIM unlock code for the HTC One S for only $12.95 from third-part sources like HTC SIM Unlock.

For a closer look at the HTC One S SIM unlock root exploit, check out the source link below.  If you do you the Bash Script (or the manual process with all the fancy calculations) to SIM unlock your phone, leave us a comment below and let us know how the process goes.

Source: XDA-Developers

Nick is a tech enthusiast who has a soft spot for HTC and its devices. He started HTCsource.com (the first HTC blog) back in 2007 and later joined the Android and Me family in the summer of 2010.

    Most Tweeted This Week

  • LukeT32

    They don’t sell the One S unlocked? Not that it matters, I’m a silly VZW customer with no hope. :)

    • droidsam

      Most GSM phones in North America and Europe purchased through a service provider are locked down. you can buy sim unlocked phones from amazon or other sites, but you will have to pat full price.

  • SGB101

    If u get your phone, (even on contract),via a 3rd party store, the devices are unlocked. At least in the UK this is true.

    • Simon

      That is also true about the majority of European countries, some carriers even ship unlocked phones around here.

  • Robert

    I would like to know just what you mean by “manual process with all the fancy calculations” – is that addition and maybe even that thing 99 percent of US citizens can’t do multiplication or division.

    • green G

      maybe your a fucking idiot and think most americans cant do math, but dont spread your ignorance around..

  • sammy britton

    hey how can i unlock a three sim phone to all networks for free

  • rhonda

    What is the unlock code for an at&t htc inspire smartphone

  • niko

    hello i di everything installed super su unlocked bootloader root ok.and i cant place the unlock.sh file in the system folder using file expert.operation failed.please help

  • Carlos

    i cannot modify anything in the system folder, why? i am rooted btw.- Thanks!!!!!!

  • Gw4nM4n

    Ive installed this to my system files
    ive stert it and seem generating the number
    but i havent other sim card to test

  • camal

    how can i Extract unlock.sh file from zip to /system/ folder on HTC desire x

    • Tomatoxflames

      Extract the files to your comptuer. Then either mount your phone to your pc and transfer the files, or you can transfer the files to your SD card and use a program like es file Explorer to transfer the files to the /system folder.

  • Ran kerry

    Hi, i tried with the method but didn’t work for me, then i used a site to http://www.codes2unlock.com to get my htc one s unlock code and unlocked in simple steps. however i didn’t tried with routing or bootloader to know how they work.

  • Will

    Worked for me! I have an HTC One S and ran this script. Doesn’t have to be in the system folder. I ran mine from the SD card. I’ve now switched from 3 to Virgin and it didn’t cost me a thing. Thank you for posting this!

  • walterwalk

    Will this provide permanent unlock? I got my HTC One S sim unlocked by purchasing unlock code from http://www.prounlocking.com/htc-one-s/rs16wp9 This gave me permanent unlock in cheap cost

  • dipak bhatt

    this bash script will work with AT&T HTC One mobile

  • Abdulhakim

    Hi i have HTC mobile that is lock but can now unlock model ADR 6425 IMEI 990000652198864

  1. They don’t sell the One S unlocked? Not that it matters, I’m a silly VZW customer with no hope. :)

    • droidsamGuest 3 years ago

      Most GSM phones in North America and Europe purchased through a service provider are locked down. you can buy sim unlocked phones from amazon or other sites, but you will have to pat full price.

  2. If u get your phone, (even on contract),via a 3rd party store, the devices are unlocked. At least in the UK this is true.

    • SimonGuest 3 years ago

      That is also true about the majority of European countries, some carriers even ship unlocked phones around here.

  3. RobertGuest 3 years ago

    I would like to know just what you mean by “manual process with all the fancy calculations” – is that addition and maybe even that thing 99 percent of US citizens can’t do multiplication or division.

  4. sammy brittonGuest 3 years ago

    hey how can i unlock a three sim phone to all networks for free

  5. rhondaGuest 3 years ago

    What is the unlock code for an at&t htc inspire smartphone

  6. nikoGuest 2 years ago

    hello i di everything installed super su unlocked bootloader root ok.and i cant place the unlock.sh file in the system folder using file expert.operation failed.please help

  7. CarlosGuest 2 years ago

    i cannot modify anything in the system folder, why? i am rooted btw.- Thanks!!!!!!

  8. Gw4nM4nGuest 2 years ago

    Ive installed this to my system files
    ive stert it and seem generating the number
    but i havent other sim card to test

  9. camalGuest 2 years ago

    how can i Extract unlock.sh file from zip to /system/ folder on HTC desire x

    • TomatoxflamesGuest 11 months ago

      Extract the files to your comptuer. Then either mount your phone to your pc and transfer the files, or you can transfer the files to your SD card and use a program like es file Explorer to transfer the files to the /system folder.

  10. Ran kerryGuest 1 year ago

    Hi, i tried with the method but didn’t work for me, then i used a site to http://www.codes2unlock.com to get my htc one s unlock code and unlocked in simple steps. however i didn’t tried with routing or bootloader to know how they work.

  11. WillGuest 1 year ago

    Worked for me! I have an HTC One S and ran this script. Doesn’t have to be in the system folder. I ran mine from the SD card. I’ve now switched from 3 to Virgin and it didn’t cost me a thing. Thank you for posting this!

  12. walterwalkGuest 1 year ago

    Will this provide permanent unlock? I got my HTC One S sim unlocked by purchasing unlock code from http://www.prounlocking.com/htc-one-s/rs16wp9 This gave me permanent unlock in cheap cost

  13. dipak bhattGuest 1 year ago

    this bash script will work with AT&T HTC One mobile

  14. AbdulhakimGuest 1 year ago

    Hi i have HTC mobile that is lock but can now unlock model ADR 6425 IMEI 990000652198864