Also set chmod/chown for fod samsung files
This commit is contained in:
parent
d7ed46d6e9
commit
d5d48511b9
@ -709,10 +709,11 @@ fi
|
|||||||
|
|
||||||
if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung/';then
|
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
|
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
|
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 /sys/class/lcd/panel/mask_brightness
|
chcon u:object_r:sysfs_lcd_writable:s0 $f
|
||||||
chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/lcd/panel/device/backlight/panel/brightness
|
chmod 0644 $f
|
||||||
chcon u:object_r:sysfs_lcd_writable:s0 /sys/class/backlight/panel0-backlight/brightness
|
chown system:system $f
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setprop persist.sys.phh.fod.samsung true
|
setprop persist.sys.phh.fod.samsung true
|
||||||
|
Loading…
Reference in New Issue
Block a user