Changyeon Jo | 5c3bc58 | 2021-10-20 12:22:16 -0700 | [diff] [blame] | 1 | # evsmanager |
| 2 | typeattribute evsmanagerd coredomain; |
| 3 | typeattribute evsmanagerd evsmanager_service_server; |
| 4 | |
| 5 | type evsmanagerd_exec, system_file_type, exec_type, file_type; |
| 6 | |
| 7 | init_daemon_domain(evsmanagerd); |
| 8 | |
| 9 | # Declares as a binder service |
| 10 | binder_service(evsmanagerd) |
| 11 | |
| 12 | # Allows to add a service to service_manager |
| 13 | add_service(evsmanagerd, evsmanagerd_service) |
| 14 | |
| 15 | # Allows to use the binder IPC |
| 16 | binder_use(evsmanagerd) |
| 17 | |
| 18 | # Allows binder IPCs to the various system services |
| 19 | binder_call(evsmanagerd, system_server) |
| 20 | |
| 21 | # Allows to use EVS HAL implementations |
| 22 | hal_client_domain(evsmanagerd, hal_evs) |
| 23 | |
| 24 | # Allows to write messages to the shell |
| 25 | allow evsmanagerd shell:fd use; |
| 26 | allow evsmanagerd shell:fifo_file write; |
| 27 | |
| 28 | # Allows to use the graphics allocator |
| 29 | allow evsmanagerd hal_graphics_allocator:fd use; |
| 30 | |
| 31 | # Allows to use a bootstrap statsd |
| 32 | allow evsmanagerd statsbootstrap_service:service_manager find; |
| 33 | |
| 34 | # Allows binder IPCs to the CarService |
| 35 | binder_call(evsmanagerd, appdomain) |
| 36 | |
| 37 | # For HIDL evs manager implementation |
| 38 | allow evsmanagerd hal_evs_hwservice:hwservice_manager add; |
| 39 | allow evsmanagerd hidl_base_hwservice:hwservice_manager add; |