From 2328fec71027c7df4461e3f332f25418d2e3f258 Mon Sep 17 00:00:00 2001 From: Allen Hair <allenhair@google.com> Date: Wed, 30 Nov 2016 18:27:03 -0800 Subject: [PATCH] Add coverage service. Bug: 31077138 Test: Device boots, coverage service works when tested manually. Change-Id: Ia855cfefd5c25be5d1d8db48908c04b3616b5504 --- private/service_contexts | 1 + public/service.te | 3 +++ 2 files changed, 4 insertions(+) diff --git a/private/service_contexts b/private/service_contexts index 43d05521b..76a852b14 100644 --- a/private/service_contexts +++ b/private/service_contexts @@ -29,6 +29,7 @@ consumer_ir u:object_r:consumer_ir_service:s0 content u:object_r:content_service:s0 contexthub_service u:object_r:contexthub_service:s0 country_detector u:object_r:country_detector_service:s0 +coverage u:object_r:coverage_service:s0 cpuinfo u:object_r:cpuinfo_service:s0 dbinfo u:object_r:dbinfo_service:s0 device_policy u:object_r:device_policy_service:s0 diff --git a/public/service.te b/public/service.te index d1be52d21..550f79bb7 100644 --- a/public/service.te +++ b/public/service.te @@ -48,6 +48,9 @@ type connmetrics_service, app_api_service, system_server_service, service_manage type consumer_ir_service, app_api_service, system_server_service, service_manager_type; type content_service, app_api_service, system_server_service, service_manager_type; type country_detector_service, app_api_service, system_server_service, service_manager_type; +# Note: The coverage_service should only be enabled for userdebug / eng builds that were compiled +# with EMMA_INSTRUMENT=true. We should consider locking this down in the future. +type coverage_service, system_server_service, service_manager_type; type cpuinfo_service, system_api_service, system_server_service, service_manager_type; type dbinfo_service, system_api_service, system_server_service, service_manager_type; type device_policy_service, app_api_service, system_server_service, service_manager_type; -- GitLab