platform_bootable_recovery/install
Kelvin Zhang e631225204 Check SPL downgrade before install OTA in recovery
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: 33c62fc4b8

Change-Id: Icffe8097521c511e151af023a443ccbb4b59e22c
2021-05-19 20:58:02 +00:00
..
include Check SPL downgrade before install OTA in recovery 2021-05-19 20:58:02 +00:00
adb_install.cpp minadbd: Export minadbd/types.h to libinstall. 2019-09-26 00:04:11 -07:00
Android.bp Check SPL downgrade before install OTA in recovery 2021-05-19 20:58:02 +00:00
asn1_decoder.cpp Move install to separate module 2019-03-29 10:27:51 -07:00
fuse_install.cpp otautil: Factor out the utils that're private to recovery. 2019-10-02 10:56:46 -07:00
install.cpp Check SPL downgrade before install OTA in recovery 2021-05-19 20:58:02 +00:00
package.cpp InstallPackage now takes a package as parameter 2019-06-13 13:36:56 -07:00
snapshot_utils.cpp Fix SnapshotManager instantiation. 2021-02-04 20:23:15 -08:00
spl_check.cpp Check SPL downgrade before install OTA in recovery 2021-05-19 20:58:02 +00:00
spl_check_unittests.cpp Check SPL downgrade before install OTA in recovery 2021-05-19 20:58:02 +00:00
verifier.cpp Check for overflow before allocating memory fore decompression. 2020-09-18 17:41:51 -04:00
wipe_data.cpp Bring up the erase animation early for data wipe 2021-03-02 16:42:07 -08:00
wipe_device.cpp Check for overflow before allocating memory fore decompression. 2020-09-18 17:41:51 -04:00