no os no recovery can fastboot - One (M8) Q&A, Help & Troubleshooting

cant flash a custom recovery or stock recovery keep getting this message:
OKAY [ 1.911s]
writing 'recovery' 1/2...
FAILED (remote: image error! (BootMagic check fail))
finished. total time: 1.943s
i have found two that install but if i try booting into them i either get kicked right back to bootloader or it hangs then tries to boot into OS (which doesnt exist)
any help would be appreciated!
p.s ive read the majority of m8s threads
also get this error when i try to update ruu
C:\Users\Daniel\Desktop\platform-tools-latest-windows\platform-tools>fastboot flash flashall 0PKVIMG.zip
target reported max download size of 16777216 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 2259689442 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2242916322 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2226143202 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2209370082 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2192596962 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2175823842 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2158964706 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2142191586 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2267365346 is not a multiple of the block size 4096
sending sparse 'flashall' 1/9 (16380 KB)...
error: write_sparse_skip_chunk: don't care size 2259689442 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2259689442 is not a multiple of the block size 4096
OKAY [ 1.625s]
writing 'flashall' 1/9...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 2.708s

Try using htc_fastboot.exe

Thijs_Rallye said:
Try using htc_fastboot.exe
Click to expand...
Click to collapse
I will try and get back with results!
Thanks!!
OKAY!!! back to stock recovery but im not sure how to get stock OS back? should i send to sd card then try in bootloader or RUU? which file do i need? firmware, kernal or RUU?
Thanks again!

Sorry, can't help you any further since I don't have any experience with this. You can RUU the phone, that is about as far as my knowledge reaches.
Edit: try reading the whole root topic by El-Conkistador. I know it's a lot, but it is a good start finding all the common "pitfalls". (like not using htc_fastboot.exe )

Thijs_Rallye said:
Sorry, can't help you any further since I don't have any experience with this. You can RUU the phone, that is about as far as my knowledge reaches.
Edit: try reading the whole root topic by El-Conkistador. I know it's a lot, but it is a good start finding all the common "pitfalls". (like not using htc_fastboot.exe )
Click to expand...
Click to collapse
im making progress now but really would be nowhere with out that bit of information!
https://forum.xda-developers.com/ht...lp-thread-htc-one-m8s-to-stock-howto-t3190238
thanks again ive been scratching my head for weeks just needed some clarity!
P.S if you think there is any point of posting my results then i will! :good::good::good:

Small update custom recovery and stock recovery working! able to install custom rom... but exhausted every stock firmware available found one that almost worked but wrong CID!!! tried changing .txt file to include mine but corrupt the archive :/ if any one has a dump of there's would be great! looking for CID ORANG001 [email protected]

Any additional information is always welcome on a forum imho. There are already way to many dead ends at XDA. (I.e. people found a solutions for themselves and never bothered to post it.)
Changing the txt will change the checksum, so that trick won't work. Have you already looked at the RUU's?
https://ruu.lalleman.net/HTC_M8S(QL_UL)/RUU/
Can you post a getvar -all (remove the IMEI and serial)

Thijs_Rallye said:
Any additional information is always welcome on a forum imho. There are already way to many dead ends at XDA. (I.e. people found a solutions for themselves and never bothered to post it.)
Changing the txt will change the checksum, so that trick won't work. Have you already looked at the RUU's?
https://ruu.lalleman.net/HTC_M8S(QL_UL)/RUU/
Can you post a getvar -all (remove the IMEI and serial)
Click to expand...
Click to collapse
I didnt think it would work as it changes the size of the archive drastically.
as you will see from the getvar none of the RUU's match my radio and the one that matches my CID makes progress but eventually fails...
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: [email protected]
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8ql_ul
(bootloader) platform: hTCBmsm8939
(bootloader) modelid: 0PKV10000
(bootloader) cidnum: ORANG001
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 0b9a12e3
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
(bootloader) mfg-name: 0001
all: Done!
Execution time is 661(ms)
sorry if im being really stupid and missing something obvious and again thanks for caring! :good:

Checksum isn't solely about size .
Maybe this RUU works:
https://ruu.lalleman.net/HTC_M8S(QL...10.1G50408_15.00_016_F_release_431629_signed/
You can try searching here: http://ir-file.com/ , but the service for downloading isn't free. (not ridiculously expensive either considering buying a working phone otherwise )
Use the search terms: M8_QL_UL_L50_
You can only reinstall (RUU) the same version or a newer one. If you upgrade to Marsmallow you will be stuck with Marshmallow since there is no way to downgrade. (because there is no S-off, and also not likely there will come one)
Good luck

Thijs_Rallye said:
Checksum isn't solely about size .
Maybe this RUU works:
https://ruu.lalleman.net/HTC_M8S(QL...10.1G50408_15.00_016_F_release_431629_signed/
You can try searching here: http://ir-file.com/ , but the service for downloading isn't free. (not ridiculously expensive either considering buying a working phone otherwise )
Use the search terms: M8_QL_UL_L50_
You can only reinstall (RUU) the same version or a newer one. If you upgrade to Marsmallow you will be stuck with Marshmallow since there is no way to downgrade. (because there is no S-off, and also not likely there will come one)
Good luck
Click to expand...
Click to collapse
i will download and try and of course post my results, and if not will look at your other link! :good:

Slugnut25 said:
i will download and try and of course post my results, and if not will look at your other link! :good:
Click to expand...
Click to collapse
\[email protected]50408_15.00_016_F_release_431629_signed>htc_fastboot flash zip rom.zip
sending 'zip'... (163869 KB) OKAY
sending time = 8.050 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (status read failed (Too many links))
Execution time is 20(s)

