Merge "haptics: Add dual haptics related sepolicy" into sc-dev
diff --git a/vibrator/common/service_contexts b/vibrator/common/service_contexts
new file mode 100644
index 0000000..7fe834b
--- /dev/null
+++ b/vibrator/common/service_contexts
@@ -0,0 +1 @@
+android.hardware.vibrator.IVibrator/dual                             u:object_r:hal_vibrator_service:s0
diff --git a/vibrator/cs40l25/file_contexts b/vibrator/cs40l25/file_contexts
index 400ff14..adcc5c6 100644
--- a/vibrator/cs40l25/file_contexts
+++ b/vibrator/cs40l25/file_contexts
@@ -1 +1,2 @@
-/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l25 u:object_r:hal_vibrator_default_exec:s0
+/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l25        u:object_r:hal_vibrator_default_exec:s0
+/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l25-dual   u:object_r:hal_vibrator_default_exec:s0
diff --git a/vibrator/cs40l25/hal_vibrator_default.te b/vibrator/cs40l25/hal_vibrator_default.te
index e015251..3d337bf 100644
--- a/vibrator/cs40l25/hal_vibrator_default.te
+++ b/vibrator/cs40l25/hal_vibrator_default.te
@@ -5,3 +5,6 @@
 r_dir_file(hal_vibrator_default, persist_haptics_file)
 
 get_prop(hal_vibrator_default, vendor_vibrator_prop);
+
+# Allow vibrator HAL's default implementation to use vendor-binder service
+vndbinder_use(hal_vibrator_default);