Merge "Keystore: Use waitForService() instead of getService()" into main

This commit is contained in:
Tri Vo 2023-07-18 19:56:09 +00:00 committed by Gerrit Code Review
commit 14faaa4665

View file

@ -74,8 +74,8 @@ KeyAttestationApplicationIdProvider& KeyAttestationApplicationIdProvider::get()
}
KeyAttestationApplicationIdProvider::KeyAttestationApplicationIdProvider()
: BpKeyAttestationApplicationIdProvider(
android::defaultServiceManager()->getService(String16("sec_key_att_app_id_provider"))) {}
: BpKeyAttestationApplicationIdProvider(android::defaultServiceManager()->waitForService(
String16("sec_key_att_app_id_provider"))) {}
DECLARE_STACK_OF(ASN1_OCTET_STRING);