aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sepolicy/file_contexts2
-rw-r--r--sepolicy/readmac.te2
-rw-r--r--wifi/Android.mk11
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