Merge "Allow apps to find imscm service"
diff --git a/common/location.te b/common/location.te
index 393bae6..a72adc1 100644
--- a/common/location.te
+++ b/common/location.te
@@ -41,7 +41,11 @@
 allow location sensors_persist_file:file r_file_perms;
 
 #wifi
-allow location wifi_data_file:dir r_dir_perms;
+userdebug_or_eng(`
+allow location wifi_data_file:dir create_dir_perms;
+allow location wifi_data_file:sock_file create_file_perms;
+allow location su:unix_dgram_socket sendto;
+')
 unix_socket_send(wpa, location, location)
 allow location wpa:unix_dgram_socket sendto;
 allow location wpa_socket:dir rw_dir_perms;