diff --git a/legacy/vendor/common/init_shell.te b/legacy/vendor/common/init_shell.te index 817477b0..1f9c7a8f 100644 --- a/legacy/vendor/common/init_shell.te +++ b/legacy/vendor/common/init_shell.te @@ -109,6 +109,7 @@ userdebug_or_eng(` #set_prop(qti_init_shell, ctl_console_prop) set_prop(qti_init_shell, vendor_coresight_prop) set_prop(qti_init_shell, vendor_audio_debug_prop) +set_prop(qti_init_shell, vendor_vm_bms_debug_prop) ') set_prop(vendor_qti_init_shell,vendor_dcvs_prop) diff --git a/legacy/vendor/common/property.te b/legacy/vendor/common/property.te index 70e73305..2dfeedca 100644 --- a/legacy/vendor/common/property.te +++ b/legacy/vendor/common/property.te @@ -39,6 +39,7 @@ type vendor_ctl_LKCore_prop, property_type; type vendor_freq_prop, property_type; type vendor_vm_bms_prop, property_type; #To start vm_bms +type vendor_vm_bms_debug_prop, property_type; type vendor_dataqti_prop, property_type; type vendor_dataadpl_prop, property_type; type vendor_dataqdp_prop, property_type; diff --git a/legacy/vendor/common/property_contexts b/legacy/vendor/common/property_contexts index 4cd4f834..3f46fc87 100644 --- a/legacy/vendor/common/property_contexts +++ b/legacy/vendor/common/property_contexts @@ -50,6 +50,7 @@ persist.vendor.cne.logging.qxdm u:object_r:vendor_cnd_vendor_prop:s0 persist.vendor.cnd. u:object_r:vendor_cnd_vendor_prop:s0 persist.vendor.cnd.wqe u:object_r:vendor_cnd_vendor_prop:s0 ctl.vendor.vm_bms u:object_r:vendor_vm_bms_prop:s0 +vendor.vbms.debug.enable u:object_r:vendor_vm_bms_debug_prop:s0 ro.vendor.qualcomm.bluetooth. u:object_r:vendor_bluetooth_prop:s0 ctl.vendor.ipacm u:object_r:vendor_ipacm_prop:s0 ctl.vendor.ipacm-diag u:object_r:vendor_ipacm-diag_prop:s0 diff --git a/legacy/vendor/common/vm_bms.te b/legacy/vendor/common/vm_bms.te index 77d4f978..d8e128e9 100644 --- a/legacy/vendor/common/vm_bms.te +++ b/legacy/vendor/common/vm_bms.te @@ -54,3 +54,9 @@ allow vm_bms self:capability { setpcap setgid setuid }; #allow vm_bms to block the system suspend and get wake lock wakelock_use(vm_bms) + +#allow start and stop of vm_bms via ctl.start/ctl.stop +set_prop(vm_bms, vendor_vm_bms_prop) +userdebug_or_eng(` +set_prop(vm_bms, vendor_vm_bms_debug_prop) +')