From 96ccb85fa226d74b82ba0e6f69e5439f4a81adf3 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Thu, 25 Feb 2016 11:44:35 -0800 Subject: [PATCH] Make libutils symbols protected This change is a workaround for apps linking libutils statically and dynamically which causes them to crash for newer version of Android. Bug: http://b/27313399 Change-Id: I47ac4146041b6eeef03cb605ea436719d552ec8f (cherry picked from commit 2c7960c8d971ce37058b948f9e5e4e5ee6782cea) --- libutils/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libutils/Android.mk b/libutils/Android.mk index 3663c52b7..6f88a6d70 100644 --- a/libutils/Android.mk +++ b/libutils/Android.mk @@ -72,7 +72,7 @@ LOCAL_SRC_FILES:= \ ifeq ($(TARGET_ARCH),mips) LOCAL_CFLAGS += -DALIGN_DOUBLE endif -LOCAL_CFLAGS += -Werror +LOCAL_CFLAGS += -Werror -fvisibility=protected LOCAL_STATIC_LIBRARIES := \ libcutils \