Fix a bug where the AiAi service was auto-destroyed due to binder timeout.

Test: flash device and run services
Change-Id: I899b7b416b76443c171209866819f2e64f4e6802
This commit is contained in:
Kathy Chen
2022-03-10 07:04:04 -08:00
parent 53bd06645d
commit 5ac7cdfdd3

View File

@@ -49,6 +49,12 @@ final class RemoteAmbientContextDetectionService
connect();
}
@Override
protected long getAutoDisconnectTimeoutMs() {
// Disable automatic unbinding.
return -1;
}
/**
* Asks the implementation to start detection.
*