platform_bootable_recovery/update_verifier
Tao Bao 5a1dee01df update_verifier: Handle legacy care_map.txt gracefully.
update_verifier should be backward compatible to not reject legacy
care_map.txt from old releases, which could otherwise fail to boot into
the new release.

For example, we've changed the care_map format between N and O. An O
update_verifier would fail to work with an N care_map.txt - a) we have
switched update_verifier to read from device mapper in O; b) the last
few blocks that contain metadata can't be read via device mapper. This
could be a result of sideloading an O OTA while the device having a
pending N update.

Bug: 63544345
Test: As follows on sailfish:
 1. Flash the device with this CL;
 2. Put a copy of N care_map.txt at /data/ota_package/. Restore the
    permissions properly ('cache' group);
 3. `adb reboot bootloader`;
 4. `fastboot set_active <current_slot>`
 5. Device boots up into home screen, with a warning in logcat that says
    it has skipped legacy care_map.txt.
Change-Id: I6acc88c9e655a9245e6531f176fef7953953935f
2017-07-21 17:17:03 -07:00
..
include/update_verifier Separate libupdate_verifier module and add testcases. 2017-04-27 08:57:23 -07:00
Android.mk update_verifier: Support AVB. 2017-05-24 14:14:11 -04:00
update_verifier.cpp update_verifier: Handle legacy care_map.txt gracefully. 2017-07-21 17:17:03 -07:00
update_verifier.rc Add 'system' to update_verifier's gid 2017-04-18 11:34:30 -07:00
update_verifier_main.cpp Separate libupdate_verifier module and add testcases. 2017-04-27 08:57:23 -07:00