sdm710-common: udfps: Allow access fod_status node in /sys/touchpanel

* focaltech_touch_mi used in pyxis exposes fod_status sysfs node
  in /sys/touchpanel

Signed-off-by: Ivan Vecera <ivan@cera.cz>
Change-Id: I9707e1837c41b0cbc3f03180774af1b53c4b2f6d
This commit is contained in:
Ivan Vecera
2022-06-24 13:37:25 +02:00
committed by Sebastiano Barezzi
parent 36b9a5cc3b
commit 0bae790389
3 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ on boot
chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui
chmod 0444 /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui
chown system system /sys/touchpanel/fod_status
chmod 0644 /sys/touchpanel/fod_status
chown system system /sys/devices/virtual/touch/tp_dev/fod_status
chmod 0644 /sys/devices/virtual/touch/tp_dev/fod_status

View File

@@ -18,3 +18,6 @@ hal_client_domain(hal_fingerprint_default, hal_perf)
allow hal_fingerprint_default persist_fingerprint_file:dir create_dir_perms;
allow hal_fingerprint_default persist_fingerprint_file:file create_file_perms;
allow hal_fingerprint_default sysfs_touchpanel:dir search;
allow hal_fingerprint_default sysfs_touchpanel:file rw_file_perms;

View File

@@ -24,6 +24,7 @@ static const char* kFodUiPaths[] = {
};
static const char* kFodStatusPaths[] = {
"/sys/touchpanel/fod_status",
"/sys/devices/virtual/touch/tp_dev/fod_status",
};