blob: 0ae14638c5cd6393abed127539887f4c468787b3 [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 {
20 name: "com.android.hardware.biometrics.face",
21 manifest: "manifest.json",
22 file_contexts: "file_contexts",
Jooyung Hanbc09e452023-10-10 15:33:40 +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
34 "face-default-apex.rc",
35 // vintf_fragment
36 "face-default-apex.xml",
37 // permission
38 "android.hardware.biometrics.face.prebuilt.xml",
39 ],
40
41 overrides: [
42 "android.hardware.biometrics.face-service.example",
43 ],
44}
45
46prebuilt_etc {
47 name: "face-default-apex.rc",
48 src: ":gen-face-default-apex.rc",
49 vendor: true,
50 installable: false,
51}
52
53genrule {
54 name: "gen-face-default-apex.rc",
55 srcs: [":face-default.rc"],
56 out: ["face-default-apex.rc"],
57 cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.face/bin/@' $(in) > $(out)",
58}
59
60prebuilt_etc {
61 name: "face-default-apex.xml",
62 src: ":face-default.xml",
63 sub_dir: "vintf",
64 vendor: true,
65 installable: false,
66}