liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# HwBinder IPC from client to server
binder_call(hal_sensors_client, hal_sensors_server)
 
hal_attribute_hwservice(hal_sensors, hal_sensors_hwservice)
 
# 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;
 
# allow to run with real-time scheduling policy
allow hal_sensors self:global_capability_class_set sys_nice;