From 23f5ee52b193c984410eff381800ac09c701b11b Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Mon, 4 Dec 2023 15:02:39 -0800 Subject: [PATCH] vibrator: Initialize sysprops for vibrator Add sysprops for vibrator hal to allow chirps. These props will need to be updated with final values based on the actuator location and device mass. Bug: 312375018 Test: verified on device Change-Id: Ibab38c0713c1ce39081f540f12fd6e056090ffad Signed-off-by: Chris Paulo --- device-comet.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/device-comet.mk b/device-comet.mk index 048cc2c..2aa02a8 100644 --- a/device-comet.mk +++ b/device-comet.mk @@ -229,6 +229,20 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_VENDOR_PROPERTIES += \ persist.vendor.camera.ois_with_system_imu=true +# Haptics +# Placeholders for updates later, need to update: +# edit device.mass +# edit loc.coeff +# remove dbc.enable +# remove pm.activetimeout +ACTUATOR_MODEL := luxshare_ict_081545 +PRODUCT_VENDOR_PROPERTIES += \ + ro.vendor.vibrator.hal.chirp.enabled=1 \ + ro.vendor.vibrator.hal.device.mass=0.222 \ + ro.vendor.vibrator.hal.loc.coeff=2.8 \ + ro.vendor.vibrator.hal.dbc.enable=1 \ + ro.vendor.vibrator.hal.pm.activetimeout=5 + # Hinge angle sensor PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml