diff --git a/public/hal_sensors.te b/public/hal_sensors.te index 0d6dfe077047ae6f10a74a364c30ce330cdb5891..567b0bee1a92046e1118e39a297cc574998b0fa0 100644 --- a/public/hal_sensors.te +++ b/public/hal_sensors.te @@ -3,3 +3,7 @@ binder_call(hal_sensors_client, hal_sensors_server) # Allow sensor hals to access ashmem memory allocated by apps allow hal_sensors { appdomain -isolated_app }:fd use; + +# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator +# fd is passed in from framework sensorservice HAL. +allow hal_sensors hal_allocator:fd use;