From abf1fb00862cec01d457972419fbff4b95cc6300 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 24 Apr 2019 16:09:07 -0500 Subject: Switch between dependencies and modules Use LOCAL_REQUIRED_MODULES for Pie and up and LOCAL_ADDITIONAL_DEPENDENCIES for Oreo and down. Change-Id: I5365e782f98f3bbf4bf246be22c8f573824b65ee --- crypto/ext4crypt/Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crypto/ext4crypt') diff --git a/crypto/ext4crypt/Android.mk b/crypto/ext4crypt/Android.mk index 8e77cdf30..0c6ef5b56 100644 --- a/crypto/ext4crypt/Android.mk +++ b/crypto/ext4crypt/Android.mk @@ -45,7 +45,11 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) LOCAL_SHARED_LIBRARIES += libkeyutils endif endif - LOCAL_REQUIRED_MODULES := keystore_auth + ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0) + LOCAL_REQUIRED_MODULES := keystore_auth + else + LOCAL_ADDITIONAL_DEPENDENCIES := keystore_auth + endif else #7.x rules LOCAL_SRC_FILES += Ext4Crypt.cpp Keymaster.cpp KeyStorage.cpp -- cgit v1.2.3