From 8433229cf0af262df4cbf04407d5942ee07f88b7 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Tue, 12 Oct 2021 20:43:06 +0200 Subject: [PATCH] sm7125: Build sensors multihal from hardware/samsung *Also label factory.ssc Change-Id: Iea7be25ba0b9126a764648a48b62e5df54c8aae0 --- common.mk | 2 +- sepolicy/vendor/factory_ssc.te | 4 ++++ sepolicy/vendor/file_contexts | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 sepolicy/vendor/factory_ssc.te diff --git a/common.mk b/common.mk index 622c26f..2b2863e 100644 --- a/common.mk +++ b/common.mk @@ -261,7 +261,7 @@ PRODUCT_PACKAGES += \ # Sensors PRODUCT_PACKAGES += \ - android.hardware.sensors@2.0-service.multihal \ + android.hardware.sensors@2.1-service.samsung-multihal \ android.frameworks.sensorservice@1.0 # Telephony diff --git a/sepolicy/vendor/factory_ssc.te b/sepolicy/vendor/factory_ssc.te new file mode 100755 index 0000000..09f295b --- /dev/null +++ b/sepolicy/vendor/factory_ssc.te @@ -0,0 +1,4 @@ +type factory_ssc, domain; +type factory_ssc_exec, exec_type, file_type, vendor_file_type; + +init_daemon_domain(factory_ssc) diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 4dbea3c..d8fda2d 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -5,4 +5,5 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.samsung u:object_r:hal_light_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.3-service\.widevine u:object_r:vendor_hal_drm_widevine_exec:s0 -/(vendor|system/vendor)/bin/vendor\.samsung\.hardware\.security\.widevine\.keyprov@1\.0-service u:object_r:vendor_hal_drm_widevine_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@2\.1-service.samsung-multihal u:object_r:hal_sensors_default_exec:s0 +/(vendor|system/vendor)/bin/factory\.ssc u:object_r:factory_ssc_exec:s0