From 38d2d5268e3e2de2bdd2656a1abf060bb6779895 Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Tue, 29 Jan 2019 14:00:56 +0100 Subject: TWRP: fix compiling on Android 7 fixes cp: cannot create regular file (...)/recovery/root/file_contexts': No such file or directory Change-Id: I094a0bd242c6eb01e84570fbe49e853098e33a8b --- Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 9b9123554..df18d7a7a 100755 --- a/Android.mk +++ b/Android.mk @@ -498,8 +498,10 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0) endif endif -ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0) +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) LOCAL_REQUIRED_MODULES += file_contexts_text +else ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0) + LOCAL_ADDITIONAL_DEPENDENCIES += file_contexts_text endif ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),) -- cgit v1.2.3