Add permissions to internal ramdump and dload_mode

System apps such as RIDL/LogKit need to be able to enable internal
   mini crash dumps and to collect the dump. rw permissions are
   needed for dload_mode node to enable/disable feature. rw permissions are
   needed for ramdump to read the ramdump partition and to mark it as read.

Change-Id: I79e895fc78c21a7719b58a34a118d68a9e7103b5
This commit is contained in:
Clarence Wong 2017-04-07 15:13:22 -07:00 committed by Gerrit - the friendly Code Review server
parent c205570f44
commit e234d39af8
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,10 @@ on boot
chmod 0660 /dev/block/bootdevice/by-name/rawdump -p /dev/block/
chown root system /sys/kernel/dload/emmc_dload
chmod 0660 /sys/kernel/dload/emmc_dload
chown root system /dev/block/bootdevice/by-name/ramdump -p /dev/block/
chmod 0660 /dev/block/bootdevice/by-name/ramdump -p /dev/block/
chown root system /sys/kernel/dload/dload_mode
chmod 0660 /sys/kernel/dload/dload_mode
chown system system /sys/class/backlight/panel0-backlight/brightness
chown system system /sys/class/backlight/panel0-backlight/max_brightness