2020-02-07 01:57:16 +01:00
|
|
|
# Display proxy service for Automotive
|
|
|
|
type automotive_display_service, domain, coredomain;
|
|
|
|
type automotive_display_service_exec, system_file_type, exec_type, file_type;
|
2019-11-13 20:25:55 +01:00
|
|
|
|
2020-02-07 01:57:16 +01:00
|
|
|
typeattribute automotive_display_service automotive_display_service_server;
|
|
|
|
|
2022-01-31 18:23:32 +01:00
|
|
|
# Allow to add a display service to the hwservicemanager
|
2020-02-07 01:57:16 +01:00
|
|
|
add_hwservice(automotive_display_service, fwk_automotive_display_hwservice);
|
|
|
|
|
|
|
|
# Allow init to launch automotive display service
|
|
|
|
init_daemon_domain(automotive_display_service)
|
2019-11-13 20:25:55 +01:00
|
|
|
|
|
|
|
# Allow to use Binder IPC for SurfaceFlinger.
|
2020-02-07 01:57:16 +01:00
|
|
|
binder_use(automotive_display_service)
|
2019-11-13 20:25:55 +01:00
|
|
|
|
|
|
|
# Allow to use HwBinder IPC for HAL implementations.
|
2020-02-07 01:57:16 +01:00
|
|
|
hwbinder_use(automotive_display_service)
|
|
|
|
hal_client_domain(automotive_display_service, hal_graphics_composer)
|
2021-06-19 05:00:25 +02:00
|
|
|
hal_client_domain(automotive_display_service, hal_graphics_allocator)
|
2019-11-13 20:25:55 +01:00
|
|
|
|
|
|
|
# Allow to read the target property.
|
2020-02-07 01:57:16 +01:00
|
|
|
get_prop(automotive_display_service, hwservicemanager_prop)
|
2019-11-13 20:25:55 +01:00
|
|
|
|
|
|
|
# Allow to find SurfaceFlinger.
|
2020-02-07 01:57:16 +01:00
|
|
|
allow automotive_display_service surfaceflinger_service:service_manager find;
|
2019-11-13 20:25:55 +01:00
|
|
|
|
|
|
|
# Allow client domain to do binder IPC to serverdomain.
|
2020-02-07 01:57:16 +01:00
|
|
|
binder_call(automotive_display_service, surfaceflinger)
|
|
|
|
|
|
|
|
# Allow to use a graphics mapper
|
|
|
|
allow automotive_display_service hal_graphics_mapper_hwservice:hwservice_manager find;
|
|
|
|
|
|
|
|
# Allow to use hidl token service
|
|
|
|
allow automotive_display_service hidl_token_hwservice:hwservice_manager find;
|
2021-09-13 19:35:46 +02:00
|
|
|
|
|
|
|
# Allow to access EGL files
|
|
|
|
allow automotive_display_service gpu_device:chr_file rw_file_perms;
|
|
|
|
allow automotive_display_service gpu_device:dir search;
|
2022-01-31 18:23:32 +01:00
|
|
|
|
|
|
|
# Allow to add a service to the servicemanager
|
|
|
|
add_service(automotive_display_service, fwk_automotive_display_service);
|
2022-02-10 15:09:02 +01:00
|
|
|
|
|
|
|
# Allow to communicate with EVS services
|
|
|
|
binder_call(automotive_display_service, hal_evs)
|