1allow hal_vibrator_default input_device:dir r_dir_perms; 2allow hal_vibrator_default input_device:chr_file rw_file_perms; 3allow hal_vibrator_default sysfs_vibrator:dir search; 4allow hal_vibrator_default sysfs_vibrator:file rw_file_perms; 5 6allow hal_vibrator_default audio_device:dir search; 7allow hal_vibrator_default proc_asound:dir search; 8allow hal_vibrator_default proc_asound:file r_file_perms; 9allow hal_vibrator_default vibrator_snd_device:chr_file rw_file_perms; 10allow hal_vibrator_default vibrator_snd_device:dir search; 11 12allow hal_vibrator_default mnt_vendor_file:dir search; 13allow hal_vibrator_default persist_file:dir search; 14r_dir_file(hal_vibrator_default, persist_haptics_file) 15 16get_prop(hal_vibrator_default, vendor_vibrator_prop); 17 18# Allow vibrator HAL's default implementation to use vendor-binder service 19vndbinder_use(hal_vibrator_default); 20