blob: 86c4e12435ee4094c4f642c23cc4fd343c0c32ca [file] [log] [blame]
Jooyung Hand5842ae2023-05-25 17:30:52 +09001// 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
Jooyung Hand5842ae2023-05-25 17:30:52 +090019apex {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000020 name: "com.android.hardware.biometrics.face.virtual",
Jooyung Hand5842ae2023-05-25 17:30:52 +090021 manifest: "manifest.json",
22 file_contexts: "file_contexts",
Jooyung Han0cd816c2023-10-10 15:28:38 +090023 key: "com.android.hardware.key",
24 certificate: ":com.android.hardware.certificate",
Jooyung Hand5842ae2023-05-25 17:30:52 +090025 updatable: false,
Jooyung Hand5842ae2023-05-25 17:30:52 +090026 vendor: true,
Jooyung Hand5842ae2023-05-25 17:30:52 +090027
28 binaries: [
29 // hal
30 "android.hardware.biometrics.face-service.example",
31 ],
32 prebuilts: [
33 // init_rc
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000034 "face-example-apex.rc",
Jooyung Hand5842ae2023-05-25 17:30:52 +090035 // vintf_fragment
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000036 "face-example-apex.xml",
Jooyung Hand5842ae2023-05-25 17:30:52 +090037 ],
38
39 overrides: [
40 "android.hardware.biometrics.face-service.example",
41 ],
42}
43
44prebuilt_etc {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000045 name: "face-example-apex.rc",
46 src: ":gen-face-example-apex.rc",
Jooyung Hand5842ae2023-05-25 17:30:52 +090047 installable: false,
48}
49
50genrule {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000051 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)",
Jooyung Hand5842ae2023-05-25 17:30:52 +090055}
56
57prebuilt_etc {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000058 name: "face-example-apex.xml",
59 src: ":face-example.xml",
Jooyung Hand5842ae2023-05-25 17:30:52 +090060 sub_dir: "vintf",
Jooyung Hand5842ae2023-05-25 17:30:52 +090061 installable: false,
62}