From 3d84e3da974fd9febfe5e82b3c1b45e5dfe5f64d Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 20 May 2020 21:15:25 +0200 Subject: [PATCH] Also set chmod/chown for fod samsung files --- rw-system.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index a7dc255..8036ed3 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -701,10 +701,11 @@ fi if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung/';then if ls -lZ /sys/class/lcd/panel/mask_brightness |grep -q u:object_r:sysfs:s0;then - chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/lcd/panel/actual_mask_brightness - chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/lcd/panel/mask_brightness - chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/lcd/panel/device/backlight/panel/brightness - chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/backlight/panel0-backlight/brightness + for f in /sys/class/lcd/panel/actual_mask_brightness /sys/class/lcd/panel/mask_brightness /sys/class/lcd/panel/device/backlight/panel/brightness /sys/class/backlight/panel0-backlight/brightness;do + chcon u:object_r:sysfs_lcd_writable:s0 $f + chmod 0644 $f + chown system:system $f + done fi setprop persist.sys.phh.fod.samsung true