SystemServer: Move MountService startup before NotificationManagerService

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-02-03 14:43:09 -08:00
parent 17da5a691c
commit 1bf3f8be7c

View File

@@ -272,6 +272,17 @@ class ServerThread extends Thread {
Log.e(TAG, "Failure starting Accessibility Manager", e);
}
try {
/*
* NotificationManagerService is dependant on MountService,
* (for media / usb notifications) so we must start MountService first.
*/
Log.i(TAG, "Mount Service");
ServiceManager.addService("mount", new MountService(context));
} catch (Throwable e) {
Log.e(TAG, "Failure starting Mount Service", e);
}
try {
Log.i(TAG, "Notification Manager");
notification = new NotificationManagerService(context, statusBar, lights);
@@ -280,14 +291,6 @@ class ServerThread extends Thread {
Log.e(TAG, "Failure starting Notification Manager", e);
}
try {
// MountService must start after NotificationManagerService
Log.i(TAG, "Mount Service");
ServiceManager.addService("mount", new MountService(context));
} catch (Throwable e) {
Log.e(TAG, "Failure starting Mount Service", e);
}
try {
Log.i(TAG, "Device Storage Monitor");
ServiceManager.addService(DeviceStorageMonitorService.SERVICE,