e631225204
Applying an SPL downgrade package can cause boot failures
(/data failed to decrypt). Today's ota_from_target_files
tool already try to prevent this. But Packages generated
using older tools are still around.
Add check in recovery to prevent such OTA package from
installing.
Test: th
Test: Sideload an OTA with newer SPL, make sure check passes
Test; Sideload an OTA with older SPL, make sure check fails
Bug: 186581246
Bug: 188575410
cherry-picked from aosp/1708986
cherry-picked from commit:
|
||
---|---|---|
.. | ||
include | ||
adb_install.cpp | ||
Android.bp | ||
asn1_decoder.cpp | ||
fuse_install.cpp | ||
install.cpp | ||
package.cpp | ||
snapshot_utils.cpp | ||
spl_check.cpp | ||
spl_check_unittests.cpp | ||
verifier.cpp | ||
wipe_data.cpp | ||
wipe_device.cpp |