Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 1 | # Display proxy service for Automotive |
| 2 | type automotive_display_service, domain, coredomain; |
| 3 | type automotive_display_service_exec, system_file_type, exec_type, file_type; |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 4 | |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 5 | typeattribute automotive_display_service automotive_display_service_server; |
| 6 | |
| 7 | # Allow to add a display service to the manager |
| 8 | add_hwservice(automotive_display_service, fwk_automotive_display_hwservice); |
| 9 | |
| 10 | # Allow init to launch automotive display service |
| 11 | init_daemon_domain(automotive_display_service) |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 12 | |
| 13 | # Allow to use Binder IPC for SurfaceFlinger. |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 14 | binder_use(automotive_display_service) |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 15 | |
| 16 | # Allow to use HwBinder IPC for HAL implementations. |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 17 | hwbinder_use(automotive_display_service) |
| 18 | hal_client_domain(automotive_display_service, hal_graphics_composer) |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 19 | |
| 20 | # Allow to read the target property. |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 21 | get_prop(automotive_display_service, hwservicemanager_prop) |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 22 | |
| 23 | # Allow to find SurfaceFlinger. |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 24 | allow automotive_display_service surfaceflinger_service:service_manager find; |
Haoxiang Li | 741b9cd | 2019-11-13 11:25:55 -0800 | [diff] [blame] | 25 | |
| 26 | # Allow client domain to do binder IPC to serverdomain. |
Changyeon Jo | 17b38d5 | 2020-02-07 00:57:16 +0000 | [diff] [blame] | 27 | binder_call(automotive_display_service, surfaceflinger) |
| 28 | |
| 29 | # Allow to use a graphics mapper |
| 30 | allow automotive_display_service hal_graphics_mapper_hwservice:hwservice_manager find; |
| 31 | |
| 32 | # Allow to use hidl token service |
| 33 | allow automotive_display_service hidl_token_hwservice:hwservice_manager find; |