summaryrefslogtreecommitdiff
path: root/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
blob: bd3e2ce0a320c5f47320d83790ba91d83b2584b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on init
    chown system system /dev/goodix_fp
    chmod 0644 /dev/goodix_fp

on boot
    chown system system /sys/devices/soc/soc:fpc1020/fingerdown_wait
    chmod 0220 /sys/devices/soc/soc:fpc1020/fingerdown_wait
    chown system system /sys/devices/soc/soc:fpc1020/irq
    chmod 0660 /sys/devices/soc/soc:fpc1020/irq
    chown system system /sys/devices/soc/soc:fpc1020/hw_reset
    chmod 0660 /sys/devices/soc/soc:fpc1020/hw_reset
    chown system system /sys/devices/soc/soc:fpc1020/wakeup_enable
    chmod 0660 /sys/devices/soc/soc:fpc1020/wakeup_enable
    chmod 0600 /data/misc/fpc/calibration_image.pndat

on post-fs-data
    mkdir /persist/qti_fp 0700 system system
    mkdir /data/vendor/fpc 0770 system system
    mkdir /data/vendor/goodix 0770 system system
    mkdir /mnt/vendor/persist/fpc 0770 system system
    copy /data/vendor/fpc/user.db /data/vendor_de/0/fpdata/user.db
    chown system system /data/vendor_de/0/fpdata/user.db
    rm /data/vendor/fpc/user.db

service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660
    class late_start
    user system
    group system uhid input

service vendor.goodix_script /vendor/bin/init.goodix.sh
    class late_start
    user system
    disabled

on property:ro.boot.fpsensor=gdx
    start vendor.goodix_script