Преглед на файлове

sm8450-common: rootdir: Add goodix fingerprint permissions

Change-Id: I99dec0b23be7ed93c0f91151f6eafabcdd9e19bd
Arian преди 1 година
родител
ревизия
c7fc76bb98
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      rootdir/etc/init.xiaomi_sm8450.rc

+ 8 - 0
rootdir/etc/init.xiaomi_sm8450.rc

@@ -57,6 +57,10 @@ on boot
     # Create persist for camera calibration data
     mkdir /mnt/vendor/persist/camera 0755 system cameraserver
 
+    # Goodix fingerprint
+    chmod 0660 /dev/goodix_fp
+    chown system system /dev/goodix_fp
+
 on post-fs-data
     # Create folder of camera
     mkdir /data/vendor/camera/offlinelog 0777 cameraserver audio
@@ -142,6 +146,10 @@ on post-fs-data
     chown system system /sys/class/mi_display/disp-DSI-1/max_brightness_clone
     chmod 0664 /sys/class/mi_display/disp-DSI-1/max_brightness_clone
 
+    # Goodix fingerprint
+    mkdir /data/vendor/goodix 0770 system system
+    mkdir /mnt/vendor/persist/goodix 0770 system system
+
 on property:sys.boot_completed=1
     start qrtr-lookup