2018-04-10 23:07:14 +02:00
|
|
|
# evs_mock mock hardware driver service
|
|
|
|
type hal_evs_default, domain;
|
|
|
|
hal_server_domain(hal_evs_default, hal_evs)
|
|
|
|
|
|
|
|
# allow init to launch processes in this context
|
|
|
|
type hal_evs_default_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
init_daemon_domain(hal_evs_default)
|
|
|
|
|
2022-02-10 15:09:02 +01:00
|
|
|
# allow to use a graphic buffer
|
|
|
|
hal_client_domain(hal_evs_default, hal_configstore)
|
|
|
|
hal_client_domain(hal_evs_default, hal_graphics_allocator)
|
|
|
|
hal_client_domain(hal_evs_default, hal_graphics_composer)
|
2020-02-07 01:57:16 +01:00
|
|
|
|
|
|
|
# allow to use automotive display service
|
2022-02-10 15:09:02 +01:00
|
|
|
binder_call(hal_evs_default, automotive_display_service_server)
|
2020-02-07 01:57:16 +01:00
|
|
|
allow hal_evs_default fwk_automotive_display_hwservice:hwservice_manager find;
|
2022-03-23 13:35:28 +01:00
|
|
|
allow hal_evs_default fwk_automotive_display_service:service_manager find;
|
|
|
|
|
|
|
|
# allow to use hidl token service to retrieve HGBP object
|
|
|
|
allow hal_evs_default hidl_token_hwservice:hwservice_manager find;
|
2022-02-10 15:09:02 +01:00
|
|
|
|
2022-03-07 08:38:40 +01:00
|
|
|
# allow to access data from surfaceflinger
|
|
|
|
allow hal_evs_default surfaceflinger:fd use;
|
|
|
|
|
2022-02-10 15:09:02 +01:00
|
|
|
# allow to access EGL
|
|
|
|
allow hal_evs_default gpu_device:chr_file rw_file_perms;
|
|
|
|
allow hal_evs_default gpu_device:dir search;
|
|
|
|
|
|
|
|
# allow to monitor uevents and access video devices
|
|
|
|
allow hal_evs_default device:dir r_dir_perms;
|
|
|
|
allow hal_evs_default video_device:chr_file rw_file_perms;
|
2023-03-22 01:46:46 +01:00
|
|
|
|
|
|
|
# allow to access graphics related properties
|
|
|
|
get_prop(hal_evs_default, graphics_config_prop);
|
2023-10-12 22:31:07 +02:00
|
|
|
get_prop(hal_evs_default, graphics_config_writable_prop)
|
|
|
|
|
|
|
|
# allow to use binder IPC.
|
|
|
|
binder_use(hal_evs_default)
|