1type location, domain; 2type location_exec, exec_type, vendor_file_type, file_type; 3init_daemon_domain(location) 4 5allow location hal_cacert_hwservice:hwservice_manager find; 6allow location hal_datafactory_hwservice:hwservice_manager find; 7allow location hal_cne_hwservice:hwservice_manager find; 8 9binder_call(location, qtidataservices_app) 10get_prop(location, hwservicemanager_prop) 11hwbinder_use(location) 12 13# Enable standard network access (for XTRA download) 14net_domain(location) 15 16r_dir_file(location, sysfs_msm_subsys) 17r_dir_file(location, sysfs_soc) 18r_dir_file(location, sysfs_ssr) 19 20allow location hal_gnss_qti:unix_dgram_socket sendto; 21 22allow location location_data_file:dir create_dir_perms; 23allow location location_data_file:file create_file_perms; 24allow location location_exec:file execute_no_trans; 25allow location location_socket:dir w_dir_perms; 26allow location location_socket:sock_file create_file_perms; 27 28allow location self:capability setgid; 29allow location self:qipcrtr_socket create_socket_perms_no_ioctl; 30 31# Network access for lowi-server 32allow location self:netlink_generic_socket create_socket_perms_no_ioctl; 33allow location self:netlink_socket create_socket_perms_no_ioctl; 34allowxperm location self:udp_socket ioctl lowi_server_ioctls; 35allow location wpa_data_file:dir rw_dir_perms; 36allow location wpa_data_file:sock_file create_file_perms; 37allow location hal_wifi_supplicant_default:unix_dgram_socket sendto; 38allow location wifihal_socket:dir search; 39unix_socket_send(location, wifihal, hal_wifi_ext); 40 41userdebug_or_eng(` 42 allow location diag_device:chr_file rw_file_perms; 43') 44