Merge "[ALPS03883958] wlan: phaseout wifi2agps" into alps-trunk-p0.basic

Change-Id: I27811d7d767ae0b752b22860a4823ca28f1eb537
MTK-Commit-Id: 88a5c2177930425b8602c2fa2dcbaed9e0c1fe21
This commit is contained in:
YC Shen 2020-01-18 09:37:00 +08:00 committed by Gerrit Code Review
commit 0b44149daf
2 changed files with 0 additions and 28 deletions

View File

@ -533,7 +533,6 @@
/(system\/vendor|vendor)/bin/thermalloadalgod u:object_r:thermalloadalgod_exec:s0
/(system\/vendor|vendor)/bin/lbs_hidl_service u:object_r:lbs_hidl_service_exec:s0
/(system\/vendor|vendor)/bin/wifi2agps u:object_r:wifi2agps_exec:s0
/(system\/vendor|vendor)/bin/wmt_loader u:object_r:wmt_loader_exec:s0
/(system\/vendor|vendor)/bin/md_ctrl u:object_r:md_ctrl_exec:s0
/(system\/vendor|vendor)/bin/spm_loader u:object_r:spm_loader_exec:s0

View File

@ -1,27 +0,0 @@
# ==============================================
# Policy File of /vendor/bin/wifi2agps Executable File
# ==============================================
# Type Declaration
# ==============================================
type wifi2agps_exec , exec_type, file_type, vendor_file_type;
type wifi2agps ,domain;
# ==============================================
# MTK Policy Rule
# ==============================================
init_daemon_domain(wifi2agps)
# Date : WK14.34
# Operation : Migration
# Purpose : for mtk debug mechanism. agpsd_data_file, mtk_agpsd are used
# to share wifi scan results with AGPS module. netlink_socket is used to
# listen events of wlan driver. udp_socket is used to do ioctl with wlan driver
# kernel-3.18 uses netlink_socket, but kernel-4.4 uses generic netlink_socket
allow wifi2agps agpsd_data_file:sock_file write;
allow wifi2agps mtk_agpsd:unix_dgram_socket sendto;
allow wifi2agps agpsd_data_file:dir search;
### TBD, neverallowxperm on line 177 of system/sepolicy/public/domain.te
#allow wifi2agps self:netlink_socket create_socket_perms;
allow wifi2agps self:netlink_generic_socket create_socket_perms_no_ioctl;
allow wifi2agps self:udp_socket { create ioctl };