Alex Klyubin | 41518be | 2017-03-13 15:13:52 -0700 | [diff] [blame] | 1 | # HwBinder IPC from client to server |
| 2 | binder_call(hal_sensors_client, hal_sensors_server) |
| 3 | |
Steven Moreland | 9234e00 | 2018-06-06 09:30:18 -0700 | [diff] [blame] | 4 | hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice) |
Alex Klyubin | 53656c1 | 2017-04-13 19:05:27 -0700 | [diff] [blame] | 5 | |
Alex Klyubin | 41518be | 2017-03-13 15:13:52 -0700 | [diff] [blame] | 6 | # Allow sensor hals to access ashmem memory allocated by apps |
| 7 | allow hal_sensors { appdomain -isolated_app }:fd use; |
Yifan Hong | d131f94 | 2017-04-04 13:44:46 -0700 | [diff] [blame] | 8 | |
| 9 | # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator |
| 10 | # fd is passed in from framework sensorservice HAL. |
| 11 | allow hal_sensors hal_allocator:fd use; |
Martijn Coenen | 0d1f7d2 | 2017-05-09 09:53:46 -0700 | [diff] [blame] | 12 | |
| 13 | # allow to run with real-time scheduling policy |
Benjamin Gordon | 9b2e0cb | 2017-11-09 15:51:26 -0700 | [diff] [blame] | 14 | allow hal_sensors self:global_capability_class_set sys_nice; |