platform_bootable_recovery/applypatch
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
..
include/applypatch applypatch: Add backup_source parameter to PatchPartition. 2019-09-23 11:26:48 -07:00
Android.bp applypatch: Use static libs for libbrotli and libbz. 2019-09-23 09:17:52 -07:00
applypatch.cpp applypatch: Add backup_source parameter to PatchPartition. 2019-09-23 11:26:48 -07:00
applypatch_main.cpp applypatch: Refactor applypatch(). 2018-08-31 09:21:15 -07:00
applypatch_modes.cpp applypatch: Add backup_source parameter to PatchPartition. 2019-09-23 11:26:48 -07:00
applypatch_modes.h applypatch: Change applypatch command-line arguments. 2018-07-20 11:26:17 -07:00
bspatch.cpp applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch. 2018-04-20 09:27:50 -07:00
freecache.cpp applypatch: Fix comparison of integers of different signs. 2018-12-17 10:07:27 -08:00
imgdiff.cpp Move off the Next ZipString overload. 2019-05-22 18:52:29 -07:00
imgdiff_main.cpp Add tests for imgdiff. 2016-12-19 16:53:03 -08:00
imgpatch.cpp applypatch: Fix comparison of integers of different signs. 2018-12-17 10:07:27 -08:00
NOTICE Add NOTICE file 2012-04-06 13:51:00 -07:00