Merge "Move input processor service into VAPEX" into main am: e4067812af am: 0700527672 am: cdd31181ec

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

Change-Id: I38ab7335d4aa0739837b37bc1c14760bef86e91c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han 2023-10-24 05:55:18 +00:00 committed by Automerger Merge Worker
commit 3c6fed001a
4 changed files with 43 additions and 9 deletions

View file

@ -28,27 +28,54 @@ cc_library_static {
],
}
filegroup {
prebuilt_etc {
name: "android.hardware.input.processor.xml",
srcs: ["android.hardware.input.processor.xml"],
src: "android.hardware.input.processor.xml",
sub_dir: "vintf",
installable: false,
}
prebuilt_etc {
name: "inputprocessor-default.rc",
src: "inputprocessor-default.rc",
installable: false,
}
cc_binary {
name: "android.hardware.input.processor-service.example",
relative_install_path: "hw",
init_rc: ["inputprocessor-default.rc"],
vintf_fragments: [":android.hardware.input.processor.xml"],
vendor: true,
installable: false, // installed in APEX
stl: "c++_static",
shared_libs: [
"libbase",
"libbinder_ndk",
"liblog",
"libutils",
"android.hardware.input.common-V1-ndk",
"android.hardware.input.processor-V1-ndk",
],
static_libs: [
"android.hardware.input.common-V1-ndk",
"android.hardware.input.processor-V1-ndk",
"libbase",
"libinputprocessorexampleimpl",
"libutils",
],
srcs: ["main.cpp"],
}
apex {
name: "com.android.hardware.input.processor",
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.input.processor-service.example",
],
prebuilts: [
"android.hardware.input.processor.xml",
"inputprocessor-default.rc",
],
}

View file

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

View file

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

View file

@ -1,4 +1,4 @@
service vendor.inputprocessor-default /vendor/bin/hw/android.hardware.input.processor-service.example
service vendor.inputprocessor-default /apex/com.android.hardware.input.processor/bin/hw/android.hardware.input.processor-service.example
class hal
user nobody
group nobody