diff options
author | davidevinavil <davidevinavil@gmail.com> | 2018-01-21 23:15:28 +0100 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2018-01-23 18:58:50 +0100 |
commit | 9463e3b5a6e438610f6d9d9e8bc5c787a90184cd (patch) | |
tree | aaaa7228cec124b08874c2359527d272a9a4470b | |
parent | b4973ce134b68657b62450edccd783ccf7487a18 (diff) |
msm8996-common: wifi: Move readmac to vendor
Change-Id: I6a370dfcf3346104880eaacfee6a5368d45a7dd7
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
-rw-r--r-- | sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | sepolicy/readmac.te | 2 | ||||
-rw-r--r-- | wifi/Android.mk | 11 |
3 files changed, 8 insertions, 7 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index ad12850..2f977f9 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -31,7 +31,7 @@ /persist/sensors/gyro_sensitity_cal u:object_r:sensors_persist_file:s0 # readmac -/system/bin/readmac u:object_r:readmac_exec:s0 +/(vendor|system/vendor)/bin/readmac u:object_r:readmac_exec:s0 # ril /system/vendor/radio/qcril_database/qcril.db u:object_r:nv_data_file:s0 diff --git a/sepolicy/readmac.te b/sepolicy/readmac.te index a124cfb..ea2391e 100644 --- a/sepolicy/readmac.te +++ b/sepolicy/readmac.te @@ -1,5 +1,5 @@ type readmac, domain; -type readmac_exec, exec_type, file_type; +type readmac_exec, exec_type, vendor_file_type, file_type; # Allow for transition from init domain to readmac init_daemon_domain(readmac) diff --git a/wifi/Android.mk b/wifi/Android.mk index 8876a2b..69096a5 100644 --- a/wifi/Android.mk +++ b/wifi/Android.mk @@ -2,10 +2,11 @@ LOCAL_PATH:= $(call my-dir) ifeq ($(strip $(BOARD_HAS_QCOM_WLAN)),true) include $(CLEAR_VARS) -LOCAL_MODULE := readmac -LOCAL_MODULE_TAGS := optional -LOCAL_SRC_FILES := zuk_readmac.c -LOCAL_CFLAGS += -Wall -LOCAL_SHARED_LIBRARIES := libc libcutils libutils liblog +LOCAL_MODULE := readmac +LOCAL_MODULE_TAGS := optional +LOCAL_PROPRIETARY_MODULE := true +LOCAL_SRC_FILES := zuk_readmac.c +LOCAL_CFLAGS += -Wall +LOCAL_SHARED_LIBRARIES := libc libcutils libutils liblog include $(BUILD_EXECUTABLE) endif |