[One (M7) Q&A, Help & Troubleshooting] NARocket:
RUU.exe failed...fastboot.exe kept failing but i tried flashing stock...

Got the stock rom to verify signature successfully but now getting bootloop with no recovery only fastboot usb. Not sure if it has to do with Unlock_code.bin at the end. Should I stay 'relocked' after firmware flashes, reboot to bootloader and fastboot reboot? Lost at this point.

C:\HTCONEROOT>fastboot flash recovery recovery.img

sending 'recovery' (12272 KB)...

OKAY [ 1.482s]

writing 'recovery'...

OKAY [ 0.905s]

finished. total time: 2.387s

C:\HTCONEROOT>fastboot erase cache

erasing 'cache'...

OKAY [ 0.047s]

finished. total time: 0.047s

C:\HTCONEROOT>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.031s]

finished. total time: 0.047s

C:\HTCONEROOT>fastboot oem lock

...

(bootloader) Lock successfully...

(bootloader) mipi display off

(bootloader) mipi_dsi_cmds_tx_ext

(bootloader) pm8921_vreg_disable function, vreg_id = 38

(bootloader) pm8921_vreg_disable function, vreg_id = 1

(bootloader) TZ_HTC_SVC_DISABLE ret = 534642044 (0x1FDDFD7C)

(bootloader) Use PSHOLD to reset device.

FAILED (status read failed (No such file or directory))

finished. total time: 1.170s

C:\HTCONEROOT>fastboot oem rebootRUU

...

(bootloader) Start Verify: 3

OKAY [ 0.047s]

finished. total time: 0.047s

C:\HTCONEROOT>fastboot flash zip firmware.zip

sending 'zip' (20935 KB)...

OKAY [ 2.262s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

(bootloader) checking main version...

(bootloader) checking hboot version...

(bootloader) start image[hboot] unzipping for pre-update check...

(bootloader) start image[hboot] flushing...

(bootloader) signature checking...

(bootloader) [RUU]WP,hboot,0

(bootloader) [RUU]WP,hboot,99

(bootloader) [RUU]WP,hboot,100

(bootloader) ...... Successful

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

finished. total time: 7.582s

C:\HTCONEROOT>fastboot flash zip firmware.zip

sending 'zip' (20935 KB)...

OKAY [ 2.246s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

(bootloader) checking main version...

(bootloader) checking hboot version...

(bootloader) start image[boot] unzipping & flushing...

(bootloader) [RUU]UZ,boot,0

(bootloader) [RUU]UZ,boot,11

(bootloader) [RUU]UZ,boot,24

(bootloader) [RUU]UZ,boot,35

(bootloader) [RUU]UZ,boot,47

(bootloader) [RUU]UZ,boot,59

(bootloader) [RUU]UZ,boot,72

(bootloader) [RUU]UZ,boot,82

(bootloader) [RUU]UZ,boot,93

(bootloader) [RUU]UZ,boot,100

(bootloader) [RUU]WP,boot,0

(bootloader) [RUU]WP,boot,99

(bootloader) [RUU]WP,boot,100

(bootloader) ...... Successful

(bootloader) start image[recovery] unzipping & flushing...

(bootloader) [RUU]UZ,recovery,0

(bootloader) [RUU]UZ,recovery,6

(bootloader) [RUU]UZ,recovery,12

(bootloader) [RUU]UZ,recovery,21

(bootloader) [RUU]UZ,recovery,31

(bootloader) [RUU]UZ,recovery,38

(bootloader) [RUU]UZ,recovery,46

(bootloader) [RUU]UZ,recovery,67

(bootloader) [RUU]UZ,recovery,72

(bootloader) [RUU]UZ,recovery,79

(bootloader) [RUU]UZ,recovery,88

(bootloader) [RUU]UZ,recovery,97

(bootloader) [RUU]UZ,recovery,100

(bootloader) [RUU]WP,recovery,0

(bootloader) [RUU]WP,recovery,99

(bootloader) [RUU]WP,recovery,100

(bootloader) ...... Successful

(bootloader) start image[rpm] unzipping & flushing...

(bootloader) [RUU]UZ,rpm,0

(bootloader) [RUU]UZ,rpm,100

(bootloader) signature checking...

(bootloader) ...... Successful

(bootloader) start image[sbl2] unzipping & flushing...

(bootloader) [RUU]UZ,sbl2,0

(bootloader) [RUU]UZ,sbl2,100

(bootloader) signature checking...

(bootloader) ...... Successful

(bootloader) start image[rcdata] unzipping & flushing...

(bootloader) [RUU]UZ,rcdata,0

(bootloader) [RUU]UZ,rcdata,100

(bootloader) [RUU]WP,rcdata,0

(bootloader) [RUU]WP,rcdata,100

(bootloader) ...... Successful

OKAY [ 11.466s]

finished. total time: 13.712s

C:\HTCONEROOT>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.040s]

finished. total time: 0.040s C:\HTCONEROOT>fastboot flash unlocktoken Unlock_code.bin

sending 'unlocktoken' (0 KB)...

OKAY [ 0.164s]

writing 'unlocktoken'...

(bootloader) unlock token check successfully

OKAY [ 0.017s]

finished. total time: 0.186s