Wait for keystore from the test binary
Test: atest MicrodroidHostTestCases Bug: 193389556 Change-Id: I48582cb0b78563230c4d5c67782b0e5c92d94d2d
This commit is contained in:
parent
70bbb1fae3
commit
eb5bd05408
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue