summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Mennillo <handymenny@outlook.com>2015-11-03 20:58:11 +0100
committerDees Troy <dees_troy@teamw.in>2015-11-05 19:58:39 +0100
commitf591c87993d8b4dca79e4c6c78e938e0a2c996c9 (patch)
treee90a6a3612d9aa488d47bf7d915b65e5ec20d3a1
parentgui: fix default styles if object type is in element name (diff)
downloadandroid_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar.gz
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar.bz2
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar.lz
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar.xz
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.tar.zst
android_bootable_recovery-f591c87993d8b4dca79e4c6c78e938e0a2c996c9.zip
Diffstat (limited to '')
-rw-r--r--Android.mk2
-rw-r--r--sepolicy/twrp.te5
2 files changed, 5 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 9dc31a542..47c4aa1d0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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)
diff --git a/sepolicy/twrp.te b/sepolicy/twrp.te
index 3ebdc4b3b..d81b9e191 100644
--- a/sepolicy/twrp.te
+++ b/sepolicy/twrp.te
@@ -1 +1,4 @@
-permissive recovery;
+recovery_only(`
+ # Allow recovery to set permissive mode
+ permissive recovery;
+')