Getting many errors when flashing stock rom on HTC one m9 - General Questions and Answers

When using eather platform-tools, or minimal ADB and fastboot, I get a tonne of errors when trying to flash the stock rom on my HTC. I tried 2 different stock file and both gave me simmilar errors that are hinting at the zip being broken or corrupt. Here is the error:
Code:
Invalid sparse file format at header magic
Sending sparse 'zip' 1/1 (57464 KB) OKAY [ 3.915s]
Writing 'zip' (bootloader) HOSD CL#894012
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_F
(bootloader) D4BAP
(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) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) [email protected]
FAILED (remote: '22 RU_HEADER_ERROR ')
fastboot: error: Command failed

Related

[Q] htc m9 flash demo rom to stock rom

hi i have htc m9 with demo flow rom. by following htcdev instructions i managed to unlock bootloader
i flashed twrp-recovery-2.8.6.0-hima-cptb and rooted the devise with UPDATE-SuperSU-v2.48
with help of sunshine managed to s-off then i done super cid all good till now
(bootloader) kernel: lk
(bootloader) product: htc_himauhl
(bootloader) version: 1.0
(bootloader) imei:
(bootloader) version-main: 1.32.401.15
(bootloader) boot-mode: download
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 0PJA10000
(bootloader) cid: 11111111
i tried alot to flash it with lots of stock rom but i failed
one of the roms i tried 0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.15_R1_Radio_01.01_U11440261_56.02.50306G_2_F_release_426891_signed
always getting this :
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash zip 0PJAIMG.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
sending sparse 'zip' (74921 KB)...
OKAY [ 5.427s]
writing 'zip'...
(bootloader) HOSD CL#493992
(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: 7.565s
i want to flash it to stock rom. demo flow make my m9 useless phone.
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz help
Hi I have demo unit but as per the Instructions from HTCDev I can't find and option to boot into fastboot mode.. how did you manage to do it?

Need to install stock RUU

Hello,
I've been trying to install
"1.27.401.5" RUU from
http://forum.xda-developers.com/one-a9/general/wip-ruu-htc-one-a9-t3240344
on my device that had CM 13 on it.
Device info:
(bootloader) kernel: lk
(bootloader) product: htc_hiaeuhl
(bootloader) version: 1.0
(bootloader) imei: ******
(bootloader) version-main: 1.27.401.5
(bootloader) boot-mode: RUU
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PQ910000
(bootloader) cid: HTC__J15
I do
fastboot oem rebootRUU
fastboot flash zip RUU.zip
which fails with
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 1215134537 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 415136585 is not a multiple of the block size 4096
sending sparse 'zip' (781249 KB)...
error: write_sparse_skip_chunk: don't care size 1215134537 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1215134537 is not a multiple of the block size 4096
OKAY [ 50.949s]
writing 'zip'...
(bootloader) HOSD CL#656287
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_r
(bootloader) gi0WA
(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) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) [email protected]
FAILED (remote: 22 RU_HEADER_ERROR )
I'm also stuck in init fs_mgr_mount_all failed because I flash sense 7g OTA firmware on top of CM 13 rom (don't judge my idiocy)
Anyone know how to fix this issue?
Cheers
Laimonas

Sprint A9 - cyclic reboot after update

