blob: 9c031a35d7457154dc18969a98a42e97d9910557 [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
19apex_key {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000020 name: "com.android.hardware.biometrics.face.virtual.key",
21 public_key: "com.android.hardware.biometrics.face.virtual.avbpubkey",
22 private_key: "com.android.hardware.biometrics.face.virtual.pem",
Jooyung Hand5842ae2023-05-25 17:30:52 +090023}
24
25android_app_certificate {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000026 name: "com.android.hardware.biometrics.face.virtual.certificate",
27 certificate: "com.android.hardware.biometrics.face.virtual",
Jooyung Hand5842ae2023-05-25 17:30:52 +090028}
29
30apex {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000031 name: "com.android.hardware.biometrics.face.virtual",
Jooyung Hand5842ae2023-05-25 17:30:52 +090032 manifest: "manifest.json",
33 file_contexts: "file_contexts",
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000034 key: "com.android.hardware.biometrics.face.virtual.key",
35 certificate: ":com.android.hardware.biometrics.face.virtual.certificate",
Jooyung Hand5842ae2023-05-25 17:30:52 +090036 updatable: false,
Jooyung Hand5842ae2023-05-25 17:30:52 +090037 vendor: true,
38 use_vndk_as_stable: true,
39
40 binaries: [
41 // hal
42 "android.hardware.biometrics.face-service.example",
43 ],
44 prebuilts: [
45 // init_rc
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000046 "face-example-apex.rc",
Jooyung Hand5842ae2023-05-25 17:30:52 +090047 // vintf_fragment
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000048 "face-example-apex.xml",
Jooyung Hand5842ae2023-05-25 17:30:52 +090049 ],
50
51 overrides: [
52 "android.hardware.biometrics.face-service.example",
53 ],
54}
55
56prebuilt_etc {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000057 name: "face-example-apex.rc",
58 src: ":gen-face-example-apex.rc",
Jooyung Hand5842ae2023-05-25 17:30:52 +090059 installable: false,
60}
61
62genrule {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000063 name: "gen-face-example-apex.rc",
64 srcs: [":face-example.rc"],
65 out: ["face-example-apex.rc"],
66 cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.face.virtual/bin/@' $(in) > $(out)",
Jooyung Hand5842ae2023-05-25 17:30:52 +090067}
68
69prebuilt_etc {
Jeff Pu4b5e5ce2023-09-06 14:47:49 +000070 name: "face-example-apex.xml",
71 src: ":face-example.xml",
Jooyung Hand5842ae2023-05-25 17:30:52 +090072 sub_dir: "vintf",
Jooyung Hand5842ae2023-05-25 17:30:52 +090073 installable: false,
74}