mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sdm710-common
synced 2026-02-01 04:20:55 +00:00
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:
committed by
Sebastiano Barezzi
parent
36b9a5cc3b
commit
0bae790389
@@ -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
|
||||
|
||||
|
||||
3
sepolicy/vendor/hal_fingerprint_default.te
vendored
3
sepolicy/vendor/hal_fingerprint_default.te
vendored
@@ -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;
|
||||
|
||||
@@ -24,6 +24,7 @@ static const char* kFodUiPaths[] = {
|
||||
};
|
||||
|
||||
static const char* kFodStatusPaths[] = {
|
||||
"/sys/touchpanel/fod_status",
|
||||
"/sys/devices/virtual/touch/tp_dev/fod_status",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user