1on boot
2    wait /sys/class/leds/vibrator/device
3
4    mkdir /mnt/vendor/persist/haptics 0770 system system
5    chmod 770 /mnt/vendor/persist/haptics
6    chmod 440 /mnt/vendor/persist/haptics/drv2624.cal
7    chown system system /mnt/vendor/persist/haptics
8    chown system system /mnt/vendor/persist/haptics/drv2624.cal
9
10    write /sys/class/leds/vibrator/trigger transient
11    chown system system /sys/class/leds/vibrator/activate
12    chown system system /sys/class/leds/vibrator/brightness
13    chown system system /sys/class/leds/vibrator/duration
14    chown system system /sys/class/leds/vibrator/state
15
16    chown system system /sys/class/leds/vibrator/device/autocal
17    chown system system /sys/class/leds/vibrator/device/autocal_result
18    chown system system /sys/class/leds/vibrator/device/ctrl_loop
19    chown system system /sys/class/leds/vibrator/device/lp_trigger_effect
20    chown system system /sys/class/leds/vibrator/device/lp_trigger_scale
21    chown system system /sys/class/leds/vibrator/device/lra_wave_shape
22    chown system system /sys/class/leds/vibrator/device/mode
23    chown system system /sys/class/leds/vibrator/device/od_clamp
24    chown system system /sys/class/leds/vibrator/device/ol_lra_period
25    chown system system /sys/class/leds/vibrator/device/rtp_input
26    chown system system /sys/class/leds/vibrator/device/scale
27    chown system system /sys/class/leds/vibrator/device/set_sequencer
28
29    enable vendor.vibrator.drv2624
30
31service vendor.vibrator.drv2624 /vendor/bin/hw/android.hardware.vibrator-service.drv2624
32    class hal
33    user system
34    group system
35
36    setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
37    setenv CALIBRATION_FILEPATH /persist/haptics/drv2624.cal
38
39    setenv HWAPI_PATH_PREFIX /sys/class/leds/vibrator/
40    setenv HWAPI_DEBUG_PATHS "
41        device/autocal
42        device/lp_trigger_effect
43        device/lp_trigger_scale
44        device/ol_lra_period
45        state
46        "
47
48    disabled
49