sm6150-common: fingerprint: Setup permissions for violet FPC nodes

Signed-off-by: merothh <merothh@gmail.com>
Change-Id: Id68148dd222dc4a72b9b1e5db761a01177350769
This commit is contained in:
merothh 2020-04-12 02:22:08 +05:30 committed by Arian
parent 32e23fe941
commit a4bc80a800
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -1,3 +1,10 @@
on boot
chown system system /sys/bus/platform/devices/soc/soc:fpc1020/irq
chown system system /sys/bus/platform/devices/soc/soc:fpc1020/wakeup_enable
on post-fs-data
mkdir /data/vendor/fpc 0770 system system
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150
# "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