From 49f98753c4ecbb59aa28cc83fb0ecde5db2dbf9f Mon Sep 17 00:00:00 2001 From: Tommaso Fonda Date: Sun, 4 Feb 2024 19:38:54 +0100 Subject: [PATCH] sm6225-common: Switch to the OSS sec NFC HAL Change-Id: I0c2a3b4db42d0e8af92c510bdd014eacc610b7f7 --- extract-files.sh | 4 ++++ sepolicy/vendor/file_contexts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index 58e2e3b..c414221 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -66,6 +66,10 @@ function blob_fixup() { vendor/etc/init/android.hardware.nfc@1.2-service-moto.rc) sed -i "s/class hal/override\n class hal/" "${2}" ;; + vendor/etc/init/android.hardware.nfc@1.2-service.sec.rc) + sed -i "s/sec/samsung/g" "${2}" + sed -i "s/class hal/override\n class hal/" "${2}" + ;; vendor/etc/init/android.hardware.nfc@1.2-service.st-moto.rc) sed -i "s/class hal/override\n class hal/" "${2}" ;; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 5d58268..5232e39 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -65,7 +65,7 @@ /dev/sec-nfc u:object_r:nfc_device:s0 /dev/st21nfc u:object_r:nfc_device:s0 /(vendor|system/vendor)/bin/STFlashTool u:object_r:stflashtool_exec: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 /(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@1\.2-service\.st u:object_r:hal_nfc_default_exec:s0 # Radio