Merge "Add contexthub HAL APEX" into main am: cf81ef375b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2756125 Change-Id: I2380bd8e87d15f08f31bd1a7025bf4a7328848db Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
1e0aac1ae6
4 changed files with 42 additions and 0 deletions
|
@ -57,3 +57,34 @@ cc_binary {
|
||||||
],
|
],
|
||||||
srcs: ["main.cpp"],
|
srcs: ["main.cpp"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "android.hardware.contexthub-service.example.rc",
|
||||||
|
src: "android.hardware.contexthub-service.example.rc",
|
||||||
|
installable: false,
|
||||||
|
}
|
||||||
|
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "contexthub-default.xml",
|
||||||
|
src: "contexthub-default.xml",
|
||||||
|
sub_dir: "vintf",
|
||||||
|
installable: false,
|
||||||
|
}
|
||||||
|
|
||||||
|
apex {
|
||||||
|
name: "com.android.hardware.contexthub",
|
||||||
|
vendor: true,
|
||||||
|
manifest: "apex_manifest.json",
|
||||||
|
file_contexts: "apex_file_contexts",
|
||||||
|
key: "com.android.hardware.key",
|
||||||
|
certificate: ":com.android.hardware.certificate",
|
||||||
|
updatable: false,
|
||||||
|
|
||||||
|
binaries: [
|
||||||
|
"android.hardware.contexthub-service.example",
|
||||||
|
],
|
||||||
|
prebuilts: [
|
||||||
|
"android.hardware.contexthub-service.example.rc",
|
||||||
|
"contexthub-default.xml",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
service vendor.contexthub-default /apex/com.android.hardware.contexthub/bin/hw/android.hardware.contexthub-service.example
|
||||||
|
class hal
|
||||||
|
user context_hub
|
||||||
|
group context_hub
|
3
contexthub/aidl/default/apex_file_contexts
Normal file
3
contexthub/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\.contexthub-service\.example u:object_r:hal_contexthub_default_exec:s0
|
4
contexthub/aidl/default/apex_manifest.json
Normal file
4
contexthub/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"name": "com.android.hardware.contexthub",
|
||||||
|
"version": 1
|
||||||
|
}
|
Loading…
Reference in a new issue