summaryrefslogtreecommitdiff
path: root/vibrator/cs40l26/android.hardware.vibrator-service.cs40l26.rc
blob: 8c9e2c2dc40bfbd5ec60b1d3c85b826159a710e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
service vendor.vibrator.cs40l26 /vendor/bin/hw/android.hardware.vibrator-service.cs40l26
    class hal
    user system
    group system input context_hub

    setenv INPUT_EVENT_NAME cs40l26_input
    setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
    setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l26.cal

    setenv HWAPI_DEBUG_PATHS "
        calibration/f0_stored
        calibration/redc_stored
        calibration/q_stored
        default/vibe_state
        default/num_waves
        default/f0_offset
        default/owt_free_space
        default/f0_comp_enable
        default/redc_comp_enable
        default/delay_before_stop_playback_us
        "

    setenv STATS_INSTANCE default

    disabled

# Route vibrator.adaptive_haptics.enabled to persist
on property:vibrator.adaptive_haptics.enabled=0
    setprop persist.vendor.vibrator.hal.context.enable false

on property:vibrator.adaptive_haptics.enabled=1
    setprop persist.vendor.vibrator.hal.context.enable true