Merge "Configure udfps sysfs node permissions in ueventd.*.rc" into udc-d1-dev

This commit is contained in:
Treehugger Robot 2023-05-22 08:12:30 +00:00 committed by Android (Google) Code Review
commit f96a704a89
2 changed files with 5 additions and 8 deletions

View file

@ -844,14 +844,6 @@ on property:sys.boot_completed=1
chown root system /sys/devices/platform/19000000.aoc/reset
chmod 0220 /sys/devices/platform/19000000.aoc/reset
# AOC UDFPS clock compensation permission
chown system system /sys/devices/platform/17000000.aoc/control/udfps_set_clock_source
chmod 220 /sys/devices/platform/17000000.aoc/control/udfps_set_clock_source
chown system system /sys/devices/platform/17000000.aoc/control/udfps_get_osc_freq
chmod 440 /sys/devices/platform/17000000.aoc/control/udfps_get_osc_freq
chown system system /sys/devices/platform/17000000.aoc/control/udfps_get_disp_freq
chmod 440 /sys/devices/platform/17000000.aoc/control/udfps_get_disp_freq
# write serialno to battery path for pairing
write /sys/class/power_supply/battery/dev_sn ${ro.boot.serialno}

View file

@ -227,3 +227,8 @@
# Wlan
/dev/wlan 0660 wifi wifi
# Udfps
/sys/bus/aoc/devices/control udfps_set_clock_source 0220 system system
/sys/bus/aoc/devices/control udfps_get_osc_freq 0440 system system
/sys/bus/aoc/devices/control udfps_get_disp_freq 0440 system system