1on boot && property:ro.boot.revision=PROTO1.0
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/cs40l25a.cal
7    chown system system /mnt/vendor/persist/haptics
8    chown system system /mnt/vendor/persist/haptics/cs40l25a.cal
9
10    chown system system /sys/class/leds/vibrator/activate
11    chown system system /sys/class/leds/vibrator/brightness
12    chown system system /sys/class/leds/vibrator/duration
13    chown system system /sys/class/leds/vibrator/state
14
15    chown system system /sys/class/leds/vibrator/device/asp_enable
16    chown system system /sys/class/leds/vibrator/device/available_pwle_segments
17    chown system system /sys/class/leds/vibrator/device/clab_enable
18    chown system system /sys/class/leds/vibrator/device/comp_enable
19    chown system system /sys/class/leds/vibrator/device/cp_dig_scale
20    chown system system /sys/class/leds/vibrator/device/cp_trigger_duration
21    chown system system /sys/class/leds/vibrator/device/cp_trigger_index
22    chown system system /sys/class/leds/vibrator/device/cp_trigger_q_sub
23    chown system system /sys/class/leds/vibrator/device/cp_trigger_queue
24    chown system system /sys/class/leds/vibrator/device/dig_scale
25    chown system system /sys/class/leds/vibrator/device/exc_enable
26    chown system system /sys/class/leds/vibrator/device/f0_stored
27    chown system system /sys/class/leds/vibrator/device/f0_offset
28    chown system system /sys/class/leds/vibrator/device/fw_rev
29    chown system system /sys/class/leds/vibrator/device/gpio1_fall_dig_scale
30    chown system system /sys/class/leds/vibrator/device/gpio1_fall_index
31    chown system system /sys/class/leds/vibrator/device/gpio1_rise_dig_scale
32    chown system system /sys/class/leds/vibrator/device/gpio1_rise_index
33    chown system system /sys/class/leds/vibrator/device/heartbeat
34    chown system system /sys/class/leds/vibrator/device/hw_reset
35    chown system system /sys/class/leds/vibrator/device/num_waves
36    chown system system /sys/class/leds/vibrator/device/pwle
37    chown system system /sys/class/leds/vibrator/device/q_stored
38    chown system system /sys/class/leds/vibrator/device/redc_comp_enable
39    chown system system /sys/class/leds/vibrator/device/redc_stored
40    chown system system /sys/class/leds/vibrator/device/standby_timeout
41    chown system system /sys/class/leds/vibrator/device/vbatt_max
42    chown system system /sys/class/leds/vibrator/device/vbatt_min
43    chown system system /sys/class/leds/vibrator/device/vibe_state
44
45    enable vendor.vibrator.cs40l25
46
47service vendor.vibrator.cs40l25 /vendor/bin/hw/android.hardware.vibrator-service.cs40l25-specific-revision
48    class hal
49    user system
50    group system
51
52    setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
53    setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l25a.cal
54
55    setenv HWAPI_PATH_PREFIX /sys/class/leds/vibrator/
56    setenv HWAPI_DEBUG_PATHS "
57        device/asp_enable
58        device/available_pwle_segments
59        device/clab_enable
60        device/f0_stored
61        device/f0_offset
62        device/fw_rev
63        device/gpio1_fall_dig_scale
64        device/gpio1_fall_index
65        device/gpio1_rise_dig_scale
66        device/gpio1_rise_index
67        device/heartbeat
68        device/num_waves
69        device/pwle
70        device/q_stored
71        device/redc_stored
72        state
73        "
74
75    disabled
76