system_server: create StatsManagerService

Refactor to split the logic within statscompanion_service
The goal of the refactor is to simplify the binder calls to statsd

This service will talk to statsd.

At the end of the refactor, this service should be the only
service that talks to statsd.

Bug: 146074223
Test: Manual by creating the service with empty implementation
Change-Id: Ib9c2e10ec195d41062f1001e5a82b374696de939
This commit is contained in:
Jeffrey Huang 2019-12-12 10:17:58 -08:00
parent 384858e0ec
commit 215dd2aa9b
4 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ userdebug_or_eng(`
binder_call(platform_app, gpuservice)
# Allow platform apps to log via statsd.
binder_call(platform_app statsd)
binder_call(platform_app, statsd)
# Access to /data/preloads
allow platform_app preloads_data_file:file r_file_perms;

View File

@ -4,4 +4,5 @@ type gsi_service, service_manager_type;
type incidentcompanion_service, system_api_service, system_server_service, service_manager_type;
type stats_service, service_manager_type;
type statscompanion_service, system_server_service, service_manager_type;
type statsmanager_service, system_api_service, system_server_service, service_manager_type;
type uce_service, service_manager_type;

View File

@ -188,6 +188,7 @@ sip u:object_r:radio_service:s0
slice u:object_r:slice_service:s0
stats u:object_r:stats_service:s0
statscompanion u:object_r:statscompanion_service:s0
statsmanager u:object_r:statsmanager_service:s0
soundtrigger u:object_r:voiceinteraction_service:s0
soundtrigger_middleware u:object_r:soundtrigger_middleware_service:s0
statusbar u:object_r:statusbar_service:s0

View File

@ -3,8 +3,6 @@ typeattribute statsd stats_service_server;
init_daemon_domain(statsd)
binder_call(statsd, statscompanion_service)
# Allow to exec the perfetto cmdline client and pass it the trace config on
# stdint through a pipe. It allows statsd to capture traces and hand them
# to Android dropbox.