Merge "Move input processor service into VAPEX" into main am: e4067812af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2798415 Change-Id: I600d230d0359946a550c106eeb8d171b4bd6be8e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0700527672
4 changed files with 43 additions and 9 deletions
|
@ -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",
|
||||
],
|
||||
}
|
||||
|
|
3
input/processor/aidl/default/apex_file_contexts
Normal file
3
input/processor/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\.input\.processor-service\.example u:object_r:hal_input_processor_default_exec:s0
|
4
input/processor/aidl/default/apex_manifest.json
Normal file
4
input/processor/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.input.processor",
|
||||
"version": 1
|
||||
}
|
|
@ -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
|
Loading…
Reference in a new issue