diff options
author | Shane Francis <bigbeeshane@gmail.com> | 2015-01-18 19:20:32 +0000 |
---|---|---|
committer | Chirayu Desai <chirayudesai1@gmail.com> | 2015-01-20 16:10:12 +0530 |
commit | cbcd7d582926698c9c7019183867f7cd3d099a47 (patch) | |
tree | 22834531dfbb7765a7a16cc7f1fb80897e3a9df6 | |
parent | c454282ec5b3adcf117db092e5fc5f814a542ca4 (diff) |
init: Add mlog_qmi service
All Z3 series need this service to keep modem alive
Change-Id: Iba8ac16083d878a9a9864472d350ee4868f20c6a
-rw-r--r-- | BoardConfigCommon.mk | 3 | ||||
-rw-r--r-- | proprietary-files.txt | 1 | ||||
-rw-r--r-- | rootdir/init.qcom.rc | 5 | ||||
-rw-r--r-- | sepolicy/file_contexts | 3 | ||||
-rw-r--r-- | sepolicy/mlog_qmi.te | 10 |
5 files changed, 22 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 754bc91..3b5730e 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -61,6 +61,9 @@ TARGET_INIT_VENDOR_LIB := libinit_shinano BOARD_SEPOLICY_DIRS += \ device/sony/shinano-common/sepolicy +BOARD_SEPOLICY_UNION += \ + mlog_qmi.te + # Wifi WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WLAN_DEVICE := bcmdhd diff --git a/proprietary-files.txt b/proprietary-files.txt index 040fca6..345b8c1 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -292,6 +292,7 @@ vendor/lib/libsensor_reg.so bin/taimport bin/ta_param_loader bin/ta_qmi_service +bin/mlog_qmi_service lib/libMiscTaAccessor.so lib/libmiscta.so lib/libta.so diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 556df05..1991483 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -586,6 +586,11 @@ service ta_qmi_service /system/bin/ta_qmi_service user root class main +# Modem Log QMI service +service mlog_qmi_service /system/bin/mlog_qmi_service + user root + class main + # Thermal Manager service service thermanager /system/bin/thermanager /system/etc/thermanager.xml class main diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 01b7557..d66e61a 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -7,3 +7,6 @@ # Hardware tunables /sys/devices/mdss_dsi_panel/cabc -- u:object_r:sysfs_display:s0 /sys/devices/virtual/timed_output/vibrator/vtg_level -- u:object_r:sysfs_vibrator:s0 + +# Modem +/system/bin/mlog_qmi_service u:object_r:mlog_qmi_exec:s0 diff --git a/sepolicy/mlog_qmi.te b/sepolicy/mlog_qmi.te new file mode 100644 index 0000000..4509083 --- /dev/null +++ b/sepolicy/mlog_qmi.te @@ -0,0 +1,10 @@ +type mlog_qmi, domain; +type mlog_qmi_exec, exec_type, file_type; + +# Started by init +init_daemon_domain(mlog_qmi) + +allow mlog_qmi self:socket create_socket_perms; + +# Access to /dev/smem_log +allow mlog_qmi smem_log_device:chr_file rw_file_perms; |