blob: 0002b6a5a2c7b198063c524c141b0c4c7cb5e724 [file] [log] [blame]
Shikha Panwar18cafa02023-10-05 18:45:04 +00001// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000016 default_team: "trendy_team_virtualization",
Shikha Panwar18cafa02023-10-05 18:45:04 +000017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20aidl_interface {
21 name: "android.hardware.security.secretkeeper",
22 vendor_available: true,
23 srcs: ["android/hardware/security/secretkeeper/*.aidl"],
David Drysdale8898d2e2023-11-07 15:20:15 +000024 imports: [
25 "android.hardware.security.authgraph-V1",
26 ],
Shikha Panwar18cafa02023-10-05 18:45:04 +000027 stability: "vintf",
Devin Moore9df02452025-01-08 21:21:06 +000028 frozen: true,
Shikha Panwar18cafa02023-10-05 18:45:04 +000029 backend: {
David Drysdale8898d2e2023-11-07 15:20:15 +000030 java: {
Nikolay Elenkov03cf7162024-03-21 07:04:15 +000031 enabled: true,
32 platform_apis: true,
David Drysdale8898d2e2023-11-07 15:20:15 +000033 },
Shikha Panwar18cafa02023-10-05 18:45:04 +000034 ndk: {
35 enabled: true,
36 },
37 rust: {
38 enabled: true,
39 apex_available: [
40 "//apex_available:platform",
41 "com.android.virt",
42 ],
43 },
44 },
Devin Moorea8efdb12024-02-20 17:31:40 +000045 versions_with_info: [
46 {
47 version: "1",
48 imports: ["android.hardware.security.authgraph-V1"],
49 },
Devin Moore9df02452025-01-08 21:21:06 +000050 {
51 version: "2",
52 imports: ["android.hardware.security.authgraph-V1"],
53 },
54
Devin Moorea8efdb12024-02-20 17:31:40 +000055 ],
56
Shikha Panwar18cafa02023-10-05 18:45:04 +000057}
David Drysdale8898d2e2023-11-07 15:20:15 +000058
59// cc_defaults that includes the latest Secretkeeper AIDL library.
60// Modules that depend on Secretkeeper directly can include this cc_defaults to avoid
61// managing dependency versions explicitly.
62cc_defaults {
63 name: "secretkeeper_use_latest_hal_aidl_ndk_static",
64 static_libs: [
65 "android.hardware.security.secretkeeper-V1-ndk",
66 ],
67}
68
69cc_defaults {
70 name: "secretkeeper_use_latest_hal_aidl_ndk_shared",
71 shared_libs: [
72 "android.hardware.security.secretkeeper-V1-ndk",
73 ],
74}
75
76cc_defaults {
77 name: "secretkeeper_use_latest_hal_aidl_cpp_static",
78 static_libs: [
79 "android.hardware.security.secretkeeper-V1-cpp",
80 ],
81}
82
83cc_defaults {
84 name: "secretkeeper_use_latest_hal_aidl_cpp_shared",
85 shared_libs: [
86 "android.hardware.security.secretkeeper-V1-cpp",
87 ],
88}
89
90// A rust_defaults that includes the latest Secretkeeper AIDL library.
91// Modules that depend on Secretkeeper directly can include this rust_defaults to avoid
92// managing dependency versions explicitly.
93rust_defaults {
94 name: "secretkeeper_use_latest_hal_aidl_rust",
95 rustlibs: [
Matt Gilbridec8232332024-11-13 12:24:36 +000096 "android.hardware.security.secretkeeper-V2-rust",
David Drysdale8898d2e2023-11-07 15:20:15 +000097 ],
98}