recovery: install product_file_contexts and product_property_contexts
Product partition is not mounted in recovery mode. Install product_file_contexts and product_property_contexts into rootdir for recovery. This is similar to how we deal with system, vendor, and odm *_contexts files. And remove unnecessary ifdefs. Test: m bootimage for pixel 3, product_file_contexts and product_property_contexts appear in $OUT/recovery/root/ Change-Id: I416d9e6ea742e67a6fe294f1ad8b78fb9b844260
This commit is contained in:
parent
dd025116cd
commit
62d51b65aa
1 changed files with 4 additions and 6 deletions
|
@ -1541,13 +1541,11 @@ recovery_sepolicy := \
|
|||
$(TARGET_RECOVERY_ROOT_OUT)/plat_file_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/vendor_file_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/plat_property_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/vendor_property_contexts
|
||||
|
||||
ifdef BOARD_ODM_SEPOLICY_DIRS
|
||||
recovery_sepolicy += \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/vendor_property_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/odm_file_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/odm_property_contexts
|
||||
endif
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/odm_property_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/product_file_contexts \
|
||||
$(TARGET_RECOVERY_ROOT_OUT)/product_property_contexts
|
||||
|
||||
# Passed into rsync from non-recovery root to recovery root, to avoid overwriting recovery-specific
|
||||
# SELinux files
|
||||
|
|
Loading…
Reference in a new issue