So I decided to wipe the phone, install a KitKat RUU, install the OTA updates (it's now on 4.4.4) and then unlock/custom recovery/root. The problem is that I can't get the RElocked bootloader to UNlock. I have tried the HTC Dev method...I get the required code, paste it into their system, receive the bin file via email and attempt to flash it. It appears to be successful:
C:\androidsdk\sdk\platform-tools>fastboot flash unlocktoken c:\Unlock_code.bin
target reported max download size of 1526722560 bytes
sending 'unlocktoken' (0 KB)...
OKAY [ 0.155s]
(bootloader) unlock token check successfully
OKAY [ 0.008s]
finished. total time: 0.166s
It seems strange that it reports 'sending 'unlocktoken' (0 KB)' - maybe that's just the way this works though, the bin file is reported in Windows to be 1KB. After flashing the bin file I do not get the GUI warning about unlocking the bootloader, the phone just stays in the bootloader screen. When I reboot the phone boots up normally.
Here's the entries from the top of the bootloader screen at the moment:
M7_UL PVT SHIP S_OFF RH
Jun 16 2014,20:13:15.0
I've Googled right left and centre and found other people reporting the same or similar problems trying to unlock a relocked bootloader but none of them has either a solution that worked or a solution that is relevant to this phone. Somewhere along the line I think the CID value got changed, I remember that it said something about Google but now it's CWS_001 - not sure if that's related to the problem.
I also tried using Hassoon's AIO Toolkit for the M7 but couldn't get that to work (it seems like it hasn't been updated for a long time so perhaps that's why).
Any help would be appreciated...I'd really like to regain root so that I can restore all my settings.