2022-02-17 10:22:49 +01:00
|
|
|
|
|
|
|
|
# This file needs to be executed by vendor_init at boot of the device,
|
|
|
|
|
# both in normal and factory mode.
|
|
|
|
|
|
2022-10-22 19:11:46 +02:00
|
|
|
on early-boot
|
2022-02-17 10:22:49 +01:00
|
|
|
# Change ownership and permision of st nfc device
|
|
|
|
|
chown nfc nfc /dev/st21nfc
|
|
|
|
|
chmod 0660 /dev/st21nfc
|
2022-10-22 19:11:46 +02:00
|
|
|
chown secure_element secure_element /dev/st54spi
|
|
|
|
|
chmod 0660 /dev/st54spi
|
2022-02-17 10:22:49 +01:00
|
|
|
|
|
|
|
|
on property:ro.vendor.hw.nfc=true && property:persist.vendor.radio.multisim.config=*
|
|
|
|
|
start vendor.stflashtool
|
|
|
|
|
|
|
|
|
|
on property:ro.vendor.hw.nfc=st && property:persist.vendor.radio.multisim.config=*
|
|
|
|
|
start vendor.stflashtool
|
|
|
|
|
|
|
|
|
|
on property:ro.vendor.hw.nfc=ese_st && property:persist.vendor.radio.multisim.config=*
|
|
|
|
|
start vendor.stflashtool
|
|
|
|
|
|
|
|
|
|
service vendor.stflashtool /vendor/bin/STFlashTool -c /vendor/etc/st21nfc_conf.txt -P vendor.nfc.fw_status
|
|
|
|
|
group nfc
|
|
|
|
|
user nfc
|
|
|
|
|
oneshot
|
|
|
|
|
disabled
|