Here's a solution that should allow you to flash the OTA using TWRP: I've modified the OTA to remove the commands that prevent it from flashing in TWRP (i.e. cid check, fotoBoot and write firmware.)
Note: must be on stock 3.17.502.3!!
The process is:
- Download these files:
TWRP:
twrp-recovery-2.7.0.4b-m7-20140408.img
Firmware:
firmware_4.18.502.7.zip
OTA:
OTA_4.18.502.7-3.17.502.3-twrp.zip
- Unlock Bootloader via htcdev (remember this will wipe all data...)
- Boot into OS, copy OTA_4.18.502.7-3.17.502.3-twrp.zip to /sdcard
- Reboot into fastboot USB mode and flash TWRP via:
Code:
fastboot flash recovery twrp-recovery-2.7.0.4b-m7-20140408.img
fastboot erase cache
fastboot reboot-bootloader
- From bootloader, choose Recovery
- In TWRP make a nandroid backup of /system and /boot (fire insurance, in case update doesn't work.)
- In TWRP install /sdcard/OTA_4.18.502.7-3.17.502.3-twrp.zip. This will upgrade the system partition to 4.18.502.7.
If successful, proceed to next step. If OTA fails, restore nandroid backup, no harm done.
- Reboot into fastboot USB mode and lock bootloader:
Code:
fastboot oem lock
fastboot oem rebootRUU
- Flash firmware_4.18.502.7.zip. This is the signed firmware.zip extracted from the OTA and will install radio, boot (kernel), and other 4.18.502.7 firmware files. It will also re-install the stock recovery.
Code:
fastboot flash zip firmware_4.18.502.7.zip
fastboot flash zip firmware_4.18.502.7.zip
fastboot reboot
(yes, flash it twice)
If successful, reboot into 4.4.2. If firmware flash fails, restore nandroid backup, no harm done.