xref: /aosp12/hardware/google/pixel/vibrator/drv2624/apex/com.android.vibrator.drv2624.enable.rc
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on boot
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/drv2624.cal
7    chown system system /mnt/vendor/persist/haptics
8    chown system system /mnt/vendor/persist/haptics/drv2624.cal
9
10    write /sys/class/leds/vibrator/trigger transient
11    chown system system /sys/class/leds/vibrator/activate
12    chown system system /sys/class/leds/vibrator/brightness
13    chown system system /sys/class/leds/vibrator/duration
14    chown system system /sys/class/leds/vibrator/state
15
16    chown system system /sys/class/leds/vibrator/device/autocal
17    chown system system /sys/class/leds/vibrator/device/autocal_result
18    chown system system /sys/class/leds/vibrator/device/ctrl_loop
19    chown system system /sys/class/leds/vibrator/device/lp_trigger_effect
20    chown system system /sys/class/leds/vibrator/device/lp_trigger_scale
21    chown system system /sys/class/leds/vibrator/device/lra_wave_shape
22    chown system system /sys/class/leds/vibrator/device/mode
23    chown system system /sys/class/leds/vibrator/device/od_clamp
24    chown system system /sys/class/leds/vibrator/device/ol_lra_period
25    chown system system /sys/class/leds/vibrator/device/rtp_input
26    chown system system /sys/class/leds/vibrator/device/scale
27    chown system system /sys/class/leds/vibrator/device/set_sequencer
28
29    enable vendor.vibrator.drv2624
30

闽ICP备2022004144号-1闽公网安备35021102001383号

OpenHarmony source code served by {OpenGrok Contact:jevonbin@qq.com