summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kulczak <nathankulczak@google.com>2023-02-17 18:41:39 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-17 18:41:39 +0000
commitcc6e61d041eb3b26010a423d6d968f097c748611 (patch)
treefebb0b0d316b4578be5d66e1f7628c6a26db2340
parent4267f9545f8e647db37a9d53c8ef2e13ef883534 (diff)
parent7470e4b35f1508adefdb3406cfac25f79199e2c8 (diff)
downloadpixel-sepolicy-cc6e61d041eb3b26010a423d6d968f097c748611.tar.gz
vibrator: allow servicemanager access to hal_vibrator_default am: 79f87c6207 am: 7470e4b35f
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel-sepolicy/+/2442099 Change-Id: I7299ef427b488025601e16b988060db7a68eb80f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--vibrator/cs40l25/hal_vibrator_default.te3
-rw-r--r--vibrator/cs40l26/hal_vibrator_default.te4
2 files changed, 6 insertions, 1 deletions
diff --git a/vibrator/cs40l25/hal_vibrator_default.te b/vibrator/cs40l25/hal_vibrator_default.te
index 2dd1c65..81c2f3f 100644
--- a/vibrator/cs40l25/hal_vibrator_default.te
+++ b/vibrator/cs40l25/hal_vibrator_default.te
@@ -17,4 +17,5 @@ get_prop(hal_vibrator_default, vendor_vibrator_prop);
vndbinder_use(hal_vibrator_default);
# Allow Vibrator HAL to communicate with stats service
-allow hal_vibrator_default fwk_stats_service:service_manager find; \ No newline at end of file
+allow hal_vibrator_default fwk_stats_service:service_manager find;
+binder_use(hal_vibrator_default)
diff --git a/vibrator/cs40l26/hal_vibrator_default.te b/vibrator/cs40l26/hal_vibrator_default.te
index 478bee9..4fafe8a 100644
--- a/vibrator/cs40l26/hal_vibrator_default.te
+++ b/vibrator/cs40l26/hal_vibrator_default.te
@@ -17,3 +17,7 @@ get_prop(hal_vibrator_default, vendor_vibrator_prop);
# Allow vibrator HAL's default implementation to use vendor-binder service
vndbinder_use(hal_vibrator_default);
+
+# Allow Vibrator HAL to communicate with stats service
+allow hal_vibrator_default fwk_stats_service:service_manager find;
+binder_use(hal_vibrator_default)