Catch ServiceSpecificException in weaver service

When getting the config, catch ServiceSpeficiException that the HAL may
throw. It's a similar error case to if the HAL simply didn't exist.

Test: na
Bug: 252760591
Change-Id: Idf3ca993b2cc49a56968be6c3f64aebd3cd8d58d
This commit is contained in:
Devin Moore
2023-01-31 01:18:41 +00:00
parent 9f12f3c0fc
commit abcdbac2c1

View File

@@ -513,7 +513,7 @@ class SyntheticPasswordManager {
WeaverConfig weaverConfig = null;
try {
weaverConfig = weaver.getConfig();
} catch (RemoteException e) {
} catch (RemoteException | ServiceSpecificException e) {
Slog.e(TAG, "Failed to get weaver config", e);
}
if (weaverConfig == null || weaverConfig.slots <= 0) {