PL2: Update the samsung nfc service suffix in required files

We are now building it from source, update our init service entry as
well as sepolicy label

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I74f1b00f4d12e4238053dc20895e07797553944e
This commit is contained in:
Aayush Gupta
2021-04-24 05:20:54 +00:00
parent 00bcfa8e20
commit 1d4b0265f9
2 changed files with 4 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ on post-fs-data
mkdir /data/vendor/nfc 0770 nfc nfc
mkdir /data/vendor/nfc/param 0770 nfc nfc
service nfc_hal_service-sec /vendor/bin/hw/android.hardware.nfc@1.2-service.sec
service nfc_hal_service /vendor/bin/hw/android.hardware.nfc@1.2-service.samsung
override
class hal
user nfc
disabled
@@ -28,7 +29,7 @@ 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
enable nfc_hal_service
on property:ro.boot.nfc=nxp
chmod 0660 /dev/nq-nci

View File

@@ -1,3 +1,3 @@
# NFC
/dev/sec-nfc u:object_r:sec_device:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.sec u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.samsung u:object_r:hal_nfc_default_exec:s0