2018-09-20 21:07:44 +02:00
|
|
|
type mediaswcodec, domain;
|
|
|
|
type mediaswcodec_exec, system_file_type, exec_type, file_type;
|
|
|
|
|
|
|
|
typeattribute mediaswcodec halserverdomain;
|
|
|
|
typeattribute mediaswcodec mediaswcodec_server;
|
|
|
|
|
|
|
|
hal_client_domain(mediaswcodec, hal_allocator)
|
|
|
|
hal_client_domain(mediaswcodec, hal_graphics_allocator)
|
|
|
|
|
2019-01-31 00:28:31 +01:00
|
|
|
get_prop(mediaswcodec, device_config_media_native_prop)
|
|
|
|
|
2018-08-31 23:42:11 +02:00
|
|
|
userdebug_or_eng(`
|
|
|
|
binder_use(mediaswcodec)
|
|
|
|
# Add mediaextractor_update_service service
|
|
|
|
allow mediaswcodec mediaextractor_update_service:service_manager { find add };
|
|
|
|
|
|
|
|
# Allow mediaswcodec to load libs from update apk.
|
|
|
|
allow mediaswcodec apk_data_file:file { open read execute getattr map };
|
|
|
|
allow mediaswcodec apk_data_file:dir { search getattr };
|
|
|
|
')
|