platform_bootable_recovery/updater
Tao Bao 6798315327 otautil: Remove the aborts in RangeSet::Parse().
We used to CHECK and abort on parsing errors. While it works fine for
the updater use case (because recovery starts updater in a forked
process and collects the process exit code), it's difficult for other
clients to use RangeSet as a library (e.g. update_verifier).

This CL switches the aborts to returning empty RangeSet instead. Callers
need to check the parsing results explicitly.

The CL also separates RangeSet::PushBack() into a function, and moves
SortedRangeSet::Clear() into RangeSet.

Test: recovery_unit_test
Test: Sideload an OTA package with the new updater on angler.
Test: Sideload an OTA package with injected range string errors. The
      updater aborts from the explicit checks.
Change-Id: If2b7f6f41dc93af917a21c7877a83e98dc3fd016
2017-11-07 12:50:02 -08:00
..
include/updater Move Image/ImageChunk/PatchChunk declaration into header files 2017-08-18 17:56:22 -07:00
Android.mk Drop -Wno-unused-parameter. 2017-10-11 16:56:12 -07:00
blockimg.cpp otautil: Remove the aborts in RangeSet::Parse(). 2017-11-07 12:50:02 -08:00
install.cpp recovery: remove make_ext4fs from updater 2017-11-03 13:54:59 -07:00
updater.cpp Revert "Revert "Move error_code.h into otautil."" 2017-10-09 14:07:54 -07:00