platform_build/tools
Bill Peckham e868aec14b Moving recovery resources from /system to /vendor
This change is part of a topic that moves the recovery resources from the
system partition to the vendor partition, if it exists, or the vendor directory
on the system partition otherwise. The recovery resources are moving from the
system image to the vendor partition so that a single system image may be used
with either an A/B or a non-A/B vendor image. The topic removes a delta in the
system image that prevented such reuse in the past.

The recovery resources that are moving are involved with updating the recovery
partition after an update. In a non-A/B configuration, the system boots from
the recovery partition, updates the other partitions (system, vendor, etc.)
Then, the next time the system boots normally, a script updates the recovery
partition (if necessary). This script, the executables it invokes, and the data
files that it uses were previously on the system partition. The resources that
are moving include the following.

* install-recovery.sh
* applypatch
* recovery-resource.dat (if present)
* recovery-from-boot.p (if present)

This change includes the platform build system and release tools changes to
move the recovery resources from system to vendor (or /system/vendor). The
release tools need to know where to generate the recovery patch, and they
discover this from misc_info.txt variable board_uses_vendorimage, which the
platform build system generates.

We remove applypatch from PRODUCT_PACKAGES, but it is added back as a required
module in target/product/base_vendor.mk.

Several release tools rely on the misc_info.txt board_uses_vendorimage variable
to know how to generate and detect the recovery patch.

This change partially removes the --rebuild_recovery flag from the
merge_target_files.py script. The flag will be fully removed in a follow-on
change.

Bug: 68319577
Test: Ensure that recovery partition is updated correctly.
Change-Id: Ia4045bd67ffb3d899efa8d20dab4c4299b87ee5f
2019-10-04 00:04:34 +00:00
..
acp
apicheck Convert apicheck tool build to Soong. 2018-05-15 11:38:44 +09:00
atree Fix implicit-fallthrough warning. 2018-10-16 11:50:18 -07:00
docker docker: update sha256sum for repo version 1.25 2019-04-11 13:38:05 -07:00
droiddoc Merge "Remove more Android.mk files from build/make" am: ebe0b7a1c9 2019-01-07 09:54:57 -08:00
fs_config fs_config: Fix generation for devices without vendor partition 2019-09-10 16:17:47 +08:00
fs_get_stats
libhost Fix / suppress warnings for clang+mingw 2017-11-29 20:54:33 -08:00
releasetools Moving recovery resources from /system to /vendor 2019-10-04 00:04:34 +00:00
signapk Replace use of conscrypt-nojarjar with conscrypt-unbundled 2019-09-23 14:30:07 +01:00
signtos Make host targets use non-repackaged targets 2018-07-23 13:00:32 +01:00
zipalign Move zipalign off NO_ERROR. 2018-10-08 11:19:28 -07:00
ziptime
auto_gen_test_config.py Default test to AndroidJUnitTest for auto-generated test config. 2018-02-21 11:31:06 -08:00
auto_gen_test_config_test.py Migrate build/make to androidx.test 2018-12-13 19:06:34 -08:00
brillo-clang-format
buildinfo.sh Write ro.build.ab_update to /vendor/build.prop. 2019-04-22 21:08:25 -07:00
buildinfo_common.sh Rename DEVICE arg in common buildprops script 2019-03-12 18:03:23 +00:00
check_elf_file.py Update check_elf_file.py for clang-r353983 2019-03-20 15:24:00 +08:00
check_identical_lib.sh Add support for no-vendor-variant VNDK 2019-03-20 10:23:04 -07:00
check_radio_versions.py
checkowners.py Accept the "file:(project:)?filePath" directive. 2019-03-12 11:56:33 -07:00
compare_fileslist.py
event_log_tags.py
extract_kernel.py extract-kernel: Fix indexing 2019-09-16 16:30:35 -07:00
fat16copy.py
fileslist_util.py
filter-product-graph.py
findleaves.py findleaves: Fix typo for --dir argument 2018-08-16 02:30:45 +02:00
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py Put DEVICE/PRODUCT overlays in different partitions 2019-03-22 13:25:20 +00:00
generate-notice-files.py Include /product_services software in NOTICE. 2018-08-28 18:06:39 +01:00
generate-self-extracting-archive.py Add build script to create a self extracting archive with a click through license 2019-07-29 11:04:57 -07:00
java-event-log-tags.py
java-layers.py
merge-event-log-tags.py
normalize_path.py
OWNERS Use multiple globs/emails in per-file syntax 2018-08-20 14:16:04 -07:00
parsedeps.py
post_process_props.py
print_module_licenses.sh
product_debug.py
soong_to_convert.py Add java modules to soong_to_convert.txt 2017-12-06 15:38:52 -08:00
test_extract_kernel.py Add kernel info to compatibility.zip 2019-01-30 13:28:03 -08:00
warn.py Fix severity of analyzer warnings; add new warnings. 2019-09-26 12:14:32 -07:00