on late-init
    write /sys/class/leds/vibrator/trigger "transient"

on late-fs
    chmod 0666 /dev/qcom_haptic
    chown system system /dev/qcom_haptic

on boot
    start qti.vibrator

on property:sys.boot_completed=1
    setprop vendor.haptic.calibrate.done 1

service qti.vibrator /system/bin/vendor.qti.hardware.vibrator.service
    class hal
    user root
    group root
    disabled
    setenv LD_LIBRARY_PATH /vendor/lib64:/vendor/lib:/system/lib64:/system/lib:/sbin
    setenv RICHTAP_DEVICE_PATH  /dev/qcom_haptic
    setenv ENV_RICHTAP_CONFIG_PATH /odm/etc/aac_richtap.config
    seclabel u:r:recovery:s0
