Enable sensor HAL 2.0
Bug: 129320560
Test: Compile pass. Sensors-hal can be loaded.
Change-Id: Id01265a40343ed1d4c1155503d17e6705a8ecc03
Signed-off-by: Rick Chen <rickctchen@google.com>
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 869e5dc..c247b41 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -143,6 +143,8 @@
# Sensors
USE_SENSOR_MULTI_HAL := true
TARGET_SUPPORT_DIRECT_REPORT := true
+# Enable sensor Version V_2
+USE_SENSOR_HAL_VER := 2.0
# wlan
BOARD_WLAN_DEVICE := qcwcn
diff --git a/device.mk b/device.mk
index 35d5725..2349f58 100644
--- a/device.mk
+++ b/device.mk
@@ -459,8 +459,9 @@
PRODUCT_PACKAGES += \
sensors.$(PRODUCT_HARDWARE) \
- android.hardware.sensors@1.0-impl \
- android.hardware.sensors@1.0-service
+ android.hardware.sensors@2.0-impl \
+ android.hardware.sensors@2.0-service \
+ android.hardware.sensors@2.0-service.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:vendor/etc/sensors/hals.conf
diff --git a/manifest.xml b/manifest.xml
index 94c24fd..4bac85b 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -316,7 +316,7 @@
<hal format="hidl">
<name>android.hardware.sensors</name>
<transport>hwbinder</transport>
- <version>1.0</version>
+ <version>2.0</version>
<interface>
<name>ISensors</name>
<instance>default</instance>