29dc02c044
Bug: 195593357 Test: TreeHugger Change-Id: I02b88a93d829654a1ce946681b59e648b2cd7550
19 lines
720 B
Text
19 lines
720 B
Text
# HwBinder IPC from client to server
|
|
binder_call(hal_sensors_client, hal_sensors_server)
|
|
|
|
hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice)
|
|
|
|
# Allow sensor hals to access ashmem memory allocated by apps
|
|
allow hal_sensors { appdomain -isolated_app }:fd use;
|
|
|
|
# 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;
|
|
|
|
# allow to run with real-time scheduling policy
|
|
allow hal_sensors self:global_capability_class_set sys_nice;
|
|
|
|
add_service(hal_sensors_server, hal_sensors_service)
|
|
binder_call(hal_sensors_server, servicemanager)
|
|
|
|
allow hal_sensors_client hal_sensors_service:service_manager find;
|