[Desire 626 General] stifilz:
CONFIRMED WORKING :)

No CDMA like Sprint or Verizon. Feel free to test though :)

Sprint See here

Hey guys.

See my work for HTC M9 unlock here http://xdaforums.com/one-m9/general/sim-unlock-method-t3143333

Once again I have done it with a similar method to before.....

Anway, to SIM UNLOCK YOUR 626 PLEASE FOLLOW BELOW

First things first:

HTC DEV bootloader unlock

TWRP install

SU

S-Off via Sunshine (optional)

Now for the fun :)

I then dumped all the partitions.

Here is the list BTW:

dev: size erasesize name
mmcblk0p1: 00004000 00000200 "board_info"
mmcblk0p2: 00400000 00000200 "pg1fs"
mmcblk0p3: 00100000 00000200 "sbl1"
mmcblk0p4: 01af7c00 00000200 "reserve_1"
mmcblk0p5: 00040000 00000200 "mfg"
mmcblk0p6: 017afc00 00000200 "pg2fs"
mmcblk0p7: 00040000 00000200 "rpm"
mmcblk0p8: 00200000 00000200 "tz"
mmcblk0p9: 00400000 00000200 "aboot"
mmcblk0p10: 00a00000 00000200 "sp1"
mmcblk0p11: 00008000 00000200 "ddr"
mmcblk0p12: 00100000 00000200 "rfg_0"
mmcblk0p13: 00100000 00000200 "rfg_1"
mmcblk0p14: 00100000 00000200 "rfg_2"
mmcblk0p15: 00100000 00000200 "rfg_3"
mmcblk0p16: 00100000 00000200 "rfg_4"
mmcblk0p17: 00100000 00000200 "rfg_5"
mmcblk0p18: 00100000 00000200 "rfg_6"
mmcblk0p19: 00100000 00000200 "rfg_7"
mmcblk0p20: 00180000 00000200 "fsg"
mmcblk0p21: 03b00400 00000200 "radio"
mmcblk0p22: 00a00000 00000200 "tool_diag"
mmcblk0p23: 00500000 00000200 "wcnss"
mmcblk0p24: 00000400 00000200 "limits"
mmcblk0p25: 00447c00 00000200 "reserve_2"
mmcblk0p26: 00100000 00000200 "misc"
mmcblk0p27: 00001000 00000200 "debug_config"
mmcblk0p28: 00180000 00000200 "modem_st1"
mmcblk0p29: 00180000 00000200 "modem_st2"
mmcblk0p30: 00040000 00000200 "pdata"
mmcblk0p31: 01600000 00000200 "persist"
mmcblk0p32: 00004000 00000200 "sec"
mmcblk0p33: 00100000 00000200 "cdma_record"
mmcblk0p34: 00000400 00000200 "fsc"
mmcblk0p35: 00002000 00000200 "ssd"
mmcblk0p36: 00020000 00000200 "rfg_8"
mmcblk0p37: 00020000 00000200 "rfg_9"
mmcblk0p38: 00020000 00000200 "rfg_10"
mmcblk0p39: 00020000 00000200 "rfg_11"
mmcblk0p40: 00020000 00000200 "rfg_12"
mmcblk0p41: 00020000 00000200 "rfg_13"
mmcblk0p42: 00020000 00000200 "rfg_14"
mmcblk0p43: 00020000 00000200 "rfg_15"
mmcblk0p44: 00004000 00000200 "control"
mmcblk0p45: 00010000 00000200 "extra"
mmcblk0p46: 00140400 00000200 "local"
mmcblk0p47: 00040000 00000200 "skylink"
mmcblk0p48: 02800000 00000200 "carrier"
mmcblk0p49: 00080000 00000200 "frp"
mmcblk0p50: 01400000 00000200 "fataldevlog"
mmcblk0p51: 01e00000 00000200 "devlog"
mmcblk0p52: 00a00000 00000200 "ramdump"
mmcblk0p53: 00a00000 00000200 "battery"
mmcblk0p54: 01000000 00000200 "absolute"
mmcblk0p55: 023a4800 00000200 "reserve"
mmcblk0p56: 03000000 00000200 "hosd"
mmcblk0p57: 02000000 00000200 "boot"
mmcblk0p58: 02000000 00000200 "recovery"
mmcblk0p59: 10000000 00000200 "cache"
mmcblk0p60: a0000000 00000200 "system"
mmcblk0p61: 12000000 00000200 "apppreload"
mmcblk0p62: 02800000 00000200 "cota"
mmcblk0p63: f0000000 00000200 "userdata"

Something that stood out (just like on the M9) was mmcblk0p36 which is "rfg_8" as the unlock partition on the M9 was also rfg_8.

With the help of [MENTION=7247070]kristid1991[/MENTION] and a remote connection,

I compared the rfg_8 from the 626 and compared it to mine from the M9 and THEY WERE THE SAME.

So I flashed (dd) the 'sim unlock' mmcblk0p36 and it was SIM UNLOCKED again :)

To Sim unlock your device

Please use the following code:

adb shell
su
dd if=/dev/block/mmcblk0p36 of=/sdcard/mmcblk0p36old
exit
exit
adb pull /sdcard/mmcblk0p36old

Do the above and save it to you computer. Download my mmcblk0p36-rfg_8-Locked.txt and compare the two files.

You can do this using HxD from here http://mh-nexus.de/en/hxd/

Drag both files (locked partitions) into HxD and press Ctrl + K or go to File > Analysis > File-Compare > Compare....

It will prop up 'both files are identical'

If there is a file difference then STOP

If the file is the same then you can do the following:

Please copy and paste one line at a time

mmcblk0p36-rfg_8-UnLocked.txt must be in your ADB directory OR manually place on the root of internal SD Card and rename to mmcblk0p36new

adb push mmcblk0p36-rfg_8-UnLocked.txt /sdcard/mmcblk0p36new
adb shell
su
dd if=/sdcard/mmcblk0p36new of=/dev/block/mmcblk0p36
exit
exit

Please use the Poll above and leave a comment :)

Please don't forget to click the thanks button or donate to me http://xdaforums.com/donatetome.php?u=4428363

This took a lot of time and effort. The (at least) $5 it would have cost you for the unlock code, could be put to better use :D

Thanks for the support guys

Stifilz

THANKS TO:

[MENTION=7247070]kristid1991[/MENTION] for the remote connection to UNLOCK 626