We need to restart samsung hal when doing chown

This commit is contained in:
Pierre-Hugues Husson 2019-08-22 00:45:53 +02:00
parent edaab46a82
commit ef0936947e

View File

@ -364,9 +364,13 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge
chown system /sys/class/power_supply/battery/wc_tx_en 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 chcon u:object_r:sysfs_app_writable:s0 /sys/class/power_supply/battery/wc_tx_en
chown system:system /sys/class/sec/tsp/input/enabled
fi fi
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
setprop ctl.restart sec-miscpower-1-0
fi
fi fi
if [ -f /system/phh/secure ];then if [ -f /system/phh/secure ];then