Commit f591c879 authored by Andrea Mennillo's avatar Andrea Mennillo Committed by Dees Troy
Browse files

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
parent 54e9c839
......@@ -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)
......
permissive recovery;
recovery_only(`
# Allow recovery to set permissive mode
permissive recovery;
')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment