diff options
author | Chris Paulo <chrispaulo@google.com> | 2023-02-14 03:37:15 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-02-14 03:37:15 +0000 |
commit | f7d0a7ae2e1fc202cd6040cea3943fafc14669f5 (patch) | |
tree | 91f99f649b0075ab005ae39b2feebd90b6bf4b9f | |
parent | cce402309a0ad6625baa847fb829725c8530d97e (diff) | |
parent | 5c8426b36d63aab685beabdc82628fbf0d65139a (diff) | |
download | pixel-sepolicy-f7d0a7ae2e1fc202cd6040cea3943fafc14669f5.tar.gz |
sepolicy/vibrator: Update sepolicy to support adaptive haptics property am: b4abcc2ce1 am: 5c8426b36d
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel-sepolicy/+/2433679
Change-Id: Iedc6731497dc55a4b1926a04be32ea168c2282c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | vibrator/common/property_contexts | 3 | ||||
-rw-r--r-- | vibrator/cs40l26/hal_vibrator_default.te | 3 | ||||
-rw-r--r-- | vibrator/cs40l26/vendor_init.te | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/vibrator/common/property_contexts b/vibrator/common/property_contexts index 64a2600..089a357 100644 --- a/vibrator/common/property_contexts +++ b/vibrator/common/property_contexts @@ -1 +1,2 @@ -ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 +ro.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 +persist.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0 diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te index 478bee9..060c484 100644 --- a/vibrator/cs40l26/hal_vibrator_default.te +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -15,5 +15,8 @@ r_dir_file(hal_vibrator_default, persist_haptics_file) get_prop(hal_vibrator_default, vendor_vibrator_prop); +# Allow Vibrator HAL to communicate with daemon via socket +unix_socket_connect(hal_vibrator_default, chre, chre); + # Allow vibrator HAL's default implementation to use vendor-binder service vndbinder_use(hal_vibrator_default); diff --git a/vibrator/cs40l26/vendor_init.te b/vibrator/cs40l26/vendor_init.te index 417a40c..da5a9d6 100644 --- a/vibrator/cs40l26/vendor_init.te +++ b/vibrator/cs40l26/vendor_init.te @@ -1 +1,2 @@ set_prop(vendor_init, vendor_vibrator_prop) +get_prop(vendor_init, adaptive_haptics_prop) |