summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index dab1b1705..1fc8c53ba 100644
--- a/Android.mk
+++ b/Android.mk
@@ -28,8 +28,10 @@ endif
ifeq ($(PROJECT_PATH_AGREES),true)
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 20; echo $$?),0)
# Make recovery domain permissive for TWRP
-BOARD_SEPOLICY_UNION += twrp.te
+ BOARD_SEPOLICY_UNION += twrp.te
+endif
include $(CLEAR_VARS)