allow hal_camera_default input_device:dir r_dir_perms;

allow hal_camera_default sysfs_laser:file w_file_perms;
vndbinder_use(hal_camera_default);
allow hal_camera_default qdisplay_service:service_manager { find };

hal_client_domain(hal_camera_default, hal_graphics_allocator)
hal_client_domain(hal_camera_default, hal_configstore)

binder_call(hal_camera_default, hal_graphics_composer)
binder_call(hal_camera_default, system_server)

# For interfacing with PowerHAL and ThermalHAL
hal_client_domain(hal_camera_default, hal_power)
hal_client_domain(hal_camera_default, hal_thermal)

# For camera team debugging
userdebug_or_eng(`
  allow hal_camera_default camera_vendor_data_file:dir create_dir_perms;
  allow hal_camera_default camera_vendor_data_file:file create_file_perms;
')

get_prop(hal_camera_default, vendor_radio_prop);