blob: ad36ae2aad105691cda7ffb773d71286dad66366 [file] [log] [blame]
Jooyung Han580e81b2023-05-10 17:05:00 +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 {
20 name: "com.android.hardware.biometrics.fingerprint.virtual.key",
21 public_key: "com.android.hardware.biometrics.fingerprint.virtual.avbpubkey",
22 private_key: "com.android.hardware.biometrics.fingerprint.virtual.pem",
23}
24
25android_app_certificate {
26 name: "com.android.hardware.biometrics.fingerprint.virtual.certificate",
27 certificate: "com.android.hardware.biometrics.fingerprint.virtual",
28}
29
30apex {
31 name: "com.android.hardware.biometrics.fingerprint.virtual",
32 manifest: "manifest.json",
33 file_contexts: "file_contexts",
34 key: "com.android.hardware.biometrics.fingerprint.virtual.key",
35 certificate: ":com.android.hardware.biometrics.fingerprint.virtual.certificate",
36 updatable: false,
37 use_vndk_as_stable: true,
38 vendor: true,
39
40 binaries: [
41 "android.hardware.biometrics.fingerprint-service.example",
42 ],
43 prebuilts: [
44 // init_rc
45 "fingerprint-example-apex.rc",
46 // vintf_fragment
47 "fingerprint-example-apex.xml",
48 ],
49
50 overrides: [
51 "android.hardware.biometrics.fingerprint-service.example",
52 ],
53}
54
55genrule {
56 name: "gen-fingerprint-example-apex.rc",
57 srcs: [":fingerprint-example.rc"],
58 out: ["fingerprint-example-apex.rc"],
59 cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.fingerprint.virtual/bin/@' $(in) > $(out)",
60}
61
62prebuilt_etc {
63 name: "fingerprint-example-apex.rc",
64 src: ":gen-fingerprint-example-apex.rc",
65 installable: false,
66}
67
68prebuilt_etc {
69 name: "fingerprint-example-apex.xml",
70 src: ":fingerprint-example.xml",
71 sub_dir: "vintf",
72 installable: false,
73}