Merge "Allow sensor hal to connect to CHRE HAL" into main
This commit is contained in:
commit
fa85ee0e2c
2 changed files with 8 additions and 0 deletions
|
@ -32,3 +32,6 @@ wakelock_use(hal_contexthub_default)
|
|||
|
||||
# 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 binder calls with clients
|
||||
binder_call(hal_contexthub_default, hal_sensors_default)
|
||||
|
|
|
@ -63,6 +63,11 @@ unix_socket_connect(hal_sensors_default, chre, chre)
|
|||
## TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched.
|
||||
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.
|
||||
r_dir_file(hal_sensors_default, sysfs_batteryinfo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue