1type hal_sensors_default, domain; 2hal_server_domain(hal_sensors_default, hal_sensors) 3 4type hal_sensors_default_exec, exec_type, vendor_file_type, file_type; 5init_daemon_domain(hal_sensors_default) 6 7allow hal_sensors_default fwk_scheduler_hwservice:hwservice_manager find; 8 9allow hal_sensors_default input_device:dir r_dir_perms; 10allow hal_sensors_default input_device:chr_file r_file_perms; 11 12# Allow sensor hals to access and use gralloc memory allocated by 13# android.hardware.graphics.allocator 14allow hal_sensors_default hal_graphics_allocator_default:fd use; 15allow hal_sensors_default ion_device:chr_file r_file_perms; 16 17# allow sensor hal to use lock for keeping system awake for wake up 18# events delivery. 19wakelock_use(hal_sensors_default); 20 21# allow sensor hal to use ashmem fd from system_server. 22allow hal_sensors_default system_server:fd use; 23