From c7c6eca6c44a378d50ba312fffa60d6e2555b506 Mon Sep 17 00:00:00 2001 From: Rajani Ranjan Date: Fri, 13 Sep 2024 10:26:18 +0000 Subject: [PATCH] disable/enable sensors with respect to targets. removing accelerometer, gyroscope and light sensors permission for base_aaos targets.Removing bsp_diff changes and merging it directly to repo projects. Tracked-On: OAM-124722 Signed-off-by: Rajani Ranjan --- groups/sensors/mediation/product.mk | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/groups/sensors/mediation/product.mk b/groups/sensors/mediation/product.mk index 3c8e3abb6..b583d9442 100644 --- a/groups/sensors/mediation/product.mk +++ b/groups/sensors/mediation/product.mk @@ -7,12 +7,25 @@ PRODUCT_PACKAGES += \ android.hardware.sensors@aidl-service.intel {{#enable_sensor_list}} +ifeq ($(TARGET_PRODUCT), caas) PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:vendor/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:vendor/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:vendor/etc/permissions/android.hardware.sensor.gyroscope.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:vendor/etc/permissions/android.hardware.sensor.compass.xml \ - frameworks/native/data/etc/android.hardware.sensor.light.xml:vendor/etc/permissions/android.hardware.sensor.light.xml + frameworks/native/data/etc/android.hardware.sensor.light.xml:vendor/etc/permissions/android.hardware.sensor.light.xml \ + frameworks/native/data/etc/android.hardware.sensor.gyroscope_limited_axes.xml:vendor/etc/permissions/android.hardware.sensor.gyroscope_limited_axes.xml \ + frameworks/native/data/etc/android.hardware.sensor.accelerometer_limited_axes.xml:vendor/etc/permissions/android.hardware.sensor.accelerometer_limited_axes.xml \ + frameworks/native/data/etc/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml:vendor/etc/permissions/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml \ + frameworks/native/data/etc/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml:vendor/etc/permissions/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml + +else ifeq ($(TARGET_PRODUCT), aaos_iasw) +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.location.gps.xml:vendor/etc/permissions/android.hardware.location.gps.xml +else +PRODUCT_COPY_FILES += + +endif AUTO_IN += $(TARGET_DEVICE_DIR)/{{_extra_dir}}/auto_hal.in {{/enable_sensor_list}}