Enable sensor HAL 2.0

Bug: 129320560
Test: Compile pass. Sensors-hal can be loaded.
Change-Id: Iaa966560397da1c39a8f618bee08e32409dfe620
Signed-off-by: Rick Chen <rickctchen@google.com>
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 4d63323..4d2d320 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -194,6 +194,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 8e1d135..34d7f90 100644
--- a/device.mk
+++ b/device.mk
@@ -468,8 +468,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 a67913a..254882c 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -335,7 +335,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>