sm8250-common: Set gain of vibrator to 0x55 on boot

* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
This commit is contained in:
Alexander Koskovich 2021-01-17 23:44:43 -07:00 committed by Łukasz Patron
parent 232c213a90
commit dba70894ea

View file

@ -161,6 +161,10 @@ chown system system /proc/rpmh_modem/sleepinfo
chmod 0660 /proc/rpmh_modem/sleepinfo chmod 0660 /proc/rpmh_modem/sleepinfo
# endif /* VENDOR_EDIT */ # endif /* VENDOR_EDIT */
# Reduce default vibrator gain from 0x80 to 0x55,
# also allow gain customization via persistent property
write /sys/class/leds/vibrator/gain ${persist.vendor.vib.gain:-0x55}
on property:vendor.display.lcd_density=560 on property:vendor.display.lcd_density=560
setprop dalvik.vm.heapgrowthlimit 256m setprop dalvik.vm.heapgrowthlimit 256m