Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bf3f8be authored by San Mehat's avatar San Mehat
Browse files

SystemServer: Move MountService startup before NotificationManagerService



Signed-off-by: default avatarSan Mehat <san@google.com>
parent 17da5a69
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -273,19 +273,22 @@ class ServerThread extends Thread {
            }

            try {
                Log.i(TAG, "Notification Manager");
                notification = new NotificationManagerService(context, statusBar, lights);
                ServiceManager.addService(Context.NOTIFICATION_SERVICE, notification);
                /*
                 * 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 Notification Manager", e);
                Log.e(TAG, "Failure starting Mount Service", e);
            }

            try {
                // MountService must start after NotificationManagerService
                Log.i(TAG, "Mount Service");
                ServiceManager.addService("mount", new MountService(context));
                Log.i(TAG, "Notification Manager");
                notification = new NotificationManagerService(context, statusBar, lights);
                ServiceManager.addService(Context.NOTIFICATION_SERVICE, notification);
            } catch (Throwable e) {
                Log.e(TAG, "Failure starting Mount Service", e);
                Log.e(TAG, "Failure starting Notification Manager", e);
            }

            try {