Merge "Add memtrack HAL APEX" into main am: eb98a19968
am: 9efe22d70a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2751969 Change-Id: I463d698cd23fe81bd294b59924610c185e95d60e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
788614cfa5
4 changed files with 64 additions and 0 deletions
|
@ -37,3 +37,56 @@ cc_binary {
|
|||
"Memtrack.cpp",
|
||||
],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.memtrack-service.apex",
|
||||
stem: "android.hardware.memtrack-service.example",
|
||||
relative_install_path: "hw",
|
||||
vendor: true,
|
||||
|
||||
stl: "c++_static",
|
||||
static_libs: [
|
||||
"libbase",
|
||||
"android.hardware.memtrack-V1-ndk",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbinder_ndk",
|
||||
"liblog",
|
||||
],
|
||||
srcs: [
|
||||
"main.cpp",
|
||||
"Memtrack.cpp",
|
||||
],
|
||||
installable: false, // installed in APEX
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "memtrack-default-apex.rc",
|
||||
src: "memtrack-default-apex.rc",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "memtrack-default.xml",
|
||||
src: "memtrack-default.xml",
|
||||
sub_dir: "vintf",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.hardware.memtrack",
|
||||
file_contexts: "apex_file_contexts",
|
||||
manifest: "apex_manifest.json",
|
||||
key: "com.android.hardware.key",
|
||||
certificate: ":com.android.hardware.certificate",
|
||||
updatable: false,
|
||||
vendor: true,
|
||||
|
||||
binaries: [
|
||||
"android.hardware.memtrack-service.apex",
|
||||
],
|
||||
prebuilts: [
|
||||
"memtrack-default-apex.rc",
|
||||
"memtrack-default.xml",
|
||||
],
|
||||
}
|
||||
|
|
3
memtrack/aidl/default/apex_file_contexts
Normal file
3
memtrack/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\.memtrack-service\.example u:object_r:hal_memtrack_default_exec:s0
|
4
memtrack/aidl/default/apex_manifest.json
Normal file
4
memtrack/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.memtrack",
|
||||
"version": 1
|
||||
}
|
4
memtrack/aidl/default/memtrack-default-apex.rc
Normal file
4
memtrack/aidl/default/memtrack-default-apex.rc
Normal file
|
@ -0,0 +1,4 @@
|
|||
service vendor.memtrack-default /apex/com.android.hardware.memtrack/bin/hw/android.hardware.memtrack-service.example
|
||||
class hal
|
||||
user nobody
|
||||
group system
|
Loading…
Reference in a new issue