I'm having issues after OTA update to Android 6.1 for my HTC A9 Sprint.
After it only cyclic reboot (white screen with HTC)
I try update from .exe and fastboot - but all firmware discontinued with error (sample below, I tested 1.10.651.1 / 1.57.651.1 / 1.60.651.4 / 2.18.651.2 - WHL for Sprint):
C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync>htc_fastboot flash zip 2PQ9IMG_HIA_AERO_WH[email protected]51008_15.00_F_CNV_CNV_HIAE_SPCS_1.15_003_release_453722_signed.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 1.10.651.1
found large-zip header, file count: 23
processing file 1/23...
sending 'zip' (98243 KB)...
OKAY [ 7.336s]
writing 'zip'...
(bootloader) HOSD CL#635870
(bootloader) ERR Tag name out of size
(bootloader) ERR [SD_UPDATE_ERR] Parse zipped android_info fail!
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 14
(bootloader) ERR Update zip file failed.
(bootloader) ERR ZIP ERROR, exit read zip loop
(bootloader) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 14
(bootloader) [email protected]
FAILED (remote: 14 RU_ZIP_INFO_ERROR android-info missing or malformed )
finished. total time: 12.260s
htc_fastboot finished. total time: 12.954s
My CID and MID:
(bootloader) kernel: lk
(bootloader) product: htc_hiaewhl
(bootloader) version: 1.0
(bootloader) imei: 990005706399921
(bootloader) version-main: 2.18.651.2
(bootloader) boot-mode: RUU
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PQ930000
(bootloader) cid: SPCS_001
all:
finished. total time: 0.006s
htc_fastboot finished. total time: 0.183s
(bootloader) version:0.5
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x638000000
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0xc6000000
(bootloader) serialno:HT5BXSZ00380
all:
finished. total time: 0.069s
htc_fastboot finished. total time: 0.236s
I need help for resolved this trouble.
Thanks for help and understanding.

Pls HELP! Flash TWRP without ROOT!

