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

Commit 56e5b200 authored by YoungJoon Yang's avatar YoungJoon Yang
Browse files

Stop Smartspace service if not in use

Bug: 286263666
Bug: 287139348
Test: adb shell service list | grep smartspace -> no result
Test: atest CtsSmartspaceServiceTestCases
Change-Id: Ibccf99a37c85e0c2d965f3852378f8378f84c741
(cherry picked from commit 2cbceb15abd715348d5e530f761a036790e94101)
parent 5e56f8b9
Loading
Loading
Loading
Loading
+7 −4
Original line number Original line Diff line number Diff line
@@ -1945,10 +1945,13 @@ public final class SystemServer implements Dumpable {
            }
            }


            // Smartspace manager service
            // Smartspace manager service
            // TODO: add deviceHasConfigString(context, R.string.config_defaultSmartspaceService)
            if (deviceHasConfigString(context, R.string.config_defaultSmartspaceService)) {
                t.traceBegin("StartSmartspaceService");
                t.traceBegin("StartSmartspaceService");
                mSystemServiceManager.startService(SMARTSPACE_MANAGER_SERVICE_CLASS);
                mSystemServiceManager.startService(SMARTSPACE_MANAGER_SERVICE_CLASS);
                t.traceEnd();
                t.traceEnd();
            } else {
                Slog.d(TAG, "SmartspaceManagerService not defined by OEM or disabled by flag");
            }


            t.traceBegin("InitConnectivityModuleConnector");
            t.traceBegin("InitConnectivityModuleConnector");
            try {
            try {