Slugnut25 said:
\[email protected]50408_15.00_016_F_release_431629_signed>htc_fastboot flash zip rom.zip
sending 'zip'... (163869 KB) OKAY
sending time = 8.050 secs
writing 'zip'... (bootloader) adopting the signature contained in this image...
(bootloader) signature checking...
(bootloader) rom parsing start ...
(bootloader) rom parsing finish ...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (status read failed (Too many links))
Execution time is 20(s)
Click to expand...
Click to collapse
You can't use HTC_fastboot for flashing a RUU. (as far as I know) There should be an executable included in the zip file. And don't forget to check the MD5 before you start .
Edit: if you extract the ROM.zip from the RUU, you can rename it to 0PKV.zip (verify!) and put in on a SD card. The exact method (google it here in XDA) is described step by step.

I had a no os problem eventually fixed it by side loading the Android Revolution rom to the phone, look on youtube for instructions on how to do this

You can flash same or latest RUU.zip with fastboot with following commands.
htc_fastboot oem lock
htc_fastboot oem rebootRUU
htc fastboot flash zip RUUZIPNAME.zip
Click to expand...
Click to collapse
Note: you cant flash stock rom until you relock your bootloader, and reboot into RUU mode with command will startup with black screen and green logo.
Post the Progress

provide getvar log so I can help you

Related

Final Stock RUU 3.35.617.12 for HTC One M9, need Help

hello,
i found this RUU a few hrs ago and i am not sure it works or not and when yes, OTA upgrades works also or not ??
http://www.androidpolice.com/2015/1...0-1-to-the-unlocked-one-a9-6-0-to-the-one-m9/
i am unlocked and S-Off,
(bootloader) kernel: lk
(bootloader) product: htc_himaulatt
(bootloader) version: 1.0
(bootloader) imei:
(bootloader) version-main: 3.35.617.12
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440792_97.00.51203G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: 11111111
all:
finished. total time: 0.015s
thx regards
lollopatrollo said:
hello,
i found this RUU a few hrs ago and i am not sure it works or not and when yes, OTA upgrades works also or not ??
http://www.androidpolice.com/2015/1...0-1-to-the-unlocked-one-a9-6-0-to-the-one-m9/
i am unlocked and S-Off,
(bootloader) kernel: lk
(bootloader) product: htc_himaulatt
(bootloader) version: 1.0
(bootloader) imei:
(bootloader) version-main: 3.35.617.12
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440792_97.00.51203G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: 11111111
all:
finished. total time: 0.015s
thx regards
Click to expand...
Click to collapse
Are you asking a question or what?
Your clearly already on Android 6
Sent from my HTC One M9 using Tapatalk
clsA said:
Are you asking a question or what?
Your clearly already on Android 6
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Op is asking if ota still work with that rom.
yes it is a questiopn, cause my is my system based on non signet RUU firmware. i donmt have a clean RUU and dont get OTA updates. it works very bad and slow + i dont understand really how i can install TWRP on the m9. i found a few options but i need a RUU/OTA to create a bootable 0PJAIMG.zip right ? found something like that in here XDA
"You can make your own zip version. You just need an android-info.txt file from an RUU (or firmware.zip from OTA). Zip it up with the TWRP image (renamed to recovery.img) and place on the root of your FAT32-formatted SD card in download mode."
so all what i m looking for is a fresh clean install, recieve OTA updates and a little stability, thats why i ask. do u know why i dont get OTA updates ? maybe i did a mistake...
thx
shivadow said:
Op is asking if ota still work with that rom.
Click to expand...
Click to collapse
yes, works all good. my problem is still to create a working 0PJAIMG.zip with TWRP without brick the phone. it s not my phone, i flash it for a friend and he want to use viper venom.
is it possible to flash it without TWRP on the phone ? maybe with ADB or something. think get the stock OTA files is not really important for him too..
thnx guys, many hrs no sleep brain burns ^^
regards
lollopatrollo said:
yes, works all good. my problem is still to create a working 0PJAIMG.zip with TWRP without brick the phone. it s not my phone, i flash it for a friend and he want to use viper venom.
is it possible to flash it without TWRP on the phone ? maybe with ADB or something. think get the stock OTA files is not really important for him too..
thnx guys, many hrs no sleep brain burns ^^
regards
Click to expand...
Click to collapse
if you install TWRP and root your phone at all you will not get OTA updates
if you want OTA you cannot install custom recovery and root.
The only way to get OTA is by having untouched system partition and Stock recovery
The links below in my Signature contain all the files and links you need to...
1.convert and update your phone to DevEd Android 6
2.Install TWRP and SuperSU 2.64
3.and the files needed to return to stock later if another OTA is released
Thanks for this! =D just what i needed!!!
Hello, and VERY sorry to cross post, but my phone is unusable and I wasn't getting any response in the T-Mobile section. Here is what I asked:
I have been searching through XDA for a couple of hours now, and now I must post. Sorry if this has been answered and I just couldn't find the right post.
I have been trying to follow instructions to return my T-Mobile HTC One M9 to stock using RUU, but every time I attempt to flash the RUU, I get this:
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 542282368 is not a multiple of the block size 4096
sending sparse 'zip' (781102 KB)...
error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096
OKAY [ 52.307s]
writing 'zip'...
(bootloader) HOSD CL#505029
(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea
(bootloader) der
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22
(bootloader) ERR Update zip file failed.
(bootloader) ERR ZIP ERROR, exit read zip loop
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) [email protected]
FAILED (remote: 22: fail to flash via downloadzip)
finished. total time: 54.408s
I have re-downloaded, re-flashed firmware, but can't seem to get it to complete. Any help would be most appreciated.
Click to expand...
Click to collapse
its just AT&T or all can flash it?

