summaryrefslogtreecommitdiffstats
path: root/libs/gui/Android.mk
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2015-11-29 00:39:51 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-12-18 15:21:53 -0800
commit8befd14c4a12ec99b0cc60157921cb1108283b3e (patch)
tree07b4ae3667cd641311fec3db1b5e3c57d27e62bc /libs/gui/Android.mk
parent31ab17fb0c52b1d8aa7b556c0d18927eb92e2208 (diff)
downloadframeworks_native-8befd14c4a12ec99b0cc60157921cb1108283b3e.zip
frameworks_native-8befd14c4a12ec99b0cc60157921cb1108283b3e.tar.gz
frameworks_native-8befd14c4a12ec99b0cc60157921cb1108283b3e.tar.bz2
sensor: Allow devices to skip the permission request
This is needed by Samsung devices with pre-M sensor blobs which have support for SENSOR_TYPE_HEART_RATE or body sensors in general. These HALs somehow segfault on the flagged code. Change-Id: I698f4129e71b683f6f063f00da79f32a5f521149
Diffstat (limited to 'libs/gui/Android.mk')
-rw-r--r--libs/gui/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/Android.mk b/libs/gui/Android.mk
index 8a965dd..76aec6e 100644
--- a/libs/gui/Android.mk
+++ b/libs/gui/Android.mk
@@ -91,6 +91,10 @@ ifeq ($(TARGET_BOARD_PLATFORM), tegra3)
LOCAL_CFLAGS += -DDONT_USE_FENCE_SYNC
endif
+ifeq ($(TARGET_NO_SENSOR_PERMISSION_CHECK),true)
+LOCAL_CPPFLAGS += -DNO_SENSOR_PERMISSION_CHECK
+endif
+
include $(BUILD_SHARED_LIBRARY)
ifeq (,$(ONE_SHOT_MAKEFILE))