From dc9815e226e2b612dcd6ba3b8c7ee443fd1e2631 Mon Sep 17 00:00:00 2001
From: Yifan Hong <elsk@google.com>
Date: Tue, 17 Oct 2017 18:30:06 -0700
Subject: [PATCH] system_server allow to add batteryproperties_service

BatteryService now serves batteryproperties_service
(previously served by healthd) to allow BatteryManager
to continue to work.

Test: boots (BatteryService correctly starts up)

Bug: 63702641
Change-Id: If5c4c82d58c960c966b03afa3fc7902cda04222b
---
 private/system_server.te | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/private/system_server.te b/private/system_server.te
index 290dded0e..727e8cd9e 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -588,6 +588,8 @@ allow system_server surfaceflinger_service:service_manager find;
 allow system_server vold_service:service_manager find;
 allow system_server wificond_service:service_manager find;
 
+add_service(system_server, batteryproperties_service)
+
 allow system_server keystore:keystore_key {
 	get_state
 	get
-- 
GitLab