1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10aidl_interface {
11    name: "android.hardware.identity",
12    vendor_available: true,
13    srcs: [
14        "android/hardware/identity/*.aidl",
15    ],
16    imports: [
17        "android.hardware.keymaster-V3",
18        "android.hardware.security.rkp-V3",
19    ],
20    stability: "vintf",
21    frozen: true,
22    backend: {
23        java: {
24            platform_apis: true,
25        },
26        ndk: {
27            apps_enabled: false,
28        },
29    },
30    versions_with_info: [
31        {
32            version: "1",
33            imports: [
34                "android.hardware.keymaster-V3",
35                "android.hardware.security.rkp-V1",
36            ],
37        },
38        {
39            version: "2",
40            imports: [
41                "android.hardware.keymaster-V3",
42                "android.hardware.security.rkp-V1",
43            ],
44        },
45        {
46            version: "3",
47            imports: [
48                "android.hardware.keymaster-V3",
49                "android.hardware.security.rkp-V1",
50            ],
51        },
52        {
53            version: "4",
54            imports: [
55                "android.hardware.keymaster-V3",
56                "android.hardware.security.rkp-V3",
57            ],
58        },
59        {
60            version: "5",
61            imports: [
62                "android.hardware.keymaster-V3",
63                "android.hardware.security.rkp-V3",
64            ],
65        },
66
67    ],
68
69}
70
71// cc_defaults that includes the latest Identity AIDL library.
72// Modules that depend on Identity directly can include this cc_defaults to
73// avoid managing dependency versions explicitly.
74cc_defaults {
75    name: "identity_use_latest_hal_aidl_ndk_static",
76    static_libs: [
77        "android.hardware.identity-V5-ndk",
78    ],
79}
80
81cc_defaults {
82    name: "identity_use_latest_hal_aidl_ndk_shared",
83    shared_libs: [
84        "android.hardware.identity-V5-ndk",
85    ],
86}
87
88cc_defaults {
89    name: "identity_use_latest_hal_aidl_cpp_static",
90    static_libs: [
91        "android.hardware.identity-V5-cpp",
92    ],
93}
94