Hi guys!
I want to install Leedroid Rom on my HTC U12+ today.
So i first had to install magisk so i follow the instruction.
Then i had to install TWRP for magisk. Ok so i go to HTC DEV, unlock my bootloader and so on.
Then i boot TWRP without install it to run magisk.
Then i make a big mistake, i run the twrp recovery.img also in the bootet TWRP.
Maybe i install on system, not on vendor, not the other two options.
Then i reboot phone.
And there is the ****.
Its looping all the time.
So i power off and go to bootloader.
I think i had no OS now....nothing is there.....
I can now flash via fastboot and also start TWRP via fastboot boot comand.
But all i try to install a stock rom is failed.
So pls help me guys, im out of ideas now.......
This is what i get from getvar:
PS C:\adb> fastboot getvar all
(bootloader) avb_err:0(0)
(bootloader) is_avb_critical_error:no
(bootloader) boot-mode:FASTBOOT
(bootloader) unlocked:yes
(bootloader) off-mode-charge:0
(bootloader) charger-screen-enabled:0
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4077
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) variant:SDM UFS
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xC55000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xEAC00000
(bootloader) has-slot:modem:no
(bootloader) has-slot:system:yes
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:yes
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:0
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) slot-count:2
(bootloader) secure:yes
(bootloader) product:HTC_Phone
(bootloader) max-download-size:536870912
(bootloader) kernel:uefi
all:
finished. total time: 0.129s
Thanks for your help!
Greetings from Tirol(Austria)
Can no one help me?^^
What region is your device? What is your CID,
JEANRIVERA said:
What region is your device? What is your CID,
Click to expand...
Click to collapse
Region: Europe
and in download modus i get this:
kernel: lk
(bootloader) product: htc_imedugl
(bootloader) version: 1.0
(bootloader) max-download-size: 1088800000
(bootloader) slot-count: 2
(bootloader) current-slot: a
(bootloader) version-main:
(bootloader) boot-mode: download
(bootloader) version-baseband: sdm845-000201b-1807311356
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2Q5510000
(bootloader) cid: HTC__034
Please remove your imei and serial number from your posts
JEANRIVERA said:
Please remove your imei and serial number from your posts
Click to expand...
Click to collapse
Oh! sorry ! done^^
Tiltdozer said:
Oh! sorry ! done^^
Click to expand...
Click to collapse
In the first post your serial number still shows,
Download this
https://androidfilehost.com/?fid=11410932744536984886
JEANRIVERA said:
In the first post your serial number still shows,
Download this
https://androidfilehost.com/?fid=11410932744536984886
Click to expand...
Click to collapse
Also done.
And when i downloaded the file, what´s up next?
Tiltdozer said:
Also done.
And when i downloaded the file, what´s up next?
Click to expand...
Click to collapse
in download mode, fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30.401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
you will need a special htc fastboot, let me know if it works if it doesn't please copy paste your output from the command window here
JEANRIVERA said:
in download mode, fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30.401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
you will need a special htc fastboot, let me know if it works if it doesn't please copy paste your output from the command window here
Click to expand...
Click to collapse
Ah ok.
i hope i find the htc fastboot
My download is finished in 15 minutes, then i try!
Will you be there then?^^
Tiltdozer said:
Ah ok.
i hope i find the htc fastboot
My download is finished in 15 minutes, then i try!
Will you be there then?^^
Click to expand...
Click to collapse
Sure I'll be around....
JEANRIVERA said:
in download mode, fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30.401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
you will need a special htc fastboot, let me know if it works if it doesn't please copy paste your output from the command window here
Click to expand...
Click to collapse
So i get this two errors.
fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30 .401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
error: cannot load '2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30'
PS C:\adb> fastboot flash zip 2Q55IMG.zip
load_file: could not allocate -1923643639 bytes
error: cannot load '2Q55IMG.zip'
Tiltdozer said:
So i get this two errors.
fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30 .401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
error: cannot load '2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30'
PS C:\adb> fastboot flash zip 2Q55IMG.zip
load_file: could not allocate -1923643639 bytes
error: cannot load '2Q55IMG.zip'
Click to expand...
Click to collapse
https://androidfilehost.com/?fid=24052804347805953
---------- Post added at 05:38 PM ---------- Previous post was at 05:37 PM ----------
Tiltdozer said:
So i get this two errors.
fastboot flash zip 2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30 .401.2_Radio_sdm845-000201b-1807311356_release_528103_signed_2_4.zip
error: cannot load '2Q55IMG_IMAGINE_DUGL_O80_SENSE10GP_HTC_Europe_1.30'
PS C:\adb> fastboot flash zip 2Q55IMG.zip
load_file: could not allocate -1923643639 bytes
error: cannot load '2Q55IMG.zip'
Click to expand...
Click to collapse
Download this
https://androidfilehost.com/?fid=24052804347805953
Then rename the the file something like fastboot1.exe and put it in your adb/fastboot working directory then do the same command, but remember to use the new name instead of fastboot use the fastboot1 flash zip........
---------- Post added at 06:10 PM ---------- Previous post was at 05:40 PM ----------
How did it go?
JEANRIVERA said:
https://androidfilehost.com/?fid=24052804347805953
---------- Post added at 05:38 PM ---------- Previous post was at 05:37 PM ----------
Download this
https://androidfilehost.com/?fid=24052804347805953
Then rename the the file something like fastboot1.exe and put it in your adb/fastboot working directory then do the same command, but remember to use the new name instead of fastboot use the fastboot1 flash zip........
---------- Post added at 06:10 PM ---------- Previous post was at 05:40 PM ----------
How did it go?
Click to expand...
Click to collapse
Ok i do that, change the fastboot, and now i get this:
PS C:\adb> fastboot flash zip 2Q55IMG.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 1.30.401.2
found large-zip header, file count: 27
processing file 1/27...
sending 'zip' (92209 KB)...
OKAY [ 3.840s]
writing 'zip'...
(bootloader) HOSD CL#1050003
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 4.843s
htc_fastboot finished. total time: 7.052s
Should i relock my bootloader? I´m S-ON..
Tiltdozer said:
Ok i do that, change the fastboot, and now i get this:
PS C:\adb> fastboot flash zip 2Q55IMG.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 1.30.401.2
found large-zip header, file count: 27
processing file 1/27...
sending 'zip' (92209 KB)...
OKAY [ 3.840s]
writing 'zip'...
(bootloader) HOSD CL#1050003
FAILED (remote: 9 RU_SECURITY_FAIL zip from usb command in download mode)
finished. total time: 4.843s
htc_fastboot finished. total time: 7.052s
Click to expand...
Click to collapse
Ok try this
fastboot oem rebootRUU
then flash zip command
JEANRIVERA said:
Ok try this
fastboot oem rebootRUU
then flash zip command
Click to expand...
Click to collapse
Should i relock my bootloader? I´m S-ON
JEANRIVERA said:
Ok try this
fastboot oem rebootRUU
then flash zip command
Click to expand...
Click to collapse
I get this when in RUU.
PS C:\adb> fastboot oem rebootRUU
...
OKAY [ 0.001s]
finished. total time: 0.001s
htc_fastboot finished. total time: 1.457s
PS C:\adb> fastboot flash zip 2Q55IMG.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 1.30.401.2
found large-zip header, file count: 27
processing file 1/27...
sending 'zip' (92209 KB)...
OKAY [ 3.876s]
writing 'zip'...
(bootloader) HOSD CL#1050003
(bootloader) [multislot] gpt_main_64g_sda.img found, Will force to switc
(bootloader) h slot to _a
(bootloader) Current slot: _b, check gpt_main* only
(bootloader) update GPT (gpt_main_64g_sda.img) successfully.
(bootloader) [multislot] Set bootlun to _a OK
(bootloader) update GPT (gpt_main_64g_sdb.img) successfully.
(bootloader) update GPT (gpt_main_64g_sdc.img) successfully.
(bootloader) update GPT (gpt_main_64g_sdd.img) successfully.
(bootloader) update GPT (gpt_main_64g_sde.img) successfully.
(bootloader) update GPT (gpt_main_64g_sdf.img) successfully.
(bootloader) Perform pre-update
(bootloader) WARN Skip backup_android-info.txt due to unmatched partitio
(bootloader) n name
(bootloader) get 49 images from zip(zip_type=3)
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) lockbooter.im[email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]%
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
(bootloader) [email protected]
FAILED (remote: 90 hboot pre-update! please flush image again immediately )
finished. total time: 6.602s
preupdate done, rebooting...
resending command...
sending 'zip' (92209 KB)...
OKAY [ 4.148s]
writing 'zip'...
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_c
(bootloader) der
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22
(bootloader) ERR ZIP ERROR, exit read zip loop
(bootloader) Update zip file OK
(bootloader) [email protected]
FAILED (remote: 22 RU_HEADER_ERROR )
finished. total time: 7.183s
htc_fastboot finished. total time: 24.720s
He I think it works.
I relocked my bootloader.
Then run it again now it looks like it works, i will tell you soon
That was the problem!!!!!
With S-ON you have to relock bootloader!!!!
Now my phone is starting!
Thx man you´re great!
Hi,
It was simpler! download version 1.53.401.5, rename it to 2Q55IMG.zip and copy to SD.Reboot in downloade mode and then volume. Complete installation is done without problems.

