Add SEPolicy config for PCS to act as a media app

These are the minimum set of services that PCS needs to have access for
it to be able act as a media app and use Exoplayer for playing recorded
video files.

However, there'll be a follow up change to broaden the permissions to be
future proof and have greater flexibility as a media app, which will let
PCS to be updated via Play Store without the worry of a missing SEPolicy
config that is common among media apps.

Bug: 287069860
Test: m && flashall
Change-Id: I956219faacbc0c1b649cb638cede964480766718
This commit is contained in:
Utku Utkan 2023-08-10 08:55:18 -07:00
parent 1a4567113d
commit 46d6a88211

View file

@ -2,9 +2,14 @@ type vendor_pcs_app, domain, coredomain;
app_domain(vendor_pcs_app); app_domain(vendor_pcs_app);
allow vendor_pcs_app app_api_service:service_manager find; allow vendor_pcs_app {
app_api_service
allow vendor_pcs_app cameraserver_service:service_manager find; audioserver_service
cameraserver_service
mediametrics_service
mediaserver_service
radio_service
}:service_manager find;
# Allow PCS to find the LyricConfigProvider service through ServiceManager. # Allow PCS to find the LyricConfigProvider service through ServiceManager.
allow vendor_pcs_app vendor_camera_lyricconfigprovider_service:service_manager find; allow vendor_pcs_app vendor_camera_lyricconfigprovider_service:service_manager find;