Add faceauth HAL APEX
This moves the faceauth HAL into a vendor apex: com.android.hardware.biometrics.face The contents: ./apex_manifest.pb ./bin/hw/android.hardware.biometrics.face-service.example ./etc/face-default-apex.rc ./etc/permissions/android.hardware.biometrics.face.prebuilt.xml ./etc/vintf/face-default-apex.xml ./lib64/android.hardware.biometrics.common-V2-ndk.so ./lib64/android.hardware.biometrics.face-V2-ndk.so ./lib64/android.hardware.keymaster-V3-ndk.so Bug: 279674662 Test: Not installed yet Test: m com.android.hardware.biometrics.face Change-Id: I6e52c83601d29bcc6a9ef4e165fab48f3579426c
This commit is contained in:
parent
b487f23ca9
commit
d5842aebcd
8 changed files with 184 additions and 2 deletions
|
@ -7,11 +7,21 @@ package {
|
|||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "face-default.rc",
|
||||
srcs: ["face-default.rc"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "face-default.xml",
|
||||
srcs: ["face-default.xml"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.biometrics.face-service.example",
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["face-default.rc"],
|
||||
vintf_fragments: ["face-default.xml"],
|
||||
init_rc: [":face-default.rc"],
|
||||
vintf_fragments: [":face-default.xml"],
|
||||
vendor: true,
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
|
|
79
biometrics/face/aidl/default/apex/Android.bp
Normal file
79
biometrics/face/aidl/default/apex/Android.bp
Normal file
|
@ -0,0 +1,79 @@
|
|||
// Copyright (C) 2023 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
apex_key {
|
||||
name: "com.android.hardware.biometrics.face.key",
|
||||
public_key: "com.android.hardware.biometrics.face.avbpubkey",
|
||||
private_key: "com.android.hardware.biometrics.face.pem",
|
||||
}
|
||||
|
||||
android_app_certificate {
|
||||
name: "com.android.hardware.biometrics.face.certificate",
|
||||
certificate: "com.android.hardware.biometrics.face",
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.hardware.biometrics.face",
|
||||
manifest: "manifest.json",
|
||||
file_contexts: "file_contexts",
|
||||
key: "com.android.hardware.biometrics.face.key",
|
||||
certificate: ":com.android.hardware.biometrics.face.certificate",
|
||||
updatable: false,
|
||||
|
||||
vendor: true,
|
||||
use_vndk_as_stable: true,
|
||||
|
||||
binaries: [
|
||||
// hal
|
||||
"android.hardware.biometrics.face-service.example",
|
||||
],
|
||||
prebuilts: [
|
||||
// init_rc
|
||||
"face-default-apex.rc",
|
||||
// vintf_fragment
|
||||
"face-default-apex.xml",
|
||||
// permission
|
||||
"android.hardware.biometrics.face.prebuilt.xml",
|
||||
],
|
||||
|
||||
overrides: [
|
||||
"android.hardware.biometrics.face-service.example",
|
||||
],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "face-default-apex.rc",
|
||||
src: ":gen-face-default-apex.rc",
|
||||
vendor: true,
|
||||
installable: false,
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen-face-default-apex.rc",
|
||||
srcs: [":face-default.rc"],
|
||||
out: ["face-default-apex.rc"],
|
||||
cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.biometrics.face/bin/@' $(in) > $(out)",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "face-default-apex.xml",
|
||||
src: ":face-default.xml",
|
||||
sub_dir: "vintf",
|
||||
vendor: true,
|
||||
installable: false,
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,52 @@
|
|||
-----BEGIN PRIVATE KEY-----
|
||||
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCoZ28KVXxB9kkX
|
||||
zPhi8pVSmiMU0xchU4PkoOvFzmr9t5b7rA1zmzOLjkNWMrxt1XCUEfOgT3N50z5T
|
||||
484dpEZBrwIH31NqSOr/T8mG5frZAkNg0WqfgV+AG81mCuA+nG4a08fmDL4nEzVg
|
||||
irQvWpXzRCNIn+LEx+gG4I2KG8EGWDiFnzXwSFJG4n60rfLQNHgsejv/06BmPCnS
|
||||
gp06LhqJTO2oJKCJVQxfO0TPNUd9FSVSXdWuHcHE2gwoHM/7C/10Bdx8XXCMbAQR
|
||||
a4d3moH5oRuhh1841PtIQ0ozw/vHapCTmdMbjmgbwpXZ49DfvJl2cnz5c5G/CUO1
|
||||
9CkLDdxffsHh48jLUzH1nRgcWW2CAnSIs8nGjScyOKB+gn831ke8agJGbVHs1Cp/
|
||||
ONbMZeQIhEL0kderI1vVoufeBf38/I93rpz6PXp5NiTwOnVdEik595/W7oldr/rM
|
||||
taKvWwfnjml+Z1uzJWWDKPnS+onxBVcoBGFhiewIejPz3UjncMiHW5QAx/BzfGgh
|
||||
UmFO0vsh8qrEfAqT4AqL4uCuyVm0JmugdWKoeQISh5i4+HMmvPaudd+8yF0plr10
|
||||
+pyNGkLZm4NBJxOD7V0AMjfTIpKRbmV8xnCAnWQ+xx/qWxHAZ0wfbZXXF0m6L6po
|
||||
dVwJJI7EnuQbAkbXnzMtCTQToZTSVwIDAQABAoICAAGjGJNY15kYKO3xzXWMyfXT
|
||||
gl7L9Im1TNVwP3Dpu+S7U0NSd1w12Iju35znzlwhx7/j8skOrKubaZvM9ztJ79Yb
|
||||
1CDs3PWhP6OVJeGvvHU9zkp59RexQ5Ma8hXskIroE2WJ97bQgRkfi/r9x8wKc39T
|
||||
aYv/SrTC0SPr+YRFSjMvfV35kvL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/2IJBrff7kmPTQ6
|
||||
n+il4uXuXMmX70xSvJXwP/NinomJsORZ4Npbmp7xV/QJp9cNoxNAo3DJ4OHRAnA+
|
||||
L7E1KZ3+nSRxGcVlqBekmG6wH9U39NN+dh758aGdJOWqA+B+1PAGxkvFCNqLgTpm
|
||||
xNl62YiRRo4FiIAkntvs+JneMEphv/T5i824t2xFZD2lBuW8r54nWj5cpx8AU9W2
|
||||
rulR0jx7BnVdj6czn1/pPCIah8Os9pZM8q1CbF8vXD+QLAF0/NjPNomTEGd/M+V+
|
||||
sfn1OhLGF/E1kWyNeOmkvX26txQdY8k6jUdsAc5vmQqgwxdorjI38ynpYQnFwq2g
|
||||
eO4l62sx8icsSh2TRklWy8BwZpaCyO/WVv/FcjIUexYhmZ0EHpmQk/RAlD1f9wFy
|
||||
CciNa/Dm94AwJgZk9LcXye3BSvb1sKF6C7eYrW0eI95V
|
||||
-----END CERTIFICATE-----
|
3
biometrics/face/aidl/default/apex/file_contexts
Normal file
3
biometrics/face/aidl/default/apex/file_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
(/.*)? u:object_r:vendor_file:s0
|
||||
/etc(/.*)? u:object_r:vendor_configs_file:s0
|
||||
/bin/hw/android\.hardware\.biometrics\.face-service\.example u:object_r:hal_face_default_exec:s0
|
4
biometrics/face/aidl/default/apex/manifest.json
Normal file
4
biometrics/face/aidl/default/apex/manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.biometrics.face",
|
||||
"version": 1
|
||||
}
|
Loading…
Reference in a new issue