某次刷机时,fastboot分割system.img刚好超过了512M

sending sparse 'system' (524307 KB)...
FAILED (remote: data too large)
finished. total time: 35.354s
Flash system error


解决方法:

fastboot flash -S 500M system system.img


fastboot支持的-S选项:

options:

  -S <size>[K|M|G]                         Automatically sparse files greater  than 'size'. 0 to disable.