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:
Jooyung Han 2023-09-18 03:39:23 +00:00 committed by Automerger Merge Worker
commit 788614cfa5
4 changed files with 64 additions and 0 deletions

View file

@ -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",
],
}

View 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

View file

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

View 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