summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-03-19 14:37:11 -0700
committerAnthony Hugh <ahugh@google.com>2015-03-23 12:02:52 -0700
commit11cc1f166dfc18d6d2338b93f7526a0911c7bb67 (patch)
tree1db33f1b7f0b436d3e7279105dcf0ff0ad0e7c90 /services/java
parent104a29b6b5fe6e454787053ca72950dbbc4d424b (diff)
downloadframeworks_base-11cc1f166dfc18d6d2338b93f7526a0911c7bb67.zip
frameworks_base-11cc1f166dfc18d6d2338b93f7526a0911c7bb67.tar.gz
frameworks_base-11cc1f166dfc18d6d2338b93f7526a0911c7bb67.tar.bz2
DO NOT MERGE: Set the appliance (tv/watch) in the configuration earlier
Some UI is displayed (boot/optimizing) before the configuration has been completely set. This noteably happens for watches and TVs because UIModeManagerService hasn't started yet. UIModeManagerService is started earlier, and its dependency TwilightService is loaded during the "all system services ready" boot phase. b/18388692 Change-Id: Iabdf8ac3eb04ebcb44779d752e19042769cc65c6
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/SystemServer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 334cdf6..98e7419 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -569,6 +569,10 @@ public final class SystemServer {
}
}
+ // We start this here so that we update our configuration to set watch or television
+ // as appropriate.
+ mSystemServiceManager.startService(UiModeManagerService.class);
+
try {
mPackageManagerService.performBootDexOpt();
} catch (Throwable e) {
@@ -834,8 +838,6 @@ public final class SystemServer {
mSystemServiceManager.startService(TwilightService.class);
- mSystemServiceManager.startService(UiModeManagerService.class);
-
mSystemServiceManager.startService(JobSchedulerService.class);
if (!disableNonCoreServices) {