diff options
| author | Kathy Chen <kxchen@google.com> | 2022-02-03 19:41:31 +0000 |
|---|---|---|
| committer | Kathy Chen <kxchen@google.com> | 2022-02-03 19:41:31 +0000 |
| commit | 05c163335549b2069b42601b4f8ebed49ba1706e (patch) | |
| tree | 13812637802a3b3988aa8e77915f85adab37f70a /services/java/com/android/server/SystemServer.java | |
| parent | c4837b1306cd34e3b3d9831246e81f50c08a1851 (diff) | |
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
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 5 |
1 files changed, 0 insertions, 5 deletions
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(); |
