Utilize verbose KeyChain errors
As KeyChain reports detailed error codes about failure to generate keys or attestation records for them, log these detailed errors and throw an exception if the hardware does not support Device ID attestation. 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: Ib12efcf48c158373e1fc28cc51d67e70282d029e
This commit is contained in:
@@ -66,6 +66,7 @@ public class KeyStore {
|
||||
public static final int VALUE_CORRUPTED = 8;
|
||||
public static final int UNDEFINED_ACTION = 9;
|
||||
public static final int WRONG_PASSWORD = 10;
|
||||
public static final int CANNOT_ATTEST_IDS = -66;
|
||||
public static final int HARDWARE_TYPE_UNAVAILABLE = -68;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user