[DO NOT MERGE] device/sepolicy: Add sepolicy for vibrator hal am: 5e8ab96efb

Original change: https://googleplex-android-review.googlesource.com/c/device/google/bluejay-sepolicy/+/19778819

Change-Id: I0f7d36ae379aa3236c00cbdc2b71929f14bc46d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chris Paulo 2022-11-17 09:15:10 +00:00 committed by Automerger Merge Worker
commit c167a8851f
5 changed files with 10 additions and 0 deletions

View file

@ -1,2 +1,3 @@
BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/bluejay BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/bluejay
BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/vendor
BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/tracking_denials_bluejay BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/tracking_denials_bluejay

2
vendor/file_contexts vendored Normal file
View file

@ -0,0 +1,2 @@
# Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private-bluejay u:object_r:hal_vibrator_default_exec:s0

3
vendor/hal_vibrator_default.te vendored Normal file
View file

@ -0,0 +1,3 @@
# Allow Vibrator HAL to communicate with daemon via socket
allow hal_vibrator_default chre:unix_stream_socket connectto;
allow hal_vibrator_default chre_socket:sock_file write;

2
vendor/property_contexts vendored Normal file
View file

@ -0,0 +1,2 @@
# Haptics
persist.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0

2
vendor/vendor_init.te vendored Normal file
View file

@ -0,0 +1,2 @@
# Haptics
get_prop(vendor_init, adaptive_haptics_prop)