1# HwBinder IPC from client to server 2binder_call(hal_sensors_client, hal_sensors_server) 3 4hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice) 5 6# Allow sensor hals to access ashmem memory allocated by apps 7allow hal_sensors { appdomain -isolated_app }:fd use; 8 9# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator 10# fd is passed in from framework sensorservice HAL. 11allow hal_sensors hal_allocator:fd use; 12 13# allow to run with real-time scheduling policy 14allow hal_sensors self:global_capability_class_set sys_nice; 15 16add_service(hal_sensors_server, hal_sensors_service) 17binder_call(hal_sensors_server, servicemanager) 18 19allow hal_sensors_client hal_sensors_service:service_manager find; 20