Fixup union sepolicy

This change solve two issue:
1) Policies related to recovery should be only included in recovery
policy
2) In CM trees the sepolicy dir was always bootable/recovery-
twrp/sepolicy, even if recovery path was bootable/recovery

Change-Id: I9466d22293074ba5f5240abe8b97a5d1bf30982d
This commit is contained in:
Andrea Mennillo
2015-11-03 20:58:11 +01:00
committed by Dees Troy
parent 54e9c839bc
commit f591c87993
2 changed files with 5 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ LOCAL_PATH := $(call my-dir)
ifdef project-path-for
ifeq ($(LOCAL_PATH),$(call project-path-for,recovery))
PROJECT_PATH_AGREES := true
BOARD_SEPOLICY_DIRS += bootable/recovery-twrp/sepolicy
BOARD_SEPOLICY_DIRS += $(call project-path-for,recovery)/sepolicy
endif
else
ifeq ($(LOCAL_PATH),bootable/recovery)

View File

@@ -1 +1,4 @@
permissive recovery;
recovery_only(`
# Allow recovery to set permissive mode
permissive recovery;
')