9fc8dcf517
In device root directory, we have the following symlinks: - /odm/app -> /vendor/odm/app - /odm/bin -> /vendor/odm/bin - /odm/etc -> /vendor/odm/etc ... This allows the Generic System Image (GSI) to be used on both devices: 1) Has a physical odm partition, where those symlink will be hidden when /odm is used as the mount point 2) Has no physical odm partition and fallback to /vendor/odm/. We can't just have the symlink /odm -> /vendor/odm, because the former devices won't have /vendor/odm directory, which leads to mount failure when the mount point /odm is resolved to /vendor/odm. The existing /vendor/odm/build.prop won't be loaded in the latter devices, because there is no symlink - /odm/build.prop -> /vendor/odm/build.prop. Note that init blocks reading through direct symlinks (O_NOFOLLOW) so the above symlink won't work either. This CL moves the odm build.prop to /odm/etc/build.prop for init to load it (symlinks in earlier components of the path will still be followed by O_NOFOLLOW). Bug: 132128501 Test: boot a device and checks /odm/etc/build.prop is loaded Change-Id: I0733c277baa67c549bb45599abb70aba13fbdbcf Merged-In: I0733c277baa67c549bb45599abb70aba13fbdbcf |
||
---|---|---|
.. | ||
arch-arm | ||
arch-arm64 | ||
arch-mips | ||
arch-x86 | ||
arch-x86_64 | ||
include | ||
include_vndk/cutils | ||
Android.bp | ||
android_get_control_env.h | ||
android_get_control_file.cpp | ||
android_get_control_file_test.cpp | ||
android_get_control_socket_test.cpp | ||
android_reboot.cpp | ||
ashmem-dev.cpp | ||
ashmem-host.cpp | ||
ashmem_test.cpp | ||
canned_fs_config.cpp | ||
config_utils.cpp | ||
fs.cpp | ||
fs_config.cpp | ||
fs_config_test.cpp | ||
hashmap.cpp | ||
iosched_policy.cpp | ||
klog.cpp | ||
load_file.cpp | ||
memset_test.cpp | ||
MODULE_LICENSE_APACHE2 | ||
multiuser.cpp | ||
multiuser_test.cpp | ||
native_handle.cpp | ||
NOTICE | ||
OWNERS | ||
partition_utils.cpp | ||
properties.cpp | ||
properties_test.cpp | ||
qtaguid.cpp | ||
record_stream.cpp | ||
sched_policy_test.cpp | ||
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 | ||
sockets_unix.cpp | ||
sockets_windows.cpp | ||
str_parms.cpp | ||
str_parms_test.cpp | ||
strdup8to16.cpp | ||
strdup16to8.cpp | ||
strlcpy.c | ||
threads.cpp | ||
trace-container.cpp | ||
trace-dev.cpp | ||
trace-dev.inc | ||
trace-dev_test.cpp | ||
trace-host.cpp | ||
uevent.cpp |