Merge "Allow sensor hal to connect to CHRE HAL" into main

This commit is contained in:
Lei Ju 2024-02-21 00:45:23 +00:00 committed by Android (Google) Code Review
commit fa85ee0e2c
2 changed files with 8 additions and 0 deletions

View file

@ -32,3 +32,6 @@ wakelock_use(hal_contexthub_default)
# Allow context hub HAL to block suspend, which is required to use EPOLLWAKEUP # Allow context hub HAL to block suspend, which is required to use EPOLLWAKEUP
allow hal_contexthub_default self:global_capability2_class_set block_suspend; allow hal_contexthub_default self:global_capability2_class_set block_suspend;
# Allow binder calls with clients
binder_call(hal_contexthub_default, hal_sensors_default)

View file

@ -63,6 +63,11 @@ unix_socket_connect(hal_sensors_default, chre, chre)
## TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched. ## TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched.
unix_socket_connect(hal_sensors_default, chre, hal_contexthub_default) unix_socket_connect(hal_sensors_default, chre, hal_contexthub_default)
# Allow access to CHRE multiclient HAL.
get_prop(hal_sensors_default, vendor_chre_hal_prop)
binder_call(hal_sensors_default, hal_contexthub_default)
allow hal_sensors_default hal_contexthub_service:service_manager find;
# Allow access to the power supply files for MagCC. # Allow access to the power supply files for MagCC.
r_dir_file(hal_sensors_default, sysfs_batteryinfo) r_dir_file(hal_sensors_default, sysfs_batteryinfo)