1// 2// Copyright (C) 2022 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.identity-service.remote", 22 relative_install_path: "hw", 23 init_rc: ["android.hardware.identity-service.remote.rc"], 24 vintf_fragments: ["android.hardware.identity-service.remote.xml"], 25 vendor: true, 26 cflags: [ 27 "-Wall", 28 "-Wextra", 29 "-g", 30 ], 31 shared_libs: [ 32 "liblog", 33 "libcrypto", 34 "libbinder_ndk", 35 "libkeymaster_messages", 36 ], 37 static_libs: [ 38 "libbase", 39 "libcppbor_external", 40 "libcppcose_rkp", 41 "libutils", 42 "libsoft_attestation_cert", 43 "libkeymaster_portable", 44 "libsoft_attestation_cert", 45 "libpuresoftkeymasterdevice", 46 "android.hardware.identity-support-lib", 47 "android.hardware.identity-V3-ndk", 48 "android.hardware.keymaster-V3-ndk", 49 "android.hardware.security.keymint-V1-ndk", 50 ], 51 local_include_dirs: [ 52 "common", 53 "libeic", 54 ], 55 srcs: [ 56 "service.cpp", 57 "RemoteSecureHardwareProxy.cpp", 58 "common/IdentityCredential.cpp", 59 "common/IdentityCredentialStore.cpp", 60 "common/WritableIdentityCredential.cpp", 61 "libeic/EicCbor.c", 62 "libeic/EicPresentation.c", 63 "libeic/EicProvisioning.c", 64 "libeic/EicOpsImpl.cc", 65 ], 66 required: [ 67 "android.hardware.identity_credential.remote.xml", 68 ], 69} 70 71prebuilt_etc { 72 name: "android.hardware.identity_credential.remote.xml", 73 sub_dir: "permissions", 74 vendor: true, 75 src: "android.hardware.identity_credential.remote.xml", 76} 77