Jooyung Han | 580e81b | 2023-05-10 17:05:00 +0900 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Jooyung Han | 580e81b | 2023-05-10 17:05:00 +0900 | [diff] [blame] | 19 | apex { |
| 20 | name: "com.android.hardware.biometrics.fingerprint.virtual", |
| 21 | manifest: "manifest.json", |
| 22 | file_contexts: "file_contexts", |
Jooyung Han | e0c4ad5 | 2023-10-10 15:42:43 +0900 | [diff] [blame] | 23 | key: "com.android.hardware.key", |
| 24 | certificate: ":com.android.hardware.certificate", |
Jooyung Han | 580e81b | 2023-05-10 17:05:00 +0900 | [diff] [blame] | 25 | updatable: false, |
Jooyung Han | 580e81b | 2023-05-10 17:05:00 +0900 | [diff] [blame] | 26 | vendor: true, |
| 27 | |
| 28 | binaries: [ |
| 29 | "android.hardware.biometrics.fingerprint-service.example", |
| 30 | ], |
| 31 | prebuilts: [ |
| 32 | // init_rc |
| 33 | "fingerprint-example-apex.rc", |
| 34 | // vintf_fragment |
| 35 | "fingerprint-example-apex.xml", |
| 36 | ], |
| 37 | |
| 38 | overrides: [ |
| 39 | "android.hardware.biometrics.fingerprint-service.example", |
| 40 | ], |
| 41 | } |
| 42 | |
| 43 | genrule { |
| 44 | name: "gen-fingerprint-example-apex.rc", |
| 45 | srcs: [":fingerprint-example.rc"], |
| 46 | out: ["fingerprint-example-apex.rc"], |
| 47 | cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.fingerprint.virtual/bin/@' $(in) > $(out)", |
| 48 | } |
| 49 | |
| 50 | prebuilt_etc { |
| 51 | name: "fingerprint-example-apex.rc", |
| 52 | src: ":gen-fingerprint-example-apex.rc", |
| 53 | installable: false, |
| 54 | } |
| 55 | |
| 56 | prebuilt_etc { |
| 57 | name: "fingerprint-example-apex.xml", |
| 58 | src: ":fingerprint-example.xml", |
| 59 | sub_dir: "vintf", |
| 60 | installable: false, |
| 61 | } |