Merge "Throw exception when gatekeeper fails"

This commit is contained in:
Rubin Xu
2020-02-11 10:27:36 +00:00
committed by Android (Google) Code Review

View File

@@ -590,8 +590,8 @@ public class SyntheticPasswordManager {
throw new IllegalStateException("Failed to create new SID for user", e);
}
if (response.getResponseCode() != GateKeeperResponse.RESPONSE_OK) {
Slog.e(TAG, "Fail to create new SID for user " + userId);
return;
throw new IllegalStateException("Fail to create new SID for user " + userId
+ " response: " + response.getResponseCode());
}
saveSyntheticPasswordHandle(response.getPayload(), userId);
}