Add secure_element HAL APEX
This bundles the default implementation used by the cuttlefish. Bug: 300011111 Test: VtsHalSecureElementTargetTest Change-Id: Ib723fcbb6748675f6dae2449aad5a71a54cce594
This commit is contained in:
parent
41041d6d9c
commit
6e2b75d801
4 changed files with 47 additions and 4 deletions
|
@ -11,14 +11,50 @@ cc_binary {
|
|||
name: "android.hardware.secure_element-service.example",
|
||||
relative_install_path: "hw",
|
||||
vendor: true,
|
||||
init_rc: ["secure_element.rc"],
|
||||
vintf_fragments: ["secure_element.xml"],
|
||||
installable: false, // installed in APEX
|
||||
|
||||
stl: "c++_static",
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libbinder_ndk",
|
||||
"liblog",
|
||||
],
|
||||
static_libs: [
|
||||
"android.hardware.secure_element-V1-ndk",
|
||||
"libbase",
|
||||
],
|
||||
srcs: [
|
||||
"main.cpp",
|
||||
],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "secure_element.rc",
|
||||
src: "secure_element.rc",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "secure_element.xml",
|
||||
src: "secure_element.xml",
|
||||
sub_dir: "vintf",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.hardware.secure_element",
|
||||
manifest: "apex_manifest.json",
|
||||
file_contexts: "apex_file_contexts",
|
||||
key: "com.android.hardware.key",
|
||||
certificate: ":com.android.hardware.certificate",
|
||||
vendor: true,
|
||||
updatable: false,
|
||||
|
||||
binaries: [
|
||||
"android.hardware.secure_element-service.example",
|
||||
],
|
||||
prebuilts: [
|
||||
"secure_element.rc",
|
||||
"secure_element.xml",
|
||||
"android.hardware.se.omapi.ese.prebuilt.xml", // <feature>
|
||||
],
|
||||
}
|
||||
|
|
3
secure_element/aidl/default/apex_file_contexts
Normal file
3
secure_element/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\.secure_element-service\.example u:object_r:hal_secure_element_default_exec:s0
|
4
secure_element/aidl/default/apex_manifest.json
Normal file
4
secure_element/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.secure_element",
|
||||
"version": 1
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
service vendor.secure_element /vendor/bin/hw/android.hardware.secure_element-service.example
|
||||
service vendor.secure_element /apex/com.android.hardware.secure_element/bin/hw/android.hardware.secure_element-service.example
|
||||
class hal
|
||||
user nobody
|
||||
group nobody
|
||||
|
|
Loading…
Reference in a new issue