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