1# hal_gnss_qti - binerized gnss hal
2type hal_gnss_qti, domain;
3hal_server_domain(hal_gnss_qti, hal_gnss)
4
5type hal_gnss_qti_exec, exec_type, vendor_file_type, file_type;
6init_daemon_domain(hal_gnss_qti)
7vndbinder_use(hal_gnss_qti)
8
9#files in /sys
10r_dir_file(hal_gnss_qti, sysfs_soc)
11r_dir_file(hal_gnss_qti, sysfs_esoc)
12r_dir_file(hal_gnss_qti, sysfs_msm_subsys)
13r_dir_file(hal_gnss_qti, sysfs_ssr)
14
15binder_call(hal_gnss_qti, vendor_per_mgr)
16allow hal_gnss_qti vendor_per_mgr_service:service_manager find;
17
18# /dev/socket/location
19allow hal_gnss_qti location_socket:sock_file create_file_perms;
20allow hal_gnss_qti location_socket:dir rw_dir_perms;
21
22# xtra/socket_xtra
23allow hal_gnss_qti location:unix_dgram_socket sendto;
24
25allow hal_gnss_qti self:qipcrtr_socket create_socket_perms_no_ioctl;
26
27allow hal_gnss_qti location_data_file:dir r_dir_perms;
28
29# Allow Gnss HAL to get updates from health hal
30hal_client_domain(hal_gnss_qti, hal_health)
31