1on early-boot 2 3 mkdir /mnt/vendor/persist/haptics 0770 system system 4 chmod 770 /mnt/vendor/persist/haptics 5 chmod 440 /mnt/vendor/persist/haptics/cs40l25a.cal 6 chown system system /mnt/vendor/persist/haptics 7 chown system system /mnt/vendor/persist/haptics/cs40l25a.cal 8 9 chown system system /sys/class/leds/vibrator/device/asp_enable 10 chown system system /sys/class/leds/vibrator/device/comp_enable 11 chown system system /sys/class/leds/vibrator/device/cp_dig_scale 12 chown system system /sys/class/leds/vibrator/device/cp_trigger_duration 13 chown system system /sys/class/leds/vibrator/device/cp_trigger_index 14 chown system system /sys/class/leds/vibrator/device/cp_trigger_q_sub 15 chown system system /sys/class/leds/vibrator/device/cp_trigger_queue 16 chown system system /sys/class/leds/vibrator/device/dig_scale 17 chown system system /sys/class/leds/vibrator/device/exc_enable 18 chown system system /sys/class/leds/vibrator/device/f0_stored 19 chown system system /sys/class/leds/vibrator/device/fw_rev 20 chown system system /sys/class/leds/vibrator/device/gpio1_fall_dig_scale 21 chown system system /sys/class/leds/vibrator/device/gpio1_fall_index 22 chown system system /sys/class/leds/vibrator/device/gpio1_rise_dig_scale 23 chown system system /sys/class/leds/vibrator/device/gpio1_rise_index 24 chown system system /sys/class/leds/vibrator/device/heartbeat 25 chown system system /sys/class/leds/vibrator/device/hw_reset 26 chown system system /sys/class/leds/vibrator/device/num_waves 27 chown system system /sys/class/leds/vibrator/device/q_stored 28 chown system system /sys/class/leds/vibrator/device/redc_comp_enable 29 chown system system /sys/class/leds/vibrator/device/redc_stored 30 chown system system /sys/class/leds/vibrator/device/standby_timeout 31 chown system system /sys/class/leds/vibrator/device/vbatt_max 32 chown system system /sys/class/leds/vibrator/device/vbatt_min 33 chown system system /sys/class/leds/vibrator/device/vibe_state 34 35service vendor.vibrator.cs40l25 /vendor/bin/hw/android.hardware.vibrator-service.cs40l25 36 class hal 37 user system 38 group system 39 40 setenv PROPERTY_PREFIX ro.vibrator.hal. 41 setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l25a.cal 42 43 setenv HWAPI_PATH_PREFIX /sys/class/leds/vibrator/ 44 setenv HWAPI_DEBUG_PATHS " 45 device/asp_enable 46 device/f0_stored 47 device/fw_rev 48 device/gpio1_fall_dig_scale 49 device/gpio1_fall_index 50 device/gpio1_rise_dig_scale 51 device/gpio1_rise_index 52 device/heartbeat 53 device/num_waves 54 device/q_stored 55 device/redc_stored 56 state 57 " 58