diff --git a/rw-system.sh b/rw-system.sh index 5ea28e9..54b93b0 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -464,9 +464,8 @@ fi if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge 28 ];then setprop persist.sys.phh.samsung_fingerprint 0 #obviously broken perms - if [ "$(stat -c '%A' /sys/class/sec/tsp/ear_detect_enable)" == "-rw-rw-r--" ] && - [ "$(stat -c '%U' /sys/class/sec/tsp/ear_detect_enable)" == "root" ] && - [ "$(stat -c '%G' /sys/class/sec/tsp/ear_detect_enable)" == "root" ];then + if [ "$(stat -c '%U' /sys/class/sec/tsp/cmd)" == "root" ] && + [ "$(stat -c '%G' /sys/class/sec/tsp/cmd)" == "root" ];then chcon u:object_r:sysfs_ss_writable:s0 /sys/class/sec/tsp/ear_detect_enable chown system /sys/class/sec/tsp/ear_detect_enable @@ -476,7 +475,6 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge chown system /sys/class/power_supply/battery/wc_tx_en chcon u:object_r:sysfs_app_writable:s0 /sys/class/power_supply/battery/wc_tx_en - fi if [ "$(stat -c '%U' /sys/class/sec/tsp/input/enabled)" == "root" ] &&