platform_bootable_recovery/tests/unit
Tao Bao 5234ad466c applypatch: Add backup_source parameter to PatchPartition.
And set it to false when installing recovery image via applypatch. We
only need to back up the source partition when doing in-place update
(e.g. when updating a given partition under recovery). When installing
recovery image via applypatch, we won't touch the source partition (i.e.
/boot).

Removing the backup step also allows dropping the dac_override_allowed
permission. Previously it was needed due to the access to /cache.
Because applypatch runs as root:root, while /cache is owned by
system:cache with 0770.

Bug: 68319577
Test: Invoke the code that installs recovery image; check that recovery
      is installed successfully without denials.
Test: recovery_unit_test passes on taimen.
Change-Id: I549a770b511762189d6672a2835b6e403d695919
2019-09-23 11:26:48 -07:00
..
host Simulator: add the argument to keep the updated images 2019-07-30 17:11:35 -07:00
applypatch_modes_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
applypatch_test.cpp applypatch: Add backup_source parameter to PatchPartition. 2019-09-23 11:26:48 -07:00
asn1_decoder_test.cpp Move install to separate module 2019-03-29 10:27:51 -07:00
bootloader_message_test.cpp Add misc_writer. 2019-05-20 15:51:26 -07:00
commands_test.cpp updater: Add TransferList class. 2018-08-17 09:37:26 -07:00
dirutil_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 15:49:19 -08:00
edify_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
fuse_provider_test.cpp Support starting fuse from a block map 2019-06-20 13:53:40 -07:00
fuse_sideload_test.cpp Support starting fuse from a block map 2019-06-20 13:53:40 -07:00
install_test.cpp Track libziparchive API change. 2019-05-06 10:28:14 -07:00
locale_test.cpp matches_locale no longer accept empty locales in the png file 2019-04-22 15:32:17 -07:00
minui_test.cpp minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
package_test.cpp Track libziparchive API change. 2019-05-06 10:28:14 -07:00
parse_install_logs_test.cpp switch to using android-base/file.h instead of android-base/test_utils.h 2018-11-14 15:49:19 -08:00
rangeset_test.cpp Implement FuseBlockDataProvider 2019-05-01 12:09:38 -07:00
resources_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
screen_ui_test.cpp Move librecovery_ui to a sub-directory 2019-03-21 10:46:11 -07:00
sysutil_test.cpp Implement FuseBlockDataProvider 2019-05-01 12:09:38 -07:00
uncrypt_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
update_verifier_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
updater_test.cpp Some clean ups to the updater 2019-05-22 14:58:28 -07:00
verifier_test.cpp tests: Merge recovery_component_test into recovery_unit_test. 2019-04-30 09:13:36 -07:00
zip_test.cpp Track libziparchive API change. 2019-05-06 10:28:14 -07:00