2017-03-23 22:27:32 +01:00
|
|
|
typeattribute mediaserver coredomain;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
init_daemon_domain(mediaserver)
|
2019-01-24 00:07:40 +01:00
|
|
|
tmpfs_domain(mediaserver)
|
2019-12-05 21:03:16 +01:00
|
|
|
allow mediaserver appdomain_tmpfs:file { getattr map read write };
|
2017-03-30 04:08:34 +02:00
|
|
|
|
|
|
|
# allocate and use graphic buffers
|
|
|
|
hal_client_domain(mediaserver, hal_graphics_allocator)
|
2019-10-30 18:46:50 +01:00
|
|
|
hal_client_domain(mediaserver, hal_configstore)
|
2019-11-22 23:47:15 +01:00
|
|
|
hal_client_domain(mediaserver, hal_drm)
|
2018-05-26 01:23:37 +02:00
|
|
|
hal_client_domain(mediaserver, hal_omx)
|
2019-04-30 14:09:28 +02:00
|
|
|
hal_client_domain(mediaserver, hal_codec2)
|
|
|
|
|
2020-03-04 09:20:35 +01:00
|
|
|
set_prop(mediaserver, audio_prop)
|
2020-05-11 10:33:27 +02:00
|
|
|
|
2020-05-25 08:36:44 +02:00
|
|
|
get_prop(mediaserver, drm_service_config_prop)
|
2020-05-11 10:33:27 +02:00
|
|
|
get_prop(mediaserver, media_config_prop)
|
2021-05-14 21:52:54 +02:00
|
|
|
|
2023-03-02 00:58:34 +01:00
|
|
|
# Allow MediaCodec running on mediaserver to read media_native flags
|
|
|
|
get_prop(mediaserver, device_config_media_native_prop)
|
|
|
|
|
2021-05-14 21:52:54 +02:00
|
|
|
# Allow mediaserver to start media.transcoding service via ctl.start.
|
|
|
|
set_prop(mediaserver, ctl_mediatranscoding_prop);
|
2023-01-24 01:38:43 +01:00
|
|
|
|
2023-03-09 18:11:56 +01:00
|
|
|
# Allow mediaserver to read SDK sandbox data files
|
|
|
|
allow mediaserver sdk_sandbox_data_file:file { getattr read };
|
|
|
|
|
2023-01-24 01:38:43 +01:00
|
|
|
# Needed for stats callback registration to statsd.
|
|
|
|
allow mediaserver stats_service:service_manager find;
|
|
|
|
allow mediaserver statsmanager_service:service_manager find;
|
|
|
|
binder_call(mediaserver, statsd)
|
2023-12-27 17:26:52 +01:00
|
|
|
|
|
|
|
# Allow mediaserver to communicate with Surface provided
|
|
|
|
# by virtual camera.
|
|
|
|
binder_call(mediaserver, virtual_camera)
|