[One (M9) Q&A, Help & Troubleshooting] njc999:
Hi all,

I wasn't really sure how to title this thread, however I have some problems with my phone that I have been trying to sort for a few days, and have reached the limit of my understanding of what I'm reading here and elsewhere. So bear with me and I'll tell you all I know and hopefully someone can help.

I have just bought a used M9 (originally on O2 UK) which I was aware wouldn't boot into anything other than Download or Bootloader. The previous owner had tried to root it and install a custom ROM. On booting it up it hangs on the white HTC One splash screen (I left it overnight)

On booting to download mode I get the following:

***Unlocked

htc_himuahl PVT S-OFF

CID-11111111

MID-0PJAI10000

ColorID-DEF00

LK-1.0.0.0000

RADIO-01.01_U114401011_117.00.61117G_2

OpenDSP-20.7.3.00535.8994_1012

OS-4.14.401.7

NOV 26 2016, 00:36:11(836457)

On booting to bootloader I get the following:

Software Status:eek:fficial

Unlocked

S-OFF

Output from getvar all:

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: HT557YJ00558

(bootloader) current-slot:

(bootloader) imei: xxxxxxxxxxxxxxxxx

(bootloader) version-main: 4.14.401.7

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401011_117.00.61117G_2_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: 11111111

Initially on booting to recovery I just got an error message saying that recovery couldn't be loaded and vol up or down to go back to bootloader.

I have since managed to flash TWRP v2.8.5.0 but newer versions of TWRP will not work. They appear to flash OK but on booting to recovery I'm back to the fail to load recovery error.

From TWRP I tried to flash Android Revolution which is a known good copy and running on my other M9. The Aroma installer completes and reports success, but the phone again hangs on the HTC One splash screen (left for over 12 hours).

When flashing Android Revolution using ADB/Fastboot I get

G:\Documents\M9\Minimal ADB and Fastboot>fastboot flash zip AR.zip

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

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

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

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

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

OKAY [ 1.011s]

writing 'zip'...

(bootloader) HOSD CL#836547

(bootloader) ERR lzipv1_init : Cannot read header len bytes

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_R

(bootloader) ABNBx

(bootloader) ERR preload central directory info failed (EOCD).

FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0)

finished. total time: 3.076s

I also have a known good copy of the original O2 ROM/recovery Package named 0PAIMG which I have used previously to restore my other M9 to stock.

When trying to flash this from TWRP, TWRP reverts to it's own splash screen then restarts.

When trying to flash 0PAIMG from a SD card in the phone I get 12 RU_ZIP_FAIL

When trying to flash 0PAIMG from a PC I get error cannot load 0PJAIMG

It appears that I can flash stock recovery images and back to TWRP with no problem

Any thoughts? And sorry for the long post!

Thanks

Neil