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 9# Allow sensor hals to access and use gralloc memory allocated by 10# android.hardware.graphics.allocator 11allow hal_sensors_default hal_graphics_allocator_default:fd use; 12allow hal_sensors_default ion_device:chr_file r_file_perms; 13 14# allow sensor hal to use lock for keeping system awake for wake up 15# events delivery. 16wakelock_use(hal_sensors_default); 17