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 19, 2024
1 parent eade2d1 commit 86a1fdd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions groups/sensors/mediation/product.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,25 @@ 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 \
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 += \
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 86a1fdd

Please sign in to comment.