1// Copyright 2020, 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 {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19aidl_interface {
20    name: "android.system.keystore2",
21    vendor_available: true,
22    srcs: ["android/system/keystore2/*.aidl"],
23    imports: ["android.hardware.security.keymint-V3"],
24    stability: "vintf",
25    backend: {
26        java: {
27            platform_apis: true,
28        },
29        ndk: {
30            apps_enabled: false,
31        },
32        rust: {
33            enabled: true,
34            apex_available: [
35                "//apex_available:platform",
36                "com.android.compos",
37            ],
38        },
39    },
40    versions_with_info: [
41        {
42            version: "1",
43            imports: ["android.hardware.security.keymint-V1"],
44        },
45        {
46            version: "2",
47            imports: ["android.hardware.security.keymint-V3"],
48        },
49        {
50            version: "3",
51            imports: ["android.hardware.security.keymint-V3"],
52        },
53        {
54            version: "4",
55            imports: ["android.hardware.security.keymint-V3"],
56        },
57
58    ],
59    frozen: true,
60
61}
62
63// Note: This should always be one version ahead of the last frozen version
64latest_android_system_keystore = "android.system.keystore-V4"
65
66aidl_interface_defaults {
67    name: "latest_android_system_keystore_import_interface",
68    imports: [
69        latest_android_system_keystore,
70    ],
71}
72