1on boot && property:vendor.all.modules.ready=1 && property:ro.boot.revision=EVT1.0
2    wait /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_cal_time_ms
3
4    mkdir /mnt/vendor/persist/haptics 0770 system system
5    chmod 770 /mnt/vendor/persist/haptics
6    chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal
7    chown system system /mnt/vendor/persist/haptics
8    chown system system /mnt/vendor/persist/haptics/cs40l26.cal
9
10    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/f0_stored
11    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/q_stored
12    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_stored
13    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/vibe_state
14    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/num_waves
15    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_offset
16    chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/owt_free_space
17
18    enable vendor.vibrator.cs40l26-evt
19
20service vendor.vibrator.cs40l26-evt /vendor/bin/hw/android.hardware.vibrator-service.cs40l26-evt
21    class hal
22    user system
23    group system input
24
25    setenv INPUT_EVENT_NAME cs40l26_input
26    setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
27    setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l26.cal
28
29    setenv HWAPI_PATH_PREFIX /sys/bus/i2c/devices/i2c-cs40l26a/
30    setenv HWAPI_DEBUG_PATHS "
31        calibration/f0_stored
32        calibration/redc_stored
33        calibration/q_stored
34        default/vibe_state
35        default/num_waves
36        default/f0_offset
37        default/owt_free_space
38        "
39
40    disabled
41