Android 4.4 Kitkat on HTC Desire HD
This is a guide for installing the latest Android KitKat 4.4.4 on HTC Desire HD. The guide assumes that you have adb and fastboot on your computer and that your phone is already rooted with a custom recovery installed.
First of all, download the latest unofficial nightly build from downloads.codefi.re. Then download the following Google Apps package.
The GApps package contains the browser/calendar sync apps, Google play services, Google play store. You can also download the Google search add-on package which makes the hardware search button on the Desire HD functional.
Now connect your phone to your computer with the USB cable and copy the files to your sdcard either using USB storage or through adb. To use adb, just type in a terminal window:
adb push cm-11-20150117-UNOFFICIAL-ace.zip /sdcard/
Repeat the same for the GApps zip file and then type:
adb reboot recovery
Once you reboot to recovery, do a full wipe. That means format /data, /system and /cache. Formatting /system is somehow necessary when moving between one rom vendor to another one otherwise the backup script may restore old files from the previous rom. There is a chance you will be stuck in a bootloop if you don’t format /system before installing a new rom.
If your recovery allows it, also format /boot.
Now as a further step that can solve some GPS issues, type the following while you are in recovery mode:
dd if=/dev/zero of=/dev/block/mmcblk0p13
dd if=/dev/zero of=/dev/block/mmcblk0p14
Note that those are zeros in the block device names and not the letter “O”. Only perform the above step if GPS is completely nonfunctional.
Now that our system is clean, we need to flash the CM rom and GApps. You need TWRP or 4ext 184.108.40.206rc3 recovery or higher. TWRP is recommended since it is actively developed. Select “Install Zip from sdcard”. Repeat that for the four zip files on the sdcard.
If your bootloader is unlocked but you are not S-OFF, you will need to install the boot image separately. Extract the boot.img file from the CM 11 nightly zip file. Navigate to it from a terminal window. While you are still in recovery, type:
and then type:
fastboot flash boot boot.img
Now reboot to your fresh new android installation.
You will be greeted by a dialog that allows you to log onto your CM account, your google account and recover your installed google applications and settings.
The next step is to tweak some settings. Go to Settings -> About phone and keep tapping “Build number” till development settings are enabled. Now click back, scroll down and select “Performance”. Click Ok on the warning dialog and enable “Force high-end graphics”. Turning this option on makes your phone a bit faster because it shifts some load from the CPU to the GPU. Then click on memory management enable “Allow purging of assets” and “Kernel samepage merging”. After that, reboot your phone.
That was it! Enjoy your KitKat installation.
References: XDA CM11 DHD thread