From fdc3c0db4882f11e581b7dd0dc19423b32d1b942 Mon Sep 17 00:00:00 2001 From: Kris Chen Date: Sat, 20 May 2023 00:21:13 +0800 Subject: [PATCH] Configure udfps sysfs node permissions in ueventd.*.rc Bug: 282568738 Test: Trigger aoc crash, perform udfps osc calibration. Change-Id: I6d488c6808903eb5eeb6a3aa8336968ae9c643d3 --- conf/init.zuma.rc | 8 -------- conf/ueventd.zuma.rc | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index bd51a33f..409fc2ea 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -840,14 +840,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} diff --git a/conf/ueventd.zuma.rc b/conf/ueventd.zuma.rc index 7483184a..c3a57cba 100644 --- a/conf/ueventd.zuma.rc +++ b/conf/ueventd.zuma.rc @@ -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