Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix extracted img file. #1

Open
bitching opened this issue Mar 23, 2021 · 1 comment
Open

fix extracted img file. #1

bitching opened this issue Mar 23, 2021 · 1 comment

Comments

@bitching
Copy link

extracted vendor.img is ~2GB, system.img is ~3GB.
but the actual size should be ~700MB/~2.5GB, which are similar to the oem's img file, as fastboot recognised.

fastboot reports Invalid sparse file format at header magic and wait a long time before sending the image to the phone. and the time waited will be longer and longer. anyway to fix it?

#fastboot flash vendor_a vendor.img
Invalid sparse file format at header magic
Sending sparse 'vendor_a' 1/1 (703654 KB) OKAY [ 23.485s]
Writing 'vendor_a' OKAY [ 0.000s]
Finished. Total time: 25.689s

#fastboot flash vendor_b vendor.img
Invalid sparse file format at header magic
Sending sparse 'vendor_b' 1/1 (703654 KB) OKAY [ 21.323s]
Writing 'vendor_b' OKAY [ 0.000s]
Finished. Total time: 322.167s

#fastboot flash system_a system.img
Invalid sparse file format at header magic
Sending sparse 'system_a' 1/4 (769732 KB) OKAY [ 24.208s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 2/4 (779120 KB) OKAY [ 24.291s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 3/4 (762041 KB) OKAY [ 24.604s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 4/4 (217916 KB) OKAY [ 14.090s]
Writing 'system_a' OKAY [ 0.000s]
Finished. Total time: 394.575s

#fastboot flash system_b system.img
Invalid sparse file format at header magic
Sending sparse 'system_b' 1/4 (769732 KB) OKAY [ 24.273s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 2/4 (779120 KB) OKAY [ 26.313s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 3/4 (762041 KB) OKAY [ 26.958s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 4/4 (217916 KB) OKAY [ 16.228s]
Writing 'system_b' OKAY [ 0.000s]
Finished. Total time: 220.123s

@tobyxdd
Copy link
Owner

tobyxdd commented Apr 21, 2022

Would you mind testing the latest version? If it still doesn't work, please send me your payload.bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants