diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2023-02-17 16:29:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-02-17 16:29:19 +0000 |
commit | ff2bbc7fa9eae5f5d431621ed6ba26f8ae63a4e3 (patch) | |
tree | 751d7f16833d3523b8f230da45ca21ff96147f07 | |
parent | 79f87c62070e58f5d2be5d3d2e39a9e1dc84a250 (diff) | |
parent | e7c5f149e545891b6a8a70267d624476a1fbbd75 (diff) | |
download | pixel-sepolicy-ff2bbc7fa9eae5f5d431621ed6ba26f8ae63a4e3.tar.gz |
Merge "Revert^2 "sepolicy/vibrator: Update sepolicy to support adaptive haptics property""
-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 4fafe8a..c61cefe 100644 --- a/vibrator/cs40l26/hal_vibrator_default.te +++ b/vibrator/cs40l26/hal_vibrator_default.te @@ -15,6 +15,9 @@ 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) |