KeyChain: Verbose key generation failure reporting
Return various error codes, instead of an opaque success indicator, for
the generateKey and attestKey methods.
This allows distinguishing between failures that are related to
incorrect invocation of these methods, hardware not supporting a feature
(like Device ID attestation) and actual hardware failure.
Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: I73b561ba40498d0f80f66d2a736b5d9f5c436952
1 file changed