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.security.keymint", 12 vendor_available: true, 13 srcs: [ 14 "android/hardware/security/keymint/*.aidl", 15 ], 16 imports: [ 17 "android.hardware.security.secureclock-V1", 18 ], 19 stability: "vintf", 20 backend: { 21 java: { 22 platform_apis: true, 23 }, 24 ndk: { 25 vndk: { 26 enabled: true, 27 }, 28 apps_enabled: false, 29 }, 30 rust: { 31 enabled: true, 32 apex_available: [ 33 "//apex_available:platform", 34 "com.android.compos", 35 ], 36 }, 37 }, 38 versions_with_info: [ 39 { 40 version: "1", 41 imports: ["android.hardware.security.secureclock-V1"], 42 }, 43 { 44 version: "2", 45 imports: ["android.hardware.security.secureclock-V1"], 46 }, 47 48 ], 49 50} 51 52// cc_defaults that includes the latest KeyMint AIDL library. 53// Modules that depend on KeyMint directly can include this cc_defaults to avoid 54// managing dependency versions explicitly. 55cc_defaults { 56 name: "keymint_use_latest_hal_aidl_ndk_static", 57 static_libs: [ 58 "android.hardware.security.keymint-V2-ndk", 59 ], 60} 61 62cc_defaults { 63 name: "keymint_use_latest_hal_aidl_ndk_shared", 64 shared_libs: [ 65 "android.hardware.security.keymint-V2-ndk", 66 ], 67} 68 69cc_defaults { 70 name: "keymint_use_latest_hal_aidl_cpp_static", 71 static_libs: [ 72 "android.hardware.security.keymint-V2-cpp", 73 ], 74} 75 76// A rust_defaults that includes the latest KeyMint AIDL library. 77// Modules that depend on KeyMint directly can include this cc_defaults to avoid 78// managing dependency versions explicitly. 79rust_defaults { 80 name: "keymint_use_latest_hal_aidl_rust", 81 rustlibs: [ 82 "android.hardware.security.keymint-V2-rust", 83 ], 84} 85