4089d34b93
Previously fastboot would carry on regardless if decompression failed: fastboot: archive does not contain 'vbmeta.img' fastboot: extracting vendor.img (260 MB)... fastboot: W/ziparchive(56777): Zip: unable to allocate 272781472 bytes at offset 0 : No space left on device fastboot: failed to extract 'vendor.img': I/O error fastboot: archive does not contain 'vendor_other.img' fastboot: wiping userdata... This is because all but "boot" and "system" are considered "optional", and the implementation of "optional" was "ignore any failures". What it _should_ have meant was "it's okay if these don't exist, but if they do, failures matter". Fix this logic, use die() more aggressively, and remove spurious "\n"s from die() format strings. Also fix spurious whitespace in the libziparchive format string. Before: Zip: unable to allocate 272781472 bytes at offset 0 : No space left on device After: Zip: unable to allocate 272781472 bytes at offset 0: No space left on device Bug: http://b/68383022 Test: `fastboot update` on marlin Change-Id: I3cbf55f1a33ca125f293f873eafbcfb86c880ba8 |
||
---|---|---|
.. | ||
include/ziparchive | ||
testdata | ||
.clang-format | ||
Android.bp | ||
entry_name_utils-inl.h | ||
entry_name_utils_test.cc | ||
unzip.cpp | ||
zip_archive.cc | ||
zip_archive_benchmark.cpp | ||
zip_archive_common.h | ||
zip_archive_private.h | ||
zip_archive_stream_entry.cc | ||
zip_archive_test.cc | ||
zip_writer.cc | ||
zip_writer_test.cc |