2017-03-13 15:13:52 -07:00
|
|
|
# HwBinder IPC from client to server
|
|
|
|
binder_call(hal_sensors_client, hal_sensors_server)
|
|
|
|
|
2017-04-13 19:05:27 -07:00
|
|
|
add_hwservice(hal_sensors_server, hal_sensors_hwservice)
|
|
|
|
allow hal_sensors_client hal_sensors_hwservice:hwservice_manager find;
|
|
|
|
|
2017-03-13 15:13:52 -07:00
|
|
|
# Allow sensor hals to access ashmem memory allocated by apps
|
|
|
|
allow hal_sensors { appdomain -isolated_app }:fd use;
|
2017-04-04 13:44:46 -07: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 09:53:46 -07:00
|
|
|
|
|
|
|
# allow to run with real-time scheduling policy
|
2017-11-09 14:51:26 -08:00
|
|
|
allow hal_sensors self:global_capability_class_set sys_nice;
|