diff --git a/BoardConfig.mk b/BoardConfig.mk index f545665..c7c30bf 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -12,6 +12,9 @@ DEVICE_PATH := device/xiaomi/sweet # Audio TARGET_PROVIDES_AUDIO_EXTNS := true +# HIDL +DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml + # Kernel TARGET_KERNEL_CONFIG := sweet_user_defconfig diff --git a/configs/hidl/manifest.xml b/configs/hidl/manifest.xml new file mode 100644 index 0000000..f55d45f --- /dev/null +++ b/configs/hidl/manifest.xml @@ -0,0 +1,11 @@ + + + android.hardware.sensors + hwbinder + 1.0 + + ISensors + default + + + diff --git a/device.mk b/device.mk index b777042..9fe0cc6 100644 --- a/device.mk +++ b/device.mk @@ -33,6 +33,11 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_BUILD_SUPER_PARTITION := false PRODUCT_USE_DYNAMIC_PARTITIONS := true +# Sensors +PRODUCT_PACKAGES += \ + android.hardware.sensors@1.0-impl \ + android.hardware.sensors@1.0-service + # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH)