[One (M9) Android Development] nkk71:
i've been doing the various firmware update methods for a while, and tend to stick to "oem rebootRUU" mode (old habits die hard) :o

here were my earlier M9 findings (quite some time ago, though never posted them):

the below output needs "fixing" for readability, but not right now :(

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]dir[/COLOR][/B]
Volume in drive C has no label.
Volume Serial Number is 0622-9D4A

Directory of C:\ADB_M9_1.0.32

28/04/2015 17:36 <DIR> .
28/04/2015 17:36 <DIR> ..
07/11/2014 19:41 1,009,664 adb.exe
07/11/2014 19:41 96,256 AdbWinApi.dll
07/11/2014 19:41 60,928 AdbWinUsbApi.dll
24/04/2015 16:10 4,017,926 BETA-SuperSU-v2.48.zip
07/11/2014 19:41 196,608 fastboot.exe
20/01/2015 03:52 89,865 htc_fastboot_2.0.8.exe
24/04/2015 18:40 63,065,927 M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip
24/04/2015 18:08 <DIR> partitions
24/04/2015 14:45 36,823,040 twrp-recovery-2.8.6.4-hima.img
23/04/2015 19:25 256 Unlock_code.bin
9 File(s) 105,360,470 bytes
3 Dir(s) 18,212,732,928 bytes free

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]adb reboot download[/COLOR][/B]

=== in DOWNLOAD MODE

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot getvar all[/COLOR][/B]
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 35xxxxxxxxxxxxx
(bootloader) version-main: 1.32.401.6
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__001
all:
finished. total time: 0.047s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot oem rebootRUU[/COLOR][/B]
...
OKAY [ 0.062s]
finished. total time: 0.062s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 4.883s]
writing 'zip'...
(bootloader) HOSD CL#493992
(bootloader) GPT is up-to-dated. [17408]
(bootloader) Perform pre-update
(bootloader) start@19
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@BYPASS
(bootloader) cpe.img@BYPASS
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@BYPASS
(bootloader) modem_st2.img@BYPASS
(bootloader) pg2fs_ship_signkey.img@BYPASS
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@BYPASS
(bootloader) recovery.img@BYPASS
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@BYPASS
FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)
finished. total time: 5.772s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 4.960s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@100%
(bootloader) cota.img@100%
(bootloader) cpe.img@100%
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@100%
(bootloader) modem_st2.img@100%
(bootloader) pg2fs_ship_signkey.img@100%
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@100%
(bootloader) recovery.img@100%
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@100%
(bootloader) sensor_hub.img@0%
(bootloader) sensor_hub.img@0%
(bootloader) sensor_hub.img@15%
(bootloader) sensor_hub.img@25%
(bootloader) sensor_hub.img@35%
(bootloader) sensor_hub.img@45%
(bootloader) sensor_hub.img@55%
(bootloader) sensor_hub.img@65%
(bootloader) sensor_hub.img@80%
(bootloader) sensor_hub.img@90%
(bootloader) sensor_hub.img@100%
(bootloader) sensor_hub.img@100%
(bootloader) tp_MXM11876.img@100%
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) Update zip file OK
(bootloader) end@Done
OKAY [ 66.043s]
finished. total time: 71.019s

--> progress bar went to 100%

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot reboot-bootloader[/COLOR][/B]
rebooting into bootloader...
OKAY [ 0.016s]
finished. total time: 0.016s

=== in BOOTLOADER MODE
C:\ADB_M9_1.0.32>fastboot getvar all
(bootloader) version: 0.5
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:cache: ext4
(bootloader) partition-size:cache: 0x14000000
(bootloader) partition-type:userdata: ext4
(bootloader) partition-size:userdata: 0x5e0000000
(bootloader) partition-type:system: ext4
(bootloader) partition-size:system: 0x118000000
(bootloader) serialno: FAxxxxxxxxxx
all:
finished. total time: 0.109s

--> manually enter DOWNLOADN MODE

=== in DOWNLOAD MODE
C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot getvar all[/COLOR][/B]
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 35xxxxxxxxxxxxx
(bootloader) version-main: 1.32.401.17
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__001
all:
finished. total time: 0.062s

===================================================================================
TESTING STUFF NOW
=================
=== in DOWNLOAD MODE
C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 4.945s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) Perform pre-update
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@BYPASS
(bootloader) cota.img@BYPASS
(bootloader) cpe.img@BYPASS
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@BYPASS
(bootloader) modem_st2.img@BYPASS
(bootloader) pg2fs_ship_signkey.img@BYPASS
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@BYPASS
(bootloader) recovery.img@BYPASS
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@BYPASS
(bootloader) Perform hardware reset
FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)
finished. total time: 5.740s

---> it rebooted by itself (back to ROM), eventhough the FAIL90

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]adb reboot download[/COLOR][/B]

=== in DOWNLOAD MODE
C:\ADB_M9_1.0.32>fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 35xxxxxxxxxxxxx
(bootloader) version-main: 1.32.401.17
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__001
all:
finished. total time: 0.062s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot oem rebootRUU[/COLOR][/B]
...
OKAY [ 0.016s]
finished. total time: 0.031s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 4.836s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@100%
(bootloader) cota.img@100%
(bootloader) cpe.img@100%
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@100%
(bootloader) modem_st2.img@100%
(bootloader) pg2fs_ship_signkey.img@100%
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@100%
(bootloader) recovery.img@100%
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) Update zip file OK
(bootloader) end@Done
OKAY [ 7.113s]
finished. total time: 11.949s

