Move input processor service into VAPEX
Bug: 300011114 Test: Cuttlefish runs InputProcessor service from VAPEX Change-Id: I41e297650909f85b5ef45ae9beb2e7508213c96d
This commit is contained in:
parent
41041d6d9c
commit
07ac233182
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