summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2018-07-18 11:43:33 +0800
committerRhed Jao <rhedjao@google.com>2018-07-18 13:42:35 +0800
commit8a39cef7f820651aa95d2f0489ae6cfdd50cd9dc (patch)
tree6734b71012ca2fca02e29fd079ec67e71daec4a7 /services/java/com/android/server/SystemServer.java
parentb411889723918eb5355500b39a08fd4d9133cf29 (diff)
Update AccessibilityManagerService to use SystemService
Bug: 70221242 Test: atest CtsAccessibilityServiceTestCases Change-Id: Icdf0772d0be93168a954fdd746cada4d5d507eb4
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 252a1fdb7416..85de5810bbae 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -235,6 +235,8 @@ public final class SystemServer {
"com.android.server.timedetector.TimeDetectorService$Lifecycle";
private static final String TIME_ZONE_DETECTOR_SERVICE_CLASS =
"com.android.server.timezonedetector.TimeZoneDetectorService$Lifecycle";
+ private static final String ACCESSIBILITY_MANAGER_SERVICE_CLASS =
+ "com.android.server.accessibility.AccessibilityManagerService$Lifecycle";
private static final String PERSISTENT_DATA_BLOCK_PROP = "ro.frp.pst";
@@ -957,8 +959,7 @@ public final class SystemServer {
traceBeginAndSlog("StartAccessibilityManagerService");
try {
- ServiceManager.addService(Context.ACCESSIBILITY_SERVICE,
- new AccessibilityManagerService(context));
+ mSystemServiceManager.startService(ACCESSIBILITY_MANAGER_SERVICE_CLASS);
} catch (Throwable e) {
reportWtf("starting Accessibility Manager", e);
}