Which firmware and official ROM to update my AT&T M8 to? (stuck on Android 4.4.2)

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: INVALID_VER_INFO
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul_ca
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B12000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: c3d94491
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
I want to get the latest android available for my HTC M8 (AT&T). I'm currently on Android 4.4.2. I have an mdnsd battery drain bug, and the bluetooth has a bug that causes it to break whenever I get around too many bluetooth devices.
I've tried flashing to TWRP, flashing back to the factory recovery, multiple RUU files, and a SkyDragon ROM. All either don't update or cause a boot loop, and I end up doing a nandroid restore to my old ROM.
I get the impression that I need the correct version of the boot loader, which is included in the right firmware.zip file. I've tried to find the right file, but when I go to the mike1986 page to download the firmware, I'm not sure which version to try. What is the latest official firmware that will work for my phone, and what is the latest official version of Android I can update to?
Any help is greatly appreciated!
Read this - https://forum.xda-developers.com/showthread.php?t=2751432
and this - https://forum.xda-developers.com/att-htc-one-m8/general/marshmellow-update-t3379303
everything that you need is there.
The latest version is Marshmallow 6.20.502.5
ckpv5 said:
Read this - https://forum.xda-developers.com/showthread.php?t=2751432
and this - https://forum.xda-developers.com/att-htc-one-m8/general/marshmellow-update-t3379303
everything that you need is there.
The latest version is Marshmallow 6.20.502.5
Click to expand...
Click to collapse
Thanks! I notice that the firmware isn't flashing, either hanging indefinitely or giving an error message:
C:\adb>fastboot flash zip fw_6.20.502.5.zip
target reported max download size of 1772113920 bytes
sending 'zip' (57092 KB)...
OKAY [ 2.585s]
writing 'zip'...
(bootloader) adopting the signature contained in this image...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (remote: 99 unknown fail)
finished. total time: 2.924s
Do I have to have S-off? I was trying to get around paying $25 for the software.
kentuckythrash said:
Thanks! I notice that the firmware isn't flashing, either hanging indefinitely or giving an error message:
C:\adb>fastboot flash zip fw_6.20.502.5.zip
target reported max download size of 1772113920 bytes
sending 'zip' (57092 KB)...
OKAY [ 2.585s]
writing 'zip'...
(bootloader) adopting the signature contained in this image...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (remote: 99 unknown fail)
finished. total time: 2.924s
Do I have to have S-off? I was trying to get around paying $25 for the software.
Click to expand...
Click to collapse
repeat the flashing command immediately after you see this error
no need for s-off to flash signed firmware only relocked/locked bootloader
ahmed.ismael said:
repeat the flashing command immediately after you see this error
no need for s-off to flash signed firmware only relocked/locked bootloader
Click to expand...
Click to collapse
Thanks! I ended up getting the " FAILED (remote: 90 hboot pre-update! please flush image again immediately)" multiple times, apparently going 7/8s of the way through. I ended up trying the RUU, and it got much further and right now has been on "Updating...(1/1) Sending...." for about 20 minutes. The same window has "Remember, the operation will take about 10 minutes." Should I keep waiting or try the RUU again? I don't know if it's hung or not, and there's no real progress meter.
kentuckythrash said:
Thanks! I ended up getting the " FAILED (remote: 90 hboot pre-update! please flush image again immediately)" multiple times, apparently going 7/8s of the way through. I ended up trying the RUU, and it got much further and right now has been on "Updating...(1/1) Sending...." for about 20 minutes. The same window has "Remember, the operation will take about 10 minutes." Should I keep waiting or try the RUU again? I don't know if it's hung or not, and there's no real progress meter.
Click to expand...
Click to collapse
actually in my first respond i was mistaken about the error 99
i was talking about error 90 sorry about that
now wait for the RUU to complete the process or return with an error
if something changed please post it here
ahmed.ismael said:
actually in my first respond i was mistaken about the error 99
i was talking about error 90 sorry about that
now wait for the RUU to complete the process or return with an error
if something changed please post it here
Click to expand...
Click to collapse
It's been an hour and no change... should I let it continue? Seems like it should have finished by now.
kentuckythrash said:
It's been an hour and no change... should I let it continue? Seems like it should have finished by now.
Click to expand...
Click to collapse
what is the current status for the phone ?
If the flashing didn't start then try to flash the firmware again
Another question : did you relocked the bootloader ?
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
what is the current status for the phone ?
If the flashing didn't start then try to flash the firmware again
Another question : did you relocked the bootloader ?
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
The phone screen has the htc gradient logo. The bootloader is relocked.
I've attached an image of the ROM update window.
kentuckythrash said:
The phone screen has the htc gradient logo. The bootloader is relocked.
I've attached an image of the ROM update window.
Click to expand...
Click to collapse
Ok open cmd window and type
fastboot reboot-bootloader
Then flash the firmware
From where you got the firmware ?
and try with another USB 2 port don't use USB 3 type
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
Ok open cmd window and type
fastboot reboot-bootloader
Then flash the firmware
From where you got the firmware ?
and try with another USB 2 port don't use USB 3 type
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
I got the firmware from:
https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU
I tried the 'fastboot reboot-bootloader' command and see:
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
and it won't go past that point.
kentuckythrash said:
I got the firmware from:
https://mega.nz/#!XV5EjYhS!gNN_rAYovaMQpaeP2OSdkfYAIEAmv6VnB-QlZ1VadMU
I tried the 'fastboot reboot-bootloader' command and see:
C:\adb>fastboot reboot-bootloader
rebooting into bootloader...
and it won't go past that point.
Click to expand...
Click to collapse
Close the RUU setup wizard if it still didn't flash anything or hanging on the same screen
And restart your pc then try to flash the firmware again on the device ( as it's on RUU mode )
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
Close the RUU setup wizard if it still didn't flash anything or hanging on the same screen
And restart your pc then try to flash the firmware again on the device ( as it's on RUU mode )
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
Thanks for your prompt responses! I managed to successfully update the firmware, seeing a completed message in the command prompt, and green bar on the HTC screen. However, now I'm still stuck on "
Updating...(1/1) Sending.......
Updating the ROM image on your Android phone...
"
I've rebooted my workstation and the phone multiple times. Not sure where to go from here.
kentuckythrash said:
Thanks for your prompt responses! I managed to successfully update the firmware, seeing a completed message in the command prompt, and green bar on the HTC screen. However, now I'm still stuck on "
Updating...(1/1) Sending.......
Updating the ROM image on your Android phone...
"
I've rebooted my workstation and the phone multiple times. Not sure where to go from here.
Click to expand...
Click to collapse
another solution you can extract the rom.zip from the RUU.exe
By start it and goto %temp% folder and you will find rom.zip
Here what you need to do
press ctrl+r and type %temp% it will open a folder,delete everything in this folder
start the RUU.exe again,once it starting and hang goto %temp% folder again you will find a folder and the rom.zip inside it copy it and flash using fastboot or
rename it to 0P6BIMG.zip and put it in your sd card ( formatted as fat32 ) then reboot into bootloader the update process should start automatically
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
another solution you can extract the rom.zip from the RUU.exe
By start it and goto %temp% folder and you will find rom.zip
Here what you need to do
press ctrl+r and type %temp% it will open a folder,delete everything in this folder
start the RUU.exe again,once it starting and hang goto %temp% folder again you will find a folder and the rom.zip inside it copy it and flash using fastboot or
rename it to 0P6BIMG.zip and put it in your sd card ( formatted as fat32 ) then reboot into bootloader the update process should start automatically
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
OK. There were 2 .zip files, rom_01.zip and rom_02.zip. Here's what happened when I tried to flash each:
--------------------------------------------------------------------------------
C:\adb>fastboot flash zip rom_01.zip
target reported max download size of 1826418688 bytes
sending 'zip' (493 KB)...
OKAY [ 0.218s]
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) total_image_number=1
(bootloader) start image[hboot] unzipping & flushing...
(bootloader) [RUU]UZ,hboot,0
(bootloader) [RUU]UZ,hboot,50
(bootloader) [RUU]UZ,hboot,100
(bootloader) signature checking...
(bootloader) [RUU]WP,hboot,0
(bootloader) [RUU]WP,hboot,99
(bootloader) [RUU]WP,hboot,100
(bootloader) ...... Successful
(bootloader) current_image_number=0
OKAY [ 2.260s]
finished. total time: 2.480s
C:\adb>fastboot flash zip rom_02.zip
target reported max download size of 1825775616 bytes
sending 'zip' (1584998 KB)...
OKAY [ 48.647s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 106.973s
C:\adb>
--------------------------------------------------------------------------------
So I guess the problem is the FAILED "remote:12 signature verify fail"
kentuckythrash said:
OK. There were 2 .zip files, rom_01.zip and rom_02.zip. Here's what happened when I tried to flash each:
--------------------------------------------------------------------------------
C:\adb>fastboot flash zip rom_01.zip
target reported max download size of 1826418688 bytes
sending 'zip' (493 KB)...
OKAY [ 0.218s]
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) total_image_number=1
(bootloader) start image[hboot] unzipping & flushing...
(bootloader) [RUU]UZ,hboot,0
(bootloader) [RUU]UZ,hboot,50
(bootloader) [RUU]UZ,hboot,100
(bootloader) signature checking...
(bootloader) [RUU]WP,hboot,0
(bootloader) [RUU]WP,hboot,99
(bootloader) [RUU]WP,hboot,100
(bootloader) ...... Successful
(bootloader) current_image_number=0
OKAY [ 2.260s]
finished. total time: 2.480s
C:\adb>fastboot flash zip rom_02.zip
target reported max download size of 1825775616 bytes
sending 'zip' (1584998 KB)...
OKAY [ 48.647s]
writing 'zip'...
(bootloader) signature checking...
FAILED (remote: 12 signature verify fail)
finished. total time: 106.973s
C:\adb>
--------------------------------------------------------------------------------
So I guess the problem is the FAILED "remote:12 signature verify fail"
Click to expand...
Click to collapse
rom_02 rename it to 0P6BIMG.zip and put it in your sd card and reboot to bootloader,have you tried to do that ?
rom_01 is hboot as shown in the output
rom_02 supposed to be the RUU
Sent from my HTC M8 using XDA Labs
ahmed.ismael said:
rom_02 rename it to 0P6BIMG.zip and put it in your sd card and reboot to bootloader,have you tried to do that ?
rom_01 is hboot as shown in the output
rom_02 supposed to be the RUU
Sent from my HTC M8 using XDA Labs
Click to expand...
Click to collapse
That worked! Thank you very much for your help. These M8s are really hard to update!
kentuckythrash said:
That worked! Thank you very much for your help. These M8s are really hard to update!
Click to expand...
Click to collapse
Not hard but tricky
Glad i helped
Sent from my HTC M8 using XDA Labs

[HELP] AUS/Optus Model - Deleted OS

This is probably the dumbest thing I have to date :C
At the start of last year I rooted my device and unlocked it, fast forward to the start of this week I tried updating my device but it kept on launching TWRP, so I decided to factory reset it.
However I was a big spud and used advanced wipe - and now the phone will boot straight to the bootloader.
Before I post anything else here is the getvar from download mode.
Code:
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) version-main: 2.9.710.2
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.04_U11440601_71.02.50709G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: OPTUS001
The device is currently in s-on, and I can't remember if it was ever in s-off because it was a long time ago when I rooted it.
I have tried flashing a custom rom with no success, and just recently I have downloaded and tried to flash "0PJAIMG_HIMA_UHL_L50_SENSE70_hTC_Asia_AUS_1.32.710.16_Radio_01.01_U11440261_56.02.50306G_2_F_release_427214_signed.zip"
This is the error I receive while trying to flash the device in fastboot.
Code:
C:\adb>fastboot oem rebootRUU
...
OKAY [ 0.017s]
finished. total time: 0.018s
C:\adb>fastboot flash zip 0PJAIMG.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 2128996130 is not a multiple of the block size 4096
sending sparse 'zip' (0 KB)...
error: write_sparse_skip_chunk: don't care size 2128996130 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2128996130 is not a multiple of the block size 4096
OKAY [ 1.013s]
writing 'zip'...
(bootloader) HOSD CL#573756
(bootloader) ERR lzipv1_init : Cannot read header len bytes
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_n
(bootloader) A2AxZ
FAILED (remote: 99: SD_UNKNOWN_FAIL to flash via downloadzip)
finished. total time: 2.048s
I don't have any backups of any sort - basically I just want to be able to get this phone running back on stock and leave it at that.
Does anyone have any ideas of how I can fix this? My phone has been broken for 3 days and I've wasted a lot of time downloading roms that won't flash (takes a while to download on my crappy ADSL connection).
I should also note I do not have an external SD card, hoping to do it without buying one.
Thanks heaps.
Please read the ReadMe thread. Its RUU section explains why you can't flash the RUU that you mentioned in your OP and why flashing M9 RUUs in general fails if you use fastboot.
After you downloaded the correct files you can try to flash a RUU with the modified fastboot instead of using an SD card. Troubleshooting tips can be found in the FAQ of the same thread. Be aware, that using an SD card is the recommended method since many users aren't able to set up a fastboot environment correctly and using an SD card is less time-consuming than trying to find the user error that prevents fastboot from working correctly.

