I’ve unlocked a number of Walmart Family Mobile (powered by T-Mobile) HTC Desire 626s phones and the procedure, information, download links and files for unlocking are provided below.
Before we start I want to first make the following acknowledgements:
- HTC Desire 626s was released about a year ago (i.e., late summer 2015)
- HTC Desire 626s is a budget smartphone (but somewhat cool looking and the red/salmon & grey colors probably helps aesthetically)
- The SIM unlocking information provided below is applicable to other HTC models (not just the HTC Desire 626s) as well as HTC phones from other carriers (not just Walmart Family Mobile)
Today I’m working on unlocking another HTC Desire 626s which I’ll later be mailing to the person who requested who requested the phone and the unlock.
This will probably be the last HTC Desire 626s that I work on and I’ve decided to write and publish some tutorial-like information for unlocking this Walmart phone which includes, though is not limited to, the procedure for SIM unlocking which doesn’t require S-OFF for HTC.
Step one
On your your desktop or laptop you’ll need to go to this link: Android Studio – The Official IDE for Android
On that same page scroll down until you see the following platform download options:
Download the zip (or tgz for Linux). Do not download the exe file.
Step two
Open the zip (or the tgz for Linux), extract the contents and look for SDK Manager.
Run the application (SDK Manager).
When the Android SDK Manager opens in a new window select only Android SDK Platform tools and then click install package.
A new folder titled platform-tools should show up in the first window. Drag this folder out and place it in a location (e.g., desktop) where you’ll be able to easily locate it. You may also rename the folder (e.g., htc-sim-unlock).
Open that same folder and position your cursor anywhere inside and then hold the shift button and then right click. Then select Open command window here.
A command prompt window should open –

If you’d like a list of ADB (Android Debug Bridge) commands just type in adb and then hit enter. However, you shouldn’t really need most these commands.
Step three
Power on your HTC phone (remove SIM card). If it’s brand new you may have to go through some initial setup.
After your HTC phone is powered on (and perhaps some basic setup) go to –
Settings / About / Software information / More / Build number
Now tap on Build number several times until its says that you are now a developer.
Now proceed to –
Settings / Developer options / USB debugging
Click the checkbox to allow USB debugging.
Now proceed to –
Settings / Developer options / OEM unlocking
Click the checkbox to allow bootloader to be unlocked.
Step four
Connect your HTC Android phone to your computer with USB cable.
In the command prompt window type in adb devices and then hit enter.
Your phone should show up (HTCserialnumber) followed by the word device. If its says unauthorized then you’ve most likely done something incorrect in Step three (don’t worry, just verify your work and if everything was correct then conduct some of your own troubleshooting).
In the command prompt window now type in adb reboot bootloader and hit enter.
Your HTC Android phone should now reboot into Boatloader Mode –

