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 | |
Alex Klyubin | 53656c1 | 2017-04-13 19:05:27 -0700 | [diff] [blame] | 4 | add_hwservice(hal_sensors_server, hal_sensors_hwservice) |
| 5 | allow hal_sensors_client hal_sensors_hwservice:hwservice_manager find; |
| 6 | |
Alex Klyubin | 41518be | 2017-03-13 15:13:52 -0700 | [diff] [blame] | 7 | # Allow sensor hals to access ashmem memory allocated by apps |
| 8 | allow hal_sensors { appdomain -isolated_app }:fd use; |
Yifan Hong | d131f94 | 2017-04-04 13:44:46 -0700 | [diff] [blame] | 9 | |
| 10 | # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator |
| 11 | # fd is passed in from framework sensorservice HAL. |
| 12 | allow hal_sensors hal_allocator:fd use; |
Martijn Coenen | 0d1f7d2 | 2017-05-09 09:53:46 -0700 | [diff] [blame^] | 13 | |
| 14 | # allow to run with real-time scheduling policy |
| 15 | allow hal_sensors self:capability sys_nice; |