sweet: Build 1.0 sensors service

* It was decommonized because some devices require 2.0 sensors service

Change-Id: Ieb0d5dc846d3cd0ee35487a31779b7b182f1a4fc
This commit is contained in:
raghavt20 2021-07-12 16:31:17 +05:30 committed by AdarshGrewal
parent f034a2e78d
commit 6122b67040
3 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,9 @@ DEVICE_PATH := device/xiaomi/sweet
# Audio # Audio
TARGET_PROVIDES_AUDIO_EXTNS := true TARGET_PROVIDES_AUDIO_EXTNS := true
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
# Kernel # Kernel
TARGET_KERNEL_CONFIG := sweet_user_defconfig TARGET_KERNEL_CONFIG := sweet_user_defconfig

11
configs/hidl/manifest.xml Normal file
View File

@ -0,0 +1,11 @@
<manifest version="2.0" type="device" target-level="5" >
<hal format="hidl">
<name>android.hardware.sensors</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISensors</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@ -33,6 +33,11 @@ DEVICE_PACKAGE_OVERLAYS += \
PRODUCT_BUILD_SUPER_PARTITION := false PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Sensors
PRODUCT_PACKAGES += \
android.hardware.sensors@1.0-impl \
android.hardware.sensors@1.0-service
# Soong namespaces # Soong namespaces
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH) $(LOCAL_PATH)