platform_build/core
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
..
clang Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
combo Add back the llvm-ar P flag 2019-09-06 15:19:59 -07:00
tasks cleanup: remove unused variable 2019-09-25 10:33:58 +09:00
aapt2.mk Allow passing --legacy in LOCAL_AAPT_FLAGS 2019-06-22 13:03:09 -07:00
aapt_flags.mk
allowed_ndk_types.mk
android_manifest.mk Allow codename.fingerprint format for targetSdkVersion 2019-04-22 09:58:24 -07:00
android_vts_host_config.mk Add a wrapper file for the vts_config module. 2019-02-14 18:13:36 -08:00
app_certificate_validate.mk Access PRODUCT_ variables directly 2019-03-28 15:54:25 +00:00
app_prebuilt_internal.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
autogen_test_config.mk Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
aux_config.mk Add back the llvm-ar P flag 2019-09-06 15:19:59 -07:00
aux_executable.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
aux_static_library.mk
aux_toolchain.mk Move libgcc to libcrt.builtins 2018-11-08 13:40:34 -08:00
base_rules.mk Merge "Add backend for LOCAL_FUZZ_DATA for cc_fuzz corpus/dict." 2019-09-19 13:51:17 +00:00
binary.mk Add labels to rewrapper cc compile action. Prevent ccwrapper from being 2019-08-12 14:13:31 -04:00
board_config.mk Merge "Always check ELF files for check-elf-files" 2019-10-03 15:51:09 +00:00
build-system.html Remove TARGET_ROOT_OUT_SBIN / TARGET_ROOT_OUT_SBIN_UNSTRIPPED 2019-04-17 11:12:32 -07:00
build_id.mk Make change and version bump to PPRL.190801.002 2019-08-13 16:39:58 +00:00
build_rro_package.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
cc_prebuilt_internal.mk Fix host-init-verifier regression 2019-08-22 10:47:16 -07:00
ccache.mk Mark export/unexport as deprecated 2018-06-21 10:12:23 -07:00
check_elf_file.mk Always check ELF files for check-elf-files 2019-09-20 10:08:08 -07:00
checktree
cleanbuild.mk
cleanspec.mk
clear_vars.mk Add backend for LOCAL_FUZZ_DATA for cc_fuzz corpus/dict. 2019-09-18 18:58:28 -07:00
config.mk Merge "Use more variables from Soong" 2019-09-09 17:21:44 +00:00
config_sanitizers.mk Cleanup ASan build implementation. 2019-07-19 12:53:00 -07:00
configure_module_stem.mk Restrict characters in module names 2018-06-12 13:48:49 -07:00
construct_context.sh Move verify_uses_libraries.sh out of dexpreopt 2019-05-26 17:42:17 +00:00
copy_headers.mk
cxx_stl_setup.mk Merge "Remove setting _USING_LIBCXX" 2019-08-27 15:10:27 +00:00
definitions.mk Merge "Create a vts-core suite harness package" 2019-09-20 18:06:19 +00:00
deprecation.mk Start the deprecation of BUILD_HOST_STATIC_LIBRARY 2019-06-14 09:37:42 -07:00
device.mk
dex_preopt.mk Rename PRODUCT_USES_ART to PRODUCT_USES_DEFAULT_ART_CONFIG 2019-05-01 15:35:03 -07:00
dex_preopt_config.mk Update dexpreopt for the ART APEX name change. 2019-08-30 17:47:30 +01:00
dex_preopt_libart.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
dex_preopt_libart_boot.mk Support for install multiple boot images. 2019-02-22 15:33:23 +00:00
dex_preopt_odex_install.mk Use dexpreopt image deps from Soong 2019-06-18 01:19:04 +00:00
distdir.mk Fix dist-for-goals with no targets 2018-10-20 16:59:41 -07:00
dumpvar.mk Fix dump-vars output to handle quotes. 2019-05-30 20:59:50 -07:00
dynamic_binary.mk Support injecting boringssl hash in Make 2019-09-05 15:31:31 -07:00
empty_test_config.xml
envsetup.mk Merge "add vendor_boot image support" 2019-09-27 21:07:24 +00:00
executable.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
executable_internal.mk Merge changes I2183ac9f,I2c76701c,Ibbe4e11a,I0706faa2,Ic5b7c4fb, ... 2019-06-13 17:13:22 +00:00
executable_prefer_symlink.mk
filter_symbols.sh
force_aapt2.mk Don't set LOCAL_SDK_RES_VERSION to current if LOCAL_SDK_VERSION is core_current 2019-04-18 11:14:58 -07:00
fuzz_test.mk Fix to avoid breaking aosp_x86 build 2019-09-20 12:43:02 -07:00
generate_enforce_rro.mk Don't sign auto-generated RROs with platform cert 2019-05-01 16:42:56 +01:00
goma.mk Remove Goma resource check code. 2019-01-11 17:07:58 +09:00
header_library.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
header_library_internal.mk Revert "Add soong_cc_prebuilt.mk" 2018-09-12 23:58:01 +00:00
host_dalvik_java_library.mk Convert java proto generation to use srcjars 2019-06-10 16:31:07 -07:00
host_dalvik_static_java_library.mk
host_executable.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
host_executable_internal.mk Add dependencies on the toolchain (clang, etc) 2019-06-12 21:34:52 +00:00
host_fuzz_test.mk Fix fuzzer builds. 2019-05-20 16:58:26 -07:00
host_java_library.mk Convert java proto generation to use srcjars 2019-06-10 16:31:07 -07:00
host_java_library_common.mk Remove host- prefix from protobuf libraries 2018-10-26 23:55:49 -07:00
host_native_test.mk
host_prebuilt.mk
host_shared_library.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
host_shared_library_internal.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
host_shared_test_lib.mk
host_static_library.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
host_static_library_internal.mk
host_static_test_lib.mk Deprecate next set of make module types 2019-05-08 12:27:53 -07:00
host_test_config.mk
host_test_internal.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
install_jni_libs.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
install_jni_libs_internal.mk Indent the install_jni_libs makefiles 2019-04-03 14:24:43 +01:00
instrumentation_test_config_template.xml Instrumentation test doesn't support extra config 2019-08-26 15:50:15 -07:00
jacoco.mk Use find(1)'s -exec directly. 2019-01-14 12:56:07 -08:00
java.mk Add dependencies for files in LOCAL_PROGUARD_FLAGS 2019-08-09 09:19:52 -07:00
java_common.mk Make javanano a plugin 2019-09-05 14:42:14 -07:00
java_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
java_library.mk Add dependencies for files in LOCAL_PROGUARD_FLAGS 2019-08-09 09:19:52 -07:00
java_prebuilt_internal.mk AIDEGen: Collect the classes.jar of the prebuilt modules into module-info.json 2019-06-14 10:47:18 +08:00
java_renderscript.mk Add labels to rewrapper cc compile action. Prevent ccwrapper from being 2019-08-12 14:13:31 -04:00
java_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
jetifier.mk Follow minor Jetifier usage change 2018-08-29 17:33:29 +00:00
link_type.mk
LINUX_KERNEL_COPYING
local_systemsdk.mk Put DEVICE/PRODUCT overlays in different partitions 2019-03-22 13:25:20 +00:00
local_vndk.mk Add support for /odm partition 2018-08-08 18:59:44 +08:00
main.mk Remove ro.bionic.ld.warning. 2019-10-02 11:40:59 -07:00
Makefile Moving recovery resources from /system to /vendor 2019-10-04 00:04:34 +00:00
misc_prebuilt_internal.mk Fix host-init-verifier regression 2019-08-22 10:47:16 -07:00
module_arch_supported.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
multi_prebuilt.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
multilib.mk
native_benchmark.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
native_benchmark_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
native_host_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
native_test.mk
native_test_config_template.xml Update auto-gen test config template with EXTRA_CONFIGS placeholder 2019-06-13 20:32:22 -07:00
ninja_config.mk Merge "Stop supporting wrapping the build with make" 2019-07-30 21:48:52 +00:00
node_fns.mk Add support for single-value product variables 2019-05-06 16:17:20 +01:00
notice_files.mk Make support for rust modules from Soong. 2019-08-27 11:23:35 -07:00
OWNERS Update OWNERS for dex preopt related files. 2018-12-18 19:39:20 +00:00
pack_dyn_relocs_setup.mk Explicitly add lld's relr relocation flags for Android Pie and above 2019-07-30 22:36:29 -07:00
package.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
package_internal.mk Change RRO enforcement logic 2019-10-01 15:08:36 +08:00
pathmap.mk
pdk_config.mk Add new core-icu4j after separating icu4j from core-libart 2019-08-06 16:54:08 +01:00
pdk_fusion_modules.mk Fix pre-extracted PDKs 2018-11-05 10:57:24 -08:00
phony_package.mk
prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
prebuilt_internal.mk Call clean-path in more places 2019-06-12 21:35:33 +00:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Add a product build var for mainline module certs 2019-08-07 18:54:04 +09:00
product.mk Merge "Add PRODUCT_BUILD_VBMETA_IMAGE to control vbmeta generation" 2019-08-20 00:07:35 +00:00
product_config.mk Remove the PRODUCT-* goal 2019-07-29 14:27:04 -07:00
proguard.flags Understand the support library/androidx @Keep annotations 2019-03-26 23:44:01 +00:00
proguard.jacoco.flags
proguard_basic_keeps.flags Keep proguard fields for lite runtime 2019-09-05 14:42:14 -07:00
project_definitions.mk Always statically include Support Libraries, move SDK definitions up a dir 2018-05-03 16:47:11 -07:00
python_binary_host_test_config_template.xml ATest: Add test config template for python. 2018-11-20 15:31:44 +08:00
rbe.mk Add PWD to environment variable whitelist for RBE builds. 2019-08-27 23:50:31 +00:00
root.mk
sdk_check.mk
sdk_font.mk
shared_library.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
shared_library_internal.mk Merge changes I2183ac9f,I2c76701c,Ibbe4e11a,I0706faa2,Ic5b7c4fb, ... 2019-06-13 17:13:22 +00:00
shared_test_lib.mk
soong_app_prebuilt.mk Rename product_services to system_ext 2019-07-09 08:57:19 +00:00
soong_cc_prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
soong_config.mk Rename Soong variable FlattenApex as Flatten_apex. 2019-08-13 15:07:44 +01:00
soong_droiddoc_prebuilt.mk Build docs zips with make docs 2019-01-18 16:08:14 -08:00
soong_java_prebuilt.mk AIDEGen: Collect the classes.jar of the prebuilt modules into module-info.json 2019-06-14 10:47:18 +08:00
soong_rust_prebuilt.mk Remove TARGET_TRANSLATE_2ND_ARCH 2019-09-18 16:23:04 +00:00
static_java_library.mk Add dependencies for files in LOCAL_PROGUARD_FLAGS 2019-08-09 09:19:52 -07:00
static_library.mk Remove *_OUT_INTERMEDIATE_LIBRARIES 2018-09-15 10:52:13 -07:00
static_library_internal.mk Merge changes I2183ac9f,I2c76701c,Ibbe4e11a,I0706faa2,Ic5b7c4fb, ... 2019-06-13 17:13:22 +00:00
static_test_lib.mk
support_libraries.mk Fix support libraries dependencies based on Soong modules 2018-05-03 16:47:55 -07:00
target_test_config.mk
target_test_internal.mk Eliminate ENABLE_DEFAULT_TEST_LOCATION as it is always true 2019-03-25 13:26:03 -07:00
test_config_common.mk
use_lld_setup.mk Remove support for building Windows modules in Make 2019-02-05 00:19:41 -08:00
verify_uses_libraries.sh Use $(AAPT) instead of aapt for verifying uses libraries 2018-05-14 10:18:02 -07:00
version_defaults.mk Remove macOS special cases pertaining to date(1). 2019-09-12 15:04:16 -07:00
WINPTHREADS_COPYING