Skip to content
Snippets Groups Projects
Commit 48284512 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes Id4ac3552,I2068f6f4

* changes:
  Allow sensor hal to use wakelock
  Allow sensor to use gralloc handle and access ion device
parents 21fc9ab8 123bbe94
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,12 @@ type hal_sensors_default_exec, exec_type, vendor_file_type, file_type; ...@@ -5,3 +5,12 @@ type hal_sensors_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_sensors_default) init_daemon_domain(hal_sensors_default)
allow hal_sensors_default fwk_scheduler_hwservice:hwservice_manager find; allow hal_sensors_default fwk_scheduler_hwservice:hwservice_manager find;
# Allow sensor hals to access and use gralloc memory allocated by
# android.hardware.graphics.allocator
allow hal_sensors_default hal_graphics_allocator_default:fd use;
allow hal_sensors_default ion_device:chr_file r_file_perms;
# allow sensor hal to use lock for keeping system awake for wake up
# events delivery.
wakelock_use(hal_sensors_default);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment