Add new error for system errors that are retryable

Some issues require a system error to be raised that
indicates we should retry the process. This adds a new
error and bumps the version of the api for future use.

Test: atest keystore2_test
Bug: 238619180
Change-Id: Iff8fa83f7b223e08de9fa31434e16aa3aa2153f6
This commit is contained in:
Shaquille Johnson 2024-01-03 18:30:11 +00:00
parent 46531afc61
commit ac3c2cdea4
4 changed files with 27 additions and 28 deletions

View file

@ -41,7 +41,7 @@ cc_library {
],
shared_libs: [
"android.system.keystore2-V3-ndk",
"android.system.keystore2-V4-ndk",
"libbinder_ndk",
"libcrypto",
"libcutils",

View file

@ -23,7 +23,7 @@ package {
aidl_interface {
name: "android.security.attestationmanager",
srcs: [ "android/security/attestationmanager/*.aidl", ],
srcs: ["android/security/attestationmanager/*.aidl"],
imports: ["android.hardware.security.keymint-V3"],
unstable: true,
backend: {
@ -36,7 +36,7 @@ aidl_interface {
ndk: {
enabled: true,
apps_enabled: false,
}
},
},
}
@ -58,7 +58,7 @@ aidl_interface {
ndk: {
enabled: true,
apps_enabled: false,
}
},
},
}
@ -75,7 +75,7 @@ aidl_interface {
},
ndk: {
enabled: true,
}
},
},
}
@ -106,7 +106,7 @@ aidl_interface {
name: "android.security.maintenance",
srcs: ["android/security/maintenance/*.aidl"],
imports: [
"android.system.keystore2-V3",
"android.system.keystore2-V4",
],
unstable: true,
backend: {
@ -119,7 +119,7 @@ aidl_interface {
ndk: {
enabled: true,
apps_enabled: false,
}
},
},
}
@ -137,7 +137,7 @@ aidl_interface {
ndk: {
enabled: true,
apps_enabled: false,
}
},
},
}
@ -145,7 +145,7 @@ aidl_interface {
name: "android.security.metrics",
srcs: ["android/security/metrics/*.aidl"],
imports: [
"android.system.keystore2-V3",
"android.system.keystore2-V4",
],
unstable: true,
backend: {
@ -158,7 +158,7 @@ aidl_interface {
ndk: {
enabled: true,
apps_enabled: false,
}
},
},
}
@ -168,21 +168,21 @@ aidl_interface {
java_defaults {
name: "keystore2_use_latest_aidl_java_static",
static_libs: [
"android.system.keystore2-V3-java-source"
"android.system.keystore2-V4-java-source",
],
}
java_defaults {
name: "keystore2_use_latest_aidl_java_shared",
libs: [
"android.system.keystore2-V3-java-source"
"android.system.keystore2-V4-java-source",
],
}
java_defaults {
name: "keystore2_use_latest_aidl_java",
libs: [
"android.system.keystore2-V3-java"
"android.system.keystore2-V4-java",
],
}
@ -192,38 +192,37 @@ java_defaults {
cc_defaults {
name: "keystore2_use_latest_aidl_ndk_static",
static_libs: [
"android.system.keystore2-V3-ndk",
"android.system.keystore2-V4-ndk",
],
}
cc_defaults {
name: "keystore2_use_latest_aidl_ndk_shared",
shared_libs: [
"android.system.keystore2-V3-ndk",
"android.system.keystore2-V4-ndk",
],
}
cc_defaults {
name: "keystore2_use_latest_aidl_cpp_shared",
shared_libs: [
"android.system.keystore2-V3-cpp",
"android.system.keystore2-V4-cpp",
],
}
cc_defaults {
name: "keystore2_use_latest_aidl_cpp_static",
static_libs: [
"android.system.keystore2-V3-cpp",
"android.system.keystore2-V4-cpp",
],
}
// A rust_defaults that includes the latest Keystore2 AIDL library.
// Modules that depend on Keystore2 directly can include this rust_defaults to avoid
// managing dependency versions explicitly.
rust_defaults {
name: "keystore2_use_latest_aidl_rust",
rustlibs: [
"android.system.keystore2-V3-rust",
"android.system.keystore2-V4-rust",
],
}

View file

@ -1,7 +1,7 @@
<manifest version="1.0" type="framework">
<hal format="aidl">
<name>android.system.keystore2</name>
<version>3</version>
<version>4</version>
<interface>
<name>IKeystoreService</name>
<instance>default</instance>

View file

@ -46,7 +46,7 @@ rust_defaults {
"libkeystore-engine",
],
shared_libs: [
"android.system.keystore2-V3-ndk",
"android.system.keystore2-V4-ndk",
"libbase",
"libcrypto",
"libkeymaster_portable",