From d50dbc1d0edf1a358c2a16c5d78dc9752e5a7b73 Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Tue, 7 Mar 2023 00:18:52 +0000 Subject: [PATCH] device/akita: Add vibrator properties and enable adaptive haptics Updated device-akita.mk to enable the adaptive haptics feature, as well as updated the vendor properties to configure adaptive haptics for akita. Bug: 198239103 Test: Verified compilation Change-Id: Iac1edb3758b19a936d2e587e5a3f8859e1ee91be Signed-off-by: Chris Paulo --- device-akita.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device-akita.mk b/device-akita.mk index 8e71f32..232a9b7 100644 --- a/device-akita.mk +++ b/device-akita.mk @@ -209,7 +209,13 @@ PRODUCT_PROPERTY_OVERRIDES += \ vendor.camera.debug.force_dpm_on=0 # Vibrator HAL +ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.supported_primitives=243 \ ro.vendor.vibrator.hal.f0.comp.enabled=1 \ ro.vendor.vibrator.hal.redc.comp.enabled=0 \ + persist.vendor.vibrator.hal.context.enable=false \ + persist.vendor.vibrator.hal.context.scale=40 \ + persist.vendor.vibrator.hal.context.fade=true \ + persist.vendor.vibrator.hal.context.cooldowntime=1600 \ + persist.vendor.vibrator.hal.context.settlingtime=5000