From 99671253327edacd3ab9e3414d8e5278dfd334ce Mon Sep 17 00:00:00 2001 From: Bowgo Tsai Date: Thu, 30 Nov 2017 22:15:17 +0800 Subject: [PATCH] Includes odm SELinux contexts files for recovery Bug: 64240127 Test: normal boot and recovery boot a device Change-Id: I475d2eef96d2091291b56410f403f14dd3292faa --- core/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/Makefile b/core/Makefile index 3a593f4ad..28348253e 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1138,6 +1138,12 @@ recovery_sepolicy := \ $(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)/odm_file_contexts \ + $(TARGET_RECOVERY_ROOT_OUT)/odm_property_contexts +endif + # Passed into rsync from non-recovery root to recovery root, to avoid overwriting recovery-specific # SELinux files IGNORE_RECOVERY_SEPOLICY := $(patsubst $(TARGET_RECOVERY_OUT)/%,--exclude=/%,$(recovery_sepolicy))