[HELP APPRECIATED]Problem to flash RUU for CID HTC__247

Hi,
I am trying to recover an HTC one a9.
It is locker bootloader. s-on.
It doesnt seem to have any rom installed.
so I only have access to fastboot.
I can't unlock it as it seems oem unlock is disabled.
sh-3.2# ./fastboot oem get_identifier_token
< waiting for any device >
(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp
(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock
(bootloader) [KillSwitch] oem unlock Turn Off!
Click to expand...
Click to collapse
I think my only option is to to flash RUU.
I found few links for the correct RUU file for CID HTC__247. bot all results in a ZIP signature checking failed error.
I tried from sd card of using fastboot. always the same with files from different sources.
./fastboot flash zip 2PQ9IMG.zip
error: write_sparse_skip_chunk: don't care size 1055339792 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 304141584 is not a multiple of the block size 4096
Sending sparse 'zip' 1/3 (733592 KB) error: write_sparse_skip_chunk: don't care size 1055339792 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1055339792 is not a multiple of the block size 4096
OKAY [ 31.807s]
Writing 'zip' (bootloader) HOSD CL#853511
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_z
(bootloader) 8a3Im
(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) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 22
(bootloader) [email protected]
FAILED (remote: '22 RU_HEADER_ERROR ')
fastboot: error: Command failed
Click to expand...
Click to collapse
Do you have any clue what I am missing ?
Here is the getvar all :
(bootloader) kernel: lk
(bootloader) product: htc_hiaeuhl
(bootloader) version: 1.0
(bootloader) max-download-size: 751200000
(bootloader) serialno: XXXXXXX
(bootloader) slot-count: 0
(bootloader) current-slot:
(bootloader) imei: XXXXXXXX
(bootloader) version-main: 2.16.1020.4
(bootloader) boot-mode: download
(bootloader) version-baseband: [email protected]
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2PQ910000
(bootloader) cid: HTC__247
Click to expand...
Click to collapse

Categories

Resources