From 053bf999af44e27648ddb669e819f9ff71b33531 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 18 Apr 2023 23:34:54 +0300 Subject: [PATCH] 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 --- rootdir/bin/init.mmi.touch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rootdir/bin/init.mmi.touch.sh b/rootdir/bin/init.mmi.touch.sh index 5c36109..1076245 100755 --- a/rootdir/bin/init.mmi.touch.sh +++ b/rootdir/bin/init.mmi.touch.sh @@ -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/"