diff options
| author | Anna Trostanetski <atrost@google.com> | 2019-08-20 02:53:39 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-08-20 02:53:39 -0700 |
| commit | 911c6ffd6aaa0e2bbdbf5385a9e486a03a983c37 (patch) | |
| tree | a9d662209c6130db4951737083a7c0f3a03a4265 /services/java/com/android/server/SystemServer.java | |
| parent | 4d8e42127fac359244207b7d045db6b670ac0adf (diff) | |
| parent | 0755524354ded9a6e955065d31d7fc5135aa05dd (diff) | |
Merge "Start platform compat service eariler." into stage-aosp-master am: 4535b04b33 am: f3fe588229
am: 0755524354
Change-Id: Ic4c4d904df1484844fbaea740674ace0be1d0491
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 12e47b267dba..3dc27c463cfc 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -636,6 +636,13 @@ public final class SystemServer { SystemServerInitThreadPool.get().submit(SystemConfig::getInstance, TAG_SYSTEM_CONFIG); traceEnd(); + // Platform compat service is used by ActivityManagerService, PackageManagerService, and + // possibly others in the future. b/135010838. + traceBeginAndSlog("PlatformCompat"); + ServiceManager.addService(Context.PLATFORM_COMPAT_SERVICE, + new PlatformCompat(mSystemContext)); + traceEnd(); + // Wait for installd to finish starting up so that it has a chance to // create critical directories such as /data/user with the appropriate // permissions. We need this to complete before we initialize other services. @@ -1092,10 +1099,6 @@ public final class SystemServer { SignedConfigService.registerUpdateReceiver(mSystemContext); traceEnd(); - traceBeginAndSlog("PlatformCompat"); - ServiceManager.addService("platform_compat", new PlatformCompat(context)); - traceEnd(); - } catch (RuntimeException e) { Slog.e("System", "******************************************"); Slog.e("System", "************ Failure starting core service", e); |