htc m9

Hallo good people. I am very new here. Irecently obtained an m9u from a friend. Apps keep stopping unexpectedly and accessing google servers seems to be a problem too. I took it to a technician but he couldnt help as the Australian software he installed is even worse. I decided ti flash on my own but i am getting an error 'invalid sparse file format at header magi'
Followed by something like 'couldnt read header len' Anyone who can help? Thanks
Have you gone through the readme thread?
I have only searched for related threads but wasn't lucky to find a solution to my problem
Boot in download and do "fastboot getvar all" and post here the result(remove your imei,sn...)
lucyr03 said:
Boot in download and do "fastboot getvar all" and post here the result(remove your imei,sn...)
Click to expand...
Click to collapse
D:\fastboot-win>fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei:
(bootloader) version-main: 3.38.841.6
(bootloader) boot-mode: download
(bootloader) version-baseband: 01.01_U11440801_96.01.51207G_F
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: 11111111
all:
finished. total time: 0.011s
Because of SuperCID I assume you have S-OFF too.
I recommend you to install the international ruu, but first change supercid(11111111) to a normal cid(HTC__032 for international).
Then you need to flash a nougat(4.xx.xxx.xx) firmware because you can't flash nougat ruu on marshmallow firmware(3.xx.xxx.xx).
After that you can flash the nougat ruu.
Links:
Nougat firmware: https://androidfilehost.com/?fid=817550096634760161
Nougat RUU: https://androidfilehost.com/?fid=961840155545567615
lucyr03 said:
Because of SuperCID I assume you have S-OFF too.
I recommend you to install the international ruu, but first change supercid(11111111) to a normal cid(HTC__032 for international).
Then you need to flash a nougat(4.xx.xxx.xx) firmware because you can't flash nougat ruu on marshmallow firmware(3.xx.xxx.xx).
After that you can flash the nougat ruu.
Links:
Nougat firmware: https://androidfilehost.com/?fid=817550096634760161
Nougat RUU: https://androidfilehost.com/?fid=961840155545567615
Click to expand...
Click to collapse
Thanks alot for the assistance. My phone is S-OFF but i will have to follow the procedures a step at a time because i am not good at tech. I hope things will work out fine.
mikkei said:
Thanks alot for the assistance. My phone is S-OFF but i will have to follow the procedures a step at a time because i am not good at tech. I hope things will work out fine.
Click to expand...
Click to collapse
You could find all informations you need in ReadMe thread.
lucyr03 said:
You could find all informations you need in ReadMe thread.
Click to expand...
Click to collapse
Thanks again. I will go through the thread, your guidance is highly appreciated
still unable to flash the RUU. Did relock the bootloader not sure whether it could be the cause
D:\adb>fastboot flash zip software.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 2164446778 is not a multiple of
the block size 4096
sending sparse 'zip' (0 KB)...
error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of
the block size 4096
error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of
the block size 4096
OKAY [ 1.058s]
writing 'zip'...
(bootloader) HOSD CL#869604
(bootloader) ERR lzipv1_init : Cannot read header len bytes
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_D
(bootloader) R2MQ3
(bootloader) ERR preload central directory info failed (EOCD).
FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0)
finished. total time: 2.110s
mikkei said:
still unable to flash the RUU. Did relock the bootloader not sure whether it could be the cause
D:\adb>fastboot flash zip software.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 2164446778 is not a multiple of
the block size 4096
sending sparse 'zip' (0 KB)...
error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of
the block size 4096
error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of
the block size 4096
OKAY [ 1.058s]
writing 'zip'...
(bootloader) HOSD CL#869604
(bootloader) ERR lzipv1_init : Cannot read header len bytes
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_D
(bootloader) R2MQ3
(bootloader) ERR preload central directory info failed (EOCD).
FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap with original ret: 0)
finished. total time: 2.110s
Click to expand...
Click to collapse
You don't need to relock your bootloader when S-OFF.
With the fastboot method you need do do this command frist: fastboot oem rebootRUU
I recommend sdcard method anyway, the fastboot can fail if you don't have the correct htc_fastboot.exe
lucyr03 said:
You don't need to relock your bootloader when S-OFF.
With the fastboot method you need do do this command frist: fastboot oem rebootRUU
I recommend sdcard method anyway, the fastboot can fail if you don't have the correct htc_fastboot.exe
Click to expand...
Click to collapse
Thanks for your quick reply. I had done that command already. Guess the problem is that I don't have correct htc_fastboot. Have to try sd method now
lucyr03 said:
You don't need to relock your bootloader when S-OFF.
With the fastboot method you need do do this command frist: fastboot oem rebootRUU
Click to expand...
Click to collapse
That only applies to HTC devices that are older than the M9. On the M9 you don't need to relock at all for RUUs. And the download mode accepts RUUs via htc_fastboot, as well. It even gives you a more detailed output about the flashing process of the single files inside the RUU than the RUU mode.
Flippy498 said:
That only applies to HTC devices that are older than the M9. On the M9 you don't need to relock at all for RUUs. And the download mode accepts RUUs via htc_fastboot, as well. It even gives you a more detailed output about the flashing process of the single files inside the RUU than the RUU mode.
Click to expand...
Click to collapse
I encountered errors with custom RUUs(not signed) in download mode, that's the cause I told him to flash from RUU mode.
EDIT: Off-topic: I saw in your signature that you are using ViperOneM9 rom, what kernel are you using and how's battery life, if you have some time could you PM me please? I have few questions
Flippy498 said:
That only applies to HTC devices that are older than the M9. On the M9 you don't need to relock at all for RUUs. And the download mode accepts RUUs via htc_fastboot, as well. It even gives you a more detailed output about the flashing process of the single files inside the RUU than the RUU mode.
Click to expand...
Click to collapse
Thanks for the clarification. If you can please give me a link to the correct htc_fastboot.
They're linked in one of the first posts of the ReadMe thread.
Flippy498 said:
They're linked in one of the first posts of the ReadMe thread.
Click to expand...
Click to collapse
Okay. Thanks
Thanks all for your help I was finally able to flash my phone, unfortunately apps are still stopping unexpectedly so i suspect it could be a hardware issue. Right now the digitizer doesn't work, volume buttons don't work too neither can i use a mouse so I have to wait for the device to run out of power. I think its time to buy a new phone I can't keep bothering people here. All the best team developers!
mikkei said:
Thanks all for your help I was finally able to flash my phone, unfortunately apps are still stopping unexpectedly so i suspect it could be a hardware issue. Right now the digitizer doesn't work, volume buttons don't work too neither can i use a mouse so I have to wait for the device to run out of power. I think its time to buy a new phone I can't keep bothering people here. All the best team developers!
Click to expand...
Click to collapse
Hmm, that's strange, can you flash a twrp and see if the digitizer is working?
Sent from my HTC One M9 using Tapatalk
lucyr03 said:
Hmm, that's strange, can you flash a twrp and see if the digitizer is working?
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
It actually worked for some time after flashing the RUU but later everything started misbehahing just like before. The problem is that i can not power off so no way to boot download mode. ADB does not recognise my device since i cannot unlock it.