In the command prompt window now type in fastboot devices and hit enter.
Your phone should show up (HTCserialnumber) followed by the word fastboot.
Note that in the picture about the device is LOCKED and S-ON.
Also note that there is not a FASTBOOT mode listed.
We wont need FASTBOOT Mode (we’ll use Download Mode for the HTC Desire 626s) but we will use Fastboot commands.
It should also be noted that we wont need S-OFF to unlock the SIM (carrier unlock).
Step five
If you haven’t already registered with HTCdev.com you’ll need to do so now. Don’t worry, it’s free and you can use the tools there as often as you like –
Now login to HTCdev.com and –
a. Click on Developer Center
b. Click get started under Unlock Bootloader
c. In the drop down menu (Select Your Device) under Supported Devices you can scroll to the very bottom bottom and select All Other Supported Models or if you like you can try to find your specific model.
d. Click the Begin Unlock Bootloader
e. Proceed to Unlock Instructions
Now in the command prompt window (you should still be in Bootloader Mode) type in fastboot oem get_identifier_token
Hit enter.
If you get a message indicating an unknown command then switch into Download Mode (Boot To Download Mode on your phone… look at one of the pictures above if you need help). Now try it again – fastboot oem get_identifier_token
One of the two modes will work (for HTC Desire 626s you’ll probably need to be in Download Mode).
At this point you should be seeing an Identifier Token in the command prompt window that looks similar (yours wont be all zeros) to the following –
(bootloader) <<<< Identifier Token Start >>>>
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) 00000000000000000000000000000000
(bootloader) <<<<< Identifier Token End >>>>>
Now got to page 2 of the unlock instructions (HTCdev.com website) and scroll down on that page until you see an area where you can paste in My Device Identifier Token.
Copy (or right click, Mark and then highlight) your token from the command prompt window and paste it into the area on the unlock instructions page at HTCdev.com
However, first you’ll need to delete all of the “(boatloader)” from the beginning of each line. The token above should be trimmed to look similar to the following example (yours wont be all zeros) –
<<<< Identifier Token Start >>>>
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
<<<<< Identifier Token End >>>>>
If you’ve done everything correct you should be receiving an email (typically takes just a minute or so to arrive) from HTCdev.com which contains your unlock key –
The email should contain a .bin file attachment which you can download.
You can place this file in your platform-tools folder (or any other name that you may have renamed it to, I renamed mine as htc-sim-unlock) to make things simple. However, you can save the .bin file anywhere you want just as long as you can remember the path to that folder.
In the command prompt window (with your phone in Download Mode or in Boatload Mode for other HTC models) type in fastboot flash unlocktoken followed by the path to your .bin file
If you’ve saved the .bin file within your platform-tools folder you can type in fastboot flash unlocktoken Unlock_code.bin
Hit enter.
If you’ve done everything correct and the unlock token has completed flashing you should see the following screen on your HTC Android phone –

Push volume up for YES and then the power button to continue.
Step six
Your phone should be rebooting by itself now. If not just power it back on manually.
Congrats! Your phone (i.e., your phone’s bootloader) should now be unlocked!
To verify this (and also in order to continue on to SIM unlocking) you’ll need to repeat Step three (i.e., tap Build Number several times to become a developer, check USB debugging and check OEM unlocking).
Now on your computer in the command prompt window (open it again if you’ve closed it) (with your phone connect by USB) type in adb reboot bootloader
Hit enter.
After your phone reboots into bootloader you should see that you are now UNLOCKED –

Note that under UNLOCKED we still have S-ON. Don’t worry, as stated somewhere in the foregoing we wont need S-OFF for SIM unlocking (i.e., carrier unlock).
Now we need a custom mod or a mod recovery. At the CyanogenMod.org site you can download them for many devices that run on Android. You may browse through the list of HTC models and pick one that you prefer.
I don’t know whether or not there really is a specific mod build or mod recovery for the HTC Desire 626s but I have one that will work (it might have been for the HTC One, I can’t remember now and I renamed the file several months ago) that you can download and use:
http://justinbailey.info/download-files/cyanogenmod-htc-626s-android.img
After you’ve download the file provide directly above (or after downloading another custom rom from CyanogenMod.org) you’ll need to save the file to your platform-tools folder (or whatever name you’ve given it) or anywhere else just as long as you can remember the path to the file.
Now type the following into the command prompt window on your computer (in Download Mode or Bootloader Mode for other HTC models) – fastboot flash recovery followed by the path to your custom mod file
If you’ve saved the mod .img file within your platform-tools folder you can type in fastboot flash recovery cyanogenmod-htc-626s-android.img
Hit enter.
If you’ve done everything correct you should see something like the following screen on your phone –

Hit the power button and the flashing of the custom mod will be completed.
Now reboot your phone.
After your phone reboots you need to go back into Bootloader mode so type the following into the command prompt window on your computer – adb reboot bootloader
If there’s a problem or the phone isn’t showing up in command prompt window then repeat Step three (i.e., tap Build Number several times to become a developer, check USB debugging and check OEM unlocking).
When your phone is back in Bootloader mode then select BOOT TO RECOVERY MODE and verify (just to makw sure) that you see the something like the following screen –

