Some devices have mask_brightness with proper selinux, wrong perms...
This commit is contained in:
parent
c0ff9f49f0
commit
9800e43980
@ -730,13 +730,11 @@ if getprop ro.vendor.build.fingerprint |grep -qiE '^xiaomi/';then
|
|||||||
fi
|
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
|
|
||||||
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
|
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
|
chcon u:object_r:sysfs_lcd_writable:s0 $f
|
||||||
chmod 0644 $f
|
chmod 0644 $f
|
||||||
chown system:system $f
|
chown system:system $f
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
setprop persist.sys.phh.fod.samsung true
|
setprop persist.sys.phh.fod.samsung true
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user