Merge "Get HAL services with retry" into rvc-dev am: 884aa6afe1

Change-Id: I53a6c7cc6e7699993f4c1c4729e8571ddd004cd4
This commit is contained in:
Rubin Xu
2020-03-31 09:40:17 +00:00
committed by Automerger Merge Worker
3 changed files with 3 additions and 3 deletions

View File

@@ -824,7 +824,7 @@ public class LockSettingsService extends ILockSettings.Stub {
private void getAuthSecretHal() {
try {
mAuthSecretService = IAuthSecret.getService();
mAuthSecretService = IAuthSecret.getService(/* retry */ true);
} catch (NoSuchElementException e) {
Slog.i(TAG, "Device doesn't implement AuthSecret HAL");
} catch (RemoteException e) {

View File

@@ -391,7 +391,7 @@ public class SyntheticPasswordManager {
@VisibleForTesting
protected IWeaver getWeaverService() throws RemoteException {
try {
return IWeaver.getService();
return IWeaver.getService(/* retry */ true);
} catch (NoSuchElementException e) {
Slog.i(TAG, "Device does not support weaver");
return null;

View File

@@ -38,7 +38,7 @@ class VendorLock extends OemLock {
static IOemLock getOemLockHalService() {
try {
return IOemLock.getService();
return IOemLock.getService(/* retry */ true);
} catch (NoSuchElementException e) {
Slog.i(TAG, "OemLock HAL not present on device");
return null;