2017-01-11 00:54:25 +01:00
|
|
|
type hal_sensors_default, domain;
|
2017-03-13 23:13:52 +01:00
|
|
|
hal_server_domain(hal_sensors_default, hal_sensors)
|
2016-11-29 21:26:51 +01:00
|
|
|
|
2017-04-10 22:03:28 +02:00
|
|
|
type hal_sensors_default_exec, exec_type, vendor_file_type, file_type;
|
2016-11-29 21:26:51 +01:00
|
|
|
init_daemon_domain(hal_sensors_default)
|
2017-04-14 04:05:27 +02:00
|
|
|
|
|
|
|
allow hal_sensors_default fwk_scheduler_hwservice:hwservice_manager find;
|
2017-04-28 00:23:08 +02:00
|
|
|
|
2018-01-19 21:23:35 +01:00
|
|
|
allow hal_sensors_default input_device:dir r_dir_perms;
|
|
|
|
allow hal_sensors_default input_device:chr_file r_file_perms;
|
|
|
|
|
2017-09-12 23:44:02 +02:00
|
|
|
# Allow sensor hals to access and use gralloc memory allocated by
|
|
|
|
# android.hardware.graphics.allocator
|
2017-04-28 00:23:08 +02:00
|
|
|
allow hal_sensors_default hal_graphics_allocator_default:fd use;
|
|
|
|
allow hal_sensors_default ion_device:chr_file r_file_perms;
|
2017-09-12 23:44:02 +02:00
|
|
|
|
|
|
|
# allow sensor hal to use lock for keeping system awake for wake up
|
|
|
|
# events delivery.
|
|
|
|
wakelock_use(hal_sensors_default);
|