summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index e0f784868..6e7478c4e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -28,7 +28,7 @@ endif
ifeq ($(PROJECT_PATH_AGREES),true)
-ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 20; echo $$?),0)
+ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22))
# Make recovery domain permissive for TWRP
BOARD_SEPOLICY_UNION += twrp.te
endif