From 4170cfe2c40b83b782f821d629ca8203a38f8114 Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Mon, 18 Mar 2024 16:57:45 -0700 Subject: [PATCH] vibrator: Enable adaptive haptics v1 Bug: 325554350 Test: atest SettingsGoogleRoboTests:com.google.android.settings.accessibility.AdaptiveHapticsTogglePreferenceControllerTest Change-Id: I4604872786f177a6d307d9fdc24bfe8149ae081a Signed-off-by: Chris Paulo --- device-comet.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/device-comet.mk b/device-comet.mk index d44d4b7..4b9f3c6 100644 --- a/device-comet.mk +++ b/device-comet.mk @@ -328,13 +328,19 @@ PRODUCT_VENDOR_PROPERTIES += \ # remove pm.activetimeout # ro.vendor.vibrator.hal.loc.coeff.folded currently unused ACTUATOR_MODEL := luxshare_ict_081545 +ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.chirp.enabled=1 \ ro.vendor.vibrator.hal.device.mass=0.2605 \ ro.vendor.vibrator.hal.loc.coeff.folded=3.15 \ ro.vendor.vibrator.hal.loc.coeff=2.58 \ ro.vendor.vibrator.hal.dbc.enable=1 \ - ro.vendor.vibrator.hal.pm.activetimeout=5 + ro.vendor.vibrator.hal.pm.activetimeout=5 \ + persist.vendor.vibrator.hal.context.enable=false \ + persist.vendor.vibrator.hal.context.scale=60 \ + persist.vendor.vibrator.hal.context.fade=true \ + persist.vendor.vibrator.hal.context.cooldowntime=1600 \ + persist.vendor.vibrator.hal.context.settlingtime=5000 # Hinge angle sensor PRODUCT_COPY_FILES += \