From 51af589f96462a208b05f450ea1c45d7380e20d4 Mon Sep 17 00:00:00 2001 From: Nikolas Havrikov Date: Mon, 16 Jan 2023 17:36:16 +0100 Subject: [PATCH] Do not start AppSearchModule on TV Test: build+flash, wait for launcher, inspect logcat for related errors Bug: 264411203 Change-Id: I15690e6c6d829a94d160905d51fb757190d8ce21 --- services/java/com/android/server/SystemServer.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 2f2e1cbaef5e5..ec8387698d5fe 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -2876,9 +2876,11 @@ public final class SystemServer implements Dumpable { mSystemServiceManager.startService(SAFETY_CENTER_SERVICE_CLASS); t.traceEnd(); - t.traceBegin("AppSearchModule"); - mSystemServiceManager.startService(APPSEARCH_MODULE_LIFECYCLE_CLASS); - t.traceEnd(); + if (!isTv) { + t.traceBegin("AppSearchModule"); + mSystemServiceManager.startService(APPSEARCH_MODULE_LIFECYCLE_CLASS); + t.traceEnd(); + } if (SystemProperties.getBoolean("ro.config.isolated_compilation_enabled", false)) { t.traceBegin("IsolatedCompilationService");