PL2: Conditionally enable Samsung's NFC service

There are different models with different chips, don't force
wrong service on wrong model.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: If1760991eda8471118e6b718a693f8a77f15e329
This commit is contained in:
Aayush Gupta
2020-10-03 17:10:35 +00:00
parent b3d370c89a
commit e7363c2bc8
2 changed files with 12 additions and 10 deletions

View File

@@ -46,7 +46,6 @@ vendor/etc/PL2/ncf/rear/ISO800_4608x3456.ncf
vendor/bin/sec_nfc_test
vendor/bin/hw/android.hardware.nfc@1.2-service.sec
vendor/bin/hw/vendor.nxp.hardware.nfc@1.2-service
vendor/etc/init/hw/android.hardware.nfc@1.2-service.sec.rc
vendor/etc/permissions/com.gsma.services.nfc.sec.xml
vendor/etc/nfcee_access.xml
vendor/lib/nfc_nci_sec.so

View File

@@ -1,6 +1,3 @@
#Samsung NFC hidl rc
import /vendor/etc/init/hw/android.hardware.nfc@1.2-service.sec.rc
on early-boot
# Audio
setprop persist.audio.fluence.voicecomm true
@@ -12,9 +9,6 @@ on early-boot
# Fingerprint
setprop ro.hardware.fingerprint elan
# NFC
setprop ro.hardware.nfc_nci sec
# Radio
setprop ro.rf.power.reduction.for.mcc 1
@@ -27,12 +21,9 @@ on post-fs-data
# Fingerprint
mkdir /data/system/fingerprint 0770 system system
# NFC storage
mkdir /data/vendor/nfc 0770 nfc nfc
mkdir /data/vendor/nfc/param 0770 nfc nfc
chown nfc nfc /dev/sec-nfc
chmod 0770 /dev/sec-nfc
on property:sys.fih.fingerprint=false
setprop sys.fih.fingerprint true
@@ -74,3 +65,15 @@ service fqcaudioloopback /vendor/bin/fqcaudioloopback_c1n.sh
user system
oneshot
disabled
service nfc_hal_service-sec /vendor/bin/hw/android.hardware.nfc@1.2-service.sec
class hal
user nfc
disabled
group nfc
on property:ro.boot.nfc=sec
chown nfc nfc /dev/sec-nfc
chmod 0770 /dev/sec-nfc
setprop ro.hardware.nfc_nci sec
enable nfc_hal_service-sec