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.


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- 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-

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:

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.


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 >>>>
<<<<< Identifier Token End >>>>>


comments powered by Disqus