From f17f42b0df9a5564d90f0b60555fc8956a5732bc Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Mon, 7 Jan 2019 14:10:44 +0800 Subject: Add the DynamicAndroid Service Define the DynamicAndroid with AIDL. Add a java implementation. Start a service instance in the system server. Add a permission test. Bug: 122015653 Test: Build & Test on a pixel phone with following command \ ./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest Merged-In: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7 Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7 --- services/java/com/android/server/SystemServer.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'services/java/com') diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 3ecbd47cf12e..75cd82e4e012 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -758,6 +758,7 @@ public final class SystemServer { private void startOtherServices() { final Context context = mSystemContext; VibratorService vibrator = null; + DynamicAndroidService dynamicAndroid = null; IStorageManager storageManager = null; NetworkManagementService networkManagement = null; IpSecService ipSecService = null; @@ -867,6 +868,11 @@ public final class SystemServer { ServiceManager.addService("vibrator", vibrator); traceEnd(); + traceBeginAndSlog("StartDynamicAndroidService"); + dynamicAndroid = new DynamicAndroidService(context); + ServiceManager.addService("dynamic_android", dynamicAndroid); + traceEnd(); + if (!isWatch) { traceBeginAndSlog("StartConsumerIrService"); consumerIr = new ConsumerIrService(context); -- cgit v1.2.3-59-g8ed1b