Merge "Put authsecret example in VAPEX" into udc-dev-plus-aosp am: 860656506a am: 4d915250c2 am: 7549290cd6

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24465570

Change-Id: Iee7ec84d0b24fcc6e62d23694a725fc9fd6b0ca4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han 2023-08-22 09:33:06 +00:00 committed by Automerger Merge Worker
commit 7da715a76b
9 changed files with 142 additions and 5 deletions

View file

@ -26,16 +26,60 @@ package {
cc_binary {
name: "android.hardware.authsecret-service.example",
relative_install_path: "hw",
init_rc: ["android.hardware.authsecret-service.example.rc"],
vintf_fragments: ["android.hardware.authsecret-service.example.xml"],
vendor: true,
srcs: [
"service.cpp",
"AuthSecret.cpp",
],
shared_libs: [
"libbinder_ndk",
"liblog",
],
static_libs: [
"android.hardware.authsecret-V1-ndk",
"libbase",
"libbinder_ndk",
],
stl: "c++_static",
}
prebuilt_etc {
name: "android.hardware.authsecret-service.example.rc",
src: "android.hardware.authsecret-service.example.rc",
installable: false,
}
prebuilt_etc {
name: "android.hardware.authsecret-service.example.xml",
src: "android.hardware.authsecret-service.example.xml",
sub_dir: "vintf",
installable: false,
}
apex_key {
name: "com.android.hardware.authsecret.key",
public_key: "com.android.hardware.authsecret.avbpubkey",
private_key: "com.android.hardware.authsecret.pem",
}
android_app_certificate {
name: "com.android.hardware.authsecret.certificate",
certificate: "com.android.hardware.authsecret",
}
apex {
name: "com.android.hardware.authsecret",
manifest: "manifest.json",
file_contexts: "file_contexts",
key: "com.android.hardware.authsecret.key",
certificate: ":com.android.hardware.authsecret.certificate",
updatable: false,
vendor: true,
binaries: [
"android.hardware.authsecret-service.example",
],
prebuilts: [
"android.hardware.authsecret-service.example.rc", // init_rc
"android.hardware.authsecret-service.example.xml", // vintf_fragments
],
}

View file

@ -1,4 +1,4 @@
service vendor.authsecret_default /vendor/bin/hw/android.hardware.authsecret-service.example
service vendor.authsecret_default /apex/com.android.hardware.authsecret/bin/hw/android.hardware.authsecret-service.example
class hal
user hsm
group hsm

View file

@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQCkkrpV5StewKq6
HOog0IkbBRAtuChTsQjE1yQY6VXF/f/QWc2L0++pe0PTNzuKJZuqD05tgLYBxsFl
QSLMKoUnGkQshVHxFLCls0CQo/umgygydxyVNW5cTdDDbl0VHrYcJJSWBobfy/hh
dizJVET6HMQLY0shKM9CcdFDRqvM+WB6ceBxcFsxwm8r5qcB6CCeIDsPuBBo5Mpa
NlVbaMBc/qrSRFLqLiVph6Goycg0Zk5+i1A4VBTJoHlOQwgX4uMdlNoAnaf1rLIm
Qn2zNfcfeZ3BoiwKv8qMsvLNotaN+oIYLi4t21JcPsroByI+Ps5Gia17BhQvbbXx
3eRShBn6/YcxcMQmCPoN5JbqeyzcE9f0grh3I8ubf1+ZAW0dL2r6QRM6uo6T4Jf7
BFiMVB0RjTzfo8ngwgPLIm/aXU2O8IG8sILO1s1iOaQb23E2PveF1B7EOmFzW8x3
xSQQLwn83zY+V+BTZs/Dfgv+M3omctsLS7lgGuvSx9KHV+EnbRMoIYa/2fx5KUxP
kC3rGpR2BRHZibm3tBlHmdkzOsaHaoQy2fLtqK39Au+cL05O5VpOYObBN2wOlKUO
iWLS79YoaWAKUZtZKwQNu1jpmK0OMgCeC13QSTz2AuPgL6XEuCUpcmblX3KMsu5w
MK79Yke/V61cQ71e5qI0vr3IXjcjywIDAQABAoICAAYZ0GGNyNFO6CVVHBLSWDrR
sbtYJ9qOZgpSBWsM/1qDI4AYTCfiV/Ca+rUyR3lEEqS3w4sIqfaf5Rx5US5rZxs/
fIZ//L0orLG/1uVlxtbx5sQUKVGYtPokAli0VywIwuyBKKb1H/vc5lzKkjd2ccYp
2dSoPilBB4npiT3quUS0e/CeFxltdlv+XrusZcWK0ua5wCbBho406RF2ESz90Z/A
6xk3YjF/O3D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Gbh7fz8xksukvj6w
ZSbAAy5uw4hyUwTTpyPyw+qQxI7O/PU=
-----END CERTIFICATE-----

View file

@ -0,0 +1,3 @@
(/.*)? u:object_r:vendor_file:s0
/etc(/.*)? u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.authsecret-service\.example u:object_r:hal_authsecret_default_exec:s0

View file

@ -0,0 +1,4 @@
{
"name": "com.android.hardware.authsecret",
"version": 1
}

View file

@ -52,7 +52,7 @@
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<hal format="aidl" optional="true" updatable-via-apex="true">
<name>android.hardware.authsecret</name>
<version>1</version>
<interface>