diff --git a/private/mediaprovider_app.te b/private/mediaprovider_app.te index 7ad8febf3..1f84eca1f 100644 --- a/private/mediaprovider_app.te +++ b/private/mediaprovider_app.te @@ -35,6 +35,9 @@ allow mediaprovider_app mediametrics_service:service_manager find; # Talk to regular app services allow mediaprovider_app app_api_service:service_manager find; +# Read SDK sandbox data files +allow mediaprovider_app sdk_sandbox_data_file:file { getattr read }; + # Talk to the GPU service binder_call(mediaprovider_app, gpuservice) diff --git a/private/mediaserver.te b/private/mediaserver.te index aaf49f698..f44cbde80 100644 --- a/private/mediaserver.te +++ b/private/mediaserver.te @@ -19,6 +19,9 @@ get_prop(mediaserver, media_config_prop) # Allow mediaserver to start media.transcoding service via ctl.start. set_prop(mediaserver, ctl_mediatranscoding_prop); +# Allow mediaserver to read SDK sandbox data files +allow mediaserver sdk_sandbox_data_file:file { getattr read }; + # Needed for stats callback registration to statsd. allow mediaserver stats_service:service_manager find; allow mediaserver statsmanager_service:service_manager find;