[Samsung chmods] Need to set selinux too in input/enabled

This commit is contained in:
Pierre-Hugues Husson 2019-08-22 11:36:17 +02:00
parent d45861e585
commit 66cf09d963
1 changed files with 1 additions and 0 deletions

View File

@ -369,6 +369,7 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge
if [ "$(stat -c '%U' /sys/class/sec/tsp/input/enabled)" == "root" ] &&
[ "$(stat -c '%G' /sys/class/sec/tsp/input/enabled)" == "root" ];then
chown system:system /sys/class/sec/tsp/input/enabled
chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/input/enabled
setprop ctl.restart sec-miscpower-1-0
fi
fi