From 63369488c4862576f27fa78539634d459214c583 Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Sun, 12 Mar 2023 13:18:49 +0100 Subject: [PATCH] sm7125-common: Change vibration durations where needed * a52q/a72q's dc_vibrators only supports >= 40ms vibrations Change-Id: I0c37a98d74fa647a28ef52025dcec3337ffe8e63 --- .../base/core/res/res/values/config.xml | 36 +++++++++++++++++++ vendor.prop | 4 +++ 2 files changed, 40 insertions(+) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index b4d31fc..fe63dc2 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -1319,4 +1319,40 @@ running in WAL mode. Choices are: FULL, NORMAL, OFF. --> OFF + + + + 0 + 100 + + + + + 0 + 80 + + + + + 0 + 80 + 140 + 80 + + + + + 0 + 40 + + + + + 0 + 40 + 160 + 165 + 500 + 600 + diff --git a/vendor.prop b/vendor.prop index 0e7e032..475d3f1 100644 --- a/vendor.prop +++ b/vendor.prop @@ -219,6 +219,10 @@ sys.fflag.override.settings_seamless_transfer=true vendor.usb.diag.func.name=diag vendor.usb.use_ffs_mtp=0 +# Vibrator +ro.vendor.vibrator_hal.click_duration=80 +ro.vendor.vibrator_hal.tick_duration=40 + # Wifi wifi.aware.interface=wifi-aware0