libresetprop: not available for Android < 7

Change-Id: I5cf384b472e43ee8d380ac08aeed1a8567844d7e
diff --git a/Android.mk b/Android.mk
index 4dc7908..ca204d3 100755
--- a/Android.mk
+++ b/Android.mk
@@ -403,9 +403,13 @@
     LOCAL_CFLAGS += -DTW_OVERRIDE_SYSTEM_PROPS=$(TW_OVERRIDE_SYSTEM_PROPS)
 endif
 ifneq ($(TW_INCLUDE_LIBRESETPROP),)
-    LOCAL_SHARED_LIBRARIES += libresetprop
-    LOCAL_C_INCLUDES += external/magisk-prebuilt/include
-    LOCAL_CFLAGS += -DTW_INCLUDE_LIBRESETPROP
+    ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
+        $(warning libresetprop is not available for android < 7)
+    else
+        LOCAL_SHARED_LIBRARIES += libresetprop
+        LOCAL_C_INCLUDES += external/magisk-prebuilt/include
+        LOCAL_CFLAGS += -DTW_INCLUDE_LIBRESETPROP
+    endif
 endif
 
 TWRP_REQUIRED_MODULES += \