Allow sensor hal to connect to CHRE HAL
These policies are required to let DropDetect and IpHeath communicate with CHRE HAL directly after CHRE multiclient HAL is enabled. Bug: 324316275 Test: Trigger drop detection and observed corresponding logs are generated. Change-Id: Icc087b59ff594224d7e637212558e68fb3f86437
This commit is contained in:
parent
f17b5ac127
commit
7e89a679d9
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 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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue