29 lines
988 B
Plaintext
29 lines
988 B
Plaintext
# Binder calls to hal_cameraHIDL
|
|
binder_call(hal_camera_default, hal_cameraHIDL)
|
|
|
|
# Allow hal_camera_default to find hal_cameraHIDL_hwservice
|
|
allow hal_camera_default hal_cameraHIDL_hwservice:hwservice_manager find;
|
|
|
|
# Persist files
|
|
allow hal_camera_default { mnt_vendor_file persist_camera_file }:dir w_dir_perms;
|
|
allow hal_camera_default { mnt_vendor_file persist_camera_file }:file create_file_perms;
|
|
|
|
# Range device
|
|
allow hal_camera_default vl53l1_device:chr_file rw_file_perms;
|
|
|
|
# Model detection
|
|
allow hal_camera_default sysfs_dtb_model:file r_file_perms;
|
|
|
|
# Properties
|
|
set_prop(hal_camera_default, vendor_camera_prop)
|
|
|
|
# Allow camera to read over /dev/adsprpc-smd-secure
|
|
allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
|
|
|
|
# Allow hal_camera_default to read from input device
|
|
allow hal_camera_default input_device:dir read;
|
|
|
|
# Laser AF
|
|
allow hal_camera_default input_device:chr_file {ioctl read open};
|
|
allow hal_camera_default input_device:dir {read open search};
|