donut snapshot
This commit is contained in:
@@ -52,6 +52,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
class ServerThread extends Thread {
|
||||
private static final String TAG = "SystemServer";
|
||||
private final static boolean INCLUDE_DEMO = false;
|
||||
private final static boolean INCLUDE_BACKUP = false;
|
||||
|
||||
private static final int LOG_BOOT_PROGRESS_SYSTEM_RUN = 3010;
|
||||
|
||||
@@ -190,6 +191,7 @@ class ServerThread extends Thread {
|
||||
StatusBarService statusBar = null;
|
||||
InputMethodManagerService imm = null;
|
||||
AppWidgetService appWidget = null;
|
||||
NotificationManagerService notification = null;
|
||||
|
||||
if (factoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL) {
|
||||
try {
|
||||
@@ -240,8 +242,8 @@ class ServerThread extends Thread {
|
||||
|
||||
try {
|
||||
Log.i(TAG, "Starting Notification Manager.");
|
||||
ServiceManager.addService(Context.NOTIFICATION_SERVICE,
|
||||
new NotificationManagerService(context, statusBar, hardware));
|
||||
notification = new NotificationManagerService(context, statusBar, hardware);
|
||||
ServiceManager.addService(Context.NOTIFICATION_SERVICE, notification);
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "Failure starting Notification Manager", e);
|
||||
}
|
||||
@@ -317,8 +319,10 @@ class ServerThread extends Thread {
|
||||
}
|
||||
|
||||
try {
|
||||
Log.i(TAG, "Starting Backup Service");
|
||||
ServiceManager.addService(Context.BACKUP_SERVICE, new BackupManagerService(context));
|
||||
if (INCLUDE_BACKUP) {
|
||||
Log.i(TAG, "Starting Backup Service");
|
||||
ServiceManager.addService(Context.BACKUP_SERVICE, new BackupManagerService(context));
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "Failure starting Backup Service", e);
|
||||
}
|
||||
@@ -348,6 +352,11 @@ class ServerThread extends Thread {
|
||||
|
||||
// It is now time to start up the app processes...
|
||||
boolean safeMode = wm.detectSafeMode();
|
||||
|
||||
if (notification != null) {
|
||||
notification.systemReady();
|
||||
}
|
||||
|
||||
if (statusBar != null) {
|
||||
statusBar.systemReady();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user