1// 2// Copyright (C) 2020 The Android Open-Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_binary { 21 name: "android.hardware.security.keymint-service.remote", 22 relative_install_path: "hw", 23 init_rc: ["android.hardware.security.keymint-service.remote.rc"], 24 vintf_fragments: [ 25 "android.hardware.security.keymint-service.remote.xml", 26 "android.hardware.security.sharedsecret-service.remote.xml", 27 "android.hardware.security.secureclock-service.remote.xml", 28 ], 29 vendor: true, 30 cflags: [ 31 "-Wall", 32 "-Wextra", 33 ], 34 shared_libs: [ 35 "android.hardware.security.rkp-V3-ndk", 36 "android.hardware.security.secureclock-V1-ndk", 37 "android.hardware.security.sharedsecret-V1-ndk", 38 "lib_android_keymaster_keymint_utils", 39 "libbase", 40 "libbinder_ndk", 41 "libcppbor", 42 "libcrypto", 43 "libcuttlefish_fs", 44 "libcuttlefish_security", 45 "libhardware", 46 "libkeymaster_messages", 47 "libkeymint", 48 "liblog", 49 "libutils", 50 ], 51 srcs: [ 52 "remote_keymint_device.cpp", 53 "remote_keymint_operation.cpp", 54 "remote_keymaster.cpp", 55 "remote_remotely_provisioned_component.cpp", 56 "remote_secure_clock.cpp", 57 "remote_shared_secret.cpp", 58 "service.cpp", 59 ], 60 defaults: [ 61 "cuttlefish_guest_only", 62 "keymint_use_latest_hal_aidl_ndk_shared", 63 ], 64 required: [ 65 "android.hardware.hardware_keystore.remote-keymint.xml", 66 ], 67} 68 69prebuilt_etc { 70 name: "android.hardware.hardware_keystore.remote-keymint.xml", 71 sub_dir: "permissions", 72 vendor: true, 73 src: "android.hardware.hardware_keystore.remote-keymint.xml", 74} 75