platform_system_core/libcutils
Bill Peckham dea8c9c1ac 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 moves the recovery resources to vendor in libcutils/fs_config.cpp
and removes the flash_recovery service from rootdir/init.rc. This service moved
to a vendor init.rc file in bootable/recovery/applypatch.

Bug: 68319577
Test: Ensure that recovery partition is updated correctly.
Change-Id: I492f7989ea8042912e9d0e0eadeaa351affbee13
2019-10-04 00:04:08 +00:00
..
arch-arm
arch-arm64
arch-mips
arch-x86
arch-x86_64
include libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
include_vndk/cutils Reland "libcutils: remove unused "jstring.h". 2019-08-12 15:09:20 +00:00
Android.bp Reland "libcutils: remove unused "jstring.h". 2019-08-12 15:09:20 +00:00
android_get_control_env.h Clean up some mess by only building Android-specific code for the device. 2019-03-21 14:59:45 -07:00
android_get_control_file.cpp libcutils: android_get_control_file uses realpath. 2019-03-21 16:00:00 -07:00
android_get_control_file_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
android_get_control_socket_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
android_reboot.cpp libcutils: android_reboot command should be unsigned. 2019-04-02 09:19:46 -07:00
ashmem-dev.cpp libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
ashmem-host.cpp libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
ashmem_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
canned_fs_config.cpp Remove more bogus <stdbool.h> #includes from C++. 2018-05-08 13:00:06 -07:00
config_utils.cpp
fs.cpp
fs_config.cpp Moving recovery resources from /system to /vendor 2019-10-04 00:04:08 +00:00
fs_config.h Actually make fs_path_config / fs_path_config_from_file private 2019-06-20 23:34:30 +00:00
fs_config_test.cpp Actually make fs_path_config / fs_path_config_from_file private 2019-06-20 23:34:30 +00:00
hashmap.cpp cutils: move hashmap to <pthread.h>. 2018-07-13 10:54:49 -07:00
iosched_policy.cpp
klog.cpp
load_file.cpp
memset_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
MODULE_LICENSE_APACHE2
multiuser.cpp
multiuser_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
native_handle.cpp Export maximum number of fds/ints in a native_handle. 2019-01-16 08:55:14 -08:00
NOTICE
OWNERS libcutils: add OWNERS. 2018-06-12 13:58:30 -07:00
partition_utils.cpp Start using new C++ Fstab class widely 2018-12-12 17:08:09 +00:00
properties.cpp
properties_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
qtaguid.cpp
record_stream.cpp
sched_policy_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
socket_inaddr_any_server_unix.cpp
socket_inaddr_any_server_windows.cpp
socket_local_client_unix.cpp
socket_local_server_unix.cpp
socket_local_unix.h
socket_network_client_unix.cpp
socket_network_client_windows.cpp
sockets.cpp
sockets_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
sockets_unix.cpp Clean up some mess by only building Android-specific code for the device. 2019-03-21 14:59:45 -07:00
sockets_windows.cpp
str_parms.cpp libcutils: remove some unused API. 2018-07-11 14:27:32 -07:00
str_parms_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
strlcpy.c
threads.cpp
trace-container.cpp
trace-dev.cpp
trace-dev.inc __android_log_is_debuggable() shouldn't be an apex symbol 2019-02-20 12:52:02 -08:00
trace-dev_test.cpp Clean up libcutils/libutils tests. 2019-02-11 13:15:56 -08:00
trace-host.cpp
uevent.cpp Increase netlink uevent rcvbuf size to 16M 2018-12-03 18:39:24 +00:00