From 9b00a5140f70ec7d3ca6d5dde5939a392d18d2c9 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 14 Aug 2019 23:35:36 +0200 Subject: [PATCH] Also chown `cmd` --- rw-system.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index dc95efb..4129637 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -354,8 +354,7 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/ear_detect_enable chown system /sys/class/sec/tsp/ear_detect_enable - chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/cmd - chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/cmd_{list,result,status} - chown system /sys/class/sec/tsp/cmd_{list,result,status} + chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/cmd{,_list,_result,_status} + chown system /sys/class/sec/tsp/cmd{,_list,_result,_status} fi fi