Wait for keystore from the test binary

Test: atest MicrodroidHostTestCases
Bug: 193389556
Change-Id: I48582cb0b78563230c4d5c67782b0e5c92d94d2d
This commit is contained in:
Andrew Scull 2021-07-13 00:56:03 +00:00
parent 70bbb1fae3
commit eb5bd05408
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace {
Result<void> test_keystore() {
// Connect to Keystore.
ndk::SpAIBinder binder(
AServiceManager_getService("android.system.keystore2.IKeystoreService/default"));
AServiceManager_waitForService("android.system.keystore2.IKeystoreService/default"));
auto service = IKeystoreService::fromBinder(binder);
if (service == nullptr) {
return Error() << "Failed to find Keystore";