By Aldo Panessidi
If you’ve been looking for root access to SIM unlock your HTC One S without waiting for permission from your service provider or paying a third-party for it, we’ve got good news. There is a way to re-set your HTC One S device so that it can be used on any GSM service provider you choose.
You may have heard awhile back that HTC Sensation owners had figured out that HTC had included that device’s SIM unlock code within the /dev/block/mmcblk0p6 block. HTC quickly got wise to their error and encrypted the actual SIM unlock code with a key generated from the phone’s IMEI number.
Not to be out-maneuvered, some crafty developers have discovered a way to generate the SIM unlock code for the HTC One S. Users will have to use their phone’s IMEI number to calculate the encryption key, and subtract that number from the UN_Lock_clode inorder to get to the phone’s SIM unlock code.
If math makes you nervous, here’s the Bash Script that automates the process.
To obtain HTC One S SIM unlock code with Bash Script
Root your HTC One S
- Download Bash Script zip file
- Extract unlock.sh file from zip to /system/ folder on HTC One S
- execute the .sh file directly from root explorer or open terminal emulator and run:
To SIM unlock the HTC One S
- Once SIM unlock code displays on screen (also saved to /sdcard/sim_unlock_code.txt), note the number and turn off your device
- Remove the microSIM card from phone
- Insert a microSIM card from another service provider and turn the HTC One S back on
- When prompted, enter the SIM unlock code
This root exploit can be used to get a free SIM unlock code for a rooted HTC One S. For those who don’t want to root their device, you can ask your wireless provider if they’ll give you an unlock key (usually after 90 days of phone ownership.) You can also purchase a SIM unlock code from a third-party source. It should run you around $12.