Allow mediaserver start transcoding service.

Merged-In: 1708946

Bug: 187271658
Test: atest MediaTranscodeManagerTest; unit tests
Change-Id: I847a83ec3e0d852266b7b0c624767e72d48b45d5
This commit is contained in:
hkuang 2021-05-14 12:52:54 -07:00 committed by Hangyu Kuang
parent 88050312be
commit 227bb14c8a
3 changed files with 7 additions and 0 deletions

View file

@ -15,3 +15,6 @@ set_prop(mediaserver, audio_prop)
get_prop(mediaserver, drm_service_config_prop)
get_prop(mediaserver, media_config_prop)
# Allow mediaserver to start media.transcoding service via ctl.start.
set_prop(mediaserver, ctl_mediatranscoding_prop);

View file

@ -35,6 +35,7 @@ system_internal_prop(userspace_reboot_log_prop)
system_internal_prop(userspace_reboot_test_prop)
system_internal_prop(verity_status_prop)
system_internal_prop(zygote_wrap_prop)
system_internal_prop(ctl_mediatranscoding_prop)
###
### Neverallow rules

View file

@ -169,6 +169,9 @@ ctl.restart$gsid u:object_r:ctl_gsid_prop:s0
# Restrict access to stopping apexd.
ctl.stop$apexd u:object_r:ctl_apexd_prop:s0
# Restrict access to starting media.transcoding.
ctl.start$media.transcoding u:object_r:ctl_mediatranscoding_prop:s0
# Restrict access to restart dumpstate
ctl.interface_restart$android.hardware.dumpstate u:object_r:ctl_dumpstate_prop:s0