You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
on late-init
|
|
# PVDD enable
|
|
write /sys/class/nfc_sec/pvdd "1"
|
|
|
|
on post-fs-data
|
|
write /sys/class/nfc_sec/pvdd "2"
|
|
# NFC KEY
|
|
mkdir /data/vendor/nfc 0770 nfc nfc
|
|
|
|
# NFC driver permission
|
|
chmod 0660 /dev/p3
|
|
chown system system /dev/p3
|
|
chmod 0660 /dev/p61
|
|
chown system system /dev/p61
|
|
chmod 0660 /dev/st54spi
|
|
chown system system /dev/st54spi
|
|
|
|
on boot
|
|
write /sys/class/nfc_sec/pvdd "3"
|
|
# NFC driver permission
|
|
chmod 0660 /dev/sec-nfc
|
|
chown nfc nfc /dev/sec-nfc
|
|
chmod 0660 /dev/p3
|
|
chown system system /dev/p3
|
|
chmod 0660 /dev/pn547
|
|
chown nfc nfc /dev/pn547
|
|
chmod 0660 /dev/p61
|
|
chown system system /dev/p61
|
|
chmod 0660 /dev/st21nfc
|
|
chown nfc nfc /dev/st21nfc
|
|
chmod 0660 /dev/st54spi
|
|
chown system system /dev/st54spi
|
|
|
|
# NFC: create data/nfc for nv storage
|
|
mkdir /data/nfc 0770 nfc nfc
|
|
mkdir /data/nfc/param 0770 nfc nfc
|
|
|
|
# NFC: /efs/nfc for nv storage
|
|
mkdir /efs/nfc 0700 nfc nfc
|
|
|
|
# NFC KEY
|
|
mkdir /data/nfc_log 0750 nfc system
|
|
# copy /system/etc/nfc_key /data/nfc/Key
|
|
chmod 660 /data/nfc/Key
|
|
chown nfc nfc /data/nfc/Key
|
|
|
|
# For NFC hardware SKU
|
|
on boot && property:ro.boot.nfc.feature.chipname=*
|
|
setprop ro.vendor.nfc.feature.chipname ${ro.boot.nfc.feature.chipname}
|
|
|