Do not start AppSearchModule on TV

Test: build+flash, wait for launcher, inspect logcat for related errors
Bug: 264411203
Change-Id: I15690e6c6d829a94d160905d51fb757190d8ce21
This commit is contained in:
Nikolas Havrikov
2023-01-16 17:36:16 +01:00
parent 32d56c47e1
commit 51af589f96

View File

@@ -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");