2022-10-28 22:46:16 +02:00
|
|
|
###
|
|
|
|
### A domain for sandboxing the remote key provisioning daemon
|
|
|
|
### app that is shipped via mainline.
|
|
|
|
###
|
|
|
|
typeattribute rkpdapp coredomain;
|
|
|
|
|
|
|
|
app_domain(rkpdapp)
|
2022-12-01 19:53:36 +01:00
|
|
|
net_domain(rkpdapp)
|
2022-10-28 22:46:16 +02:00
|
|
|
|
|
|
|
# RKPD needs to be able to call the remote provisioning HALs
|
|
|
|
hal_client_domain(rkpdapp, hal_keymint)
|
|
|
|
|
|
|
|
# Grant access to certain system properties related to RKP
|
|
|
|
get_prop(rkpdapp, device_config_remote_key_provisioning_native_prop)
|
2023-03-16 02:41:29 +01:00
|
|
|
set_prop(rkpdapp, remote_prov_prop)
|
2022-10-28 22:46:16 +02:00
|
|
|
|
|
|
|
# Grant access to the normal services that are available to all apps
|
|
|
|
allow rkpdapp app_api_service:service_manager find;
|
|
|
|
|
2022-12-15 07:11:49 +01:00
|
|
|
# Grant access to media.metrics service, needed for widevine. This
|
|
|
|
# access is granted to all other apps already (e.g. untrusted_app_all).
|
|
|
|
allow rkpdapp mediametrics_service:service_manager find;
|
|
|
|
|
2022-10-28 22:46:16 +02:00
|
|
|
# Grant access to statsd
|
|
|
|
allow rkpdapp statsmanager_service:service_manager find;
|
|
|
|
binder_call(rkpdapp, statsd)
|