Skip to content

Commit

Permalink
libresetprop: not available for Android < 7
Browse files Browse the repository at this point in the history
Change-Id: I5cf384b472e43ee8d380ac08aeed1a8567844d7e
  • Loading branch information
chaosmaster authored and bigbiff committed May 10, 2020
1 parent 01a1799 commit 97c4541
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,13 @@ ifneq ($(TW_OVERRIDE_SYSTEM_PROPS),)
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 += \
Expand Down

0 comments on commit 97c4541

Please sign in to comment.