2017-03-13 23:13:52 +01:00
|
|
|
# HwBinder IPC from client to server
|
|
|
|
binder_call(hal_sensors_client, hal_sensors_server)
|
|
|
|
|
2018-06-06 18:30:18 +02:00
|
|
|
hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice)
|
2017-04-14 04:05:27 +02:00
|
|
|
|
2017-03-13 23:13:52 +01:00
|
|
|
# Allow sensor hals to access ashmem memory allocated by apps
|
|
|
|
allow hal_sensors { appdomain -isolated_app }:fd use;
|
2017-04-04 22:44:46 +02:00
|
|
|
|
|
|
|
# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
|
|
|
# fd is passed in from framework sensorservice HAL.
|
|
|
|
allow hal_sensors hal_allocator:fd use;
|
2017-05-09 18:53:46 +02:00
|
|
|
|
|
|
|
# allow to run with real-time scheduling policy
|
2017-11-09 23:51:26 +01:00
|
|
|
allow hal_sensors self:global_capability_class_set sys_nice;
|
2021-10-15 17:47:13 +02:00
|
|
|
|
|
|
|
add_service(hal_sensors_server, hal_sensors_service)
|
|
|
|
binder_call(hal_sensors_server, servicemanager)
|
|
|
|
|
|
|
|
allow hal_sensors_client hal_sensors_service:service_manager find;
|