Hello dear xda developers
Recently i ve unlocked my HTC One M9`s bootloader, installed a costume recovery and flashed supersu. Now i want to go back to stock. I have already relocked my phone, installed the stock recovery downloaded the Stock RUU.zip file required to get back to stock but there is one Problem: when i try to flash the zip file it goes like this
C:\Users\ilija_000\Desktop\platform-tools>fastboot reboot
< waiting for device >
^C
C:\Users\ilija_000\Desktop\platform-tools>fastboot oem rebootRUU
...
OKAY [ 0.050s]
finished. total time: 0.051s
C:\Users\ilija_000\Desktop\platform-tools>fastboot flash zip ruu.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
C:\Users\ilija_000\Desktop\platform-tools>
and then my fastboot crashes and i cant do anything about it
so if anyone knows how to fix this i would be really glad ty
Does anyone know how to solve error in fastboot while flashing:
Code:
target reported max download size of 16777216 bytes
Invalid sparse file format at header magi
I can't flash recovery, but i was able to flash unlocktoken. I've already tried erasing cache.
cr3h said:
Does anyone know how to solve error in fastboot while flashing:
Code:
target reported max download size of 16777216 bytes
Invalid sparse file format at header magi
I can't flash recovery, but i was able to flash unlocktoken. I've already tried erasing cache.
Click to expand...
Click to collapse
Use a later version fastboot (v2 or 3) and do the update twice.
I've used latest version, probably the file i wanted to flash was corrupted, because with kinghunki's exe it worked.
Hello !
So a friend of mine gave me his Zenfone 2 Selfie who don't want to boot (stuck at Asus boot logo and bootloop)
I've try to reflash system with the sideload but i get this error :
Code:
E:Error in /sideload/package.zip
(Status 1)
E: fota_return_code 408
Installation aborted
I've looked at the recovery log it says after signature verification :
Code:
Device image SKU : erasing 786432 blocks
blkdiscard failed: Invalid argument
writing 8*21 blocks of new data
ww
OTA image SKU : ww
write failed: No space left on device
lseek64 failed: Invalid argument
E:Error in /sideload/package.zip
(Status 1)
E: fota_return_code 408
Installation aborted
sideload_host finished
Installation aborted
I've found on the internet boot.img recovery.img and system.img files, i've tried to flash them with fast boot but when i flash system.img this errors happen :
Code:
λ [email protected] → fastboot flash system system.img
target reported max download size of 268435456 bytes
erasing 'system'...
OKAY [ 0.057s]
sending sparse 'system' (259338 KB)...
OKAY [ 8.148s]
writing 'system'...
FAILED (remote: size too large)
finished. total time: 8.206s
I think it might need some script to partition the system memory ?
Thanks for your replies !
Is it rooted? If not, wipe data should be enough to repair the phone. But, if it's rooted, and your friend is messing with the system files, wipe data and system first, then flash the system.img, and make sure the system.img is for zenfone selfie
Hi !
Thanks for your answer !
So the device isn't rooted, i've tried to wipe data but still bootloop.
I've tried to flash boot.img recovery.img and system.img with modified imgs for rooting (i haven't found the sotck img files) but the problem still the same, the system don't want to flash system.img :
Code:
λ [email protected] → fastboot flash system system.img
target reported max download size of 268435456 bytes
erasing 'system'...
OKAY [ 0.057s]
sending sparse 'system' (259338 KB)...
OKAY [ 8.148s]
writing 'system'...
FAILED (remote: size too large)
finished. total time: 8.206s
(with fastboot erase system before falshing system)
But i found something strange, when my friend gave me his zenphone the recovery says that the SKU was WW, i've already tried with WW, but on the phone box, CN is written : "ANDROID CN/CN5, 5.5".
Should i try to flash CN boot, recovery and system ?
Anyone have another idea ?
Problem solved ! I've trie to flash CN img and everything is ok ! Now i'm searching for a way ton install gapps i don't have the option to flash zip from sdcard in recovery
Sorry, wrong model.
Goyaume said:
Problem solved ! I've trie to flash CN img and everything is ok ! Now i'm searching for a way ton install gapps i don't have the option to flash zip from sdcard in recovery
Click to expand...
Click to collapse
You will need to be rooted if you want gapps.
BTW, Gapps isn't necessary, if you flash WW firmware since CN firmware don't comes with Google apps. Neither the phone is CN or WW version is not the problem, the CN compatible with WW firmware. Here maybe this website will help you, but don't download and flash their files because it's for zenfone 2 ze55*ml so just follow the instructions, but I can't help you for the firmware file because I'm using zenfone 2 ze551ml.
Link: http://www.asus.com/zentalk/forum.php?mod=viewthread&tid=14962
P.S: By the way my ZF2 is TW version but when I do fota, the fota changes my zf2 to ww version itself, and there is no problem using my phone
Hi Goyaume
I have the same problem (buy a chinese Zenfone Selfie with LRX22G.WW_user_1.13.40.661 firmware).
Some apps doesn't run on it so I tried to update the firmware with UL-Z00T-WW-1.14.40.695-user and now is stuck on the boot looping.
Did you solved your problem with a CN firmware?
cn recovery needed
Goyaume said:
Problem solved ! I've trie to flash CN img and everything is ok ! Now i'm searching for a way ton install gapps i don't have the option to flash zip from sdcard in recovery
Click to expand...
Click to collapse
dude where did u find the cn recovery,,i need it ,,link please
Goyaume said:
Problem solved ! I've trie to flash CN img and everything is ok ! Now i'm searching for a way ton install gapps i don't have the option to flash zip from sdcard in recovery
Click to expand...
Click to collapse
Can you provide us CN recovery link and your firmware link? I got same problem as like you.
old thread but maybe someone need the solution.
youtube[dot]com/watch?v=us6qIvdK-TM
just flash "fac" firmware, then flash WW. 100% worked for me. zd551kl bootloop,because wrong firmware region.
r1cute said:
old thread but maybe someone need the solution.
youtube[dot]com/watch?v=us6qIvdK-TM
just flash "fac" firmware, then flash WW. 100% worked for me. zd551kl bootloop,because wrong firmware region.
Click to expand...
Click to collapse
Its worked, Thanks a Lot. Finally CN to WW in ZD551KL
Goyaume said:
Hello !
So a friend of mine gave me his Zenfone 2 Selfie who don't want to boot (stuck at Asus boot logo and bootloop)
I've try to reflash system with the sideload but i get this error :
Code:
E:Error in /sideload/package.zip
(Status 1)
E: fota_return_code 408
Installation aborted
I've looked at the recovery log it says after signature verification :
Code:
Device image SKU : erasing 786432 blocks
blkdiscard failed: Invalid argument
writing 8*21 blocks of new data
ww
OTA image SKU : ww
write failed: No space left on device
lseek64 failed: Invalid argument
E:Error in /sideload/package.zip
(Status 1)
E: fota_return_code 408
Installation aborted
sideload_host finished
Installation aborted
I've found on the internet boot.img recovery.img and system.img files, i've tried to flash them with fast boot but when i flash system.img this errors happen :
Code:
λ [email protected] → fastboot flash system system.img
target reported max download size of 268435456 bytes
erasing 'system'...
OKAY [ 0.057s]
sending sparse 'system' (259338 KB)...
OKAY [ 8.148s]
writing 'system'...
FAILED (remote: size too large)
finished. total time: 8.206s
I think it might need some script to partition the system memory ?
Thanks for your replies !
Click to expand...
Click to collapse
i have same problem can you give me cn recovery and boot please??
how did you solve it?
Goyaume said:
Problem solved ! I've trie to flash CN img and everything is ok ! Now i'm searching for a way ton install gapps i don't have the option to flash zip from sdcard in recovery
Click to expand...
Click to collapse
I have the exact same problem, but in 2017. where did you find the CN img files and if you don't mind can you please show me a step by step process of how you actually did?
Flash cn image file
Ayabongayb said:
I have the exact same problem, but in 2017. where did you find the CN img files and if you don't mind can you please show me a step by step process of how you actually did?
Click to expand...
Click to collapse
Old thread but I think this may help
youtube . com/ watch?v=u_CBA7LkhW4&t=1s
Hi all,
so just to say first that
my phone is s-off
the cid is SPCS_001
the radio is [email protected]
the OS is 3.33.90651.2 (Although there is no OS..?)
So I tried flashing the marshmallow update, and I had some other problems I fixed, but I can't figure this out
So in download mode, my sd card won't mount, i formatted it ext4 in twrp, don't know if that makes a difference..
And so I tried flashing the firmware through fastboot and got this:
fastboot update update.zip
target reported max download size of 800000000 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.img'
archive does not contain 'system.img'
I have the system.img seperate but I can't transfer it to my phone or SD card due to the file size of 4.37GB.
EDIT: I tried flashing system.img and boot.img, system.img gave me this error:
fastboot flash system system.img
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
Any help would greatly be appreciated.. thank you.
any resolution to this?
Same question...any resolution?
TheMonDon said:
Hi all,
so just to say first that
my phone is s-off
the cid is SPCS_001
the radio is [email protected]
the OS is 3.33.90651.2 (Although there is no OS..?)
So I tried flashing the marshmallow update, and I had some other problems I fixed, but I can't figure this out
So in download mode, my sd card won't mount, i formatted it ext4 in twrp, don't know if that makes a difference..
And so I tried flashing the firmware through fastboot and got this:
fastboot update update.zip
target reported max download size of 800000000 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.img'
archive does not contain 'system.img'
I have the system.img seperate but I can't transfer it to my phone or SD card due to the file size of 4.37GB.
EDIT: I tried flashing system.img and boot.img, system.img gave me this error:
fastboot flash system system.img
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
Any help would greatly be appreciated.. thank you.
Click to expand...
Click to collapse
schergr said:
Same question...any resolution?
Click to expand...
Click to collapse
This is kinda old, but I believe, its because the latest twrp doesn't work.
I tried rooting my phone now it will not get pass the loading screen. I tried to flash the stock ruu but I get errors
I have pictures but not aloud to post yet. But on my phone it says
Software status modified
Unlocked
S-on
.
When I try to flash the ruu zip I get
C:\Users\KJ\Desktop\platform-tools>fastboot flash zip rom.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' 1/1 (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.065s]
writing 'zip' 1/1...
(bootloader) HOSD CL#695981
(bootloader) ERR lzipv1_init : Cannot read header len bytes
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_q
(bootloader) LrXHZ
FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap )
finished. total time: 2.142s
Hi,
you could try using the htc_fastboot from here:
https://www.androidfilehost.com/?fid=24421527759880682
----------
(from thread http://forum.xda-developers.com/ver...arshmallow-t3316279/post65365561#post65365561 )
If your current fastboot isn't working/throws errors, please use the HTC fastboot in the zip below:
https://www.androidfilehost.com/?fid=24421527759880682 (htc_fastboot.zip)
Replace existing commands with the HTC_fastboot prefix.
So for example, instead of:
Code:
fastboot flash zip firmware.zip
You would do this instead:
Code:
HTC_fastboot flash zip firmware.zip
You are amazing I just tried and it worked !!!!! You are heavensent.
Now one last question do I have to redo the recovery and everything to get a custom Rom?
I just went through the process of installing the custom Rom again and now my phone constantly boot loops with the message " this build is for development purposes only..." it was the newest version of supersu
Kj_gotem said:
I just went through the process of installing the custom Rom again and now my phone constantly boot loops with the message " this build is for development purposes only..." it was the newest version of supersu
Click to expand...
Click to collapse
I'm glad it worked
You need to look for an older version of SuperSU.... 2.64 or 2.65
edit: I'm pretty sure this one works