Skip to content

Commit

Permalink
disable/enable sensors with respect to targets.
Browse files Browse the repository at this point in the history
removing accelerometer and gyroscope 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 <[email protected]>
  • Loading branch information
RajaniRanjan committed Sep 18, 2024
1 parent eade2d1 commit db3907a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions groups/sensors/mediation/product.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ PRODUCT_PACKAGES += \
[email protected]

{{#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.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
else
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.light.xml:vendor/etc/permissions/android.hardware.sensor.light.xml
endif

AUTO_IN += $(TARGET_DEVICE_DIR)/{{_extra_dir}}/auto_hal.in
{{/enable_sensor_list}}

0 comments on commit db3907a

Please sign in to comment.