From 0fa9bde971035c64b755416a7ec5575cbb4f5c55 Mon Sep 17 00:00:00 2001 From: Manish Kushwaha Date: Thu, 7 Dec 2023 01:30:46 +0800 Subject: [PATCH] sm8450-common: Migrate sensor HAL to AIDL interface Bug: 247478991 Test: tested on-device (P23) ab/P46941077 Test: `sensor_test -ahal list` and `sensor_test list` Test: `sensor_test -ahal sample -s0` and `sensor_test sample -s0` Change-Id: I40f6ab6b7780c53cd638a1f77c95f6c324dc2d15 Signed-off-by: ralph950412 --- common.mk | 2 +- rootdir/etc/init.xiaomi_sm8450.rc | 4 ++-- sepolicy/vendor/file_contexts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.mk b/common.mk index 3e4d9f1..7d6e40e 100644 --- a/common.mk +++ b/common.mk @@ -299,7 +299,7 @@ PRODUCT_COPY_FILES += \ # Sensors PRODUCT_PACKAGES += \ - android.hardware.sensors@2.1-service.xiaomi-multihal + android.hardware.sensors-service.xiaomi-multihal PRODUCT_PACKAGES += \ sensors.xiaomi.v2:64 diff --git a/rootdir/etc/init.xiaomi_sm8450.rc b/rootdir/etc/init.xiaomi_sm8450.rc index eaed26d..60c8039 100644 --- a/rootdir/etc/init.xiaomi_sm8450.rc +++ b/rootdir/etc/init.xiaomi_sm8450.rc @@ -120,11 +120,11 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service onrestart restart audioserver socket audio_us_socket_0 seqpacket 0666 system system -service vendor.sensors-hal-2-1-multihal /vendor/bin/hw/android.hardware.sensors@2.1-service.xiaomi-multihal +service vendor.sensors-hal-multihal /vendor/bin/hw/android.hardware.sensors-service.xiaomi-multihal override class hal user system - group system wakelock context_hub + group system wakelock context_hub input uhid task_profiles ServiceCapacityLow capabilities BLOCK_SUSPEND rlimit rtprio 10 10 diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 26ba8e3..be84138 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -68,7 +68,7 @@ /vendor/bin/hw/android\.hardware\.nfc-service\.nxp u:object_r:hal_nfc_default_exec:s0 # Sensors -/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@2.1-service\.xiaomi-multihal u:object_r:hal_sensors_default_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors-service\.xiaomi-multihal u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/sensor-notifier u:object_r:vendor_sensor_notifier_exec:s0 /dev/stmvl53l5 u:object_r:stmvl53l5_device:s0