commit | 6ef4e37351cdc540da14c40abdcd81df19de1783 | [log] [tgz] |
---|---|---|
author | Satya Tangirala <satyat@google.com> | Mon Apr 12 15:00:33 2021 -0700 |
committer | Satya Tangirala <satyat@google.com> | Tue May 11 19:30:30 2021 -0700 |
tree | b07eeb17b44d1a05228c5879424768d3b507138b | |
parent | 93dd933d858ec0412364991ea38e6d18783adac8 [diff] |
Use AServiceManager_waitForService() to connect to keystore2 Vold currently uses AServiceManager_getService() to connect to keystore2, which has an internal timeout of 5s. Since a lot of vold keystore2 connection failures are fatal, we instead use AServiceManager_waitForService(), which will wait efficiently for keystore2 to start, instead of timing out after 5s. Bug: 185934601 Test: Cuttlefish boots. Change-Id: Ib4e977a997e020082382e0686f448d1aa72834ec