1on boot && property:vendor.all.modules.ready=1 2 wait /sys/bus/i2c/devices/i2c-cs40l26a-dual/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_dual.cal 7 chown system system /mnt/vendor/persist/haptics 8 chown system system /mnt/vendor/persist/haptics/cs40l26_dual.cal 9 10 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/f0_stored 11 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/q_stored 12 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/redc_stored 13 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/vibe_state 14 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/num_waves 15 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/f0_offset 16 chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/owt_free_space 17 18 enable vendor.vibrator.cs40l26-dual 19 20service vendor.vibrator.cs40l26-dual /vendor/bin/hw/android.hardware.vibrator-service.cs40l26-dual 21 class hal 22 user system 23 group system input 24 25 setenv INPUT_EVENT_NAME cs40l26_dual_input 26 setenv PROPERTY_PREFIX ro.vendor.vibrator.hal. 27 setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l26_dual.cal 28 29 setenv HWAPI_PATH_PREFIX /sys/bus/i2c/devices/i2c-cs40l26a-dual/ 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