blob: 318c13b45b18aeed5c76fb62d17b2b158455c1c0 [file] [log] [blame]
Alice Wangd694b612024-09-02 13:03:48 +00001service system.keymint.rust-trusty.nonsecure \
2 /system_ext/bin/hw/android.hardware.security.keymint-service.rust.trusty.system.nonsecure \
3 --dev ${ro.hardware.trusty_ipc_dev.keymint:-/dev/trusty-ipc-dev0}
4 disabled
5 user nobody
6 group drmrpc
7 # The keymint service is not allowed to restart.
8 # If it crashes, a device restart is required.
9 oneshot
10
11# Only starts the non-secure KeyMint HALs when the KeyMint VM feature is enabled
12# TODO(b/357821690): Start the KeyMint HALs when the KeyMint VM is ready once the Trusty VM
13# has a mechanism to notify the host.
14on late-fs && property:ro.hardware.security.keymint.trusty.system=1 && \
15 property:ro.hardware.trusty_vm_cid=*
16 setprop ro.hardware.trusty_ipc_dev.keymint VSOCK:${ro.hardware.trusty_vm_cid}:1
17 start system.keymint.rust-trusty.nonsecure