HTC Desire C unlock and CyanogenMod 10 tutorial

Instructions to install TWRP recovery and replace the stock ROM with CyanogenMod 10 which offers much better performance and eliminates all the garbage "value" that gets added by some phone makers. Before beginning you will need to make sure your bootloader is unlocked. You can check this by going into recovery mode and looking at the top of the screen. It should display *** UNLOCKED ***. If it is not unlocked go to the Unlocking the Bootloader section and start there.

Index

TWRP Recovery Installation

To start download TWRP for HTC Desire C [golfu] from the Team Win Recovery Project website. You will then have a file called openrecovery-twrp-2.6.0.0-golfu.img. Plug your phone into your computer and start the phone while holding the volume down button to boot into recovery mode (power + volume down). Select FASTBOOT with the volume buttons and tap the power button to select it.

Then on your Linux machine you can run the following commands if you have android-tools-adb installed. Make sure to navigate to the directory in which you have the .img file first.

sudo fastboot flash recovery openrecovery-twrp-2.6.0.0-golfu.img

This will install TWRP on your device.

You can access TWRP now by booting holding down power + volume down and then selecting "recovery".

From TWRP go to Reboot > System > Swipe to install SuperSU

The device will then reboot and the SuperSU Installer will ask you to finish the installation process. You can do this by downloading it through TWRP if you have a Wi-Fi connection and when done it will reboot back into recovery and do the flashing. Upon reboot the su command will be available.

SIM Unlock

IMPORTANT!: If you want to do a carrier unlock make sure you do it before installing CyanogenMod. You need the stock ROM to complete the process.

To do the carrier unlock you will need to then boot into recovery and install superuser access after that you can boot up the phone, enable third party sources, and install the Terminal Emulator from F-Droid or directly download the apk from here.

Once the terminal is installed execute the following commands from within:

su
cat /dev/block/mmcblk0p7 > /sdcard/dump.img

This will give you a file called dump.img on your sdcard which you can now extract your unlock code from on a Linux machine with the following command:

strings -n 8 dump.img

Which gave me the following output which will contain the 8 digit unlock code among some other data. Mine was 11085211.

ROGER001
00000170
3525780557520901
QCT_UMTS_RADIO_VER=1
MSCMode=10
HSDPACat=8
GEA3.ROGER001=1
QCT_UMTS_RADIO_END=1
11085211
""##$%&(*+-0368;
')+.26;@FNVam{
),/37<BHPZer
&!&2&D&U&g&x&
7$H$Z$k$}$
&0&A&S&d&v&

Now boot the phone with a different carrier's SIM card and you will be prompted for an unlock code. After entering the code you got in the step above the phone will reboot and be unlocked. You may now proceed to installing CyanogenMod and your phone will remain unlocked.

CyanogenMod 10 Installation

Once the recovery is installed CyanogenMod is fairly straightforward to install. First download the ROM CyanogenMod 10 for HTC Desire C mirror SHA1: dd14f69f03322bbf4643bb36c7ec3aad2e223efa MD5: d45cfe9cef8948e79763323a82988f4d. Then place it on the microSD card. Now flash it from inside TWRP by booting into recovery choosing "Install" and selecting the zip file from your sdcard. Finally do a "Wipe" from the TWRP home screen and reboot into CyanogenMod 10 by choosing "Reboot" and "System".

There is one more thing that must be done for CyanogenMod to work properly. Extract the boot.img file from the CyanogenMod archive and flash it using the command below in fastboot mode. sudo fastboot flash boot boot.img

Now reboot and enjoy your CyanogenMod 10 goodness!

Unlokcing the Bootloader

To unlock the bootloader you will need to go to the HTC Developer Center and paste the output from the command while in fastboot mode. sudo fastboot oem get_identifier_token The output will look like the text below. You then submit the output and they will email you a file called Unlock_code.bin which you will flash by doing: sudo fastboot flash unlocktoken Unlock_code.bin Your bootloader will then be unlocked.

<<<< Identifier Token Start >>>>
18C4347607A66FF8D8B2DF88AC0C16D7
8C5B2B787F849746115497398EE3C391
2043B40D09F5C97789534E64369480EC
594B5322DD09FCBAA6D12355E94385AE
40437766A78454363355C44CAAA571A4
7F1EEF94B6C35B0C2AED177A00AC59F4
503E996C45B9221CD5A78B4EECEE6276
BF837D3DFE635D3F60794ECB3D84C95E
FA969F671D45559A44F5168EA1260EA3
39458F5A4385BE5505F54D10900E27B8
210959EDDBAD29233E1DDDB3909479FA
F5F161EAA06F53540E0D2278C914B133
AB3305869EC3CE6D76A24EEB4BA239DF
B6C6D67E6E42A15B1FFFB120B34B27C1
43106FDB4FAC7E2AC808D0C209D10C87
2AC59BBB133C920BD18FFD8655C19A76
<<<<< Identifier Token End >>>>>

Comments !

social