---> progress bar went to 100% and to fail

---> do it again, just in case -_-

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 5.694s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) Perform pre-update
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@BYPASS
(bootloader) cota.img@BYPASS
(bootloader) cpe.img@BYPASS
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@BYPASS
(bootloader) modem_st2.img@BYPASS
(bootloader) pg2fs_ship_signkey.img@BYPASS
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@BYPASS
(bootloader) recovery.img@BYPASS
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@BYPASS
(bootloader) Perform hardware reset
FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)
finished. total time: 6.536s

---> again ^^ FAIL90 and reboots to ROM

AGAIN:
C:\ADB_M9_1.0.32>[B][COLOR="Blue"]adb reboot download[/COLOR][/B]

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot oem rebootRUU[/COLOR][/B]
...
OKAY [ 0.031s]
finished. total time: 0.031s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.32.401.17_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61587 KB)...
OKAY [ 4.586s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@100%
(bootloader) cota.img@100%
(bootloader) cpe.img@100%
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@100%
(bootloader) modem_st2.img@100%
(bootloader) pg2fs_ship_signkey.img@100%
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@100%
(bootloader) recovery.img@100%
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) Update zip file OK
(bootloader) end@Done
OKAY [ 7.004s]
finished. total time: 11.591s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot reboot-bootloader[/COLOR][/B]
rebooting into bootloader...
OKAY [ -0.000s]
finished. total time: -0.000s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot getvar all[/COLOR][/B]
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 35xxxxxxxxxxxxx
(bootloader) version-main: 1.32.401.17
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__001
all:
finished. total time: 0.047s

C:\ADB_M9_1.0.32>

here was a couple of days or so ago; from 1.32.401.17 to 1.40.401.5:

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]adb reboot download[/COLOR][/B]
adb server is out of date. killing...
* daemon started successfully *

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot oem rebootRUU[/COLOR][/B]
...
OKAY [ 0.030s]
finished. total time: 0.030s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.40.401.5_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61680 KB)...
OKAY [ 4.770s]
writing 'zip'...
(bootloader) HOSD CL#506785
(bootloader) GPT is up-to-dated. [17408]
(bootloader) Perform pre-update
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@BYPASS
(bootloader) cota.img@BYPASS
(bootloader) cpe.img@BYPASS
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@BYPASS
(bootloader) modem_st2.img@BYPASS
(bootloader) pg2fs_ship_signkey.img@BYPASS
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@BYPASS
(bootloader) recovery.img@BYPASS
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) sensor_hub.img@BYPASS
(bootloader) tp_MXM11876.img@BYPASS
(bootloader) tp_SYN3351.img@BYPASS
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@BYPASS
[B][COLOR="Red"]FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)[/COLOR][/B]
finished. total time: 5.590s

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot flash zip M9_1.40.401.5_NoWipe_TWRP_2864_rename_to_ROM.zip[/COLOR][/B]
target reported max download size of 800000000 bytes
sending 'zip' (61680 KB)...
OKAY [ 3.660s]
writing 'zip'...
(bootloader) HOSD CL#549783
(bootloader) GPT is up-to-dated. [17408]
(bootloader) start@20
(bootloader) aboot_signed.img@100%
(bootloader) adsp.img@100%
(bootloader) cota.img@100%
(bootloader) cpe.img@100%
(bootloader) hosd_signed.img@100%
(bootloader) hyp-8994-1.img@100%
(bootloader) modem_st1.img@100%
(bootloader) modem_st2.img@100%
(bootloader) pg2fs_ship_signkey.img@100%
(bootloader) pmic-8994-1.img@100%
(bootloader) rcdata.img@100%
(bootloader) recovery.img@100%
(bootloader) rpm-8994-1.img@100%
(bootloader) sbl1-8994-1.img@100%
(bootloader) sdi.img@100%
(bootloader) tz-8994-1.img@100%
(bootloader) radio.img@100%
(bootloader) sensor_hub.img@0%
(bootloader) sensor_hub.img@0%
(bootloader) sensor_hub.img@10%
(bootloader) sensor_hub.img@20%
(bootloader) sensor_hub.img@30%
(bootloader) sensor_hub.img@40%
(bootloader) sensor_hub.img@50%
(bootloader) sensor_hub.img@65%
(bootloader) sensor_hub.img@75%
(bootloader) sensor_hub.img@85%
(bootloader) sensor_hub.img@95%

(bootloader) sensor_hub.img@100%
(bootloader) tp_MXM11876.img@100%
(bootloader) tp_SYN3351.img@BYPASS
[B][COLOR="Green"](bootloader) Update zip file OK
(bootloader) end@Done
OKAY [ 67.701s]
finished. total time: 71.371s[/COLOR][/B]

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot reboot-bootloader[/COLOR][/B]
rebooting into bootloader...
OKAY [ -0.000s]
finished. total time: -0.000s

then manually back to download mode, and firmware update showed up properly

C:\ADB_M9_1.0.32>[B][COLOR="Blue"]fastboot getvar all[/COLOR][/B]
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei: 35xxxxxxxxxxxxx
(bootloader) version-main: 1.40.401.5
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: HTC__001
all:
finished. total time: 0.047s