commit | 2969290920696611a67aed184baf71cac062b416 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Mar 26 12:47:05 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Apr 03 16:14:49 2020 -0700 |
tree | a0086c60ebe08355f9018f362a22aebbf34fec9e | |
parent | 7b3910a58bd0b8d9f0bd316fad5776ef0a8494ba [diff] |
Add DynamicPartitionControl::EraseSystemOtherAvbFooter Erase AVB footer of system other partition prior to any updates so that if an update overwrites it partially, and the device rolled back (or even before we finish writing the partition), and the device factory resets, mapping system_other as /postinstall won't trigger verity errors and reboots the device. Bug: 152444348 Test: apply update, rollback, then FDR Test: apply update, then set sys.cppreopt=requested; observe that /postinstall cannot be mounted. Change-Id: I62e5bb8f4c31d9a1beff485c47fc4b07a3a5686b