Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 10 | aidl_interface { |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 11 | name: "android.hardware.security.keymint", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 12 | vendor_available: true, |
| 13 | srcs: [ |
Shawn Willden | 08a7e43 | 2020-12-11 13:05:27 +0000 | [diff] [blame] | 14 | "android/hardware/security/keymint/*.aidl", |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 15 | ], |
Janis Danisevskis | 6251827 | 2021-01-05 09:15:57 -0800 | [diff] [blame] | 16 | imports: [ |
Steven Moreland | f456221 | 2021-08-30 17:54:19 -0700 | [diff] [blame] | 17 | "android.hardware.security.secureclock-V1", |
Janis Danisevskis | 6251827 | 2021-01-05 09:15:57 -0800 | [diff] [blame] | 18 | ], |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 19 | stability: "vintf", |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 20 | frozen: false, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 21 | backend: { |
| 22 | java: { |
Janis Danisevskis | 61eadb7 | 2021-03-17 10:55:10 -0700 | [diff] [blame] | 23 | platform_apis: true, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 24 | }, |
| 25 | ndk: { |
Janis Danisevskis | 3829840 | 2021-03-17 11:00:15 -0700 | [diff] [blame] | 26 | apps_enabled: false, |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 27 | }, |
| 28 | rust: { |
| 29 | enabled: true, |
Alan Stokes | e758517 | 2021-06-17 11:49:40 +0100 | [diff] [blame] | 30 | apex_available: [ |
| 31 | "//apex_available:platform", |
| 32 | "com.android.compos", |
| 33 | ], |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 34 | }, |
| 35 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 36 | versions_with_info: [ |
| 37 | { |
| 38 | version: "1", |
| 39 | imports: ["android.hardware.security.secureclock-V1"], |
| 40 | }, |
| 41 | { |
| 42 | version: "2", |
| 43 | imports: ["android.hardware.security.secureclock-V1"], |
| 44 | }, |
Alex Buynytskyy | ec1198d | 2023-04-04 19:52:27 +0000 | [diff] [blame] | 45 | { |
| 46 | version: "3", |
| 47 | imports: ["android.hardware.security.secureclock-V1"], |
| 48 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 49 | |
| 50 | ], |
| 51 | |
Selene Huang | 31ab404 | 2020-04-29 04:22:39 -0700 | [diff] [blame] | 52 | } |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 53 | |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 54 | // An aidl_interface_defaults that includes the latest KeyMint AIDL interface. |
| 55 | // aidl_interface modules that depend on KeyMint directly can include this |
| 56 | // aidl_interface_defaults to avoid managing dependency versions explicitly. |
| 57 | aidl_interface_defaults { |
| 58 | name: "android.hardware.security.keymint-latest-defaults", |
| 59 | imports: ["android.hardware.security.keymint-V4"], |
| 60 | } |
| 61 | |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 62 | // cc_defaults that includes the latest KeyMint AIDL library. |
| 63 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 64 | // managing dependency versions explicitly. |
| 65 | cc_defaults { |
| 66 | name: "keymint_use_latest_hal_aidl_ndk_static", |
| 67 | static_libs: [ |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 68 | "android.hardware.security.keymint-V4-ndk", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 69 | ], |
| 70 | } |
| 71 | |
| 72 | cc_defaults { |
| 73 | name: "keymint_use_latest_hal_aidl_ndk_shared", |
| 74 | shared_libs: [ |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 75 | "android.hardware.security.keymint-V4-ndk", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 76 | ], |
| 77 | } |
| 78 | |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 79 | cc_defaults { |
| 80 | name: "keymint_use_latest_hal_aidl_cpp_static", |
| 81 | static_libs: [ |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 82 | "android.hardware.security.keymint-V4-cpp", |
Seth Moore | 1bf823c | 2022-01-25 23:04:37 +0000 | [diff] [blame] | 83 | ], |
| 84 | } |
| 85 | |
Shaquille Johnson | b692c60 | 2022-11-24 16:34:19 +0000 | [diff] [blame] | 86 | cc_defaults { |
| 87 | name: "keymint_use_latest_hal_aidl_cpp_shared", |
| 88 | shared_libs: [ |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 89 | "android.hardware.security.keymint-V4-cpp", |
Shaquille Johnson | b692c60 | 2022-11-24 16:34:19 +0000 | [diff] [blame] | 90 | ], |
| 91 | } |
| 92 | |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 93 | // A rust_defaults that includes the latest KeyMint AIDL library. |
| 94 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 95 | // managing dependency versions explicitly. |
| 96 | rust_defaults { |
| 97 | name: "keymint_use_latest_hal_aidl_rust", |
| 98 | rustlibs: [ |
Karuna Wadhera | ea426cb | 2024-10-09 23:18:33 +0000 | [diff] [blame] | 99 | "android.hardware.security.keymint-V4-rust", |
David Drysdale | 4925534 | 2021-11-22 14:32:31 +0000 | [diff] [blame] | 100 | ], |
| 101 | } |