blob: db20696a60925599060afa9369eee098b2fa10ef [file] [log] [blame]
Changyeon Jo17b38d52020-02-07 00:57:16 +00001# Display proxy service for Automotive
2type automotive_display_service, domain, coredomain;
3type automotive_display_service_exec, system_file_type, exec_type, file_type;
Haoxiang Li741b9cd2019-11-13 11:25:55 -08004
Changyeon Jo17b38d52020-02-07 00:57:16 +00005typeattribute automotive_display_service automotive_display_service_server;
6
Changyeon Jo66eba132022-01-31 17:23:32 +00007# Allow to add a display service to the hwservicemanager
Changyeon Jo17b38d52020-02-07 00:57:16 +00008add_hwservice(automotive_display_service, fwk_automotive_display_hwservice);
9
10# Allow init to launch automotive display service
11init_daemon_domain(automotive_display_service)
Haoxiang Li741b9cd2019-11-13 11:25:55 -080012
13# Allow to use Binder IPC for SurfaceFlinger.
Changyeon Jo17b38d52020-02-07 00:57:16 +000014binder_use(automotive_display_service)
Haoxiang Li741b9cd2019-11-13 11:25:55 -080015
16# Allow to use HwBinder IPC for HAL implementations.
Changyeon Jo17b38d52020-02-07 00:57:16 +000017hwbinder_use(automotive_display_service)
18hal_client_domain(automotive_display_service, hal_graphics_composer)
Changyeon Joc9510452021-06-19 03:00:25 +000019hal_client_domain(automotive_display_service, hal_graphics_allocator)
Haoxiang Li741b9cd2019-11-13 11:25:55 -080020
21# Allow to read the target property.
Changyeon Jo17b38d52020-02-07 00:57:16 +000022get_prop(automotive_display_service, hwservicemanager_prop)
Haoxiang Li741b9cd2019-11-13 11:25:55 -080023
24# Allow to find SurfaceFlinger.
Changyeon Jo17b38d52020-02-07 00:57:16 +000025allow automotive_display_service surfaceflinger_service:service_manager find;
Haoxiang Li741b9cd2019-11-13 11:25:55 -080026
27# Allow client domain to do binder IPC to serverdomain.
Changyeon Jo17b38d52020-02-07 00:57:16 +000028binder_call(automotive_display_service, surfaceflinger)
29
30# Allow to use a graphics mapper
31allow automotive_display_service hal_graphics_mapper_hwservice:hwservice_manager find;
32
33# Allow to use hidl token service
34allow automotive_display_service hidl_token_hwservice:hwservice_manager find;
Changyeon Joc5e8db52021-09-13 17:35:46 +000035
36# Allow to access EGL files
37allow automotive_display_service gpu_device:chr_file rw_file_perms;
38allow automotive_display_service gpu_device:dir search;
Changyeon Jo66eba132022-01-31 17:23:32 +000039
40# Allow to add a service to the servicemanager
41add_service(automotive_display_service, fwk_automotive_display_service);
Changyeon Joeacb1092022-02-10 14:09:02 +000042
43# Allow to communicate with EVS services
44binder_call(automotive_display_service, hal_evs)