Congrats! You’ve successfully flashed the CyanogenMod Recovery image!
Now select Reboot system now and then press the power button.
Step seven
You are nearly finished, everything is downhill from here!
You’ll need the latest version of SuperSu and you can easily pick that up at the following link –
http://forum.xda-developers.com/showthread.php?t=1538053
As of today’s date (August 27, 2016) the version listed at the above link is [STABLE][2016.07.05] SuperSU v2.76
On that page do not download from the Google Play Store link.
You need to download the zip file which can be flashed to your phone.
You’ll probably see three zip files –
- stable version
- beta version
- latest version
I’m using the stable.
At this point your phone should be powered on (and not in the Bootloader) and connected with USB.
On your computer look for your HTC Desire 626s. Open it and go into the phone’s internal storage –

Now drag (or paste) the SuperSU zip file (from wherever you have that saved on your computer) into your phone’s internal storage –

Now in the command prompt window type in – adb reboot bootloader
Hit enter.
On your phone’s screen (now in Bootloader) select BOOT TO RECOVERY MODE.
You should see the Cyanogen Recovery screen now.
Select – Apply update and press power.
Select – Choose from internal storage and press power.
Select – 0/ and press power
Select UPDATE-SuperSU-v2.76-20160630161323.zip and press power.
Android should be updating now for a few seconds.
Select – Reboot system now and press power.
Step eight
Behold! The final steps are upon us.
Make sure that your HTC phone is powered on (and not in bootloader mode) and connected with USB.
You’ll also now need to have a Micro SD Memory Card inserted into your phone.
In the command prompt window on your computer type in adb devices to verify that your phone shows up. It should, but if it doesn’t it’s likely just some some small error – just troubleshoot and review this article again.
All that you are doing now in this last step is pulling out a SIM-locking (or carrier locking) file in your phone and pushing in a new SIM-unlock (or carrier unlock).
The name of the file that needs to be removed is mmcblk0p36
With the following four (4) adb commands you’ll be:
- renaming the file that you need to pull out of the phone
- pulling out that renamed file
- pushing in a new file
- renaming that new file to the original name of the file that needed to pulled out
You’ll need the new file first and you can download it right here at our site with this link –
http://justinbailey.info/download-files/mmcblk0p36-rfg_8-UnLocked.txt
Save that file in your platform-tools folder (or whatever you may have renamed the folder as).
Now in your command prompt window on your computer type in –
adb shell
shell@htc_a32eul:/ $ su
root@htc_a32eul:/ # dd if=/dev/block/mmcblk0p36 of=/sdcard2/mmcblk0p36old
..(some data appears here)
..(some data appears here)
..(some data appears here)
root@htc_a32eul:/ # exit
shell@htc_a32eul:/ $ exit
If you got stuck on the 3rd line (root@htc_a32eul) it’s because SuperSu is asking you to grant ADB Shell full access to your phone. You may have missed the request, which only stays popped up on your phone’s screen for a number of seconds, while you were looking at the command prompt window on your computer –

Be sure to grant the request (and if you need the request to pop up again just type in adb shell and su again).
After you get all of the above settled then type in –
adb pull /sdcard2/mmcblk0p36old
..(some data appears here)
Then type in –
adb push mmcblk0p36-rfg_8-UnLocked.txt /sdcard2/mmcblk0p36new
..(some data appears here)
Then type in –
adb shell
shell@htc_a32eul:/ $ su
root@htc_a32eul:/ # dd if=/sdcard2/mmcblk0p36new of=/dev/block/mmcblk0p36
..(some data appears here)
..(some data appears here)
..(some data appears here)
root@htc_a32eul:/ # exit
shell@htc_a32eul:/ $ exit
Step nine
Insert your SIM card and restart phone.
Success!
You’ve SIM-unlocked your phone!
Enjoy!

Fun trivia question 1: What does HTC stand for?
Fun trivia question 2: Where is HTC from?
answer #1 – High Tech Computer Corporation
answer #2 – Taiwan