platform_system_security/keystore2
Rajesh Nyamagoud 7ef5ec50f2 Adding tests to validate below keystore2 service APIs
- updateSubcomponent
 - getSecurityLevel

1. Generate asymmetric key and update its public certificate and
   certificate chain. Test should load the updated key and verify
   whether its certificate and cert-chain are updated successfully.

2. Try to update non-existing key's public cert and cert-chain. Test
   should fail to update with error response code `KEY_NOT_FOUND`.

3. Try to update the certificate in a grantee context which doesn't
   possess UPDATE access permission for the specified key. Test should
   fail to update with error response code `PERMISSION_DENIED`. Test
   should also verify that the gratee context which possess the `UPDATE`
   access permission should be able to update the certificate
   successfully.

4. Try to get `TRUSTED_ENVIRONMENT` security level instance. Test should
   successfully get the instance.

5. Try to get `SOFTWARE` security level instance. Test should fail with
   error response code `HARDWARE_TYPE_UNAVAILABLE`.

Bug: 194359114
Test: atest keystore2_client_test
Change-Id: I92635c6c1fafde4e1cd4f5654f0164e45c145961
2023-02-01 02:10:23 +00:00
..
aaid Add bindgen bindings test 2021-08-23 13:47:37 -07:00
aidl Update the documentation for onLockScreenEvent to be more comprehensive. 2023-01-19 22:58:44 +00:00
apc_compat Remove use of size_t in Rust code 2022-12-07 11:57:25 +01:00
legacykeystore Change request for Rust v1.64.0 2022-09-15 23:49:23 +00:00
selinux Update source for Rust 1.63.0 2022-08-12 10:36:10 -07:00
src Use rkpd if the build flag is set 2023-01-24 09:10:49 -08:00
test_utils Make keystore2 unit tests less brittle 2023-01-12 12:56:03 +00:00
tests Adding tests to validate below keystore2 service APIs 2023-02-01 02:10:23 +00:00
Android.bp keystore2: Add utils to fetch keys from RKPD 2022-12-22 01:01:18 -08:00
android.system.keystore2-service.xml Add java_defaults to Android.bp and update default 2022-12-06 17:45:42 +00:00
keystore2.rc Replace writepid with task_profiles command for cgroup migration 2021-10-22 00:33:43 +00:00
rustfmt.toml Run rustfmt and add rustfmt.toml to directory 2022-09-19 11:23:31 +00:00
TEST_MAPPING Keystore 2.0: Add legacy blob test to TEST_MAPPINGS 2022-03-29 19:59:48 +00:00