touch: Set permissions for interactive_calibration

Enable the interactive_calibration node to be accessed by non-owners,
with SEPolicy restricting access to the diagnosticstool priv-app.

Bug: 230050981
Change-Id: I7d2ec8e7aba2aa744a1198ba504db536f872e491
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
This commit is contained in:
Steve Pfetsch 2023-09-18 16:47:04 -07:00
parent 425b860d07
commit d2e98ea1ea
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ on property:vendor.device.modules.ready=1
# Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chmod 666 /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/panel_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/offload_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_base

View File

@ -2,6 +2,8 @@ on property:vendor.device.modules.ready=1
# Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/fw_ver
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/interactive_calibrate
chmod 666 /sys/devices/virtual/goog_touch_interface/gti.1/interactive_calibrate
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/panel_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/offload_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ms_base