sm6375-common: init.mmi.touch: Drop SELinux permissive check

This part of the script causes unnecessary denials to show up when
we are in permissive mode.

Change-Id: I4b1fd469d0f37e8f31c998ee480b51078edd8a99
This commit is contained in:
Michael Bestas
2023-04-18 23:34:54 +03:00
parent f4e0b298c2
commit 053bf999af

View File

@@ -187,11 +187,10 @@ wait_for_poweron()
setup_permissions()
{
local bootmode=$(getprop $bootmode_property 2> /dev/null)
local selinux=$(getprop ro.boot.selinux 2> /dev/null)
local key_path
local key_files
local entry
if [[ ("$selinux" == "permissive") || ("$bootmode" == "mot-factory") ]]; then
if [ "$bootmode" == "mot-factory" ]; then
debug "loosen permissions to $touch_vendor files"
case $touch_vendor in
samsung) key_path="/sys/devices/virtual/sec/sec_ts/"