[One (M8) Q&A, Help & Troubleshooting] a3adil:
which recovery version should I be using for this? the latest one .401 or the one already on the phone i.e. 3.28.401.6 ? I am confused. I tried both (maybe not a smart thing to do) and this was the result. My Steps so far and yes I am using a macbook.

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot oem lock

ERROR: could not get pipe properties

...

(bootloader) [PGFS] partition_update_pgfs: pg1fs_security

(bootloader) TZ_HTC_SVC_ENC ret = 0

(bootloader) [PGFS] partition_update_pgfs: pg2fs_sec_recovery

(bootloader) Lock successfully...

(bootloader) deinit_lcd

(bootloader) mipi display off

(bootloader) mdp_clock_off

(bootloader) turn off fd8c2308 failed 1 times. Try again...

(bootloader) disable_mmss_clk done

(bootloader) pll1_disable done

(bootloader) TZ_HTC_SVC_DISABLE ret = -1610744452 (0x9FFDFD7C)

(bootloader) [CRITICAL] SPMI write command failure:	cmd_id = 0, error

(bootloader) = 4

(bootloader) [CRITICAL] SPMI write command failure:	cmd_id = 0, error

(bootloader) = 4

(bootloader) [INFO] Rebooting device

ERROR: usb_read failed with status e00002ed

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

finished. total time: 1.187s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./adb shell

error: device not found

error: device not found

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot flash recovery recovery.img

ERROR: could not get pipe properties

target reported max download size of 1826414592 bytes

sending 'recovery' (16092 KB)...

OKAY [ 1.993s]

writing 'recovery'...

(bootloader) signature checking...

FAILED (remote: signature verify fail)

finished. total time: 2.568s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot reboot-bootloader

ERROR: could not get pipe properties

rebooting into bootloader...

OKAY [ 0.010s]

finished. total time: 0.010s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./adb shell

error: device not found

error: device not found

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot oem rebootRUU

ERROR: could not get pipe properties

...

(bootloader) Start Verify: 3

OKAY [ 0.010s]

finished. total time: 0.010s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot devices

ERROR: could not get pipe properties

SH44XWM02716	fastboot

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot flash zip r

recovery.img ruu.zip

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot flash zip ruu.zip

ERROR: could not get pipe properties

target reported max download size of 1826418688 bytes

sending 'zip' (1536838 KB)...

OKAY [ 47.189s]

writing 'zip'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 103.571s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot reboot

ERROR: could not get pipe properties

rebooting...

finished. total time: 0.008s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot flash recovery recovery_4.16.401.10.img

ERROR: could not get pipe properties

target reported max download size of 1826418688 bytes

sending 'recovery' (16044 KB)...

OKAY [ 1.670s]

writing 'recovery'...

(bootloader) signature checking...

FAILED (remote: signature verify fail)

finished. total time: 2.243s

Imraans-MacBook-Pro:platform-tools imraanameen$ ./fastboot flash recovery recovery_3.28.401.6.img

ERROR: could not get pipe properties

target reported max download size of 1826418688 bytes

sending 'recovery' (14556 KB)...

OKAY [ 1.540s]

writing 'recovery'...

(bootloader) signature checking...

FAILED (remote: signature verify fail)

finished. total time: 2.059s

Imraans-MacBook-Pro:platform-tools imraanameen$