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 <chrispaulo@google.com>
This commit is contained in:
Chris Paulo 2023-12-04 15:02:39 -08:00
parent a66b47f5ee
commit 23f5ee52b1

View file

@ -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