sm6150-common: fingerprint: Setup goodix file permissions

* from MIUI 21.1.20

Change-Id: Iabe5ea1125d44c1189e6227722f9f440c4dcf47a
This commit is contained in:
Arian 2021-01-25 14:02:04 +01:00
parent a457bbfa8f
commit f0e2002d43

View File

@ -1,6 +1,14 @@
on init
# Goodix fingerprint
chown system system /dev/goodix_fp
on boot on boot
chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui
on post-fs-data
mkdir /data/vendor/goodix 0770 system system
mkdir /mnt/vendor/persist/goodix 0770 system system
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.3-service.xiaomi_sm6150-udfps service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.3-service.xiaomi_sm6150-udfps
# "class hal" causes a race condition on some devices due to files created # "class hal" causes a race condition on some devices due to files created
# in /data. As a workaround, postpone startup until later in boot once # in /data. As a workaround, postpone startup until later in boot once