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

Commit 29397ce9 authored by Felipe Leme's avatar Felipe Leme
Browse files

Temporarily disabled IntelligenceService.

It's not properly ignoring events when the service is not set, which is causing
issues on some apps.

Fixes: 119659731
Test: manual verification

Change-Id: Ie271b8fcfde0bc2a5d6bf7c73b88bd6c48d50fdb
parent e4e44325
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -196,6 +196,7 @@ public final class IntelligenceManager {

    private void handleSendEvent(@NonNull ContentCaptureEvent event) {

        //TODO(b/111276913): make a copy and don't use lock
        synchronized (mLock) {
            mEvents.add(event);
            final int numberEvents = mEvents.size();
+6 −1
Original line number Diff line number Diff line
@@ -804,8 +804,11 @@ public final class SystemServer {

        boolean disableSystemTextClassifier = SystemProperties.getBoolean(
                "config.disable_systemtextclassifier", false);

        //TODO(b/111276913): temporarily disabled until the manager is properly implemented to
        // ignore events when disabled and buffer when enabled
        boolean disableIntelligence = SystemProperties.getBoolean(
                "config.disable_intelligence", false);
                "config.disable_intelligence", true);
        boolean disableNetworkTime = SystemProperties.getBoolean("config.disable_networktime",
                false);
        boolean disableCameraService = SystemProperties.getBoolean("config.disable_cameraservice",
@@ -1140,6 +1143,8 @@ public final class SystemServer {
                traceBeginAndSlog("StartIntelligenceService");
                mSystemServiceManager.startService(INTELLIGENCE_MANAGER_SERVICE_CLASS);
                traceEnd();
            } else {
                Slog.d(TAG, "IntelligenceService disabled");
            }

            // NOTE: ClipboardService indirectly depends on IntelligenceService