summaryrefslogtreecommitdiff
path: root/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-08-31 18:52:20 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-09-18 19:09:12 +0200
commit73bc815d397b47f1d6d0c74f98d4a4b697b19a96 (patch)
treea64b72f884a6eb98fee58178d357a133cb33821a /biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
parent396498da87b9dbb7cd9783fefea1bd24a3ebc704 (diff)
sdm660-common: Convert to 660 common tree
Change-Id: I903039730f4181f6a326f28e0ea212db68bdabcc
Diffstat (limited to 'biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc')
-rw-r--r--biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc25
1 files changed, 25 insertions, 0 deletions
diff --git a/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc b/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
new file mode 100644
index 0000000..00312b3
--- /dev/null
+++ b/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
@@ -0,0 +1,25 @@
+on boot
+ # Fingerprint
+ chown system system /dev/goodix_fp
+ chmod 0644 /dev/goodix_fp
+ 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
+
+service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660
+ class late_start
+ user system
+ group system 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