[One (M9) Q&A, Help & Troubleshooting] RebeccaSugar:
I am suffering from a bootloop in my phone, lineage suddenly decided to crash trebuchet, and phone turned off. Bootloader works, download mode works, recovery absolutely DOES NOT, It gives me the black HTC logo and turns off and on when I put the "fastboot oem lock" option, and just redirects back to the bootloop when I don't. I can use fastboot to flash files to it, I flashed TWRP old and new, but nonetheless, it bootloops when picking recovery once more. I have S-ON, with the bootloader unlocked. I'd love to buy the sunny license and turn S-OFF, but have no way of accessing my OS anymore.

Here are my details.

(bootloader) kernel: lk

(bootloader) product: htc_himawhl

(bootloader) version: 1.0

(bootloader) version-main: 3.41.651.4

(bootloader) boot-mode: download

(bootloader) version-baseband: 3.00.C1144084@60114

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA20000

(bootloader) cid: SPCS_001

Here is my recovery flashing log

target reported max download size of 800000000 bytes

sending 'recovery' (20084 KB)...

OKAY [ 2.097s]

writing 'recovery'...

(bootloader) HOSD CL#695981

(bootloader) start@1

(bootloader) recovery@100%

(bootloader) Update partition OK

(bootloader) end@Done

OKAY [ 1.838s]

finished. total time: 3.939s

I've tried flashing a signed stock ROM, but I know I need to re-lock the bootloader, the "fastboot oem lock" option doesn't work too well either, it just resets without actually locking anything. It can't hold a flash it seems.

(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp (bootloader) [KillSwitch] Last Byte is 0X01, enable unlock (bootloader) RELOCK device

I've tried the "0PJAIMG.zip" method in download mode, but it just gives me these errors as well.

22 RU_HEADER_ERROR

22 RU_HEADER_ERROR

FAIL22 RU_HEADER_ERROR

If my phone gets a file that matches up, it freezes for a bit, THEN goes back to another bootloop. It's frustrating.

9 RU_SECURITY_FAIL is also another error I get when trying to flash the .zip by fastboot, they're so annoying.

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 2136250206 is not a multiple of the block size 4096

sending sparse 'zip' 1/1 (0 KB)...

error: write_sparse_skip_chunk: don't care size 2136250206 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 2136250206 is not a multiple of the block size 4096

OKAY [ 1.028s]

writing 'zip' 1/1...

(bootloader) HOSD CL#695981

FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)

finished. total time: 2.053s

Then after that, I tried flashing "

0PJAIMG_HIMA_WHL_L50_SENSE70_SPCS_Sprint_WWE_1.32.651.17_Radio_1.10.C1144022_50312.5_NV_SPCS_0.23_003_release_425355_signed_RYDAH805.zip

" via download mode with the SD card, and it gave me a FAIL19 RU_MAIN_VER_FAIL error that I don't understand that well, but I did find a reddit thread on it. I may have messed up my partitions.

https://www.reddit.com/r/AndroidQuestions/comments/69i53h/help_with_htc_m9_fail19_ru_main_ver_fail/

HOSD is also yet another method that ends up in failure

sending 'hosd' (38148 KB)... OKAY

writing 'hosd'... (bootloader) HOSD CL#695981

FAIL35 RU_PARTITION_NOT_SUPPORT hosd

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT hosd)

Execution time is 4(s)

Here are a list of things that DIDN'T work

-Firmware Flashing

-Boot/TWRP Flashing

-fastboot oem unlock

-the "Power then Volume up" trick, it just redirects me to a white HTC splash screeen

-Recovery from bootloader option

-signed .img files

https://androidforums.com/threads/htc-one-m8-brick-stuck-on-boot.927336/

After finding the thread above, I'm starting to think it might be a hardware error, it now gives me a "Failed to boot to recovery mode" error,. The eMMc may be messed up, ughhhhhhhh

Any way to recover my files, at least? If anyone here has any clues on getting my phone to working condition, I'd appreciate it a ton, hell, I might even pay you for helping me, better than losing all my data! :D

Will add as much info as possible and update my current status if asked.