diff options
| author | Hai Zhang <zhanghai@google.com> | 2021-01-31 22:30:21 -0800 |
|---|---|---|
| committer | Hai Zhang <zhanghai@google.com> | 2021-02-02 18:54:30 +0000 |
| commit | a101dc88e0f78e416384ab51461b7573e9468e48 (patch) | |
| tree | 6427d0e5290fffa2cf7c151fb931602dbc31328c /services/java/com/android/server | |
| parent | 9ee2e0d368836a53154f45c7b6d4a34614175481 (diff) | |
Start role service earlier.
Role service is modularized in this release and allows lower level
roles to be introduced after role logic is moved from
PermissionController APK into the system server JAR. So move starting
role service earlier as well to allow lower level roles.
This has no immediate effect because currently initialization for all
roles happens upon user start, but once role logic is inside system
server, we can allows initializing certain roles earlier in the boot
process, e.g. via SystemService.onBootPhase().
Fixes: 178565325
Test: presubmit
Change-Id: I8d183553f08aa6200aa3566afaabd40a7ce9489c
(cherry picked from commit d93060190f626200b8cdfdd55249da69f72b6ff7)
Diffstat (limited to 'services/java/com/android/server')
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index da8d82450769..42dd733438e4 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -1344,6 +1344,13 @@ public final class SystemServer implements Dumpable { mSystemServiceManager.startService(DropBoxManagerService.class); t.traceEnd(); + // Grants default permissions and defines roles + t.traceBegin("StartRoleManagerService"); + LocalManagerRegistry.addManager(RoleServicePlatformHelper.class, + new RoleServicePlatformHelperImpl(mSystemContext)); + mSystemServiceManager.startService(ROLE_SERVICE_CLASS); + t.traceEnd(); + t.traceBegin("StartVibratorManagerService"); mSystemServiceManager.startService(VibratorManagerService.Lifecycle.class); t.traceEnd(); @@ -2060,13 +2067,6 @@ public final class SystemServer implements Dumpable { t.traceEnd(); } - // Grants default permissions and defines roles - t.traceBegin("StartRoleManagerService"); - LocalManagerRegistry.addManager(RoleServicePlatformHelper.class, - new RoleServicePlatformHelperImpl(mSystemContext)); - mSystemServiceManager.startService(ROLE_SERVICE_CLASS); - t.traceEnd(); - // We need to always start this service, regardless of whether the // FEATURE_VOICE_RECOGNIZERS feature is set, because it needs to take care // of initializing various settings. It will internally modify its behavior |
