From ceafb82c02552e907d1d2485ab195131872ef07c Mon Sep 17 00:00:00 2001 From: Vova Sharaienko Date: Fri, 2 Apr 2021 00:45:08 +0000 Subject: [PATCH] exo: updated sepolicy This allows the Exo to access AIDL Stats service Bug: 181892307 Test: Build, flash, boot & and logcat | grep "IStats" Change-Id: I6ae1c37505b312617376bc3c954720c8a1f223d2 --- ambient/exo_app.te | 2 ++ ambient/exo_wirecutter_app.te | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ambient/exo_app.te b/ambient/exo_app.te index f21b7cb2..b7a30e28 100644 --- a/ambient/exo_app.te +++ b/ambient/exo_app.te @@ -9,11 +9,13 @@ allow exo_app cameraserver_service:service_manager find; allow exo_app mediaserver_service:service_manager find; allow exo_app radio_service:service_manager find; allow exo_app fwk_stats_hwservice:hwservice_manager find; +allow exo_app fwk_stats_service:service_manager find; allow exo_app mediametrics_service:service_manager find; allow exo_app gpu_device:dir search; allow exo_app uhid_device:chr_file rw_file_perms; binder_call(exo_app, statsd) +binder_use(exo_app) get_prop(exo_app, device_config_runtime_native_boot_prop) diff --git a/ambient/exo_wirecutter_app.te b/ambient/exo_wirecutter_app.te index 4fb10062..1450b4cc 100644 --- a/ambient/exo_wirecutter_app.te +++ b/ambient/exo_wirecutter_app.te @@ -1,4 +1,4 @@ -type exo_wirecutter_app, domain; +type exo_wirecutter_app, domain, coredomain; app_domain(exo_wirecutter_app) @@ -6,3 +6,5 @@ allow exo_wirecutter_app app_api_service:service_manager find; allow exo_wirecutter_app fwk_stats_hwservice:hwservice_manager find; allow exo_wirecutter_app gpu_device:dir search; binder_call(exo_wirecutter_app, statsd) +allow exo_wirecutter_app fwk_stats_service:service_manager find; +binder_use(exo_wirecutter_app)