• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on boot
2    wait /sys/class/leds/vibrator_1/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_dual.cal
7    chown system system /mnt/vendor/persist/haptics
8    chown system system /mnt/vendor/persist/haptics/cs40l25a_dual.cal
9
10    chown system system /sys/class/leds/vibrator_1/activate
11    chown system system /sys/class/leds/vibrator_1/brightness
12    chown system system /sys/class/leds/vibrator_1/duration
13    chown system system /sys/class/leds/vibrator_1/state
14
15    chown system system /sys/class/leds/vibrator_1/device/asp_enable
16    chown system system /sys/class/leds/vibrator_1/device/clab_enable
17    chown system system /sys/class/leds/vibrator_1/device/comp_enable
18    chown system system /sys/class/leds/vibrator_1/device/cp_dig_scale
19    chown system system /sys/class/leds/vibrator_1/device/cp_trigger_duration
20    chown system system /sys/class/leds/vibrator_1/device/cp_trigger_index
21    chown system system /sys/class/leds/vibrator_1/device/cp_trigger_q_sub
22    chown system system /sys/class/leds/vibrator_1/device/cp_trigger_queue
23    chown system system /sys/class/leds/vibrator_1/device/dig_scale
24    chown system system /sys/class/leds/vibrator_1/device/exc_enable
25    chown system system /sys/class/leds/vibrator_1/device/f0_stored
26    chown system system /sys/class/leds/vibrator_1/device/f0_offset
27    chown system system /sys/class/leds/vibrator_1/device/fw_rev
28    chown system system /sys/class/leds/vibrator_1/device/gpio1_enable
29    chown system system /sys/class/leds/vibrator_1/device/gpio1_fall_dig_scale
30    chown system system /sys/class/leds/vibrator_1/device/gpio1_fall_index
31    chown system system /sys/class/leds/vibrator_1/device/gpio1_rise_dig_scale
32    chown system system /sys/class/leds/vibrator_1/device/gpio1_rise_index
33    chown system system /sys/class/leds/vibrator_1/device/gpio_event
34    chown system system /sys/class/leds/vibrator_1/device/gpio_trigger
35    chown system system /sys/class/leds/vibrator_1/device/heartbeat
36    chown system system /sys/class/leds/vibrator_1/device/hw_reset
37    chown system system /sys/class/leds/vibrator_1/device/num_waves
38    chown system system /sys/class/leds/vibrator_1/device/q_stored
39    chown system system /sys/class/leds/vibrator_1/device/redc_comp_enable
40    chown system system /sys/class/leds/vibrator_1/device/redc_stored
41    chown system system /sys/class/leds/vibrator_1/device/standby_timeout
42    chown system system /sys/class/leds/vibrator_1/device/vbatt_max
43    chown system system /sys/class/leds/vibrator_1/device/vbatt_min
44    chown system system /sys/class/leds/vibrator_1/device/vibe_state
45
46    enable vendor.vibrator.cs40l25-dual
47
48service vendor.vibrator.cs40l25-dual /vendor/bin/hw/android.hardware.vibrator-service.cs40l25-dual
49    class hal
50    user system
51    group system
52
53    setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
54    setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l25a_dual.cal
55
56    setenv HWAPI_PATH_PREFIX /sys/class/leds/vibrator_1/
57    setenv HWAPI_DEBUG_PATHS "
58        device/asp_enable
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/q_stored
70        device/redc_stored
71        state
72        "
73
74    disabled
75