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

* fts_521 and goodix_driver_gt9886 used in umi 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 5e20f8231e
commit 2e6923d475
3 changed files with 6 additions and 0 deletions

View File

@@ -12,6 +12,9 @@ on init
chmod 0666 /dev/goodix_fp
chown system system /dev/goodix_fp
chown system system /sys/touchpanel/fod_status
chmod 0644 /sys/touchpanel/fod_status
on boot
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq_enable

View File

@@ -16,12 +16,14 @@ allow hal_fingerprint_default {
input_device
vendor_sysfs_graphics
sysfs_msm_subsys
sysfs_touchpanel
}: dir r_dir_perms;
allow hal_fingerprint_default {
vendor_sysfs_fingerprint
vendor_sysfs_graphics
sysfs_msm_subsys
sysfs_touchpanel
}: file rw_file_perms;
r_dir_file(hal_fingerprint_default, firmware_file)

View File

@@ -24,6 +24,7 @@ static const char* kFodUiPaths[] = {
};
static const char* kFodStatusPaths[] = {
"/sys/touchpanel/fod_status",
};
static bool readBool(int fd) {