diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 1504f19..21e7790 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -710,3 +710,6 @@ #Ipsec /(system\/vendor|vendor)/bin/ipsec_mon u:object_r:ipsec_mon_exec:s0 + +# IMS +/(system\/vendor|vendor)/bin/volte_md_status u:object_r:volte_md_status_exec:s0 diff --git a/non_plat/property.te b/non_plat/property.te index fe02a41..c4ebc43 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -335,3 +335,6 @@ type mtk_camera_prop, property_type, mtk_core_property_type; # MTK network property type mtk_network_prop, property_type, mtk_core_property_type; + +# IMS +type mtk_md_status_prop, property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index b00dc45..3c8cea2 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -374,3 +374,6 @@ vendor.wlan.firmware.version u:object_r:vendor_wifi_version:s0 # MTK camera property ro.mtk_cam_dualzoom_support u:object_r:mtk_camera_prop:s0 ro.mtk_cam_stereo_camera_support u:object_r:mtk_camera_prop:s0 + +# IMS +vendor.volte_md_status u:object_r:mtk_md_status_prop:s0 diff --git a/non_plat/volte_md_status.te b/non_plat/volte_md_status.te new file mode 100644 index 0000000..56ab23b --- /dev/null +++ b/non_plat/volte_md_status.te @@ -0,0 +1,10 @@ +type volte_md_status, domain, netdomain, mtkimsmddomain; +type volte_md_status_exec, exec_type, file_type, vendor_file_type;; + +init_daemon_domain(volte_md_status) + +allow volte_md_status ccci_device:chr_file rw_file_perms; +allow volte_md_status property_socket:sock_file write; +allow volte_md_status init:unix_stream_socket connectto; + +set_prop(volte_md_status, mtk_md_status_prop)