From 3cacbfd6405d7a5dcf1e34b4c8628908ce2ff9d5 Mon Sep 17 00:00:00 2001 From: Humberto Borba Date: Thu, 11 Jan 2018 17:01:53 -0200 Subject: libotautil: Add missed header ZipUtil was deprecated at android-8.1 but it has been still used by zipwrap. So this patch fixes the missed header file at new android version. Signed-off-by: Humberto Borba Change-Id: I60bf67292021f3b63fb1ee2b8774303d9300fa12 --- otautil/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'otautil') diff --git a/otautil/Android.mk b/otautil/Android.mk index f7ca9a9ee..45e0f765d 100644 --- a/otautil/Android.mk +++ b/otautil/Android.mk @@ -25,6 +25,12 @@ LOCAL_STATIC_LIBRARIES := \ libselinux \ libbase +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 26; echo $$?),0) +# Android 8.1 header +LOCAL_C_INCLUDES += \ + system/core/libziparchive/include +endif + LOCAL_MODULE := libotautil LOCAL_CFLAGS := \ -Werror \ -- cgit v1.2.3