Select wlan regulatory file according to the carrier

This commit is contained in:
Alberto97
2017-04-11 20:57:12 +02:00
committed by Vachounet
parent a145f89e02
commit b2e618811f
7 changed files with 47 additions and 2 deletions

View File

@@ -43,4 +43,4 @@ type sysfs_fpc, fs_type, sysfs_type;
type sysfs_sensors, fs_type, sysfs_type;
type fpc_socket, file_type;
type sysfs_wcnsscore, fs_type, sysfs_type;

View File

@@ -12,6 +12,7 @@
/system/bin/init\.mmi\.laser\.sh u:object_r:mmi_laser_exec:s0
/system/bin/init\.mmi\.touch\.sh u:object_r:mmi_touch_sh_exec:s0
/system/bin/init\.oem\.hw\.sh u:object_r:oem-hw-sh_exec:s0
/system/bin/wlan_carrier_bin\.sh u:object_r:init_wifi_exec:s0
/system/bin/motosh u:object_r:sensor_hub_exec:s0
/system/bin/akmd09912 u:object_r:akmd_exec:s0
/system/bin/fm_qsoc_patches u:object_r:fm_qsoc_patches_exec:s0
@@ -111,3 +112,5 @@
/dev/stml0xx_as u:object_r:sensors_device:s0
/data/misc/sensor(/.*)? u:object_r:sensors_data_file:s0
# WCNSS
/sys/module/wcnsscore/parameters(/.*)? u:object_r:sysfs_wcnsscore:s0

10
sepolicy/init_wifi.te Normal file
View File

@@ -0,0 +1,10 @@
type init_wifi, domain, domain_deprecated;
type init_wifi_exec, exec_type, file_type;
init_daemon_domain(init_wifi)
# shell scripts need to execute /system/bin/sh
allow init_wifi shell_exec:file rx_file_perms;
allow init_wifi toolbox_exec:file rx_file_perms;
allow init_wifi sysfs_wcnsscore:file rw_file_perms;
allow init_wifi sysfs_wcnsscore:dir rw_dir_perms;