Recovery/System Bootloop - Fastboot Doesn't Flash

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: [email protected]
(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) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
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!
Will add as much info as possible and update my current status if asked.
Stop before you break it.
Find the official stock signed firmware ruu in .zip format that matches your current firmware. Ie 3.41.651.x (x can be any number but the other 3 octets MUST MATCH). Rename it to 0PJAIMG.ZIP and copy to the external sdcard.
DO NOT relock/lock the bootloader and DO NOT s-on.
Boot to download mode (Black screen red writing) and at the bottom, in yellow text, you should see "press vol up to flash"..
shivadow said:
Stop before you break it.
DO NOT relock/lock the bootloader and DO NOT s-on.
Boot to download mode (Black screen red writing) and at the bottom, in yellow text, you should see "press vol up to flash"..
Click to expand...
Click to collapse
That's unfortunately the issue, I AM S-On, never turned it off, which has pretty much sealed this poor phones fate I assume. If not, I'm betting I would have already flashed a no wipe .zip successfully. It's a shame, since this could have been prevented if I knew this phone was prevalent to system corruption, now the only thing I can depend on is obtaining a compatible recovery, since mine isn't working, download/fastboot is the only thing I have now.
It also seems I cannot find the "RUU_HIMA_WHL_M60_SENSE70_SPCS_MR_Sprint_WWE_3.41.651.4.zip" over the web, would an .exe work if I rename the extension as .zip?
S-on or s-off doesn't matter. What i meant is if you go s-off there is no need to ever s-on again. Same for bootloader. If it's unlocked then you don't ever need to lock/relock it.
Exe or zip but sometimes exe fails. Exe must be run on a pc and have the phone connected via USB. Zip must be run from external sdcard. It MUST be that version regardless.
Your only way without buggering it further is to flash the stock firmware. It will replace the recovery etc itself and will be safer than messing around with it, if it flashes OK.
shivadow said:
S-on or s-off doesn't matter. What i meant is if you go s-off there is no need to ever s-on again. Same for bootloader. If it's unlocked then you don't ever need to lock/relock it.
.
Click to expand...
Click to collapse
Then I'm assuming the correct fw "0PJAIMG.zip" would flash successfully even with an unlocked bootloader?
RebeccaSugar said:
Then I'm assuming the correct fw "0PJAIMG.zip" would flash successfully even with an unlocked bootloader?
Click to expand...
Click to collapse
Correct.
If you prefer the *.zip over the *.exe then take a look at the "further reading" section of the ReadMe thread. There's a link to a decryption tool. Download the correct version for your computer. If you use windows, you can drag and drop the *.exe onto the decryption tool and it will extract the *.zip for you. On Linux and Mac you'll probably need to use some commands.
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
Correct.
If you prefer the *.zip over the *.exe then take a look at the "further reading" section of the ReadMe thread. There's a link to a decryption tool. Download the correct version for your computer. If you use windows, you can drag and drop the *.exe onto the decryption tool and it will extract the *.zip for you. On Linux and Mac you'll probably need to use some commands.
Sent from my HTC One M9 using XDA Labs
Click to expand...
Click to collapse
Done, though, after doing the "0PJAIMG.zip" method once more, it interrupts the flash with a very fast error(?) message highlighted in white then quickly reverts to bootlooping the recovery splash screen (Black Background with Silver HTC Logo)
I decided to flash the boot.img and system.img
target reported max download size of 800000000 bytes
sending 'recovery' (20084 KB)...
OKAY [ 2.097s]
writing 'recovery'...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 1.838s]
finished. total time: 3.939s
(bootloader) kernel: lk
(bootloader) product: htc_himawhl
(bootloader) version: 1.0
(bootloader) imei: 990005027515833
(bootloader) version-main: 3.41.651.4
(bootloader) boot-mode: download
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA20000
(bootloader) cid: SPCS_001
C:\Users\Infinity>Documents\Pack\fastboot.exe flash system C:\Users\Infinity\Documents\James\HTC\OUT_0PJA_3.41.651.21\system\system.img
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
erasing 'system'...
OKAY [ 0.232s]
sending sparse 'system' 1/6 (743090 KB)...
OKAY [ 40.331s]
writing 'system' 1/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 28.653s]
sending sparse 'system' 2/6 (725823 KB)...
OKAY [ 39.600s]
writing 'system' 2/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 27.937s]
sending sparse 'system' 3/6 (776453 KB)...
OKAY [ 42.390s]
writing 'system' 3/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 30.090s]
sending sparse 'system' 4/6 (764994 KB)...
OKAY [ 41.446s]
writing 'system' 4/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 30.371s]
sending sparse 'system' 5/6 (775925 KB)...
OKAY [ 42.348s]
writing 'system' 5/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 29.562s]
sending sparse 'system' 6/6 (546809 KB)...
OKAY [ 31.210s]
writing 'system' 6/6...
(bootloader) HOSD CL#695981
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 21.738s]
finished. total time: 405.943s
They were successful, apparently, but I've seen no changes. When booting, it just hangs on the white splash screen with the green htc logo and the "This build is for development, etc" warning.
If only I had a way to boot a working recovery, the more I do this, the more it seems like it is without a shadow of a doubt, a hardware problem.
Here are some logs, the fw seems to match up with my phone just fine, nonetheles...
View attachment RUU_Decrypt_LOG-0PJA20000_3.41.651.21_2018-04-01_025319.txt
View attachment android-info.txt
View attachment android-info2.txt
View attachment backup_android-info.txt
I noticed that you used fastboot. Be aware that flashing RUUs isn't possible with the generic fastboot files. You'll need htc_fastboot. A download link can be found in the RUU section of the ReadMe thread.
Are you sure that the SD card isn't broken? (Never use old cards for flashing RUUs. They can corrupt the files.) Did you try another one? Normally the extracted *.zip should flash just fine via an SD card.
I'd try a different SD card and flashing the RUU via htc_fastboot. (Flashing only the system and the boot.img might not be sufficient.) If both methods fail then the phone's hardware is most probably damaged and there's nothing you could do.
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
I noticed that you used fastboot. Be aware that flashing RUUs isn't possible with the generic fastboot files. You'll need htc_fastboot. A download link can be found in the RUU section of the ReadMe thread.
Are you sure that the SD card isn't broken? (Never use old cards for flashing RUUs. They can corrupt the files.) Did you try another one? Normally the extracted *.zip should flash just fine via an SD card.
I'd try a different SD card and flashing the RUU via htc_fastboot. (Flashing only the system and the boot.img might not be sufficient.) If both methods fail then the phone's hardware is most probably damaged and there's nothing you could do.
Sent from my HTC One M9 using XDA Labs
Click to expand...
Click to collapse
I used a different SD card, formatted it to fat32 then exFAT, and nothing happened, it just gave me another error and rebooted. Though, after the reboot I manually booted the download mode and the same happened. Except this time, it gave me a list of all the .img files at 0% inside the "0PJAIMG.zip" before abruptly shutting off.
I took your advice on using the manual htc_fastboot to flash the "0PJAIMG.zip", even with the powershell, and it still fails.
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 3.41.651.21
found large-zip header, file count: 8
processing file 1/8...
sending 'zip' (88845 KB)...
OKAY [ 5.992s]
writing 'zip'...
(bootloader) HOSD CL#695981
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 7.195s
htc_fastboot finished. total time: 8.782s
I did a bit of spelunking and came across this users post, that had the same issue as I.
repl1ca said:
Ok...so hopefully I didn't foobar something. I went to go back to stock since I'm returning my phone soon (1 year lease), so I relocked my bootloader before trying to flash the RUU (I'm S-ON by the way). Relock went fine, but the phone immediately returned to the bootloader with a "*** Security Warning***" message and now the phone won't boot into the ROM or recovery. I tried booting into download mode and flashing the RUU zip, but I am getting the following message:
Code:
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash zip d:\downloads\0PJAIMG.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 2330284468 is not a multiple of the block size 4096
sending sparse 'zip' (0 KB)...
error: write_sparse_skip_chunk: don't care size 2330284468 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2330284468 is not a multiple of the block size 4096
OKAY [ 1.015s]
writing 'zip'...
(bootloader) HOSD CL#695981
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 2.017s
I also tried running the RUU exe in download mode, but that didn't work either.
Hopefully I am doing something wrong and didn't mess the phone up! I will be forever in debt to whoever can help me.
P.S. - I also tried unlocking the bootloader again but that is failing as well!! (Even though it says successful...)
_____________________________________________________________________________
EDIT: Ok, so I gave my Windows account full access to the platform-tools folder (which includes fastboot and the unlock token) and tried unlocking again, and it worked?! ROM is booting now, but how do I avoid having this happen again and return to stock? TIA
Click to expand...
Click to collapse
What did he mean by "Full Access to the platform-tools folder"? That may be my meal ticket to getting my phone working or nothing else.
You have to go into Windows Explorer on your computer and find the platform-tools folder. Once you find it, right click on it and go to Properties, then the Security tab. On that tab, add your Windows username in there and make sure the Full Access box is checked. Hit Apply, then OK.
My post is really old, so I'm having a hard time remembering what the actual issue was [emoji23]
Sent from my SM-G965U using Tapatalk
Security fail means the ruu is corrupt. Remote:9 I think is unsigned ruu. You need to be flashing a signed ruu.zip.
shivadow said:
Security fail means the ruu is corrupt. Remote:9 I think is unsigned ruu. You need to be flashing a signed ruu.zip.
Click to expand...
Click to collapse
That's what bothers me the most, the ruu I have IS signed, you sure I don't need S-OFF, or to lock the bootloader?
Security or bootloader make no odds. If you had s-off life would probably be easier..
Exactly which file are you flashing? Have you checked the md5 hash?
shivadow said:
Security or bootloader make no odds. If you had s-off life would probably be easier..
Exactly which file are you flashing? Have you checked the md5 hash?
Click to expand...
Click to collapse
I'll probably buy the XTC 2 Clip chip thing needed to manually turn S-OFF, I don't care about paying a little extra, as long as I can recover all my files in the phone.
I am flashing a "3.41.651.21" .zip from extracted from "RUU_HIMA_WHL_M60_SENSE70_SPCS_MR_Sprint_WWE_3.41.651.21.exe"
The MD5 hash for it is "f41f1b941eb3f9f9ecaebcbf235e87af"
Which looking up the hash reveals to be the version for my exact same hardware, kernel and software version
https://androidfilehost.com/?fid=312978532265363975
I'm more than confident S-OFF is the only way to fix it. Unless there are cases of android bricking, even with a working fastboot. Something, a type of security, is preventing files from being read/flashed, unless It's an eMMc error. Two verdicts now.
You most probably won't be able to recover any files at this point. Flashing a RUU will delete everything that's stored on your phone. Even S-OFF won't change that. S-OFF will only enable downgrading with older RUUs. Converting the phone isn't recommended unless you're willing to risk getting a paperweight since it's a CDMA device.
I haven't seen error 9 before I read about it in this thread. Since you already tried different methods and the md5 checksum of your manually extracted RUU seems to match the one of the AFH RUU, chances are high that the phone's hardware is broken.
Sorry for the bad news.
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
You most probably won't be able to recover any files at this point. Flashing a RUU will delete everything that's stored on your phone. Even S-OFF won't change that. S-OFF will only enable downgrading with older RUUs. Converting the phone isn't recommended unless you're willing to risk getting a paperweight since it's a CDMA device.
Click to expand...
Click to collapse
At this point, it's already a paperweight, what's an extra $100 invested on the XTC 2 Clip going to do? Haha! If I can't recover the files, I'll just make an attempt at salvaging this phone and giving it away to someone else.
Flippy498 said:
I haven't seen error 9 before I read about it in this thread. Since you already tried different methods and the md5 checksum of your manually extracted RUU seems to match the one of the AFH RUU, chances are high that the phone's hardware is broken..
Click to expand...
Click to collapse
That IS a fear, especially about hearing about the "horrors" of the Hynix eMMc from people in the the thread I linked in the OP, and others in gsmhosting, this device might have just been another victim of faulty circuitry, which actually has me steamed.
http://forum.gsmhosting.com/vbb/f961/htc-one-m9-bootloop-2214236/#3
This is going to be my brave (read: foolish) attempt.
The biggest problem of the M9 is the Snapdragon 810 processor. Although later firmware revisions fixed the overheating (more or less) the heat damages that emerged from to the usage of older firmware versions aren't fixable.
Most phones that got sold with this processor suffer from similar issues, sooner or later. If you check the xda forums from other 2015 flagship devices with the SD810 you'll see that they all have some kind of sudden bootloop death problem.
And as said before, getting S-OFF won't change your situation. If you really want to try a method that has a slightly chance of being successful you should search for a jtag device like e.g. a riff-box. The thing is I personally don't have any experiences with jtagging. I only know that it can still help in situations in which there already seems to be no hope, anymore. Check sneakyghost's firmware thread in the development section. If I remember correctly, post #5 contains info or at least a link with further info about the topic. Be aware that these devices can be quite expensive.
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
The biggest problem of the M9 is the Snapdragon 810 processor. Although later firmware revisions fixed the overheating (more or less) the heat damages that emerged from to the usage of older firmware versions aren't fixable.
Most phones that got sold with this processor suffer from similar issues, sooner or later. If you check the xda forums from other 2015 flagship devices with the SD810 you'll see that they all have some kind of sudden bootloop death problem.
Click to expand...
Click to collapse
I've heard things like that before! It shorts out the board or something above those lines, if heating is an issue, then it certainly did that to mine, which may be the fault of the missing recovery and bootloop, along with one crash I remember! Yes, I remembered I had one crash, the screen had all sorts of garbled colorful static on it and the phone made a beeping noise, why didn't I remember that!? I'm an idiot. That should have been a clear warning to back up everything, I should have reminded myself of the issues with the 810 Processor. Whether the crash months earlier had anything to do with what might have either been a sign of decay, or just a coincidence is beyond me, but knowing my current position with this phone, I'll go with the former.
Flippy498 said:
And as said before, getting S-OFF won't change your situation. If you really want to try a method that has a slightly chance of being successful you should search for a jtag device like e.g. a riff-box. The thing is I personally don't have any experiences with jtagging. I only know that it can still help in situations in which there already seems to be no hope, anymore. Check sneakyghost's firmware thread in the development section. If I remember correctly, post #5 contains info or at least a link with further info about the topic. Be aware that these devices can be quite expensive.
Click to expand...
Click to collapse
Lucky for you (and me) I do! I've successfully soldered about 5 things in the past, so this phone should be familiar territory! I just cancelled the XTC 2 Clip order, and instead ordered myself a Riff Box, I saw that it supports my HTC 9, and I thank you for telling me this! I work much better under hardware than software (Thanks ADHD), I'll check out. I immensely appreciate your help, and you taking time out of your day to give me sources, it truly, honestly means a lot. The device is around $120, not horribly expensive, my wallet can take it, I'll update you on my progress later in the thread! Thanks again!
Woah, apparently I don't NEED to solder? Well, this just makes it easier I'd say! BUT, I don't trust myself enough to risk destroying the sensitive data inside my device, so I will e-mail Tecardo and offer him a price for helping me instead. Can't trust myself enough not to screw up!
Oh, only 120 bucks? Don't ask me why but I had a higher price in mind. Either my mind betrayed me or the riff box got cheaper...
Sent from my HTC One M9 using XDA Labs
Flippy498 said:
Oh, only 120 bucks? Don't ask me why but I had a higher price in mind. Either my mind betrayed me or the riff box got cheaper...
Click to expand...
Click to collapse
Well, in your defense, there ARE bundles that are priced ridiculously high (In the $500's for some damned reason) even though you can get the same bundles separately, for less than half of what they ask.

Categories

Resources