1init_daemon_domain(gpsd)
2
3# Allow gpsd to obtain wakelock
4wakelock_use(gpsd)
5
6# Allow gpsd access data vendor gps files
7allow gpsd vendor_gps_file:dir create_dir_perms;
8allow gpsd vendor_gps_file:file create_file_perms;
9allow gpsd vendor_gps_file:fifo_file create_file_perms;
10
11# Allow gpsd to access rild
12binder_call(gpsd, rild);
13allow gpsd hal_exynos_rild_hwservice:hwservice_manager find;
14
15# Allow gpsd to access sensor service
16binder_call(gpsd, system_server);
17allow gpsd fwk_sensor_hwservice:hwservice_manager find;
18
19# android.frameworks.sensorservice through libsensorndkbridge
20allow gpsd fwk_sensor_service:service_manager find;
21
22# Allow gpsd to access pps gpio
23allow gpsd sysfs_gps_assert:file r_file_perms;
24