android-simg2img
android-simg2img copied to clipboard
simg2img has seeking error with input stdin
Tried to create image from stdin sparse image, but got this error. Source code at master branch commit 2807b363d42adc18e886fcc45a4c728a97d01a30
# cat image.img | simg2img - test.ext4
Unknown error -29 at seeking
Failed to read sparse file
From the code, it looks like the input must be able to seek, but stdin doesn't. If it doesn't support stdin, just remove this capable in main()?