From 05c163335549b2069b42601b4f8ebed49ba1706e Mon Sep 17 00:00:00 2001 From: Kathy Chen Date: Thu, 3 Feb 2022 19:41:31 +0000 Subject: Fix a bug where the AmbientContextManager is not registered if the AmbientContextDetectionService is not available. The manager should always be available, and return STATUS_SERVICE_NOT_AVAILABLE in this case. Test: end-to-end test Bug: 192476579 Change-Id: Ifce8c8dbb71a7bb6efd65db41686c14681cf0e4a --- services/java/com/android/server/SystemServer.java | 5 ----- 1 file changed, 5 deletions(-) (limited to 'services/java/com/android/server/SystemServer.java') diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index c2dec067c870..a111831fbfc4 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -3171,11 +3171,6 @@ public final class SystemServer implements Dumpable { } private void startAmbientContextService(@NonNull TimingsTraceAndSlog t) { - if (!AmbientContextManagerService.isDetectionServiceConfigured()) { - Slog.d(TAG, "AmbientContextDetectionService is not configured on this device"); - return; - } - t.traceBegin("StartAmbientContextService"); mSystemServiceManager.startService(AmbientContextManagerService.class); t.traceEnd(); -- cgit v1.2.3