Merge changes from topic "cherry-pick-b210883464" am: ed0da8c243
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2636312 Change-Id: I82fb5878885a097fdb220058190783a83a7431e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ec07ad1795
10 changed files with 27 additions and 17 deletions
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"name": "com.android.hardware.sensors",
|
||||
"version": 1
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
service vendor.sensors-hal-2-1-mock /apex/com.android.hardware.sensors/bin/hw/android.hardware.sensors@2.1-service.mock
|
||||
interface android.hardware.sensors@2.0::ISensors default
|
||||
interface android.hardware.sensors@2.1::ISensors default
|
||||
class hal
|
||||
user system
|
||||
group system
|
||||
rlimit rtprio 10 10
|
|
@ -23,6 +23,16 @@ package {
|
|||
default_applicable_licenses: ["hardware_interfaces_license"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "sensors-default.rc",
|
||||
srcs: ["sensors-default.rc"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "sensors-default.xml",
|
||||
srcs: ["sensors-default.xml"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libsensorsexampleimpl",
|
||||
vendor: true,
|
||||
|
@ -47,8 +57,8 @@ cc_library_static {
|
|||
cc_binary {
|
||||
name: "android.hardware.sensors-service.example",
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["sensors-default.rc"],
|
||||
vintf_fragments: ["sensors-default.xml"],
|
||||
init_rc: [":sensors-default.rc"],
|
||||
vintf_fragments: [":sensors-default.xml"],
|
||||
vendor: true,
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
|
|
|
@ -13,9 +13,16 @@ android_app_certificate {
|
|||
certificate: "com.android.hardware.sensors",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "com.android.hardware.sensors.rc-gen",
|
||||
srcs: [":sensors-default.rc"],
|
||||
out: ["com.android.hardware.sensors.rc"],
|
||||
cmd: "sed -E 's/\\/vendor/\\/apex\\/com.android.hardware.sensors/' $(in) > $(out)",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.hardware.sensors.rc",
|
||||
src: "com.android.hardware.sensors.rc",
|
||||
src: ":com.android.hardware.sensors.rc-gen",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
|
@ -31,7 +38,7 @@ apex {
|
|||
updatable: false,
|
||||
// Install the apex in /vendor/apex
|
||||
soc_specific: true,
|
||||
binaries: ["android.hardware.sensors@2.1-service.mock"],
|
||||
binaries: ["android.hardware.sensors-service.example"],
|
||||
prebuilts: [
|
||||
"com.android.hardware.sensors.rc",
|
||||
"android.hardware.sensor.ambient_temperature.prebuilt.xml",
|
||||
|
@ -42,5 +49,5 @@ apex {
|
|||
"android.hardware.sensor.proximity.prebuilt.xml",
|
||||
"android.hardware.sensor.relative_humidity.prebuilt.xml",
|
||||
],
|
||||
vintf_fragments: [":android.hardware.sensors@2.1.xml"],
|
||||
vintf_fragments: [":sensors-default.xml"],
|
||||
}
|
4
sensors/aidl/default/apex/apex_manifest.json
Normal file
4
sensors/aidl/default/apex/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.sensors",
|
||||
"version": 1
|
||||
}
|
|
@ -2,4 +2,4 @@
|
|||
# Permission XMLs
|
||||
/etc/permissions(/.*)? u:object_r:vendor_configs_file:s0
|
||||
# Service binary
|
||||
/bin/hw/android\.hardware\.sensors@2\.1-service\.mock u:object_r:hal_sensors_default_exec:s0
|
||||
/bin/hw/android\.hardware\.sensors-service\.example u:object_r:hal_sensors_default_exec:s0
|
Loading…
Reference in a new issue