1// Copyright (C) 2023 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19apex { 20 name: "com.android.hardware.biometrics.face.virtual", 21 manifest: "manifest.json", 22 file_contexts: "file_contexts", 23 key: "com.android.hardware.key", 24 certificate: ":com.android.hardware.certificate", 25 updatable: false, 26 vendor: true, 27 28 binaries: [ 29 // hal 30 "android.hardware.biometrics.face-service.example", 31 ], 32 prebuilts: [ 33 // init_rc 34 "face-example-apex.rc", 35 // vintf_fragment 36 "face-example-apex.xml", 37 ], 38 39 overrides: [ 40 "android.hardware.biometrics.face-service.example", 41 ], 42} 43 44prebuilt_etc { 45 name: "face-example-apex.rc", 46 src: ":gen-face-example-apex.rc", 47 installable: false, 48} 49 50genrule { 51 name: "gen-face-example-apex.rc", 52 srcs: [":face-example.rc"], 53 out: ["face-example-apex.rc"], 54 cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.face.virtual/bin/@' $(in) > $(out)", 55} 56 57prebuilt_etc { 58 name: "face-example-apex.xml", 59 src: ":face-example.xml", 60 sub_dir: "vintf", 61 installable: false, 62} 63