Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d15c030f authored by Steven Moreland's avatar Steven Moreland Committed by Ashutosh Joshi
Browse files

sensorservice: Start using HIDL sensor HAL.

Framework now use the HIDL sensor HAL only. Loading the legacy
HAL library is removed.

Bug: 32978887
Test: sensors stream data in both passthrough and binderized mode.
Change-Id: I1d700a5a23cd9d209559570439f306aa22c613c1
parent 33bc71ff
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ LOCAL_SRC_FILES:= \
    OrientationSensor.cpp \
    RecentEventLogger.cpp \
    RotationVectorSensor.cpp \
    SensorDevice.cpp \
    SensorDirectConnection.cpp \
    SensorEventConnection.cpp \
    SensorFusion.cpp \
@@ -25,13 +26,6 @@ LOCAL_CFLAGS += -Wall -Werror -Wextra

LOCAL_CFLAGS += -fvisibility=hidden

ifeq ($(ENABLE_TREBLE), true)
LOCAL_SRC_FILES += SensorDeviceTreble.cpp
LOCAL_CFLAGS += -DENABLE_TREBLE=1
else
LOCAL_SRC_FILES += SensorDevice.cpp
endif

LOCAL_SHARED_LIBRARIES := \
    libcutils \
    libhardware \
@@ -42,10 +36,6 @@ LOCAL_SHARED_LIBRARIES := \
    libui \
    libgui \
    libcrypto \

ifeq ($(ENABLE_TREBLE), true)

LOCAL_SHARED_LIBRARIES += \
    libbase \
    libhidlbase \
    libhidltransport \
@@ -55,8 +45,6 @@ LOCAL_SHARED_LIBRARIES += \
LOCAL_STATIC_LIBRARIES := \
    android.hardware.sensors@1.0-convert

endif  # ENABLE_TREBLE

LOCAL_MODULE:= libsensorservice

include $(BUILD_SHARED_LIBRARY)
+306 −201

File changed.

Preview size limit exceeded, changes collapsed.

+3 −12

File changed.

Preview size limit exceeded, changes collapsed.

+0 −639

File deleted.

Preview size limit exceeded, changes collapsed.